2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
700 ENABLE_ABI_BREAKING_CHECKS
710 enable_external_search
711 enable_server_based_search
713 extra_search_mappings
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
777 HAVE_LINK_VERSION_SCRIPT
780 NO_MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
811 ENABLE_VISIBILITY_INLINES_HIDDEN
818 ac_precious_vars='build_alias
829 ac_subdirs_all='projects/test-suite
832 projects/llvm-poolalloc
836 # Initialize some variables set by options.
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name=s,x,x,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 -enable-* | --enable-*)
956 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960 { (exit 1); exit 1; }; }
961 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962 eval enable_$ac_feature=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package| sed 's/-/_/g'`
1159 eval with_$ac_package=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package=`echo $ac_package | sed 's/-/_/g'`
1168 eval with_$ac_package=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190 { (exit 1); exit 1; }; }
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198 { (exit 1); exit 1; }; }
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 { echo "$as_me: error: missing argument to $ac_option" >&2
1216 { (exit 1); exit 1; }; }
1219 # Be sure to have absolute directory names.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231 { (exit 1); exit 1; }; }
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 { echo "$as_me: error: Working directory cannot be determined" >&2
1262 { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 { echo "$as_me: error: pwd does not report name of working directory" >&2
1265 { (exit 1); exit 1; }; }
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$0" : 'X\(//\)[^/]' \| \
1275 X"$0" : 'X\(//\)$' \| \
1276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305 { (exit 1); exit 1; }; }
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310 { (exit 1); exit 1; }; }
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1336 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-polly Use polly if available (default is YES)
1410 --enable-libcpp Use libc++ if available (default is NO)
1411 --enable-compiler-version-checks
1412 Check the version of the host compiler (default is
1414 --enable-cxx1y Use c++1y if available (default is NO)
1415 --enable-split-dwarf Use split-dwarf if available (default is NO)
1416 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1417 --enable-clang-plugin-support
1418 Enable plugin support in clang (default is YES)
1419 --enable-clang-static-analyzer
1420 Enable building of clang Static Analyzer (default is
1422 --enable-optimized Compile with optimizations enabled (default is NO)
1423 --enable-profiling Compile with profiling enabled (default is NO)
1424 --enable-assertions Compile with assertion checks enabled (default is
1426 --enable-werror Compile with -Werror enabled (default is NO)
1427 --enable-expensive-checks
1428 Compile with expensive debug checks enabled (default
1430 --enable-abi-breaking-checks
1431 Compile with abi-breaking asserts support (default
1433 --enable-debug-runtime Build runtime libs with debug symbols (default is
1435 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1436 optimization is on and YES if it's off)
1437 --enable-keep-symbols Do not strip installed executables)
1438 --enable-jit Enable Just In Time Compiling (default is YES)
1439 --enable-docs Build documents (default is YES)
1440 --enable-doxygen Build doxygen documentation (default is NO)
1441 --enable-doxygen-search Enable doxygen search support (default is NO)
1442 --enable-doxygen-external-search
1443 Enable doxygen exteranl search (default is NO)
1444 --enable-doxygen-qt-help
1445 Build Qt help files (default is NO)
1446 --enable-threads Use threads if available (default is YES)
1447 --enable-pthreads Use pthreads if available (default is YES)
1448 --enable-zlib Use zlib for compression/decompression if available
1450 --enable-pic Build LLVM with Position Independent Code (default
1452 --enable-shared Build a shared library and link tools against it
1454 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1455 Win32 DLL (default is NO)
1456 --enable-timestamps Enable embedding timestamp information in build
1458 --enable-backtraces Enable embedding backtraces on crash (default is
1460 --enable-crash-overrides
1461 Enable crash handling overrides (default is YES)
1462 --enable-targets Build specific host targets: all or
1463 target1,target2,... Valid targets are: host, x86,
1464 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465 hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1466 and cpp (default=all)
1467 --enable-experimental-targets
1468 Build experimental host targets: disable or
1469 target1,target2,... (default=disable)
1470 --enable-bindings Build specific language bindings:
1471 all,auto,none,{binding-name} (default=auto)
1472 --enable-terminfo Query the terminfo database if available (default is
1474 --enable-libedit Use libedit if available (default is YES)
1475 --enable-libffi Check for the presence of libffi (default is NO)
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-doxygen-search-engine-url
1481 Specify the external search engine for doxygen
1482 --with-doxygen-search-mappings
1483 Specify the extra search mapping for doxygen
1484 --with-optimize-option Select the compiler options to use for optimized
1486 --with-extra-options Specify additional options to compile LLVM with
1487 --with-extra-ld-options Specify additional options to link LLVM with
1488 --with-ocaml-libdir Specify install location for ocaml bindings (default
1490 --with-clang-srcdir Directory to the out-of-tree Clang source
1491 --with-clang-resource-dir
1492 Relative directory from the Clang binary for
1494 --with-c-include-dirs Colon separated list of directories clang will
1496 --with-gcc-toolchain Directory where gcc is installed.
1497 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1498 --with-clang-default-openmp-runtime
1499 The default OpenMP runtime for Clang.
1500 --with-binutils-include Specify path to binutils/include/ containing
1501 plugin-api.h file for gold plugin.
1502 --with-bug-report-url Specify the URL where bug reports should be
1503 submitted (default=http://llvm.org/bugs/)
1504 --with-internal-prefix Installation directory for internal files
1505 --with-python path to python
1506 --with-oprofile=<prefix>
1507 Tell OProfile >= 0.9.4 how to symbolize JIT output
1508 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 Report bugs to <http://llvm.org/bugs/>.
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" || continue
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1586 LLVM configure 3.7.0svn
1587 generated by GNU Autoconf 2.60
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1594 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1602 It was created by LLVM $as_me 3.7.0svn, which was
1603 generated by GNU Autoconf 2.60. Invocation command line was
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 echo "PATH: $as_dir"
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_must_keep_next=false
1669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671 | -silent | --silent | --silen | --sile | --sil)
1674 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680 if test $ac_must_keep_next = true; then
1681 ac_must_keep_next=false # Got value, back to normal.
1684 *=* | --config-cache | -C | -disable-* | --disable-* \
1685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687 | -with-* | --with-* | -without-* | --without-* | --x)
1688 case "$ac_configure_args0 " in
1689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692 -* ) ac_must_keep_next=true ;;
1695 ac_configure_args="$ac_configure_args '$ac_arg'"
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log. We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709 # Save into config.log some information that might help in debugging.
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1719 # The following way of writing the cache mishandles newlines in values,
1721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722 eval ac_val=\$$ac_var
1726 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730 _ | IFS | as_nl) ;; #(
1731 *) $as_unset $ac_var ;;
1736 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737 *${as_nl}ac_space=\ *)
1739 "s/'\''/'\''\\\\'\'''\''/g;
1740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1756 for ac_var in $ac_subst_vars
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 echo "$ac_var='\''$ac_val'\''"
1766 if test -n "$ac_subst_files"; then
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1773 for ac_var in $ac_subst_files
1775 eval ac_val=\$$ac_var
1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 echo "$ac_var='\''$ac_val'\''"
1784 if test -s confdefs.h; then
1794 test "$ac_signal" != 0 &&
1795 echo "$as_me: caught signal $ac_signal"
1796 echo "$as_me: exit $exit_status"
1798 rm -f core *.core core.conftest.* &&
1799 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 for ac_signal in 1 2 13 15; do
1803 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1810 # Predefined preprocessor variables.
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840 set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844 set x "$ac_default_prefix/share/config.site" \
1845 "$ac_default_prefix/etc/config.site"
1850 if test -r "$ac_site_file"; then
1851 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853 sed 's/^/| /' "$ac_site_file" >&5
1858 if test -r "$cache_file"; then
1859 # Some versions of bash will fail to source /dev/null (special
1860 # files actually), so we avoid doing that.
1861 if test -f "$cache_file"; then
1862 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866 *) . "./$cache_file";;
1870 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1875 # Check that the precious variables saved in the cache have kept the same
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880 eval ac_new_set=\$ac_env_${ac_var}_set
1881 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882 eval ac_new_val=\$ac_env_${ac_var}_value
1883 case $ac_old_set,$ac_new_set in
1885 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887 ac_cache_corrupted=: ;;
1889 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1894 if test "x$ac_old_val" != "x$ac_new_val"; then
1895 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1898 echo "$as_me: former value: $ac_old_val" >&2;}
1899 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1900 echo "$as_me: current value: $ac_new_val" >&2;}
1901 ac_cache_corrupted=:
1904 # Pass precious variables to config.status.
1905 if test "$ac_new_set" = set; then
1907 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 *) ac_arg=$ac_var=$ac_new_val ;;
1910 case " $ac_configure_args " in
1911 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 if $ac_cache_corrupted; then
1917 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921 { (exit 1); exit 1; }; }
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 LLVM_VERSION_MAJOR=3
1957 LLVM_VERSION_MINOR=7
1958 LLVM_VERSION_PATCH=0
1959 LLVM_VERSION_SUFFIX=svn
1962 cat >>confdefs.h <<_ACEOF
1963 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1967 cat >>confdefs.h <<_ACEOF
1968 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1972 cat >>confdefs.h <<_ACEOF
1973 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1977 cat >>confdefs.h <<_ACEOF
1978 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1987 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1996 for ac_dir in autoconf "$srcdir"/autoconf; do
1997 if test -f "$ac_dir/install-sh"; then
1999 ac_install_sh="$ac_aux_dir/install-sh -c"
2001 elif test -f "$ac_dir/install.sh"; then
2003 ac_install_sh="$ac_aux_dir/install.sh -c"
2005 elif test -f "$ac_dir/shtool"; then
2007 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 if test -z "$ac_aux_dir"; then
2012 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2014 { (exit 1); exit 1; }; }
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027 if test ${srcdir} != "." ; then
2028 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2029 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2030 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2031 { (exit 1); exit 1; }; }
2035 if test ${srcdir} == "." ; then
2036 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2037 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2038 { echo "$as_me:$LINENO: WARNING: * *" >&5
2039 echo "$as_me: WARNING: * *" >&2;}
2040 { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
2041 echo "$as_me: WARNING: * WARNING *" >&2;}
2042 { echo "$as_me:$LINENO: WARNING: * *" >&5
2043 echo "$as_me: WARNING: * *" >&2;}
2044 { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
2045 echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
2046 { echo "$as_me:$LINENO: WARNING: * *" >&5
2047 echo "$as_me: WARNING: * *" >&2;}
2048 { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
2049 echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
2050 { echo "$as_me:$LINENO: WARNING: * *" >&5
2051 echo "$as_me: WARNING: * *" >&2;}
2052 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2053 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065 for ac_prog in clang gcc
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$CC" && break
2107 if test -z "$CC"; then
2109 for ac_prog in clang gcc
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2148 test -n "$ac_ct_CC" && break
2151 if test "x$ac_ct_CC" = x; then
2154 case $cross_compiling:$ac_tool_warned in
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet. If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&2;}
2173 { (exit 1); exit 1; }; }
2175 # Provide some information about the compiler.
2176 echo "$as_me:$LINENO: checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (ac_try="$ac_compiler --version >&5"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184 (eval "$ac_compiler --version >&5") 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2188 { (ac_try="$ac_compiler -v >&5"
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194 (eval "$ac_compiler -v >&5") 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }
2198 { (ac_try="$ac_compiler -V >&5"
2200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204 (eval "$ac_compiler -V >&5") 2>&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }
2209 cat >conftest.$ac_ext <<_ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 # List of possible output files, starting from the most likely.
2234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2235 # only as a last resort. b.out is created by i960 compilers.
2236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2238 # The IRIX 6 linker writes into existing files which may not be
2239 # executable, retaining their permissions. Remove them first so a
2240 # subsequent execution test works.
2242 for ac_file in $ac_files
2245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2251 if { (ac_try="$ac_link_default"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_link_default") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; then
2261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2264 # so that the user can short-circuit this test for compilers unknown to
2266 for ac_file in $ac_files
2268 test -f "$ac_file" || continue
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2273 # We found the default executable, but exeext='' is most
2277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 # We set ac_cv_exeext here because the later test for it is not
2282 # safe: cross compilers may not add the suffix if given an `-o'
2283 # argument, so we may need to know it at that point already.
2284 # Even if this section looks crufty: it has the advantage of
2291 test "$ac_cv_exeext" = no && ac_cv_exeext=
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&2;}
2301 { (exit 77); exit 77; }; }
2304 ac_exeext=$ac_cv_exeext
2305 { echo "$as_me:$LINENO: result: $ac_file" >&5
2306 echo "${ECHO_T}$ac_file" >&6; }
2308 # Check that the compiler produces executables we can run. If not, either
2309 # the compiler is broken, or we cross compile.
2310 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2312 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313 # If not cross compiling, check that we can run a simple program.
2314 if test "$cross_compiling" != yes; then
2315 if { ac_try='./$ac_file'
2316 { (case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_try") 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 if test "$cross_compiling" = maybe; then
2330 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot run C compiled programs.
2334 If you meant to cross compile, use \`--host'.
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2340 { echo "$as_me:$LINENO: result: yes" >&5
2341 echo "${ECHO_T}yes" >&6; }
2343 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344 ac_clean_files=$ac_clean_files_save
2345 # Check that the compiler produces executables we can run. If not, either
2346 # the compiler is broken, or we cross compile.
2347 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2349 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350 echo "${ECHO_T}$cross_compiling" >&6; }
2352 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2354 if { (ac_try="$ac_link"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_link") 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; then
2364 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2368 for ac_file in conftest.exe conftest conftest.*; do
2369 test -f "$ac_file" || continue
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2385 rm -f conftest$ac_cv_exeext
2386 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2392 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compile") 2>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; then
2423 for ac_file in conftest.o conftest.obj conftest.*; do
2424 test -f "$ac_file" || continue;
2426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2444 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6; }
2446 OBJEXT=$ac_cv_objext
2448 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.$ac_ext <<_ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_compile") 2>conftest.er1
2480 grep -v '^ *+' conftest.er1 >conftest.err
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2519 GCC=`test $ac_compiler_gnu = yes && echo yes`
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_cc_g+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 ac_save_c_werror_flag=$ac_c_werror_flag
2528 ac_c_werror_flag=yes
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2546 rm -f conftest.$ac_objext
2547 if { (ac_try="$ac_compile"
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_compile") 2>conftest.er1
2555 grep -v '^ *+' conftest.er1 >conftest.err
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_try") 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compile") 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_try") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_try") 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 ac_c_werror_flag=$ac_save_c_werror_flag
2708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2710 if test "$ac_test_CFLAGS" = set; then
2711 CFLAGS=$ac_save_CFLAGS
2712 elif test $ac_cv_prog_cc_g = yes; then
2713 if test "$GCC" = yes; then
2719 if test "$GCC" = yes; then
2725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_cc_c89+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 ac_cv_prog_cc_c89=no
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2756 s = g (p, va_arg (v,int));
2761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2762 function prototypes and stuff, but not '\xHH' hex character constants.
2763 These don't provoke an error unfortunately, instead are silently treated
2764 as 'x'. The following induces an error, until -std is added to get
2765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2766 array size at least. It's necessary to write '\x00'==0 to get something
2767 that's true only with -std. */
2768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2771 inside strings and character constants. */
2773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2775 int test (int i, double x);
2776 struct s1 {int (*f) (int a);};
2777 struct s2 {int (*f) (double a);};
2778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2792 CC="$ac_save_CC $ac_arg"
2793 rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_compile") 2>conftest.er1
2802 grep -v '^ *+' conftest.er1 >conftest.err
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2808 { (case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_try") 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest.$ac_objext'
2818 { (case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_try") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_c89=$ac_arg
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2835 rm -f core conftest.err conftest.$ac_objext
2836 test "x$ac_cv_prog_cc_c89" != "xno" && break
2838 rm -f conftest.$ac_ext
2843 case "x$ac_cv_prog_cc_c89" in
2845 { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2848 { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2851 CC="$CC $ac_cv_prog_cc_c89"
2852 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869 if test -n "$CCC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in clang++ g++
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$CXX"; then
2883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test -n "$CXX"; then
2904 { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$CXX" >&6; }
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2912 test -n "$CXX" && break
2915 if test -z "$CXX"; then
2917 for ac_prog in clang++ g++
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 if test -n "$ac_ct_CXX"; then
2927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_CXX="$ac_prog"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2956 test -n "$ac_ct_CXX" && break
2959 if test "x$ac_ct_CXX" = x; then
2962 case $cross_compiling:$ac_tool_warned in
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet. If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compiler --version >&5") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_compiler -v >&5") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compiler -V >&5") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3081 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3083 GXX=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CXXFLAGS=${CXXFLAGS+set}
3085 ac_save_CXXFLAGS=$CXXFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3092 ac_cxx_werror_flag=yes
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_compile") 2>conftest.er1
3119 grep -v '^ *+' conftest.er1 >conftest.err
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3144 ac_cv_prog_cxx_g=yes
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3236 { (case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_prog_cxx_g=yes
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3274 if test "$ac_test_CXXFLAGS" = set; then
3275 CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277 if test "$GXX" = yes; then
3283 if test "$GXX" = yes; then
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3306 if test -z "$CPP"; then
3307 if test "${ac_cv_prog_CPP+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 # Double quotes because CPP needs to be expanded
3311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 for ac_c_preproc_warn_flag in '' yes
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
3318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 # <limits.h> exists even on freestanding compilers.
3320 # On the NeXT, cc -E runs the code through the compiler's parser,
3321 # not just through cpp. "Syntax error" is here to catch this case.
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3329 # include <limits.h>
3331 # include <assert.h>
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357 if test -z "$ac_cpp_err"; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 # Broken: fails on valid input.
3367 rm -f conftest.err conftest.$ac_ext
3369 # OK, works on sane cases. Now check whether nonexistent headers
3370 # can be detected and how.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #include <ac_nonexistent.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null; then
3392 if test -s conftest.err; then
3393 ac_cpp_err=$ac_c_preproc_warn_flag
3394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401 if test -z "$ac_cpp_err"; then
3402 # Broken: success on invalid input.
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 # Passes both tests.
3413 rm -f conftest.err conftest.$ac_ext
3416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3417 rm -f conftest.err conftest.$ac_ext
3418 if $ac_preproc_ok; then
3430 { echo "$as_me:$LINENO: result: $CPP" >&5
3431 echo "${ECHO_T}$CPP" >&6; }
3433 for ac_c_preproc_warn_flag in '' yes
3435 # Use a header file that comes with gcc, so configuring glibc
3436 # with a fresh cross-compiler works.
3437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438 # <limits.h> exists even on freestanding compilers.
3439 # On the NeXT, cc -E runs the code through the compiler's parser,
3440 # not just through cpp. "Syntax error" is here to catch this case.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3448 # include <limits.h>
3450 # include <assert.h>
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 if test -z "$ac_cpp_err"; then
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null; then
3511 if test -s conftest.err; then
3512 ac_cpp_err=$ac_c_preproc_warn_flag
3513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3520 if test -z "$ac_cpp_err"; then
3521 # Broken: success on invalid input.
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Passes both tests.
3532 rm -f conftest.err conftest.$ac_ext
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3540 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 if test "$CXX" = "clang++" ; then
3555 { echo "$as_me:$LINENO: checking whether clang works" >&5
3556 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3558 ac_cpp='$CXXCPP $CPPFLAGS'
3559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3571 #if __has_include (<cxxabi.h>)
3574 #if __has_include (<unwind.h>)
3586 rm -f conftest.$ac_objext
3587 if { (ac_try="$ac_compile"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_compile") 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3601 { (case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_try") 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_try") 2>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3621 { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3629 { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3631 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3632 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3633 { (exit 1); exit 1; }; }
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3647 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3649 ac_cpp='$CXXCPP $CPPFLAGS'
3650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3654 llvm_cv_cxx_compiler=unknown
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681 { (case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_try") 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; } &&
3690 { ac_try='test -s conftest.$ac_objext'
3691 { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 llvm_cv_cxx_compiler=clang
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3731 { (case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_try") 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest.$ac_objext'
3741 { (case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_try") 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 llvm_cv_cxx_compiler=gcc
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3769 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3773 if test -d ${srcdir}/projects/test-suite ; then
3774 subdirs="$subdirs projects/test-suite"
3778 if test -d ${srcdir}/projects/llvm-test ; then
3779 subdirs="$subdirs projects/llvm-test"
3783 if test -d ${srcdir}/projects/poolalloc ; then
3784 subdirs="$subdirs projects/poolalloc"
3788 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3789 subdirs="$subdirs projects/llvm-poolalloc"
3793 for i in `ls ${srcdir}/projects`
3795 if test -d ${srcdir}/projects/${i} ; then
3797 safecode) subdirs="$subdirs projects/safecode"
3805 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3806 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3812 # Check whether --enable-polly was given.
3813 if test "${enable_polly+set}" = set; then
3814 enableval=$enable_polly;
3819 case "$enableval" in
3824 default) ENABLE_POLLY=1
3826 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3827 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3828 { (exit 1); exit 1; }; } ;;
3832 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3835 subdirs="$subdirs tools/polly"
3840 # Make sure we can run config.sub.
3841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3842 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3843 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3844 { (exit 1); exit 1; }; }
3846 { echo "$as_me:$LINENO: checking build system type" >&5
3847 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3848 if test "${ac_cv_build+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 ac_build_alias=$build_alias
3852 test "x$ac_build_alias" = x &&
3853 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3854 test "x$ac_build_alias" = x &&
3855 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3857 { (exit 1); exit 1; }; }
3858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3859 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3861 { (exit 1); exit 1; }; }
3864 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3865 echo "${ECHO_T}$ac_cv_build" >&6; }
3866 case $ac_cv_build in
3868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3869 echo "$as_me: error: invalid value of canonical build" >&2;}
3870 { (exit 1); exit 1; }; };;
3873 ac_save_IFS=$IFS; IFS='-'
3879 # Remember, the first character of IFS is used to create $*,
3880 # except with old shells:
3883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3886 { echo "$as_me:$LINENO: checking host system type" >&5
3887 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3888 if test "${ac_cv_host+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 if test "x$host_alias" = x; then
3892 ac_cv_host=$ac_cv_build
3894 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3895 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3896 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3897 { (exit 1); exit 1; }; }
3901 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3902 echo "${ECHO_T}$ac_cv_host" >&6; }
3905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3906 echo "$as_me: error: invalid value of canonical host" >&2;}
3907 { (exit 1); exit 1; }; };;
3910 ac_save_IFS=$IFS; IFS='-'
3916 # Remember, the first character of IFS is used to create $*,
3917 # except with old shells:
3920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3923 { echo "$as_me:$LINENO: checking target system type" >&5
3924 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3925 if test "${ac_cv_target+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 if test "x$target_alias" = x; then
3929 ac_cv_target=$ac_cv_host
3931 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3932 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3934 { (exit 1); exit 1; }; }
3938 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3939 echo "${ECHO_T}$ac_cv_target" >&6; }
3940 case $ac_cv_target in
3942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3943 echo "$as_me: error: invalid value of canonical target" >&2;}
3944 { (exit 1); exit 1; }; };;
3946 target=$ac_cv_target
3947 ac_save_IFS=$IFS; IFS='-'
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3957 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3960 # The aliases save the names the user supplied, while $host etc.
3961 # will get canonicalized.
3962 test -n "$target_alias" &&
3963 test "$program_prefix$program_suffix$program_transform_name" = \
3965 program_prefix=${target_alias}-
3967 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3968 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3969 if test "${llvm_cv_os_type+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 llvm_cv_link_all_option="-Wl,--whole-archive"
3975 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976 llvm_cv_os_type="AIX"
3977 llvm_cv_platform_type="Unix" ;;
3979 llvm_cv_link_all_option="-Wl,--whole-archive"
3980 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981 llvm_cv_os_type="IRIX"
3982 llvm_cv_platform_type="Unix" ;;
3984 llvm_cv_link_all_option="-Wl,--whole-archive"
3985 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3986 llvm_cv_os_type="Cygwin"
3987 llvm_cv_platform_type="Unix" ;;
3989 llvm_cv_link_all_option="-Wl,-all_load"
3990 llvm_cv_no_link_all_option="-Wl,-noall_load"
3991 llvm_cv_os_type="Darwin"
3992 llvm_cv_platform_type="Unix" ;;
3994 llvm_cv_link_all_option="-Wl,-all_load"
3995 llvm_cv_no_link_all_option="-Wl,-noall_load"
3996 llvm_cv_os_type="Minix"
3997 llvm_cv_platform_type="Unix" ;;
3999 llvm_cv_link_all_option="-Wl,--whole-archive"
4000 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001 llvm_cv_os_type="FreeBSD"
4002 llvm_cv_platform_type="Unix" ;;
4004 llvm_cv_link_all_option="-Wl,--whole-archive"
4005 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006 llvm_cv_os_type="GNU/kFreeBSD"
4007 llvm_cv_platform_type="Unix" ;;
4009 llvm_cv_link_all_option="-Wl,--whole-archive"
4010 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011 llvm_cv_os_type="OpenBSD"
4012 llvm_cv_platform_type="Unix" ;;
4014 llvm_cv_link_all_option="-Wl,--whole-archive"
4015 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4016 llvm_cv_os_type="NetBSD"
4017 llvm_cv_platform_type="Unix" ;;
4019 llvm_cv_link_all_option="-Wl,--whole-archive"
4020 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4021 llvm_cv_os_type="DragonFly"
4022 llvm_cv_platform_type="Unix" ;;
4024 llvm_cv_link_all_option="-Wl,--whole-archive"
4025 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4026 llvm_cv_os_type="Bitrig"
4027 llvm_cv_platform_type="Unix" ;;
4029 llvm_cv_link_all_option="-Wl,--whole-archive"
4030 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4031 llvm_cv_os_type="HP-UX"
4032 llvm_cv_platform_type="Unix" ;;
4034 llvm_cv_link_all_option="-Wl,--whole-archive"
4035 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4036 llvm_cv_os_type="Interix"
4037 llvm_cv_platform_type="Unix" ;;
4039 llvm_cv_link_all_option="-Wl,--whole-archive"
4040 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4041 llvm_cv_os_type="Linux"
4042 llvm_cv_platform_type="Unix" ;;
4044 llvm_cv_link_all_option="-Wl,--whole-archive"
4045 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4046 llvm_cv_os_type="GNU"
4047 llvm_cv_platform_type="Unix" ;;
4049 llvm_cv_link_all_option="-Wl,-z,allextract"
4050 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4051 llvm_cv_os_type="SunOS"
4052 llvm_cv_platform_type="Unix" ;;
4054 llvm_cv_link_all_option="-Wl,--whole-archive"
4055 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4056 llvm_cv_os_type="Win32"
4057 llvm_cv_platform_type="Win32" ;;
4059 llvm_cv_link_all_option="-Wl,--whole-archive"
4060 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4061 llvm_cv_os_type="MingW"
4062 llvm_cv_platform_type="Win32" ;;
4064 llvm_cv_link_all_option="-Wl,--whole-archive"
4065 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4066 llvm_cv_os_type="Haiku"
4067 llvm_cv_platform_type="Unix" ;;
4069 llvm_cv_link_all_option="-Wl,--whole-archive"
4070 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4071 llvm_cv_os_type="Freestanding"
4072 llvm_cv_platform_type="Unix" ;;
4074 llvm_cv_link_all_option="-Wl,--whole-archive"
4075 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4076 llvm_cv_os_type="Freestanding"
4077 llvm_cv_platform_type="Unix" ;;
4079 llvm_cv_link_all_option=""
4080 llvm_cv_no_link_all_option=""
4081 llvm_cv_os_type="Unknown"
4082 llvm_cv_platform_type="Unknown" ;;
4085 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4086 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4088 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4089 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4090 if test "${llvm_cv_target_os_type+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 llvm_cv_target_os_type="AIX" ;;
4097 llvm_cv_target_os_type="IRIX" ;;
4099 llvm_cv_target_os_type="Cygwin" ;;
4101 llvm_cv_target_os_type="Darwin" ;;
4103 llvm_cv_target_os_type="Minix" ;;
4105 llvm_cv_target_os_type="FreeBSD" ;;
4107 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4109 llvm_cv_target_os_type="OpenBSD" ;;
4111 llvm_cv_target_os_type="NetBSD" ;;
4113 llvm_cv_target_os_type="DragonFly" ;;
4115 llvm_cv_target_os_type="Bitrig" ;;
4117 llvm_cv_target_os_type="HP-UX" ;;
4119 llvm_cv_target_os_type="Interix" ;;
4121 llvm_cv_target_os_type="Linux" ;;
4123 llvm_cv_target_os_type="GNU" ;;
4125 llvm_cv_target_os_type="SunOS" ;;
4127 llvm_cv_target_os_type="Win32" ;;
4129 llvm_cv_target_os_type="MingW" ;;
4131 llvm_cv_target_os_type="Haiku" ;;
4133 llvm_cv_target_os_type="RTEMS" ;;
4135 llvm_cv_target_os_type="NativeClient" ;;
4137 llvm_cv_target_os_type="Freestanding" ;;
4139 llvm_cv_target_os_type="PS4" ;;
4141 llvm_cv_target_os_type="Unknown" ;;
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4145 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4147 if test "$llvm_cv_os_type" = "Unknown" ; then
4148 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4149 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4150 { (exit 1); exit 1; }; }
4155 HOST_OS=$llvm_cv_os_type
4157 TARGET_OS=$llvm_cv_target_os_type
4160 LINKALL=$llvm_cv_link_all_option
4162 NOLINKALL=$llvm_cv_no_link_all_option
4165 case $llvm_cv_platform_type in
4168 cat >>confdefs.h <<\_ACEOF
4169 #define LLVM_ON_UNIX 1
4179 cat >>confdefs.h <<\_ACEOF
4180 #define LLVM_ON_WIN32 1
4190 { echo "$as_me:$LINENO: checking target architecture" >&5
4191 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4192 if test "${llvm_cv_target_arch+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 i?86-*) llvm_cv_target_arch="x86" ;;
4197 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4198 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4199 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4200 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4201 arm*-*) llvm_cv_target_arch="ARM" ;;
4202 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4203 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4204 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4205 xcore-*) llvm_cv_target_arch="XCore" ;;
4206 msp430-*) llvm_cv_target_arch="MSP430" ;;
4207 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4208 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4209 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4210 *) llvm_cv_target_arch="Unknown" ;;
4213 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4214 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4216 if test "$llvm_cv_target_arch" = "Unknown" ; then
4217 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4218 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4221 case "$llvm_cv_target_arch" in
4222 x86) LLVM_NATIVE_ARCH="X86" ;;
4223 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4224 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4227 ARCH=$llvm_cv_target_arch
4229 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4233 i?86-*) host_arch="x86" ;;
4234 amd64-* | x86_64-*) host_arch="x86_64" ;;
4235 sparc*-*) host_arch="Sparc" ;;
4236 powerpc*-*) host_arch="PowerPC" ;;
4237 arm64*-*) host_arch="AArch64" ;;
4238 arm*-*) host_arch="ARM" ;;
4239 aarch64*-*) host_arch="AArch64" ;;
4240 mips-* | mips64-*) host_arch="Mips" ;;
4241 mipsel-* | mips64el-*) host_arch="Mips" ;;
4242 xcore-*) host_arch="XCore" ;;
4243 msp430-*) host_arch="MSP430" ;;
4244 hexagon-*) host_arch="Hexagon" ;;
4245 s390x-*) host_arch="SystemZ" ;;
4246 *) host_arch="Unknown" ;;
4249 if test "$host_arch" = "Unknown" ; then
4250 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4251 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4254 HOST_ARCH=$host_arch
4257 if test "$cross_compiling" = yes; then
4258 LLVM_CROSS_COMPILING=1
4261 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4262 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4263 if test "${ac_cv_build_exeext+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4267 ac_cv_build_exeext=.exe
4269 ac_build_prefix=${build_alias}-
4271 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4272 set dummy ${ac_build_prefix}gcc; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 if test -n "$BUILD_CC"; then
4279 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 BUILD_CC=$ac_cv_prog_BUILD_CC
4299 if test -n "$BUILD_CC"; then
4300 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4301 echo "${ECHO_T}$BUILD_CC" >&6; }
4303 { echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6; }
4308 if test -z "$BUILD_CC"; then
4309 # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 if test -n "$BUILD_CC"; then
4317 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_BUILD_CC="gcc"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 BUILD_CC=$ac_cv_prog_BUILD_CC
4337 if test -n "$BUILD_CC"; then
4338 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4339 echo "${ECHO_T}$BUILD_CC" >&6; }
4341 { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4346 if test -z "$BUILD_CC"; then
4347 # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 if test -n "$BUILD_CC"; then
4355 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4366 ac_prog_rejected=yes
4369 ac_cv_prog_BUILD_CC="cc"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 if test $ac_prog_rejected = yes; then
4378 # We found a bogon in the path, so make sure we never use it.
4379 set dummy $ac_cv_prog_BUILD_CC
4381 if test $# != 0; then
4382 # We chose a different compiler from the bogus one.
4383 # However, it has the same basename, so the bogon will be chosen
4384 # first if we set BUILD_CC to just the basename; use the full file name.
4386 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4391 BUILD_CC=$ac_cv_prog_BUILD_CC
4392 if test -n "$BUILD_CC"; then
4393 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4394 echo "${ECHO_T}$BUILD_CC" >&6; }
4396 { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4403 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4404 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4405 { (exit 1); exit 1; }; }
4406 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4408 echo 'int main () { return 0; }' > conftest.$ac_ext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4411 (eval $ac_build_link) 2>&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; then
4415 for file in conftest.*; do
4417 *.c | *.o | *.obj | *.dSYM) ;;
4418 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4422 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4423 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4424 { (exit 1); exit 1; }; }
4427 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4432 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4433 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4434 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4435 ac_build_exeext=$BUILD_EXEEXT
4437 ac_build_prefix=${build_alias}-
4438 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4439 set dummy ${ac_build_prefix}g++; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 if test -n "$BUILD_CXX"; then
4446 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4466 if test -n "$BUILD_CXX"; then
4467 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4468 echo "${ECHO_T}$BUILD_CXX" >&6; }
4470 { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4475 if test -z "$BUILD_CXX"; then
4476 # Extract the first word of "g++", so it can be a program name with args.
4477 set dummy g++; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 if test -n "$BUILD_CXX"; then
4484 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_BUILD_CXX="g++"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4504 if test -n "$BUILD_CXX"; then
4505 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4506 echo "${ECHO_T}$BUILD_CXX" >&6; }
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4513 if test -z "$BUILD_CXX"; then
4514 # Extract the first word of "c++", so it can be a program name with args.
4515 set dummy c++; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 if test -n "$BUILD_CXX"; then
4522 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4533 ac_prog_rejected=yes
4536 ac_cv_prog_BUILD_CXX="c++"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 if test $ac_prog_rejected = yes; then
4545 # We found a bogon in the path, so make sure we never use it.
4546 set dummy $ac_cv_prog_BUILD_CXX
4548 if test $# != 0; then
4549 # We chose a different compiler from the bogus one.
4550 # However, it has the same basename, so the bogon will be chosen
4551 # first if we set BUILD_CXX to just the basename; use the full file name.
4553 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4558 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4559 if test -n "$BUILD_CXX"; then
4560 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4561 echo "${ECHO_T}$BUILD_CXX" >&6; }
4563 { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4571 LLVM_CROSS_COMPILING=0
4575 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4586 # Check whether --enable-libcpp was given.
4587 if test "${enable_libcpp+set}" = set; then
4588 enableval=$enable_libcpp;
4593 case "$enableval" in
4594 yes) ENABLE_LIBCPP=1
4598 default) ENABLE_LIBCPP=0
4600 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4601 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4602 { (exit 1); exit 1; }; } ;;
4605 # Check whether --enable-compiler-version-checks was given.
4606 if test "${enable_compiler_version_checks+set}" = set; then
4607 enableval=$enable_compiler_version_checks;
4612 case "$enableval" in
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622 case "$llvm_cv_cxx_compiler" in
4624 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4625 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4626 cat >conftest.$ac_ext <<_ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4633 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4634 #error This version of Clang is too old to build LLVM
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4653 { (case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_try") 2>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668 (eval "$ac_try") 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 { echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6; }
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680 { { echo "$as_me:$LINENO: error:
4681 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4682 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4683 bypass these sanity checks." >&5
4684 echo "$as_me: error:
4685 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4686 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4687 bypass these sanity checks." >&2;}
4688 { (exit 1); exit 1; }; }
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 if test "$ENABLE_LIBCPP" -eq 0 ; then
4694 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4695 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4696 llvm_cv_old_cxxflags="$CXXFLAGS"
4697 CXXFLAGS="$CXXFLAGS -std=c++0x"
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4706 std::atomic<float> x(0.0f);
4707 int main() { return (float)x; }
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_link") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4725 { (case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_try") 2>&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try='test -s conftest$ac_exeext'
4735 { (case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_try") 2>&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 { echo "$as_me:$LINENO: result: yes" >&5
4745 echo "${ECHO_T}yes" >&6; }
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752 { { echo "$as_me:$LINENO: error:
4753 We detected a missing feature in the standard C++ library that was known to be
4754 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4755 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4756 than 4.7. You will need to update your system and ensure Clang uses the newer
4759 If this error is incorrect or you need to force things to work, you may pass
4760 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4761 echo "$as_me: error:
4762 We detected a missing feature in the standard C++ library that was known to be
4763 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4764 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4765 than 4.7. You will need to update your system and ensure Clang uses the newer
4768 If this error is incorrect or you need to force things to work, you may pass
4769 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4770 { (exit 1); exit 1; }; }
4773 rm -f core conftest.err conftest.$ac_objext \
4774 conftest$ac_exeext conftest.$ac_ext
4775 CXXFLAGS="$llvm_cv_old_cxxflags"
4779 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4780 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4781 cat >conftest.$ac_ext <<_ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4788 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4789 #error This version of GCC is too old to build LLVM
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_compile") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4808 { (case "(($ac_try" in
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_try") 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; } &&
4817 { ac_try='test -s conftest.$ac_objext'
4818 { (case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_try") 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 { echo "$as_me:$LINENO: result: yes" >&5
4828 echo "${ECHO_T}yes" >&6; }
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 { { echo "$as_me:$LINENO: error:
4836 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4837 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4838 bypass these sanity checks." >&5
4839 echo "$as_me: error:
4840 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4841 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4842 bypass these sanity checks." >&2;}
4843 { (exit 1); exit 1; }; }
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4860 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4861 { (exit 1); exit 1; }; }
4865 # Check whether --enable-cxx1y was given.
4866 if test "${enable_cxx1y+set}" = set; then
4867 enableval=$enable_cxx1y;
4872 case "$enableval" in
4877 default) ENABLE_CXX1Y=0
4879 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4884 # Check whether --enable-split-dwarf was given.
4885 if test "${enable_split_dwarf+set}" = set; then
4886 enableval=$enable_split_dwarf;
4891 case "$enableval" in
4892 yes) ENABLE_SPLIT_DWARF=1
4894 no) ENABLE_SPLIT_DWARF=0
4896 default) ENABLE_SPLIT_DWARF=0
4898 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4900 { (exit 1); exit 1; }; } ;;
4904 # Check whether --enable-clang-arcmt was given.
4905 if test "${enable_clang_arcmt+set}" = set; then
4906 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4911 case "$enableval" in
4912 yes) ENABLE_CLANG_ARCMT=1
4914 no) ENABLE_CLANG_ARCMT=0
4916 default) ENABLE_CLANG_ARCMT=1
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 clang_plugin_support="yes"
4924 # Check whether --enable-clang-plugin-support was given.
4925 if test "${enable_clang_plugin_support+set}" = set; then
4926 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4931 case "$enableval" in
4932 yes) CLANG_PLUGIN_SUPPORT=1
4934 no) CLANG_PLUGIN_SUPPORT=0
4936 default) CLANG_PLUGIN_SUPPORT=1
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4943 clang_static_analyzer="yes"
4944 # Check whether --enable-clang-static-analyzer was given.
4945 if test "${enable_clang_static_analyzer+set}" = set; then
4946 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4951 case "$enableval" in
4952 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4955 if test ${clang_arcmt} != "no" ; then
4956 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4957 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4958 { (exit 1); exit 1; }; }
4960 ENABLE_CLANG_STATIC_ANALYZER=0
4963 default) ENABLE_CLANG_STATIC_ANALYZER=1
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972 enableval=$enable_optimized;
4977 if test ${enableval} = "no" ; then
4981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987 enableval=$enable_profiling;
4992 if test ${enableval} = "no" ; then
4996 ENABLE_PROFILING=ENABLE_PROFILING=1
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002 enableval=$enable_assertions;
5007 if test ${enableval} = "yes" ; then
5010 assertions_enabled="yes"
5012 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5014 assertions_enabled="no"
5017 # Check whether --enable-werror was given.
5018 if test "${enable_werror+set}" = set; then
5019 enableval=$enable_werror;
5024 case "$enableval" in
5025 yes) ENABLE_WERROR=1
5029 default) ENABLE_WERROR=0
5031 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5032 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5036 # Check whether --enable-expensive-checks was given.
5037 if test "${enable_expensive_checks+set}" = set; then
5038 enableval=$enable_expensive_checks;
5043 if test ${enableval} = "yes" ; then
5044 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5046 EXPENSIVE_CHECKS=yes
5049 ENABLE_EXPENSIVE_CHECKS=
5055 # Check whether --enable-abi-breaking-checks was given.
5056 if test "${enable_abi_breaking_checks+set}" = set; then
5057 enableval=$enable_abi_breaking_checks;
5059 enableval="with-asserts"
5062 case "$enableval" in
5063 with-asserts) if test ${assertions_enabled} = "yes" ; then
5065 cat >>confdefs.h <<\_ACEOF
5066 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5069 ENABLE_ABI_BREAKING_CHECKS=1
5072 ENABLE_ABI_BREAKING_CHECKS=0
5077 cat >>confdefs.h <<\_ACEOF
5078 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5081 ENABLE_ABI_BREAKING_CHECKS=1
5085 ENABLE_ABI_BREAKING_CHECKS=0
5088 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5090 { (exit 1); exit 1; }; }
5093 # Check whether --enable-debug-runtime was given.
5094 if test "${enable_debug_runtime+set}" = set; then
5095 enableval=$enable_debug_runtime;
5100 if test ${enableval} = "no" ; then
5104 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5108 # Check whether --enable-debug-symbols was given.
5109 if test "${enable_debug_symbols+set}" = set; then
5110 enableval=$enable_debug_symbols;
5115 if test ${enableval} = "no" ; then
5119 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5123 # Check whether --enable-keep-symbols was given.
5124 if test "${enable_keep_symbols+set}" = set; then
5125 enableval=$enable_keep_symbols;
5130 if test ${enableval} = "no" ; then
5134 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5138 # Check whether --enable-jit was given.
5139 if test "${enable_jit+set}" = set; then
5140 enableval=$enable_jit;
5145 if test ${enableval} = "no"
5150 case "$llvm_cv_target_arch" in
5151 x86) TARGET_HAS_JIT=1
5153 Sparc) TARGET_HAS_JIT=0
5155 PowerPC) TARGET_HAS_JIT=1
5157 x86_64) TARGET_HAS_JIT=1
5159 ARM) TARGET_HAS_JIT=1
5161 Mips) TARGET_HAS_JIT=1
5163 XCore) TARGET_HAS_JIT=0
5165 MSP430) TARGET_HAS_JIT=0
5167 Hexagon) TARGET_HAS_JIT=0
5169 NVPTX) TARGET_HAS_JIT=0
5171 SystemZ) TARGET_HAS_JIT=1
5178 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5179 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5182 # Check whether --enable-docs was given.
5183 if test "${enable_docs+set}" = set; then
5184 enableval=$enable_docs;
5189 case "$enableval" in
5194 default) ENABLE_DOCS=1
5196 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5198 { (exit 1); exit 1; }; } ;;
5201 # Check whether --enable-doxygen was given.
5202 if test "${enable_doxygen+set}" = set; then
5203 enableval=$enable_doxygen;
5208 case "$enableval" in
5209 yes) ENABLE_DOXYGEN=1
5211 no|default) ENABLE_DOXYGEN=0
5213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5218 # Check whether --enable-doxygen-search was given.
5219 if test "${enable_doxygen_search+set}" = set; then
5220 enableval=$enable_doxygen_search;
5225 ENABLE_DOXYGEN_SEARCH="$enableval"
5227 case "$enableval" in
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 # Check whether --enable-doxygen-external-search was given.
5235 if test "${enable_doxygen_external_search+set}" = set; then
5236 enableval=$enable_doxygen_external_search;
5241 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5243 case "$enableval" in
5245 case "$ENABLE_DOXYGEN_SEARCH" in
5246 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5247 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5248 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5259 # Check whether --with-doxygen-search-engine-url was given.
5260 if test "${with_doxygen_search_engine_url+set}" = set; then
5261 withval=$with_doxygen_search_engine_url;
5264 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5267 # Check whether --with-doxygen-search-mappings was given.
5268 if test "${with_doxygen_search_mappings+set}" = set; then
5269 withval=$with_doxygen_search_mappings;
5272 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5274 case "$ENABLE_DOXYGEN_SEARCH" in
5276 if test "$ENABLE_DOXYGEN" = "0" ; then
5277 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5278 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5279 { (exit 1); exit 1; }; }
5282 enable_searchengine=YES
5285 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5287 enable_external_search=YES
5289 enable_server_based_search=YES
5291 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5293 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5298 enable_external_search=NO
5300 enable_server_based_search=NO
5309 enable_searchengine=NO
5312 enable_server_based_search=NO
5314 enable_external_search=NO
5320 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5322 { (exit 1); exit 1; }; }
5326 # Check whether --enable-doxygen-qt-help was given.
5327 if test "${enable_doxygen_qt_help+set}" = set; then
5328 enableval=$enable_doxygen_qt_help;
5333 case "$enableval" in
5335 if test "$ENABLE_DOXYGEN" = "0" ; then
5336 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5337 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5338 { (exit 1); exit 1; }; }
5341 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5342 set dummy qhelpgenerator; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 case $QHELPGENERATOR in
5350 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5372 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5373 if test -n "$QHELPGENERATOR"; then
5374 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5375 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5377 { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5383 llvm_doxygen_generate_qhp=YES
5385 llvm_doxygen_qch_filename=org.llvm.qch
5387 llvm_doxygen_qhp_namespace=org.llvm
5389 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5391 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5393 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5396 clang_doxygen_generate_qhp=YES
5398 clang_doxygen_qch_filename=org.llvm.clang.qch
5400 clang_doxygen_qhp_namespace=org.llvm.clang
5402 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5404 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5406 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5411 llvm_doxygen_generate_qhp=NO
5419 clang_doxygen_generate_qhp=NO
5424 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5426 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5431 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5433 { (exit 1); exit 1; }; } ;;
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438 enableval=$enable_threads;
5443 case "$enableval" in
5444 yes) LLVM_ENABLE_THREADS=1
5446 no) LLVM_ENABLE_THREADS=0
5448 default) LLVM_ENABLE_THREADS=1
5450 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462 enableval=$enable_pthreads;
5467 case "$enableval" in
5468 yes) ENABLE_PTHREADS=1
5470 no) ENABLE_PTHREADS=0
5472 default) ENABLE_PTHREADS=1
5474 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5479 # Check whether --enable-zlib was given.
5480 if test "${enable_zlib+set}" = set; then
5481 enableval=$enable_zlib;
5486 case "$enableval" in
5487 yes) LLVM_ENABLE_ZLIB=1
5489 no) LLVM_ENABLE_ZLIB=0
5491 default) LLVM_ENABLE_ZLIB=1
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5498 cat >>confdefs.h <<_ACEOF
5499 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5503 # Check whether --enable-pic was given.
5504 if test "${enable_pic+set}" = set; then
5505 enableval=$enable_pic;
5510 case "$enableval" in
5515 default) ENABLE_PIC=1
5517 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5519 { (exit 1); exit 1; }; } ;;
5522 cat >>confdefs.h <<_ACEOF
5523 #define ENABLE_PIC $ENABLE_PIC
5527 # Check whether --enable-shared was given.
5528 if test "${enable_shared+set}" = set; then
5529 enableval=$enable_shared;
5534 case "$enableval" in
5535 yes) ENABLE_SHARED=1
5539 default) ENABLE_SHARED=0
5541 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5542 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5543 { (exit 1); exit 1; }; } ;;
5546 # Check whether --enable-embed-stdcxx was given.
5547 if test "${enable_embed_stdcxx+set}" = set; then
5548 enableval=$enable_embed_stdcxx;
5553 case "$enableval" in
5554 yes) ENABLE_EMBED_STDCXX=1
5556 no) ENABLE_EMBED_STDCXX=0
5558 default) ENABLE_EMBED_STDCXX=0
5560 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5561 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5562 { (exit 1); exit 1; }; } ;;
5565 # Check whether --enable-timestamps was given.
5566 if test "${enable_timestamps+set}" = set; then
5567 enableval=$enable_timestamps;
5572 case "$enableval" in
5573 yes) ENABLE_TIMESTAMPS=1
5575 no) ENABLE_TIMESTAMPS=0
5577 default) ENABLE_TIMESTAMPS=1
5579 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5581 { (exit 1); exit 1; }; } ;;
5584 cat >>confdefs.h <<_ACEOF
5585 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5589 # Check whether --enable-backtraces was given.
5590 if test "${enable_backtraces+set}" = set; then
5591 enableval=$enable_backtraces; case "$enableval" in
5592 yes) llvm_cv_enable_backtraces="yes" ;;
5593 no) llvm_cv_enable_backtraces="no" ;;
5594 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5595 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5596 { (exit 1); exit 1; }; } ;;
5599 llvm_cv_enable_backtraces="yes"
5602 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5604 cat >>confdefs.h <<\_ACEOF
5605 #define ENABLE_BACKTRACES 1
5610 # Check whether --enable-crash-overrides was given.
5611 if test "${enable_crash_overrides+set}" = set; then
5612 enableval=$enable_crash_overrides; case "$enableval" in
5613 yes) llvm_cv_enable_crash_overrides="yes" ;;
5614 no) llvm_cv_enable_crash_overrides="no" ;;
5615 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5616 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5617 { (exit 1); exit 1; }; } ;;
5620 llvm_cv_enable_crash_overrides="yes"
5623 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5625 cat >>confdefs.h <<\_ACEOF
5626 #define ENABLE_CRASH_OVERRIDES 1
5631 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5632 ALL_TARGETS=$ALL_TARGETS
5636 # Check whether --enable-targets was given.
5637 if test "${enable_targets+set}" = set; then
5638 enableval=$enable_targets;
5643 if test "$enableval" = host-only ; then
5646 case "$enableval" in
5647 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5648 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5650 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5651 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5652 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5653 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5654 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5655 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5656 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5657 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5658 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5660 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5661 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5662 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5663 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5664 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5665 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5666 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5667 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5668 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5669 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5670 host) case "$llvm_cv_target_arch" in
5671 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5672 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5673 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5674 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5675 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5676 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5677 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5679 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5680 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5681 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5682 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5683 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5684 echo "$as_me: error: Can not set target to build" >&2;}
5685 { (exit 1); exit 1; }; } ;;
5687 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5688 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5689 { (exit 1); exit 1; }; } ;;
5695 # Check whether --enable-experimental-targets was given.
5696 if test "${enable_experimental_targets+set}" = set; then
5697 enableval=$enable_experimental_targets;
5703 if test ${enableval} != "disable"
5705 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5708 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5711 for a_target in $TARGETS_TO_BUILD; do
5712 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5714 cat >>confdefs.h <<_ACEOF
5715 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5718 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5719 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5720 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5721 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5722 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5723 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5725 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5726 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5729 cat >>confdefs.h <<_ACEOF
5730 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5734 cat >>confdefs.h <<_ACEOF
5735 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5739 cat >>confdefs.h <<_ACEOF
5740 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5744 cat >>confdefs.h <<_ACEOF
5745 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5748 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5750 cat >>confdefs.h <<_ACEOF
5751 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5755 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5757 cat >>confdefs.h <<_ACEOF
5758 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5765 LLVM_ENUM_TARGETS=""
5766 LLVM_ENUM_ASM_PRINTERS=""
5767 LLVM_ENUM_ASM_PARSERS=""
5768 LLVM_ENUM_DISASSEMBLERS=""
5769 for target_to_build in $TARGETS_TO_BUILD; do
5770 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5771 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5772 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5774 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5775 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5777 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5778 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5787 # Check whether --with-optimize-option was given.
5788 if test "${with_optimize_option+set}" = set; then
5789 withval=$with_optimize_option;
5794 { echo "$as_me:$LINENO: checking optimization flags" >&5
5795 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5798 case "$llvm_cv_os_type" in
5799 FreeBSD) optimize_option=-O2 ;;
5800 MingW) optimize_option=-O2 ;;
5801 *) optimize_option=-O3 ;;
5803 *) optimize_option="$withval" ;;
5805 OPTIMIZE_OPTION=$optimize_option
5807 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5808 echo "${ECHO_T}$optimize_option" >&6; }
5811 # Check whether --with-extra-options was given.
5812 if test "${with_extra_options+set}" = set; then
5813 withval=$with_extra_options;
5819 default) EXTRA_OPTIONS= ;;
5820 *) EXTRA_OPTIONS=$withval ;;
5822 EXTRA_OPTIONS=$EXTRA_OPTIONS
5826 # Check whether --with-extra-ld-options was given.
5827 if test "${with_extra_ld_options+set}" = set; then
5828 withval=$with_extra_ld_options;
5834 default) EXTRA_LD_OPTIONS= ;;
5835 *) EXTRA_LD_OPTIONS=$withval ;;
5837 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5840 # Check whether --enable-bindings was given.
5841 if test "${enable_bindings+set}" = set; then
5842 enableval=$enable_bindings;
5847 BINDINGS_TO_BUILD=""
5848 case "$enableval" in
5849 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5850 all ) BINDINGS_TO_BUILD="ocaml" ;;
5851 none | no) BINDINGS_TO_BUILD="" ;;
5852 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5853 case "$a_binding" in
5854 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5855 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5856 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5857 { (exit 1); exit 1; }; } ;;
5864 # Check whether --with-ocaml-libdir was given.
5865 if test "${with_ocaml_libdir+set}" = set; then
5866 withval=$with_ocaml_libdir;
5872 auto) with_ocaml_libdir="$withval" ;;
5873 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5874 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5875 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5876 { (exit 1); exit 1; }; } ;;
5880 # Check whether --with-clang-srcdir was given.
5881 if test "${with_clang_srcdir+set}" = set; then
5882 withval=$with_clang_srcdir;
5888 -) clang_src_root="" ;;
5889 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5890 *) clang_src_root="$ac_pwd/$withval" ;;
5892 CLANG_SRC_ROOT=$clang_src_root
5896 # Check whether --with-clang-resource-dir was given.
5897 if test "${with_clang_resource_dir+set}" = set; then
5898 withval=$with_clang_resource_dir;
5904 cat >>confdefs.h <<_ACEOF
5905 #define CLANG_RESOURCE_DIR "$withval"
5910 # Check whether --with-c-include-dirs was given.
5911 if test "${with_c_include_dirs+set}" = set; then
5912 withval=$with_c_include_dirs;
5918 cat >>confdefs.h <<_ACEOF
5919 #define C_INCLUDE_DIRS "$withval"
5923 # Clang normally uses the system c++ headers and libraries. With this option,
5924 # clang will use the ones provided by a gcc installation instead. This option should
5925 # be passed the same value that was used with --prefix when configuring gcc.
5927 # Check whether --with-gcc-toolchain was given.
5928 if test "${with_gcc_toolchain+set}" = set; then
5929 withval=$with_gcc_toolchain;
5935 cat >>confdefs.h <<_ACEOF
5936 #define GCC_INSTALL_PREFIX "$withval"
5941 # Check whether --with-default-sysroot was given.
5942 if test "${with_default_sysroot+set}" = set; then
5943 withval=$with_default_sysroot;
5949 cat >>confdefs.h <<_ACEOF
5950 #define DEFAULT_SYSROOT "$withval"
5955 # Check whether --with-clang-default-openmp-runtime was given.
5956 if test "${with_clang_default_openmp_runtime+set}" = set; then
5957 withval=$with_clang_default_openmp_runtime;
5963 cat >>confdefs.h <<_ACEOF
5964 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5969 # Check whether --with-binutils-include was given.
5970 if test "${with_binutils_include+set}" = set; then
5971 withval=$with_binutils_include;
5977 default) WITH_BINUTILS_INCDIR=default ;;
5978 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5979 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5980 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5981 { (exit 1); exit 1; }; } ;;
5983 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5984 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5986 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5987 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5988 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5989 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5990 { (exit 1); exit 1; }; };
5995 # Check whether --with-bug-report-url was given.
5996 if test "${with_bug_report_url+set}" = set; then
5997 withval=$with_bug_report_url;
5999 withval="http://llvm.org/bugs/"
6003 cat >>confdefs.h <<_ACEOF
6004 #define BUG_REPORT_URL "$withval"
6008 # Check whether --enable-terminfo was given.
6009 if test "${enable_terminfo+set}" = set; then
6010 enableval=$enable_terminfo; case "$enableval" in
6011 yes) llvm_cv_enable_terminfo="yes" ;;
6012 no) llvm_cv_enable_terminfo="no" ;;
6013 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6014 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6015 { (exit 1); exit 1; }; } ;;
6018 llvm_cv_enable_terminfo="yes"
6021 case "$llvm_cv_enable_terminfo" in
6022 yes) ENABLE_TERMINFO=1
6024 no) ENABLE_TERMINFO=0
6028 # Check whether --enable-libedit was given.
6029 if test "${enable_libedit+set}" = set; then
6030 enableval=$enable_libedit; case "$enableval" in
6031 yes) llvm_cv_enable_libedit="yes" ;;
6032 no) llvm_cv_enable_libedit="no" ;;
6033 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6034 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6035 { (exit 1); exit 1; }; } ;;
6038 llvm_cv_enable_libedit="yes"
6042 # Check whether --enable-libffi was given.
6043 if test "${enable_libffi+set}" = set; then
6044 enableval=$enable_libffi; case "$enableval" in
6045 yes) llvm_cv_enable_libffi="yes" ;;
6046 no) llvm_cv_enable_libffi="no" ;;
6047 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6048 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6049 { (exit 1); exit 1; }; } ;;
6052 llvm_cv_enable_libffi=no
6057 # Check whether --with-internal-prefix was given.
6058 if test "${with_internal_prefix+set}" = set; then
6059 withval=$with_internal_prefix;
6064 INTERNAL_PREFIX=$withval
6068 { echo "$as_me:$LINENO: checking for GNU make" >&5
6069 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6070 if test "${llvm_cv_gnu_make_command+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 llvm_cv_gnu_make_command=''
6074 for a in "$MAKE" make gmake gnumake ; do
6075 if test -z "$a" ; then continue ; fi ;
6076 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6078 llvm_cv_gnu_make_command=$a ;
6083 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6084 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6085 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6089 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6090 echo "${ECHO_T}\"Not found\"" >&6; };
6094 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6095 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6097 if test "$LN_S" = "ln -s"; then
6098 { echo "$as_me:$LINENO: result: yes" >&5
6099 echo "${ECHO_T}yes" >&6; }
6101 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6102 echo "${ECHO_T}no, using $LN_S" >&6; }
6105 # Extract the first word of "nm", so it can be a program name with args.
6106 set dummy nm; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_NM+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6137 if test -n "$NM"; then
6138 { echo "$as_me:$LINENO: result: $NM" >&5
6139 echo "${ECHO_T}$NM" >&6; }
6141 { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6146 # Extract the first word of "cmp", so it can be a program name with args.
6147 set dummy cmp; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_CMP+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6178 if test -n "$CMP"; then
6179 { echo "$as_me:$LINENO: result: $CMP" >&5
6180 echo "${ECHO_T}$CMP" >&6; }
6182 { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6187 # Extract the first word of "cp", so it can be a program name with args.
6188 set dummy cp; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_CP+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6219 if test -n "$CP"; then
6220 { echo "$as_me:$LINENO: result: $CP" >&5
6221 echo "${ECHO_T}$CP" >&6; }
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6228 # Extract the first word of "date", so it can be a program name with args.
6229 set dummy date; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_DATE+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6259 DATE=$ac_cv_path_DATE
6260 if test -n "$DATE"; then
6261 { echo "$as_me:$LINENO: result: $DATE" >&5
6262 echo "${ECHO_T}$DATE" >&6; }
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6269 # Extract the first word of "find", so it can be a program name with args.
6270 set dummy find; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_FIND+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6300 FIND=$ac_cv_path_FIND
6301 if test -n "$FIND"; then
6302 { echo "$as_me:$LINENO: result: $FIND" >&5
6303 echo "${ECHO_T}$FIND" >&6; }
6305 { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6310 # Extract the first word of "grep", so it can be a program name with args.
6311 set dummy grep; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_GREP+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6341 GREP=$ac_cv_path_GREP
6342 if test -n "$GREP"; then
6343 { echo "$as_me:$LINENO: result: $GREP" >&5
6344 echo "${ECHO_T}$GREP" >&6; }
6346 { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6351 # Extract the first word of "mkdir", so it can be a program name with args.
6352 set dummy mkdir; ac_word=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_path_MKDIR+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6382 MKDIR=$ac_cv_path_MKDIR
6383 if test -n "$MKDIR"; then
6384 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6385 echo "${ECHO_T}$MKDIR" >&6; }
6387 { echo "$as_me:$LINENO: result: no" >&5
6388 echo "${ECHO_T}no" >&6; }
6392 # Extract the first word of "mv", so it can be a program name with args.
6393 set dummy mv; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_path_MV+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6424 if test -n "$MV"; then
6425 { echo "$as_me:$LINENO: result: $MV" >&5
6426 echo "${ECHO_T}$MV" >&6; }
6428 { echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6; }
6433 if test -n "$ac_tool_prefix"; then
6434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6438 if test "${ac_cv_prog_RANLIB+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 if test -n "$RANLIB"; then
6442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 RANLIB=$ac_cv_prog_RANLIB
6462 if test -n "$RANLIB"; then
6463 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6464 echo "${ECHO_T}$RANLIB" >&6; }
6466 { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6472 if test -z "$ac_cv_prog_RANLIB"; then
6473 ac_ct_RANLIB=$RANLIB
6474 # Extract the first word of "ranlib", so it can be a program name with args.
6475 set dummy ranlib; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 if test -n "$ac_ct_RANLIB"; then
6482 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_ac_ct_RANLIB="ranlib"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6502 if test -n "$ac_ct_RANLIB"; then
6503 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6504 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6506 { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6510 if test "x$ac_ct_RANLIB" = x; then
6513 case $cross_compiling:$ac_tool_warned in
6515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6516 whose name does not start with the host triplet. If you think this
6517 configuration is useful to you, please write to autoconf@gnu.org." >&5
6518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6519 whose name does not start with the host triplet. If you think this
6520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6521 ac_tool_warned=yes ;;
6523 RANLIB=$ac_ct_RANLIB
6526 RANLIB="$ac_cv_prog_RANLIB"
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ar; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_prog_AR+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 if test -n "$AR"; then
6538 ac_cv_prog_AR="$AR" # Let the user override the test.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_AR="${ac_tool_prefix}ar"
6548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 if test -n "$AR"; then
6559 { echo "$as_me:$LINENO: result: $AR" >&5
6560 echo "${ECHO_T}$AR" >&6; }
6562 { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6568 if test -z "$ac_cv_prog_AR"; then
6570 # Extract the first word of "ar", so it can be a program name with args.
6571 set dummy ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 if test -n "$ac_ct_AR"; then
6578 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_AR="ar"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6598 if test -n "$ac_ct_AR"; then
6599 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6600 echo "${ECHO_T}$ac_ct_AR" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6606 if test "x$ac_ct_AR" = x; then
6609 case $cross_compiling:$ac_tool_warned in
6611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6612 whose name does not start with the host triplet. If you think this
6613 configuration is useful to you, please write to autoconf@gnu.org." >&5
6614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6615 whose name does not start with the host triplet. If you think this
6616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6617 ac_tool_warned=yes ;;
6625 # Extract the first word of "rm", so it can be a program name with args.
6626 set dummy rm; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_RM+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6657 if test -n "$RM"; then
6658 { echo "$as_me:$LINENO: result: $RM" >&5
6659 echo "${ECHO_T}$RM" >&6; }
6661 { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6666 # Extract the first word of "sed", so it can be a program name with args.
6667 set dummy sed; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_SED+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6698 if test -n "$SED"; then
6699 { echo "$as_me:$LINENO: result: $SED" >&5
6700 echo "${ECHO_T}$SED" >&6; }
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6707 # Extract the first word of "tar", so it can be a program name with args.
6708 set dummy tar; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_TAR+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6739 if test -n "$TAR"; then
6740 { echo "$as_me:$LINENO: result: $TAR" >&5
6741 echo "${ECHO_T}$TAR" >&6; }
6743 { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6748 # Extract the first word of "pwd", so it can be a program name with args.
6749 set dummy pwd; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_BINPWD+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6779 BINPWD=$ac_cv_path_BINPWD
6780 if test -n "$BINPWD"; then
6781 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6782 echo "${ECHO_T}$BINPWD" >&6; }
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6790 # Extract the first word of "dot", so it can be a program name with args.
6791 set dummy dot; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_path_DOT+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6822 if test -n "$DOT"; then
6823 { echo "$as_me:$LINENO: result: $DOT" >&5
6824 echo "${ECHO_T}$DOT" >&6; }
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6831 if test "$DOT" != "echo dot" ; then
6833 cat >>confdefs.h <<\_ACEOF
6837 if test "$llvm_cv_os_type" = "MingW" ; then
6838 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6841 cat >>confdefs.h <<_ACEOF
6842 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6847 # Find a good install program. We prefer a C program (faster),
6848 # so one script is as good as another. But avoid the broken or
6849 # incompatible versions:
6850 # SysV /etc/install, /usr/sbin/install
6851 # SunOS /usr/etc/install
6852 # IRIX /sbin/install
6854 # AmigaOS /C/install, which installs bootblocks on floppy discs
6855 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6856 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6857 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6858 # OS/2's system install, which has a completely different semantic
6859 # ./install, which can be erroneously created by make from ./install.sh.
6860 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6861 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6862 if test -z "$INSTALL"; then
6863 if test "${ac_cv_path_install+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 # Account for people who put trailing slashes in PATH elements.
6873 ./ | .// | /cC/* | \
6874 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6875 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6878 # OSF1 and SCO ODT 3.0 have their own names for install.
6879 # Don't use installbsd from OSF since it installs stuff as root
6881 for ac_prog in ginstall scoinst install; do
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6884 if test $ac_prog = install &&
6885 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6886 # AIX install. It has an incompatible calling convention.
6888 elif test $ac_prog = install &&
6889 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6890 # program-specific install script used by HP pwplus--don't use.
6893 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6906 if test "${ac_cv_path_install+set}" = set; then
6907 INSTALL=$ac_cv_path_install
6909 # As a last resort, use the slow shell script. Don't cache a
6910 # value for INSTALL within a source directory, because that will
6911 # break other packages using the cache if that directory is
6912 # removed, or if the value is a relative name.
6913 INSTALL=$ac_install_sh
6916 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6917 echo "${ECHO_T}$INSTALL" >&6; }
6919 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6920 # It thinks the first close brace ends the variable substitution.
6921 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6923 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6925 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6928 [\\/$]* | ?:[\\/]* ) ;;
6929 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6932 # Extract the first word of "bzip2", so it can be a program name with args.
6933 set dummy bzip2; ac_word=$2
6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6936 if test "${ac_cv_path_BZIP2+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6951 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 BZIP2=$ac_cv_path_BZIP2
6963 if test -n "$BZIP2"; then
6964 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6965 echo "${ECHO_T}$BZIP2" >&6; }
6967 { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6972 # Extract the first word of "cat", so it can be a program name with args.
6973 set dummy cat; ac_word=$2
6974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6976 if test "${ac_cv_path_CAT+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 if test -n "$CAT"; then
7004 { echo "$as_me:$LINENO: result: $CAT" >&5
7005 echo "${ECHO_T}$CAT" >&6; }
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7012 # Extract the first word of "doxygen", so it can be a program name with args.
7013 set dummy doxygen; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 DOXYGEN=$ac_cv_path_DOXYGEN
7043 if test -n "$DOXYGEN"; then
7044 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7045 echo "${ECHO_T}$DOXYGEN" >&6; }
7047 { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7052 # Extract the first word of "groff", so it can be a program name with args.
7053 set dummy groff; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_path_GROFF+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 GROFF=$ac_cv_path_GROFF
7083 if test -n "$GROFF"; then
7084 { echo "$as_me:$LINENO: result: $GROFF" >&5
7085 echo "${ECHO_T}$GROFF" >&6; }
7087 { echo "$as_me:$LINENO: result: no" >&5
7088 echo "${ECHO_T}no" >&6; }
7092 # Extract the first word of "gzip", so it can be a program name with args.
7093 set dummy gzip; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 GZIPBIN=$ac_cv_path_GZIPBIN
7123 if test -n "$GZIPBIN"; then
7124 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7125 echo "${ECHO_T}$GZIPBIN" >&6; }
7127 { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7132 # Extract the first word of "pdfroff", so it can be a program name with args.
7133 set dummy pdfroff; ac_word=$2
7134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136 if test "${ac_cv_path_PDFROFF+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 PDFROFF=$ac_cv_path_PDFROFF
7163 if test -n "$PDFROFF"; then
7164 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7165 echo "${ECHO_T}$PDFROFF" >&6; }
7167 { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7172 # Extract the first word of "zip", so it can be a program name with args.
7173 set dummy zip; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_ZIP+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 if test -n "$ZIP"; then
7204 { echo "$as_me:$LINENO: result: $ZIP" >&5
7205 echo "${ECHO_T}$ZIP" >&6; }
7207 { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7212 # Extract the first word of "go", so it can be a program name with args.
7213 set dummy go; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_GO+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 if test -n "$GO"; then
7244 { echo "$as_me:$LINENO: result: $GO" >&5
7245 echo "${ECHO_T}$GO" >&6; }
7247 { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7252 for ac_prog in ocamlfind
7254 # Extract the first word of "$ac_prog", so it can be a program name with args.
7255 set dummy $ac_prog; ac_word=$2
7256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7258 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7273 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 OCAMLFIND=$ac_cv_path_OCAMLFIND
7285 if test -n "$OCAMLFIND"; then
7286 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7287 echo "${ECHO_T}$OCAMLFIND" >&6; }
7289 { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7294 test -n "$OCAMLFIND" && break
7297 for ac_prog in gas as
7299 # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_GAS+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 if test -n "$GAS"; then
7331 { echo "$as_me:$LINENO: result: $GAS" >&5
7332 echo "${ECHO_T}$GAS" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7339 test -n "$GAS" && break
7343 { echo "$as_me:$LINENO: checking for linker version" >&5
7344 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7345 if test "${llvm_cv_link_version+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7352 if (echo "$version_string" | grep -q "ld64"); then
7353 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7355 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7359 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7360 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7362 cat >>confdefs.h <<_ACEOF
7363 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7369 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7370 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7371 if test "${llvm_cv_link_use_r+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7381 CFLAGS="$CFLAGS -Wl,-R."
7382 cat >conftest.$ac_ext <<_ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7397 rm -f conftest.$ac_objext conftest$ac_exeext
7398 if { (ac_try="$ac_link"
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404 (eval "$ac_link") 2>conftest.er1
7406 grep -v '^ *+' conftest.er1 >conftest.err
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7412 { (case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_try") 2>&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; } &&
7421 { ac_try='test -s conftest$ac_exeext'
7422 { (case "(($ac_try" in
7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424 *) ac_try_echo=$ac_try;;
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_try") 2>&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7431 llvm_cv_link_use_r=yes
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7436 llvm_cv_link_use_r=no
7439 rm -f core conftest.err conftest.$ac_objext \
7440 conftest$ac_exeext conftest.$ac_ext
7443 ac_cpp='$CPP $CPPFLAGS'
7444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7450 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7451 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7452 if test "$llvm_cv_link_use_r" = yes ; then
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_LINK_R 1
7461 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7462 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7463 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7473 CFLAGS="$CFLAGS -rdynamic"
7474 cat >conftest.$ac_ext <<_ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7489 rm -f conftest.$ac_objext conftest$ac_exeext
7490 if { (ac_try="$ac_link"
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_link") 2>conftest.er1
7498 grep -v '^ *+' conftest.er1 >conftest.err
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7504 { (case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_try") 2>&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; } &&
7513 { ac_try='test -s conftest$ac_exeext'
7514 { (case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_try") 2>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 llvm_cv_link_use_export_dynamic=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 llvm_cv_link_use_export_dynamic=no
7531 rm -f core conftest.err conftest.$ac_objext \
7532 conftest$ac_exeext conftest.$ac_ext
7535 ac_cpp='$CPP $CPPFLAGS'
7536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7543 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7544 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7546 cat >>confdefs.h <<\_ACEOF
7547 #define HAVE_LINK_EXPORT_DYNAMIC 1
7553 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7554 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7555 if test "${llvm_cv_link_use_version_script+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7566 # The following code is from the autoconf manual,
7567 # "11.13: Limitations of Usual Tools".
7568 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7569 # Use mktemp if possible; otherwise fall back on mkdir,
7570 # with $RANDOM to make collisions less likely.
7574 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7576 test -n "$tmp" && test -d "$tmp"
7578 tmp=$TMPDIR/foo$$-$RANDOM
7579 (umask 077 && mkdir "$tmp")
7582 echo "{" > "$tmp/export.map"
7583 echo " global: main;" >> "$tmp/export.map"
7584 echo " local: *;" >> "$tmp/export.map"
7585 echo "};" >> "$tmp/export.map"
7587 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_link") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7618 { (case "(($ac_try" in
7619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_try") 2>&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633 (eval "$ac_try") 2>&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 llvm_cv_link_use_version_script=yes
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 llvm_cv_link_use_version_script=no
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 rm "$tmp/export.map"
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7659 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7660 if test "$llvm_cv_link_use_version_script" = yes ; then
7661 HAVE_LINK_VERSION_SCRIPT=1
7667 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7668 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_GREP+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 # Extract the first word of "grep ggrep" to use in msg output
7673 if test -z "$GREP"; then
7674 set dummy grep ggrep; ac_prog_name=$2
7675 if test "${ac_cv_path_GREP+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_path_GREP_found=false
7679 # Loop through the user's path and test for each of PROGNAME-LIST
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7684 test -z "$as_dir" && as_dir=.
7685 for ac_prog in grep ggrep; do
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7688 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7689 # Check for GNU ac_path_GREP and select it if it is found.
7690 # Check for GNU $ac_path_GREP
7691 case `"$ac_path_GREP" --version 2>&1` in
7693 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7696 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7699 cat "conftest.in" "conftest.in" >"conftest.tmp"
7700 mv "conftest.tmp" "conftest.in"
7701 cp "conftest.in" "conftest.nl"
7702 echo 'GREP' >> "conftest.nl"
7703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7705 ac_count=`expr $ac_count + 1`
7706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7707 # Best one so far, save it but keep looking for a better one
7708 ac_cv_path_GREP="$ac_path_GREP"
7709 ac_path_GREP_max=$ac_count
7711 # 10*(2^10) chars as input seems more than enough
7712 test $ac_count -gt 10 && break
7714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7718 $ac_path_GREP_found && break 3
7728 GREP="$ac_cv_path_GREP"
7729 if test -z "$GREP"; then
7730 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7731 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7732 { (exit 1); exit 1; }; }
7736 ac_cv_path_GREP=$GREP
7741 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7742 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7743 GREP="$ac_cv_path_GREP"
7746 { echo "$as_me:$LINENO: checking for egrep" >&5
7747 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_EGREP+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7752 then ac_cv_path_EGREP="$GREP -E"
7754 # Extract the first word of "egrep" to use in msg output
7755 if test -z "$EGREP"; then
7756 set dummy egrep; ac_prog_name=$2
7757 if test "${ac_cv_path_EGREP+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 ac_path_EGREP_found=false
7761 # Loop through the user's path and test for each of PROGNAME-LIST
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7766 test -z "$as_dir" && as_dir=.
7767 for ac_prog in egrep; do
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7770 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7771 # Check for GNU ac_path_EGREP and select it if it is found.
7772 # Check for GNU $ac_path_EGREP
7773 case `"$ac_path_EGREP" --version 2>&1` in
7775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7778 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7781 cat "conftest.in" "conftest.in" >"conftest.tmp"
7782 mv "conftest.tmp" "conftest.in"
7783 cp "conftest.in" "conftest.nl"
7784 echo 'EGREP' >> "conftest.nl"
7785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7787 ac_count=`expr $ac_count + 1`
7788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7789 # Best one so far, save it but keep looking for a better one
7790 ac_cv_path_EGREP="$ac_path_EGREP"
7791 ac_path_EGREP_max=$ac_count
7793 # 10*(2^10) chars as input seems more than enough
7794 test $ac_count -gt 10 && break
7796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7800 $ac_path_EGREP_found && break 3
7810 EGREP="$ac_cv_path_EGREP"
7811 if test -z "$EGREP"; then
7812 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7814 { (exit 1); exit 1; }; }
7818 ac_cv_path_EGREP=$EGREP
7824 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7825 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7826 EGREP="$ac_cv_path_EGREP"
7829 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7831 if test "${ac_cv_header_stdc+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 cat >conftest.$ac_ext <<_ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_compile") 2>conftest.er1
7862 grep -v '^ *+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try='test -s conftest.$ac_objext'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_cv_header_stdc=yes
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ac_cv_header_stdc=no
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 if test $ac_cv_header_stdc = yes; then
7898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909 $EGREP "memchr" >/dev/null 2>&1; then
7912 ac_cv_header_stdc=no
7918 if test $ac_cv_header_stdc = yes; then
7919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930 $EGREP "free" >/dev/null 2>&1; then
7933 ac_cv_header_stdc=no
7939 if test $ac_cv_header_stdc = yes; then
7940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7941 if test "$cross_compiling" = yes; then
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7952 #if ((' ' & 0x0FF) == 0x020)
7953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7956 # define ISLOWER(c) \
7957 (('a' <= (c) && (c) <= 'i') \
7958 || ('j' <= (c) && (c) <= 'r') \
7959 || ('s' <= (c) && (c) <= 'z'))
7960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7968 for (i = 0; i < 256; i++)
7969 if (XOR (islower (i), ISLOWER (i))
7970 || toupper (i) != TOUPPER (i))
7975 rm -f conftest$ac_exeext
7976 if { (ac_try="$ac_link"
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_link") 2>&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7997 echo "$as_me: program exited with status $ac_status" >&5
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_cv_header_stdc=no
8004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8012 if test $ac_cv_header_stdc = yes; then
8014 cat >>confdefs.h <<\_ACEOF
8015 #define STDC_HEADERS 1
8020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8031 inttypes.h stdint.h unistd.h
8033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 $ac_includes_default
8047 #include <$ac_header>
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8058 grep -v '^ *+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8064 { (case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_try") 2>&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; } &&
8073 { ac_try='test -s conftest.$ac_objext'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 eval "$as_ac_Header=yes"
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 eval "$as_ac_Header=no"
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 ac_res=`eval echo '${'$as_ac_Header'}'`
8094 { echo "$as_me:$LINENO: result: $ac_res" >&5
8095 echo "${ECHO_T}$ac_res" >&6; }
8096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8097 cat >>confdefs.h <<_ACEOF
8098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8107 for ac_header in errno.h
8109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 ac_res=`eval echo '${'$as_ac_Header'}'`
8117 { echo "$as_me:$LINENO: result: $ac_res" >&5
8118 echo "${ECHO_T}$ac_res" >&6; }
8120 # Is the header compilable?
8121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8123 cat >conftest.$ac_ext <<_ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129 $ac_includes_default
8130 #include <$ac_header>
8132 rm -f conftest.$ac_objext
8133 if { (ac_try="$ac_compile"
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_compile") 2>conftest.er1
8141 grep -v '^ *+' conftest.er1 >conftest.err
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8147 { (case "(($ac_try" in
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_try") 2>&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try='test -s conftest.$ac_objext'
8157 { (case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_try") 2>&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_header_compiler=yes
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_header_compiler=no
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8176 echo "${ECHO_T}$ac_header_compiler" >&6; }
8178 # Is the header present?
8179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 #include <$ac_header>
8189 if { (ac_try="$ac_cpp conftest.$ac_ext"
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8197 grep -v '^ *+' conftest.er1 >conftest.err
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } >/dev/null; then
8202 if test -s conftest.err; then
8203 ac_cpp_err=$ac_c_preproc_warn_flag
8204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8211 if test -z "$ac_cpp_err"; then
8212 ac_header_preproc=yes
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8217 ac_header_preproc=no
8220 rm -f conftest.err conftest.$ac_ext
8221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8222 echo "${ECHO_T}$ac_header_preproc" >&6; }
8224 # So? What about this header?
8225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8231 ac_header_preproc=yes
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8247 ## ------------------------------------ ##
8248 ## Report this to http://llvm.org/bugs/ ##
8249 ## ------------------------------------ ##
8251 ) | sed "s/^/$as_me: WARNING: /" >&2
8254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 eval "$as_ac_Header=\$ac_header_preproc"
8261 ac_res=`eval echo '${'$as_ac_Header'}'`
8262 { echo "$as_me:$LINENO: result: $ac_res" >&5
8263 echo "${ECHO_T}$ac_res" >&6; }
8266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8267 cat >>confdefs.h <<_ACEOF
8268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8276 case "$llvm_cv_os_type" in
8277 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8278 Darwin) llvm_shlib_ext=.dylib ;;
8279 *) llvm_shlib_ext=.so ;;
8283 cat >>confdefs.h <<_ACEOF
8284 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8288 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8289 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8302 if test "$GCC" != "yes" && test "$ICC" != "yes"
8304 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8305 echo "$as_me: error: gcc|icc required but not found" >&2;}
8306 { (exit 1); exit 1; }; }
8309 if test "$GXX" != "yes" && test "$IXX" != "yes"
8311 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8312 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8313 { (exit 1); exit 1; }; }
8316 if test "$GCC" = "yes"
8318 cat >conftest.$ac_ext <<_ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8326 #if !defined(__GNUC__) || __GNUC__ < 3
8327 #error Unsupported GCC version
8332 rm -f conftest.$ac_objext
8333 if { (ac_try="$ac_compile"
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_compile") 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8347 { (case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_try") 2>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; } &&
8356 { ac_try='test -s conftest.$ac_objext'
8357 { (case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_try") 2>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8372 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8373 { (exit 1); exit 1; }; }
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 if test -z "$llvm_cv_gnu_make_command"
8381 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8382 echo "$as_me: error: GNU Make required but not found" >&2;}
8383 { (exit 1); exit 1; }; }
8386 { echo "$as_me:$LINENO: result: ok" >&5
8387 echo "${ECHO_T}ok" >&6; }
8389 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8390 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8391 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8393 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8395 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8399 NO_MAYBE_UNINITIALIZED=
8400 if test "$GXX" = "yes"
8402 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8404 if test -z "$NO_MAYBE_UNINITIALIZED"
8406 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8412 llvm_cv_old_cxxflags="$CXXFLAGS"
8413 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8414 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8423 int main() { return 0; }
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442 { (case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_try") 2>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest.$ac_objext'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_try") 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8462 no_comment=-Wno-comment
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 NO_COMMENT=$no_comment
8474 CXXFLAGS="$llvm_cv_old_cxxflags"
8476 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8477 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8480 # Check whether --with-python was given.
8481 if test "${with_python+set}" = set; then
8482 withval=$with_python; PYTHON="$withval"
8486 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8487 { echo "$as_me:$LINENO: checking for python" >&5
8488 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8489 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8490 echo "${ECHO_T}user defined: $with_python" >&6; }
8492 if test -n "$PYTHON" ; then
8493 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8494 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8497 # Extract the first word of "python python2 python27", so it can be a program name with args.
8498 set dummy python python2 python27; ac_word=$2
8499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501 if test "${ac_cv_path_PYTHON+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8524 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8525 echo "${ECHO_T}not found" >&6; }
8526 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8527 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8528 { (exit 1); exit 1; }; }"
8532 PYTHON=$ac_cv_path_PYTHON
8533 if test -n "$PYTHON"; then
8534 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8535 echo "${ECHO_T}$PYTHON" >&6; }
8537 { echo "$as_me:$LINENO: result: no" >&5
8538 echo "${ECHO_T}no" >&6; }
8544 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8545 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8546 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8547 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8548 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8549 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8550 if test "$ac_python_version_major" -gt "2" || \
8551 (test "$ac_python_version_major" -eq "2" && \
8552 test "$ac_python_version_minor" -ge "7") ; then
8553 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8554 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8556 { echo "$as_me:$LINENO: result: not found" >&5
8557 echo "${ECHO_T}not found" >&6; }
8558 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8559 See \`config.log' for more details." >&5
8560 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8561 See \`config.log' for more details." >&2;}
8562 { (exit 1); exit 1; }; }
8567 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8568 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8569 if test "${ac_cv_lib_m_sin+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 ac_check_lib_save_LIBS=$LIBS
8574 cat >conftest.$ac_ext <<_ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8581 /* Override any GCC internal prototype to avoid an error.
8582 Use char because int might match the return type of a GCC
8583 builtin and then its argument prototype would still apply. */
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_link") 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8611 { (case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_try") 2>&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest$ac_exeext'
8621 { (case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_try") 2>&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8638 rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 LIBS=$ac_check_lib_save_LIBS
8642 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8643 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8644 if test $ac_cv_lib_m_sin = yes; then
8645 cat >>confdefs.h <<_ACEOF
8653 if test "$llvm_cv_os_type" = "MingW" ; then
8655 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8656 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8657 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 ac_check_lib_save_LIBS=$LIBS
8661 LIBS="-limagehlp $LIBS"
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (ac_try="$ac_link"
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_link") 2>conftest.er1
8687 grep -v '^ *+' conftest.er1 >conftest.err
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8693 { (case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_try") 2>&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; } &&
8702 { ac_try='test -s conftest$ac_exeext'
8703 { (case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_try") 2>&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_lib_imagehlp_main=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_lib_imagehlp_main=no
8720 rm -f core conftest.err conftest.$ac_objext \
8721 conftest$ac_exeext conftest.$ac_ext
8722 LIBS=$ac_check_lib_save_LIBS
8724 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8725 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8726 if test $ac_cv_lib_imagehlp_main = yes; then
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_LIBIMAGEHLP 1
8731 LIBS="-limagehlp $LIBS"
8736 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8737 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8738 if test "${ac_cv_lib_psapi_main+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-lpsapi $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774 { (case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_try") 2>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_try") 2>&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 ac_cv_lib_psapi_main=yes
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 ac_cv_lib_psapi_main=no
8801 rm -f core conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8803 LIBS=$ac_check_lib_save_LIBS
8805 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8806 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8807 if test $ac_cv_lib_psapi_main = yes; then
8808 cat >>confdefs.h <<_ACEOF
8809 #define HAVE_LIBPSAPI 1
8812 LIBS="-lpsapi $LIBS"
8817 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8818 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8819 if test "${ac_cv_lib_shell32_main+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 ac_check_lib_save_LIBS=$LIBS
8823 LIBS="-lshell32 $LIBS"
8824 cat >conftest.$ac_ext <<_ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (ac_try="$ac_link"
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_link") 2>conftest.er1
8849 grep -v '^ *+' conftest.er1 >conftest.err
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8855 { (case "(($ac_try" in
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_try") 2>&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try='test -s conftest$ac_exeext'
8865 { (case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_try") 2>&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_cv_lib_shell32_main=yes
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_cv_lib_shell32_main=no
8882 rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884 LIBS=$ac_check_lib_save_LIBS
8886 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8887 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8888 if test $ac_cv_lib_shell32_main = yes; then
8889 cat >>confdefs.h <<_ACEOF
8890 #define HAVE_LIBSHELL32 1
8893 LIBS="-lshell32 $LIBS"
8899 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8900 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8901 if test "${ac_cv_search_dlopen+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 ac_func_search_save_LIBS=$LIBS
8905 cat >conftest.$ac_ext <<_ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8912 /* Override any GCC internal prototype to avoid an error.
8913 Use char because int might match the return type of a GCC
8914 builtin and then its argument prototype would still apply. */
8927 for ac_lib in '' dl; do
8928 if test -z "$ac_lib"; then
8929 ac_res="none required"
8932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8934 rm -f conftest.$ac_objext conftest$ac_exeext
8935 if { (ac_try="$ac_link"
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_link") 2>conftest.er1
8943 grep -v '^ *+' conftest.er1 >conftest.err
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8949 { (case "(($ac_try" in
8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_try") 2>&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest$ac_exeext'
8959 { (case "(($ac_try" in
8960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961 *) ac_try_echo=$ac_try;;
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964 (eval "$ac_try") 2>&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_cv_search_dlopen=$ac_res
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8976 rm -f core conftest.err conftest.$ac_objext \
8978 if test "${ac_cv_search_dlopen+set}" = set; then
8982 if test "${ac_cv_search_dlopen+set}" = set; then
8985 ac_cv_search_dlopen=no
8988 LIBS=$ac_func_search_save_LIBS
8990 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8991 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8992 ac_res=$ac_cv_search_dlopen
8993 if test "$ac_res" != no; then
8994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8997 cat >>confdefs.h <<\_ACEOF
8998 #define HAVE_DLOPEN 1
9005 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9006 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9010 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9011 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9012 if test "${ac_cv_search_clock_gettime+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 ac_func_search_save_LIBS=$LIBS
9016 cat >conftest.$ac_ext <<_ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9023 /* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
9029 char clock_gettime ();
9033 return clock_gettime ();
9038 for ac_lib in '' rt; do
9039 if test -z "$ac_lib"; then
9040 ac_res="none required"
9043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (ac_try="$ac_link"
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_link") 2>conftest.er1
9054 grep -v '^ *+' conftest.er1 >conftest.err
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9060 { (case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_try") 2>&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (case "(($ac_try" in
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_try") 2>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_cv_search_clock_gettime=$ac_res
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9087 rm -f core conftest.err conftest.$ac_objext \
9089 if test "${ac_cv_search_clock_gettime+set}" = set; then
9093 if test "${ac_cv_search_clock_gettime+set}" = set; then
9096 ac_cv_search_clock_gettime=no
9099 LIBS=$ac_func_search_save_LIBS
9101 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9102 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9103 ac_res=$ac_cv_search_clock_gettime
9104 if test "$ac_res" != no; then
9105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9110 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9111 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9112 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9113 if test "${ac_cv_search_setupterm+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 ac_func_search_save_LIBS=$LIBS
9117 cat >conftest.$ac_ext <<_ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9124 /* Override any GCC internal prototype to avoid an error.
9125 Use char because int might match the return type of a GCC
9126 builtin and then its argument prototype would still apply. */
9134 return setupterm ();
9139 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9140 if test -z "$ac_lib"; then
9141 ac_res="none required"
9144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9146 rm -f conftest.$ac_objext conftest$ac_exeext
9147 if { (ac_try="$ac_link"
9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150 *) ac_try_echo=$ac_try;;
9152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153 (eval "$ac_link") 2>conftest.er1
9155 grep -v '^ *+' conftest.er1 >conftest.err
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_try") 2>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
9180 ac_cv_search_setupterm=$ac_res
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9188 rm -f core conftest.err conftest.$ac_objext \
9190 if test "${ac_cv_search_setupterm+set}" = set; then
9194 if test "${ac_cv_search_setupterm+set}" = set; then
9197 ac_cv_search_setupterm=no
9200 LIBS=$ac_func_search_save_LIBS
9202 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9203 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9204 ac_res=$ac_cv_search_setupterm
9205 if test "$ac_res" != no; then
9206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9209 cat >>confdefs.h <<\_ACEOF
9210 #define HAVE_TERMINFO 1
9220 if test "$llvm_cv_enable_libedit" = "yes" ; then
9221 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9222 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9223 if test "${ac_cv_search_el_init+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 ac_func_search_save_LIBS=$LIBS
9227 cat >conftest.$ac_ext <<_ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9234 /* Override any GCC internal prototype to avoid an error.
9235 Use char because int might match the return type of a GCC
9236 builtin and then its argument prototype would still apply. */
9249 for ac_lib in '' edit; do
9250 if test -z "$ac_lib"; then
9251 ac_res="none required"
9254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (ac_try="$ac_link"
9259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260 *) ac_try_echo=$ac_try;;
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263 (eval "$ac_link") 2>conftest.er1
9265 grep -v '^ *+' conftest.er1 >conftest.err
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271 { (case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_try") 2>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest$ac_exeext'
9281 { (case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_try") 2>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_cv_search_el_init=$ac_res
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9298 rm -f core conftest.err conftest.$ac_objext \
9300 if test "${ac_cv_search_el_init+set}" = set; then
9304 if test "${ac_cv_search_el_init+set}" = set; then
9307 ac_cv_search_el_init=no
9310 LIBS=$ac_func_search_save_LIBS
9312 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9313 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9314 ac_res=$ac_cv_search_el_init
9315 if test "$ac_res" != no; then
9316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_LIBEDIT 1
9326 if test "$llvm_cv_enable_libffi" = "yes" ; then
9327 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9328 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9329 if test "${ac_cv_search_ffi_call+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 ac_func_search_save_LIBS=$LIBS
9333 cat >conftest.$ac_ext <<_ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9340 /* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply. */
9355 for ac_lib in '' ffi; do
9356 if test -z "$ac_lib"; then
9357 ac_res="none required"
9360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9362 rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (ac_try="$ac_link"
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_link") 2>conftest.er1
9371 grep -v '^ *+' conftest.er1 >conftest.err
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9377 { (case "(($ac_try" in
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_try") 2>&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; } &&
9386 { ac_try='test -s conftest$ac_exeext'
9387 { (case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_try") 2>&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 ac_cv_search_ffi_call=$ac_res
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9404 rm -f core conftest.err conftest.$ac_objext \
9406 if test "${ac_cv_search_ffi_call+set}" = set; then
9410 if test "${ac_cv_search_ffi_call+set}" = set; then
9413 ac_cv_search_ffi_call=no
9416 LIBS=$ac_func_search_save_LIBS
9418 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9419 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9420 ac_res=$ac_cv_search_ffi_call
9421 if test "$ac_res" != no; then
9422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9424 cat >>confdefs.h <<\_ACEOF
9425 #define HAVE_FFI_CALL 1
9429 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9430 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9431 { (exit 1); exit 1; }; }
9436 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9437 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9438 if test "${ac_cv_search_mallinfo+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 ac_func_search_save_LIBS=$LIBS
9442 cat >conftest.$ac_ext <<_ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9449 /* Override any GCC internal prototype to avoid an error.
9450 Use char because int might match the return type of a GCC
9451 builtin and then its argument prototype would still apply. */
9464 for ac_lib in '' malloc; do
9465 if test -z "$ac_lib"; then
9466 ac_res="none required"
9469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>conftest.er1
9480 grep -v '^ *+' conftest.er1 >conftest.err
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9486 { (case "(($ac_try" in
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_try") 2>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest$ac_exeext'
9496 { (case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_try") 2>&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 ac_cv_search_mallinfo=$ac_res
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9513 rm -f core conftest.err conftest.$ac_objext \
9515 if test "${ac_cv_search_mallinfo+set}" = set; then
9519 if test "${ac_cv_search_mallinfo+set}" = set; then
9522 ac_cv_search_mallinfo=no
9525 LIBS=$ac_func_search_save_LIBS
9527 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9528 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9529 ac_res=$ac_cv_search_mallinfo
9530 if test "$ac_res" != no; then
9531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9533 cat >>confdefs.h <<\_ACEOF
9534 #define HAVE_MALLINFO 1
9540 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9542 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9543 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9544 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-lpthread $LIBS"
9549 cat >conftest.$ac_ext <<_ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9556 /* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9562 char pthread_mutex_init ();
9566 return pthread_mutex_init ();
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_link") 2>conftest.er1
9580 grep -v '^ *+' conftest.er1 >conftest.err
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9586 { (case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_try") 2>&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest$ac_exeext'
9596 { (case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_try") 2>&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 ac_cv_lib_pthread_pthread_mutex_init=yes
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9610 ac_cv_lib_pthread_pthread_mutex_init=no
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 LIBS=$ac_check_lib_save_LIBS
9617 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9618 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9619 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9620 cat >>confdefs.h <<_ACEOF
9621 #define HAVE_LIBPTHREAD 1
9624 LIBS="-lpthread $LIBS"
9628 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9629 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9630 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 ac_func_search_save_LIBS=$LIBS
9634 cat >conftest.$ac_ext <<_ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9641 /* Override any GCC internal prototype to avoid an error.
9642 Use char because int might match the return type of a GCC
9643 builtin and then its argument prototype would still apply. */
9647 char pthread_mutex_lock ();
9651 return pthread_mutex_lock ();
9656 for ac_lib in '' pthread; do
9657 if test -z "$ac_lib"; then
9658 ac_res="none required"
9661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (ac_try="$ac_link"
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_link") 2>conftest.er1
9672 grep -v '^ *+' conftest.er1 >conftest.err
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9678 { (case "(($ac_try" in
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_try") 2>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_try") 2>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_cv_search_pthread_mutex_lock=$ac_res
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9705 rm -f core conftest.err conftest.$ac_objext \
9707 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9711 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9714 ac_cv_search_pthread_mutex_lock=no
9717 LIBS=$ac_func_search_save_LIBS
9719 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9720 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9721 ac_res=$ac_cv_search_pthread_mutex_lock
9722 if test "$ac_res" != no; then
9723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9725 cat >>confdefs.h <<\_ACEOF
9726 #define HAVE_PTHREAD_MUTEX_LOCK 1
9731 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9732 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9733 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 ac_func_search_save_LIBS=$LIBS
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9744 /* Override any GCC internal prototype to avoid an error.
9745 Use char because int might match the return type of a GCC
9746 builtin and then its argument prototype would still apply. */
9750 char pthread_rwlock_init ();
9754 return pthread_rwlock_init ();
9759 for ac_lib in '' pthread; do
9760 if test -z "$ac_lib"; then
9761 ac_res="none required"
9764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (ac_try="$ac_link"
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_link") 2>conftest.er1
9775 grep -v '^ *+' conftest.er1 >conftest.err
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9781 { (case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_try") 2>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; } &&
9790 { ac_try='test -s conftest$ac_exeext'
9791 { (case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_try") 2>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }; then
9800 ac_cv_search_pthread_rwlock_init=$ac_res
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9808 rm -f core conftest.err conftest.$ac_objext \
9810 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9814 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9817 ac_cv_search_pthread_rwlock_init=no
9820 LIBS=$ac_func_search_save_LIBS
9822 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9823 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9824 ac_res=$ac_cv_search_pthread_rwlock_init
9825 if test "$ac_res" != no; then
9826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9828 cat >>confdefs.h <<\_ACEOF
9829 #define HAVE_PTHREAD_RWLOCK_INIT 1
9834 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9835 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9836 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 ac_func_search_save_LIBS=$LIBS
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9847 /* Override any GCC internal prototype to avoid an error.
9848 Use char because int might match the return type of a GCC
9849 builtin and then its argument prototype would still apply. */
9853 char pthread_getspecific ();
9857 return pthread_getspecific ();
9862 for ac_lib in '' pthread; do
9863 if test -z "$ac_lib"; then
9864 ac_res="none required"
9867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (ac_try="$ac_link"
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_link") 2>conftest.er1
9878 grep -v '^ *+' conftest.er1 >conftest.err
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9884 { (case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_try") 2>&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; } &&
9893 { ac_try='test -s conftest$ac_exeext'
9894 { (case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_try") 2>&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; }; then
9903 ac_cv_search_pthread_getspecific=$ac_res
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9911 rm -f core conftest.err conftest.$ac_objext \
9913 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9917 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9920 ac_cv_search_pthread_getspecific=no
9923 LIBS=$ac_func_search_save_LIBS
9925 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9926 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9927 ac_res=$ac_cv_search_pthread_getspecific
9928 if test "$ac_res" != no; then
9929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9931 cat >>confdefs.h <<\_ACEOF
9932 #define HAVE_PTHREAD_GETSPECIFIC 1
9939 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9941 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9942 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9943 if test "${ac_cv_lib_z_compress2+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 ac_check_lib_save_LIBS=$LIBS
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9955 /* Override any GCC internal prototype to avoid an error.
9956 Use char because int might match the return type of a GCC
9957 builtin and then its argument prototype would still apply. */
9965 return compress2 ();
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (ac_try="$ac_link"
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_link") 2>conftest.er1
9979 grep -v '^ *+' conftest.er1 >conftest.err
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9985 { (case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_try") 2>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest$ac_exeext'
9995 { (case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_try") 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_cv_lib_z_compress2=yes
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 ac_cv_lib_z_compress2=no
10012 rm -f core conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10014 LIBS=$ac_check_lib_save_LIBS
10016 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10017 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10018 if test $ac_cv_lib_z_compress2 = yes; then
10019 cat >>confdefs.h <<_ACEOF
10020 #define HAVE_LIBZ 1
10030 # Check whether --with-oprofile was given.
10031 if test "${with_oprofile+set}" = set; then
10032 withval=$with_oprofile;
10036 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10037 no) llvm_cv_oppath=
10040 *) llvm_cv_oppath="${withval}/lib/oprofile"
10041 CPPFLAGS="-I${withval}/include";;
10043 case $llvm_cv_os_type in
10045 if test -n "$llvm_cv_oppath" ; then
10046 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10047 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10048 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10049 if test "${ac_cv_search_bfd_init+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 ac_func_search_save_LIBS=$LIBS
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10060 /* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
10070 return bfd_init ();
10075 for ac_lib in '' bfd; do
10076 if test -z "$ac_lib"; then
10077 ac_res="none required"
10080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10082 rm -f conftest.$ac_objext conftest$ac_exeext
10083 if { (ac_try="$ac_link"
10084 case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_link") 2>conftest.er1
10091 grep -v '^ *+' conftest.er1 >conftest.err
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10097 { (case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_try") 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_try") 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10116 ac_cv_search_bfd_init=$ac_res
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10124 rm -f core conftest.err conftest.$ac_objext \
10126 if test "${ac_cv_search_bfd_init+set}" = set; then
10130 if test "${ac_cv_search_bfd_init+set}" = set; then
10133 ac_cv_search_bfd_init=no
10135 rm conftest.$ac_ext
10136 LIBS=$ac_func_search_save_LIBS
10138 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10139 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10140 ac_res=$ac_cv_search_bfd_init
10141 if test "$ac_res" != no; then
10142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10146 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10147 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10148 if test "${ac_cv_search_op_open_agent+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 ac_func_search_save_LIBS=$LIBS
10152 cat >conftest.$ac_ext <<_ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10159 /* Override any GCC internal prototype to avoid an error.
10160 Use char because int might match the return type of a GCC
10161 builtin and then its argument prototype would still apply. */
10165 char op_open_agent ();
10169 return op_open_agent ();
10174 for ac_lib in '' opagent; do
10175 if test -z "$ac_lib"; then
10176 ac_res="none required"
10179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_link") 2>conftest.er1
10190 grep -v '^ *+' conftest.er1 >conftest.err
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10196 { (case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_try") 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; } &&
10205 { ac_try='test -s conftest$ac_exeext'
10206 { (case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_try") 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_cv_search_op_open_agent=$ac_res
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10223 rm -f core conftest.err conftest.$ac_objext \
10225 if test "${ac_cv_search_op_open_agent+set}" = set; then
10229 if test "${ac_cv_search_op_open_agent+set}" = set; then
10232 ac_cv_search_op_open_agent=no
10234 rm conftest.$ac_ext
10235 LIBS=$ac_func_search_save_LIBS
10237 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10238 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10239 ac_res=$ac_cv_search_op_open_agent
10240 if test "$ac_res" != no; then
10241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10245 echo "Error! You need to have libopagent around."
10250 if test "${ac_cv_header_opagent_h+set}" = set; then
10251 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10252 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10253 if test "${ac_cv_header_opagent_h+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10257 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10259 # Is the header compilable?
10260 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10261 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10262 cat >conftest.$ac_ext <<_ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 $ac_includes_default
10269 #include <opagent.h>
10271 rm -f conftest.$ac_objext
10272 if { (ac_try="$ac_compile"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_compile") 2>conftest.er1
10280 grep -v '^ *+' conftest.er1 >conftest.err
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286 { (case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_try") 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest.$ac_objext'
10296 { (case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_try") 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_header_compiler=yes
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_header_compiler=no
10313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10315 echo "${ECHO_T}$ac_header_compiler" >&6; }
10317 # Is the header present?
10318 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10319 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10320 cat >conftest.$ac_ext <<_ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 #include <opagent.h>
10328 if { (ac_try="$ac_cpp conftest.$ac_ext"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10336 grep -v '^ *+' conftest.er1 >conftest.err
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } >/dev/null; then
10341 if test -s conftest.err; then
10342 ac_cpp_err=$ac_c_preproc_warn_flag
10343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10350 if test -z "$ac_cpp_err"; then
10351 ac_header_preproc=yes
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 ac_header_preproc=no
10359 rm -f conftest.err conftest.$ac_ext
10360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10361 echo "${ECHO_T}$ac_header_preproc" >&6; }
10363 # So? What about this header?
10364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10366 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10367 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10368 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10369 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10370 ac_header_preproc=yes
10373 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10374 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10376 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10378 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10380 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10382 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10384 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10386 ## ------------------------------------ ##
10387 ## Report this to http://llvm.org/bugs/ ##
10388 ## ------------------------------------ ##
10390 ) | sed "s/^/$as_me: WARNING: /" >&2
10393 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10394 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10395 if test "${ac_cv_header_opagent_h+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 ac_cv_header_opagent_h=$ac_header_preproc
10400 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10401 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10404 if test $ac_cv_header_opagent_h = yes; then
10408 echo "Error! You need to have opagent.h around."
10416 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10417 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10418 { (exit 1); exit 1; }; } ;;
10429 cat >>confdefs.h <<_ACEOF
10430 #define LLVM_USE_OPROFILE $USE_OPROFILE
10435 # Check whether --with-intel-jitevents was given.
10436 if test "${with_intel_jitevents+set}" = set; then
10437 withval=$with_intel_jitevents;
10439 yes) USE_INTEL_JITEVENTS=1
10441 no) USE_INTEL_JITEVENTS=0
10443 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10444 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10445 { (exit 1); exit 1; }; };;
10448 case $llvm_cv_os_type in
10449 Linux|Win32|Cygwin|MingW) ;;
10450 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10451 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10452 { (exit 1); exit 1; }; };;
10455 case "$llvm_cv_target_arch" in
10457 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10458 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10459 { (exit 1); exit 1; }; };;
10464 USE_INTEL_JITEVENTS=0
10470 cat >>confdefs.h <<_ACEOF
10471 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10475 for ac_prog in xml2-config
10477 # Extract the first word of "$ac_prog", so it can be a program name with args.
10478 set dummy $ac_prog; ac_word=$2
10479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10481 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 if test -n "$XML2CONFIG"; then
10485 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488 for as_dir in $PATH
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
10493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10494 ac_cv_prog_XML2CONFIG="$ac_prog"
10495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10504 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10505 if test -n "$XML2CONFIG"; then
10506 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10507 echo "${ECHO_T}$XML2CONFIG" >&6; }
10509 { echo "$as_me:$LINENO: result: no" >&5
10510 echo "${ECHO_T}no" >&6; }
10514 test -n "$XML2CONFIG" && break
10518 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10519 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10520 if test "x$XML2CONFIG" = "x"; then
10521 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10522 echo "${ECHO_T}xml2-config not found" >&6; }
10524 LIBXML2_INC=`$XML2CONFIG --cflags`
10525 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10526 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10527 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10528 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10529 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 ac_check_lib_save_LIBS=$LIBS
10533 LIBS="-lxml2 $LIBS"
10534 cat >conftest.$ac_ext <<_ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10547 char xmlReadFile ();
10551 return xmlReadFile ();
10556 rm -f conftest.$ac_objext conftest$ac_exeext
10557 if { (ac_try="$ac_link"
10558 case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_link") 2>conftest.er1
10565 grep -v '^ *+' conftest.er1 >conftest.err
10567 cat conftest.err >&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } &&
10570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10571 { (case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_try") 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try='test -s conftest$ac_exeext'
10581 { (case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_try") 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_lib_xml2_xmlReadFile=yes
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ac_cv_lib_xml2_xmlReadFile=no
10598 rm -f core conftest.err conftest.$ac_objext \
10599 conftest$ac_exeext conftest.$ac_ext
10600 LIBS=$ac_check_lib_save_LIBS
10602 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10603 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10604 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10606 cat >>confdefs.h <<\_ACEOF
10607 #define CLANG_HAVE_LIBXML 1
10610 LIBXML2_LIBS="-lxml2"
10623 ac_header_dirent=no
10624 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10625 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10626 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10627 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 cat >conftest.$ac_ext <<_ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h. */
10637 #include <sys/types.h>
10649 rm -f conftest.$ac_objext
10650 if { (ac_try="$ac_compile"
10651 case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_compile") 2>conftest.er1
10658 grep -v '^ *+' conftest.er1 >conftest.err
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10664 { (case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_try") 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; } &&
10673 { ac_try='test -s conftest.$ac_objext'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 eval "$as_ac_Header=yes"
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 eval "$as_ac_Header=no"
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10693 ac_res=`eval echo '${'$as_ac_Header'}'`
10694 { echo "$as_me:$LINENO: result: $ac_res" >&5
10695 echo "${ECHO_T}$ac_res" >&6; }
10696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10697 cat >>confdefs.h <<_ACEOF
10698 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10701 ac_header_dirent=$ac_hdr; break
10705 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10706 if test $ac_header_dirent = dirent.h; then
10707 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10708 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10709 if test "${ac_cv_search_opendir+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 ac_func_search_save_LIBS=$LIBS
10713 cat >conftest.$ac_ext <<_ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10735 for ac_lib in '' dir; do
10736 if test -z "$ac_lib"; then
10737 ac_res="none required"
10740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (ac_try="$ac_link"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_link") 2>conftest.er1
10751 grep -v '^ *+' conftest.er1 >conftest.err
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10757 { (case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 (eval "$ac_try") 2>&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }; } &&
10766 { ac_try='test -s conftest$ac_exeext'
10767 { (case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_try") 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ac_cv_search_opendir=$ac_res
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10784 rm -f core conftest.err conftest.$ac_objext \
10786 if test "${ac_cv_search_opendir+set}" = set; then
10790 if test "${ac_cv_search_opendir+set}" = set; then
10793 ac_cv_search_opendir=no
10795 rm conftest.$ac_ext
10796 LIBS=$ac_func_search_save_LIBS
10798 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10799 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10800 ac_res=$ac_cv_search_opendir
10801 if test "$ac_res" != no; then
10802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10807 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10808 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10809 if test "${ac_cv_search_opendir+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 ac_func_search_save_LIBS=$LIBS
10813 cat >conftest.$ac_ext <<_ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10835 for ac_lib in '' x; do
10836 if test -z "$ac_lib"; then
10837 ac_res="none required"
10840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10842 rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (ac_try="$ac_link"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_link") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } &&
10856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10857 { (case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_try") 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; } &&
10866 { ac_try='test -s conftest$ac_exeext'
10867 { (case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_try") 2>&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 ac_cv_search_opendir=$ac_res
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10884 rm -f core conftest.err conftest.$ac_objext \
10886 if test "${ac_cv_search_opendir+set}" = set; then
10890 if test "${ac_cv_search_opendir+set}" = set; then
10893 ac_cv_search_opendir=no
10895 rm conftest.$ac_ext
10896 LIBS=$ac_func_search_save_LIBS
10898 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10899 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10900 ac_res=$ac_cv_search_opendir
10901 if test "$ac_res" != no; then
10902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10908 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10909 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10910 if test "${ac_cv_header_mmap_anon+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 ac_cpp='$CPP $CPPFLAGS'
10915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10919 cat >conftest.$ac_ext <<_ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10925 #include <sys/mman.h>
10926 #include <unistd.h>
10931 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10936 rm -f conftest.$ac_objext
10937 if { (ac_try="$ac_compile"
10938 case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_compile") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 ac_cv_header_mmap_anon=yes
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 ac_cv_header_mmap_anon=no
10978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980 ac_cpp='$CPP $CPPFLAGS'
10981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10987 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10988 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10989 if test "$ac_cv_header_mmap_anon" = yes; then
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_MMAP_ANONYMOUS 1
10997 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10998 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10999 if test "${ac_cv_header_stat_broken+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 cat >conftest.$ac_ext <<_ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11008 #include <sys/types.h>
11009 #include <sys/stat.h>
11011 #if defined S_ISBLK && defined S_IFDIR
11012 # if S_ISBLK (S_IFDIR)
11017 #if defined S_ISBLK && defined S_IFCHR
11018 # if S_ISBLK (S_IFCHR)
11023 #if defined S_ISLNK && defined S_IFREG
11024 # if S_ISLNK (S_IFREG)
11029 #if defined S_ISSOCK && defined S_IFREG
11030 # if S_ISSOCK (S_IFREG)
11036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11037 $EGREP "You lose" >/dev/null 2>&1; then
11038 ac_cv_header_stat_broken=yes
11040 ac_cv_header_stat_broken=no
11045 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11046 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11047 if test $ac_cv_header_stat_broken = yes; then
11049 cat >>confdefs.h <<\_ACEOF
11050 #define STAT_MACROS_BROKEN 1
11055 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11056 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11057 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 cat >conftest.$ac_ext <<_ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066 #include <sys/types.h>
11067 #include <sys/wait.h>
11068 #ifndef WEXITSTATUS
11069 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11072 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11080 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11085 rm -f conftest.$ac_objext
11086 if { (ac_try="$ac_compile"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_compile") 2>conftest.er1
11094 grep -v '^ *+' conftest.er1 >conftest.err
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100 { (case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_try") 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest.$ac_objext'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_header_sys_wait_h=yes
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_cv_header_sys_wait_h=no
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11129 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11130 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11131 if test $ac_cv_header_sys_wait_h = yes; then
11133 cat >>confdefs.h <<\_ACEOF
11134 #define HAVE_SYS_WAIT_H 1
11139 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11140 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11141 if test "${ac_cv_header_time+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 cat >conftest.$ac_ext <<_ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h. */
11150 #include <sys/types.h>
11151 #include <sys/time.h>
11157 if ((struct tm *) 0)
11163 rm -f conftest.$ac_objext
11164 if { (ac_try="$ac_compile"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_compile") 2>conftest.er1
11172 grep -v '^ *+' conftest.er1 >conftest.err
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178 { (case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_try") 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_cv_header_time=yes
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_cv_header_time=no
11205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11208 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11209 if test $ac_cv_header_time = yes; then
11211 cat >>confdefs.h <<\_ACEOF
11212 #define TIME_WITH_SYS_TIME 1
11219 ac_cpp='$CXXCPP $CPPFLAGS'
11220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11225 for ac_header in cxxabi.h
11227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 cat >conftest.$ac_ext <<_ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 #include <stddef.h>
11242 #include <$ac_header>
11244 rm -f conftest.$ac_objext
11245 if { (ac_try="$ac_compile"
11246 case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_compile") 2>conftest.er1
11253 grep -v '^ *+' conftest.er1 >conftest.err
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11259 { (case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_try") 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; } &&
11268 { ac_try='test -s conftest.$ac_objext'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 eval "$as_ac_Header=yes"
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 eval "$as_ac_Header=no"
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 ac_res=`eval echo '${'$as_ac_Header'}'`
11289 { echo "$as_me:$LINENO: result: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11301 ac_cpp='$CPP $CPPFLAGS'
11302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11312 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 ac_res=`eval echo '${'$as_ac_Header'}'`
11322 { echo "$as_me:$LINENO: result: $ac_res" >&5
11323 echo "${ECHO_T}$ac_res" >&6; }
11325 # Is the header compilable?
11326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11328 cat >conftest.$ac_ext <<_ACEOF
11331 cat confdefs.h >>conftest.$ac_ext
11332 cat >>conftest.$ac_ext <<_ACEOF
11333 /* end confdefs.h. */
11334 $ac_includes_default
11335 #include <$ac_header>
11337 rm -f conftest.$ac_objext
11338 if { (ac_try="$ac_compile"
11339 case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_compile") 2>conftest.er1
11346 grep -v '^ *+' conftest.er1 >conftest.err
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
11351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11352 { (case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_try") 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest.$ac_objext'
11362 { (case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_try") 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_header_compiler=yes
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 ac_header_compiler=no
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11381 echo "${ECHO_T}$ac_header_compiler" >&6; }
11383 # Is the header present?
11384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11386 cat >conftest.$ac_ext <<_ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 #include <$ac_header>
11394 if { (ac_try="$ac_cpp conftest.$ac_ext"
11395 case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11402 grep -v '^ *+' conftest.er1 >conftest.err
11404 cat conftest.err >&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } >/dev/null; then
11407 if test -s conftest.err; then
11408 ac_cpp_err=$ac_c_preproc_warn_flag
11409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11416 if test -z "$ac_cpp_err"; then
11417 ac_header_preproc=yes
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11422 ac_header_preproc=no
11425 rm -f conftest.err conftest.$ac_ext
11426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11427 echo "${ECHO_T}$ac_header_preproc" >&6; }
11429 # So? What about this header?
11430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11436 ac_header_preproc=yes
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11452 ## ------------------------------------ ##
11453 ## Report this to http://llvm.org/bugs/ ##
11454 ## ------------------------------------ ##
11456 ) | sed "s/^/$as_me: WARNING: /" >&2
11459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 eval "$as_ac_Header=\$ac_header_preproc"
11466 ac_res=`eval echo '${'$as_ac_Header'}'`
11467 { echo "$as_me:$LINENO: result: $ac_res" >&5
11468 echo "${ECHO_T}$ac_res" >&6; }
11471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11486 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11499 # Is the header compilable?
11500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header>
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_compile") 2>conftest.er1
11520 grep -v '^ *+' conftest.er1 >conftest.err
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } &&
11525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11526 { (case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_try") 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest.$ac_objext'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_header_compiler=yes
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11550 ac_header_compiler=no
11553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11555 echo "${ECHO_T}$ac_header_compiler" >&6; }
11557 # Is the header present?
11558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11560 cat >conftest.$ac_ext <<_ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11566 #include <$ac_header>
11568 if { (ac_try="$ac_cpp conftest.$ac_ext"
11569 case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11576 grep -v '^ *+' conftest.er1 >conftest.err
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } >/dev/null; then
11581 if test -s conftest.err; then
11582 ac_cpp_err=$ac_c_preproc_warn_flag
11583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11590 if test -z "$ac_cpp_err"; then
11591 ac_header_preproc=yes
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ac_header_preproc=no
11599 rm -f conftest.err conftest.$ac_ext
11600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11601 echo "${ECHO_T}$ac_header_preproc" >&6; }
11603 # So? What about this header?
11604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11610 ac_header_preproc=yes
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11626 ## ------------------------------------ ##
11627 ## Report this to http://llvm.org/bugs/ ##
11628 ## ------------------------------------ ##
11630 ) | sed "s/^/$as_me: WARNING: /" >&2
11633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 eval "$as_ac_Header=\$ac_header_preproc"
11640 ac_res=`eval echo '${'$as_ac_Header'}'`
11641 { echo "$as_me:$LINENO: result: $ac_res" >&5
11642 echo "${ECHO_T}$ac_res" >&6; }
11645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11646 cat >>confdefs.h <<_ACEOF
11647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655 for ac_header in utime.h
11657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 ac_res=`eval echo '${'$as_ac_Header'}'`
11665 { echo "$as_me:$LINENO: result: $ac_res" >&5
11666 echo "${ECHO_T}$ac_res" >&6; }
11668 # Is the header compilable?
11669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11671 cat >conftest.$ac_ext <<_ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11677 $ac_includes_default
11678 #include <$ac_header>
11680 rm -f conftest.$ac_objext
11681 if { (ac_try="$ac_compile"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_compile") 2>conftest.er1
11689 grep -v '^ *+' conftest.er1 >conftest.err
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest.$ac_objext'
11705 { (case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_try") 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 ac_header_compiler=yes
11716 echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11719 ac_header_compiler=no
11722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11724 echo "${ECHO_T}$ac_header_compiler" >&6; }
11726 # Is the header present?
11727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11729 cat >conftest.$ac_ext <<_ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 #include <$ac_header>
11737 if { (ac_try="$ac_cpp conftest.$ac_ext"
11738 case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11745 grep -v '^ *+' conftest.er1 >conftest.err
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } >/dev/null; then
11750 if test -s conftest.err; then
11751 ac_cpp_err=$ac_c_preproc_warn_flag
11752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11759 if test -z "$ac_cpp_err"; then
11760 ac_header_preproc=yes
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 ac_header_preproc=no
11768 rm -f conftest.err conftest.$ac_ext
11769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11770 echo "${ECHO_T}$ac_header_preproc" >&6; }
11772 # So? What about this header?
11773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11779 ac_header_preproc=yes
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11795 ## ------------------------------------ ##
11796 ## Report this to http://llvm.org/bugs/ ##
11797 ## ------------------------------------ ##
11799 ) | sed "s/^/$as_me: WARNING: /" >&2
11802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 eval "$as_ac_Header=\$ac_header_preproc"
11809 ac_res=`eval echo '${'$as_ac_Header'}'`
11810 { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11828 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 ac_res=`eval echo '${'$as_ac_Header'}'`
11838 { echo "$as_me:$LINENO: result: $ac_res" >&5
11839 echo "${ECHO_T}$ac_res" >&6; }
11841 # Is the header compilable?
11842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11844 cat >conftest.$ac_ext <<_ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 $ac_includes_default
11851 #include <$ac_header>
11853 rm -f conftest.$ac_objext
11854 if { (ac_try="$ac_compile"
11855 case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860 (eval "$ac_compile") 2>conftest.er1
11862 grep -v '^ *+' conftest.er1 >conftest.err
11864 cat conftest.err >&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
11867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_try") 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 ac_header_compiler=yes
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 ac_header_compiler=no
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11897 echo "${ECHO_T}$ac_header_compiler" >&6; }
11899 # Is the header present?
11900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 #include <$ac_header>
11910 if { (ac_try="$ac_cpp conftest.$ac_ext"
11911 case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11918 grep -v '^ *+' conftest.er1 >conftest.err
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } >/dev/null; then
11923 if test -s conftest.err; then
11924 ac_cpp_err=$ac_c_preproc_warn_flag
11925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11932 if test -z "$ac_cpp_err"; then
11933 ac_header_preproc=yes
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_header_preproc=no
11941 rm -f conftest.err conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11943 echo "${ECHO_T}$ac_header_preproc" >&6; }
11945 # So? What about this header?
11946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11952 ac_header_preproc=yes
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11968 ## ------------------------------------ ##
11969 ## Report this to http://llvm.org/bugs/ ##
11970 ## ------------------------------------ ##
11972 ) | sed "s/^/$as_me: WARNING: /" >&2
11975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 eval "$as_ac_Header=\$ac_header_preproc"
11982 ac_res=`eval echo '${'$as_ac_Header'}'`
11983 { echo "$as_me:$LINENO: result: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11999 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 ac_res=`eval echo '${'$as_ac_Header'}'`
12009 { echo "$as_me:$LINENO: result: $ac_res" >&5
12010 echo "${ECHO_T}$ac_res" >&6; }
12012 # Is the header compilable?
12013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12015 cat >conftest.$ac_ext <<_ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021 $ac_includes_default
12022 #include <$ac_header>
12024 rm -f conftest.$ac_objext
12025 if { (ac_try="$ac_compile"
12026 case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_compile") 2>conftest.er1
12033 grep -v '^ *+' conftest.er1 >conftest.err
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest.$ac_objext'
12049 { (case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054 (eval "$ac_try") 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 ac_header_compiler=yes
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 ac_header_compiler=no
12066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12068 echo "${ECHO_T}$ac_header_compiler" >&6; }
12070 # Is the header present?
12071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12073 cat >conftest.$ac_ext <<_ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12079 #include <$ac_header>
12081 if { (ac_try="$ac_cpp conftest.$ac_ext"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12089 grep -v '^ *+' conftest.er1 >conftest.err
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } >/dev/null; then
12094 if test -s conftest.err; then
12095 ac_cpp_err=$ac_c_preproc_warn_flag
12096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12103 if test -z "$ac_cpp_err"; then
12104 ac_header_preproc=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_header_preproc=no
12112 rm -f conftest.err conftest.$ac_ext
12113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12114 echo "${ECHO_T}$ac_header_preproc" >&6; }
12116 # So? What about this header?
12117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12123 ac_header_preproc=yes
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12139 ## ------------------------------------ ##
12140 ## Report this to http://llvm.org/bugs/ ##
12141 ## ------------------------------------ ##
12143 ) | sed "s/^/$as_me: WARNING: /" >&2
12146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 eval "$as_ac_Header=\$ac_header_preproc"
12153 ac_res=`eval echo '${'$as_ac_Header'}'`
12154 { echo "$as_me:$LINENO: result: $ac_res" >&5
12155 echo "${ECHO_T}$ac_res" >&6; }
12158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12159 cat >>confdefs.h <<_ACEOF
12160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12168 for ac_header in valgrind/valgrind.h
12170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 ac_res=`eval echo '${'$as_ac_Header'}'`
12178 { echo "$as_me:$LINENO: result: $ac_res" >&5
12179 echo "${ECHO_T}$ac_res" >&6; }
12181 # Is the header compilable?
12182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12184 cat >conftest.$ac_ext <<_ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190 $ac_includes_default
12191 #include <$ac_header>
12193 rm -f conftest.$ac_objext
12194 if { (ac_try="$ac_compile"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_compile") 2>conftest.er1
12202 grep -v '^ *+' conftest.er1 >conftest.err
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208 { (case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_try") 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest.$ac_objext'
12218 { (case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_try") 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_header_compiler=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_header_compiler=no
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12237 echo "${ECHO_T}$ac_header_compiler" >&6; }
12239 # Is the header present?
12240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12242 cat >conftest.$ac_ext <<_ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h. */
12248 #include <$ac_header>
12250 if { (ac_try="$ac_cpp conftest.$ac_ext"
12251 case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12258 grep -v '^ *+' conftest.er1 >conftest.err
12260 cat conftest.err >&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } >/dev/null; then
12263 if test -s conftest.err; then
12264 ac_cpp_err=$ac_c_preproc_warn_flag
12265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12272 if test -z "$ac_cpp_err"; then
12273 ac_header_preproc=yes
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ac_header_preproc=no
12281 rm -f conftest.err conftest.$ac_ext
12282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12283 echo "${ECHO_T}$ac_header_preproc" >&6; }
12285 # So? What about this header?
12286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12292 ac_header_preproc=yes
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12308 ## ------------------------------------ ##
12309 ## Report this to http://llvm.org/bugs/ ##
12310 ## ------------------------------------ ##
12312 ) | sed "s/^/$as_me: WARNING: /" >&2
12315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 eval "$as_ac_Header=\$ac_header_preproc"
12322 ac_res=`eval echo '${'$as_ac_Header'}'`
12323 { echo "$as_me:$LINENO: result: $ac_res" >&5
12324 echo "${ECHO_T}$ac_res" >&6; }
12327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12328 cat >>confdefs.h <<_ACEOF
12329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12337 for ac_header in fenv.h
12339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 ac_res=`eval echo '${'$as_ac_Header'}'`
12347 { echo "$as_me:$LINENO: result: $ac_res" >&5
12348 echo "${ECHO_T}$ac_res" >&6; }
12350 # Is the header compilable?
12351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12353 cat >conftest.$ac_ext <<_ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 $ac_includes_default
12360 #include <$ac_header>
12362 rm -f conftest.$ac_objext
12363 if { (ac_try="$ac_compile"
12364 case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_compile") 2>conftest.er1
12371 grep -v '^ *+' conftest.er1 >conftest.err
12373 cat conftest.err >&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; } &&
12386 { ac_try='test -s conftest.$ac_objext'
12387 { (case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_try") 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_header_compiler=yes
12398 echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12401 ac_header_compiler=no
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12406 echo "${ECHO_T}$ac_header_compiler" >&6; }
12408 # Is the header present?
12409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <$ac_header>
12419 if { (ac_try="$ac_cpp conftest.$ac_ext"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12427 grep -v '^ *+' conftest.er1 >conftest.err
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } >/dev/null; then
12432 if test -s conftest.err; then
12433 ac_cpp_err=$ac_c_preproc_warn_flag
12434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12441 if test -z "$ac_cpp_err"; then
12442 ac_header_preproc=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_header_preproc=no
12450 rm -f conftest.err conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12452 echo "${ECHO_T}$ac_header_preproc" >&6; }
12454 # So? What about this header?
12455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12461 ac_header_preproc=yes
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12477 ## ------------------------------------ ##
12478 ## Report this to http://llvm.org/bugs/ ##
12479 ## ------------------------------------ ##
12481 ) | sed "s/^/$as_me: WARNING: /" >&2
12484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 eval "$as_ac_Header=\$ac_header_preproc"
12491 ac_res=`eval echo '${'$as_ac_Header'}'`
12492 { echo "$as_me:$LINENO: result: $ac_res" >&5
12493 echo "${ECHO_T}$ac_res" >&6; }
12496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12497 cat >>confdefs.h <<_ACEOF
12498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12505 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12506 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12507 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 cat >conftest.$ac_ext <<_ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12521 #ifndef FE_ALL_EXCEPT
12522 char *p = (char *) FE_ALL_EXCEPT;
12530 rm -f conftest.$ac_objext
12531 if { (ac_try="$ac_compile"
12532 case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_compile") 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12545 { (case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_try") 2>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest.$ac_objext'
12555 { (case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_try") 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_have_decl_FE_ALL_EXCEPT=no
12572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12575 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12576 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12578 cat >>confdefs.h <<_ACEOF
12579 #define HAVE_DECL_FE_ALL_EXCEPT 1
12584 cat >>confdefs.h <<_ACEOF
12585 #define HAVE_DECL_FE_ALL_EXCEPT 0
12590 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12591 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12592 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12607 char *p = (char *) FE_INEXACT;
12615 rm -f conftest.$ac_objext
12616 if { (ac_try="$ac_compile"
12617 case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_compile") 2>conftest.er1
12624 grep -v '^ *+' conftest.er1 >conftest.err
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12630 { (case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_try") 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest.$ac_objext'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
12649 ac_cv_have_decl_FE_INEXACT=yes
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12654 ac_cv_have_decl_FE_INEXACT=no
12657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12660 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12661 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12663 cat >>confdefs.h <<_ACEOF
12664 #define HAVE_DECL_FE_INEXACT 1
12669 cat >>confdefs.h <<_ACEOF
12670 #define HAVE_DECL_FE_INEXACT 0
12677 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12679 for ac_header in pthread.h
12681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 ac_res=`eval echo '${'$as_ac_Header'}'`
12689 { echo "$as_me:$LINENO: result: $ac_res" >&5
12690 echo "${ECHO_T}$ac_res" >&6; }
12692 # Is the header compilable?
12693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12695 cat >conftest.$ac_ext <<_ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 $ac_includes_default
12702 #include <$ac_header>
12704 rm -f conftest.$ac_objext
12705 if { (ac_try="$ac_compile"
12706 case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_compile") 2>conftest.er1
12713 grep -v '^ *+' conftest.er1 >conftest.err
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12719 { (case "(($ac_try" in
12720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721 *) ac_try_echo=$ac_try;;
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724 (eval "$ac_try") 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } &&
12728 { ac_try='test -s conftest.$ac_objext'
12729 { (case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_try") 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_header_compiler=yes
12740 echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12743 ac_header_compiler=no
12746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12748 echo "${ECHO_T}$ac_header_compiler" >&6; }
12750 # Is the header present?
12751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12753 cat >conftest.$ac_ext <<_ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 #include <$ac_header>
12761 if { (ac_try="$ac_cpp conftest.$ac_ext"
12762 case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12769 grep -v '^ *+' conftest.er1 >conftest.err
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } >/dev/null; then
12774 if test -s conftest.err; then
12775 ac_cpp_err=$ac_c_preproc_warn_flag
12776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12783 if test -z "$ac_cpp_err"; then
12784 ac_header_preproc=yes
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_header_preproc=no
12792 rm -f conftest.err conftest.$ac_ext
12793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12794 echo "${ECHO_T}$ac_header_preproc" >&6; }
12796 # So? What about this header?
12797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12803 ac_header_preproc=yes
12806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12819 ## ------------------------------------ ##
12820 ## Report this to http://llvm.org/bugs/ ##
12821 ## ------------------------------------ ##
12823 ) | sed "s/^/$as_me: WARNING: /" >&2
12826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 eval "$as_ac_Header=\$ac_header_preproc"
12833 ac_res=`eval echo '${'$as_ac_Header'}'`
12834 { echo "$as_me:$LINENO: result: $ac_res" >&5
12835 echo "${ECHO_T}$ac_res" >&6; }
12838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12839 cat >>confdefs.h <<_ACEOF
12840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12855 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12857 for ac_header in zlib.h
12859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 ac_res=`eval echo '${'$as_ac_Header'}'`
12867 { echo "$as_me:$LINENO: result: $ac_res" >&5
12868 echo "${ECHO_T}$ac_res" >&6; }
12870 # Is the header compilable?
12871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12873 cat >conftest.$ac_ext <<_ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 $ac_includes_default
12880 #include <$ac_header>
12882 rm -f conftest.$ac_objext
12883 if { (ac_try="$ac_compile"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_compile") 2>conftest.er1
12891 grep -v '^ *+' conftest.er1 >conftest.err
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest.$ac_objext'
12907 { (case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_try") 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_header_compiler=yes
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 ac_header_compiler=no
12924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12926 echo "${ECHO_T}$ac_header_compiler" >&6; }
12928 # Is the header present?
12929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12931 cat >conftest.$ac_ext <<_ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 #include <$ac_header>
12939 if { (ac_try="$ac_cpp conftest.$ac_ext"
12940 case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12947 grep -v '^ *+' conftest.er1 >conftest.err
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } >/dev/null; then
12952 if test -s conftest.err; then
12953 ac_cpp_err=$ac_c_preproc_warn_flag
12954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12961 if test -z "$ac_cpp_err"; then
12962 ac_header_preproc=yes
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12967 ac_header_preproc=no
12970 rm -f conftest.err conftest.$ac_ext
12971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12972 echo "${ECHO_T}$ac_header_preproc" >&6; }
12974 # So? What about this header?
12975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12981 ac_header_preproc=yes
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12997 ## ------------------------------------ ##
12998 ## Report this to http://llvm.org/bugs/ ##
12999 ## ------------------------------------ ##
13001 ) | sed "s/^/$as_me: WARNING: /" >&2
13004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 eval "$as_ac_Header=\$ac_header_preproc"
13011 ac_res=`eval echo '${'$as_ac_Header'}'`
13012 { echo "$as_me:$LINENO: result: $ac_res" >&5
13013 echo "${ECHO_T}$ac_res" >&6; }
13016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13017 cat >>confdefs.h <<_ACEOF
13018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13034 if test "$llvm_cv_enable_libffi" = "yes" ; then
13037 for ac_header in ffi.h ffi/ffi.h
13039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 ac_res=`eval echo '${'$as_ac_Header'}'`
13047 { echo "$as_me:$LINENO: result: $ac_res" >&5
13048 echo "${ECHO_T}$ac_res" >&6; }
13050 # Is the header compilable?
13051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13053 cat >conftest.$ac_ext <<_ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h. */
13059 $ac_includes_default
13060 #include <$ac_header>
13062 rm -f conftest.$ac_objext
13063 if { (ac_try="$ac_compile"
13064 case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_compile") 2>conftest.er1
13071 grep -v '^ *+' conftest.er1 >conftest.err
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077 { (case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_try") 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest.$ac_objext'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }; then
13096 ac_header_compiler=yes
13098 echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13101 ac_header_compiler=no
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13106 echo "${ECHO_T}$ac_header_compiler" >&6; }
13108 # Is the header present?
13109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13111 cat >conftest.$ac_ext <<_ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13117 #include <$ac_header>
13119 if { (ac_try="$ac_cpp conftest.$ac_ext"
13120 case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13127 grep -v '^ *+' conftest.er1 >conftest.err
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } >/dev/null; then
13132 if test -s conftest.err; then
13133 ac_cpp_err=$ac_c_preproc_warn_flag
13134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13141 if test -z "$ac_cpp_err"; then
13142 ac_header_preproc=yes
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 ac_header_preproc=no
13150 rm -f conftest.err conftest.$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13152 echo "${ECHO_T}$ac_header_preproc" >&6; }
13154 # So? What about this header?
13155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13161 ac_header_preproc=yes
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13177 ## ------------------------------------ ##
13178 ## Report this to http://llvm.org/bugs/ ##
13179 ## ------------------------------------ ##
13181 ) | sed "s/^/$as_me: WARNING: /" >&2
13184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 eval "$as_ac_Header=\$ac_header_preproc"
13191 ac_res=`eval echo '${'$as_ac_Header'}'`
13192 { echo "$as_me:$LINENO: result: $ac_res" >&5
13193 echo "${ECHO_T}$ac_res" >&6; }
13196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13197 cat >>confdefs.h <<_ACEOF
13198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13208 for ac_header in CrashReporterClient.h
13210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 ac_res=`eval echo '${'$as_ac_Header'}'`
13218 { echo "$as_me:$LINENO: result: $ac_res" >&5
13219 echo "${ECHO_T}$ac_res" >&6; }
13221 # Is the header compilable?
13222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13224 cat >conftest.$ac_ext <<_ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 $ac_includes_default
13231 #include <$ac_header>
13233 rm -f conftest.$ac_objext
13234 if { (ac_try="$ac_compile"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_compile") 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_try") 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_header_compiler=yes
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_header_compiler=no
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13277 echo "${ECHO_T}$ac_header_compiler" >&6; }
13279 # Is the header present?
13280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13282 cat >conftest.$ac_ext <<_ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h. */
13288 #include <$ac_header>
13290 if { (ac_try="$ac_cpp conftest.$ac_ext"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13298 grep -v '^ *+' conftest.er1 >conftest.err
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } >/dev/null; then
13303 if test -s conftest.err; then
13304 ac_cpp_err=$ac_c_preproc_warn_flag
13305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13312 if test -z "$ac_cpp_err"; then
13313 ac_header_preproc=yes
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 ac_header_preproc=no
13321 rm -f conftest.err conftest.$ac_ext
13322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13323 echo "${ECHO_T}$ac_header_preproc" >&6; }
13325 # So? What about this header?
13326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13332 ac_header_preproc=yes
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13348 ## ------------------------------------ ##
13349 ## Report this to http://llvm.org/bugs/ ##
13350 ## ------------------------------------ ##
13352 ) | sed "s/^/$as_me: WARNING: /" >&2
13355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 eval "$as_ac_Header=\$ac_header_preproc"
13362 ac_res=`eval echo '${'$as_ac_Header'}'`
13363 { echo "$as_me:$LINENO: result: $ac_res" >&5
13364 echo "${ECHO_T}$ac_res" >&6; }
13367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13368 cat >>confdefs.h <<_ACEOF
13369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13377 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13378 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13379 cat >conftest.$ac_ext <<_ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13387 extern const char *__crashreporter_info__;
13389 __crashreporter_info__ = "test";
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (ac_try="$ac_link"
13397 case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_link") 2>conftest.er1
13404 grep -v '^ *+' conftest.er1 >conftest.err
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest$ac_exeext'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13430 { echo "$as_me:$LINENO: result: yes" >&5
13431 echo "${ECHO_T}yes" >&6; }
13433 cat >>confdefs.h <<\_ACEOF
13434 #define HAVE_CRASHREPORTER_INFO 1
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13443 { echo "$as_me:$LINENO: result: no" >&5
13444 echo "${ECHO_T}no" >&6; }
13446 cat >>confdefs.h <<\_ACEOF
13447 #define HAVE_CRASHREPORTER_INFO 0
13453 rm -f core conftest.err conftest.$ac_objext \
13454 conftest$ac_exeext conftest.$ac_ext
13458 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13459 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13460 if test "${ac_cv_huge_val_sanity+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 ac_cpp='$CXXCPP $CPPFLAGS'
13466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13470 ac_save_CXXFLAGS=$CXXFLAGS
13471 CXXFLAGS="$CXXFLAGS -pedantic"
13472 if test "$cross_compiling" = yes; then
13473 ac_cv_huge_val_sanity=yes
13475 cat >conftest.$ac_ext <<_ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13485 double x = HUGE_VAL; return x != x;
13490 rm -f conftest$ac_exeext
13491 if { (ac_try="$ac_link"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_link") 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_huge_val_sanity=yes
13512 echo "$as_me: program exited with status $ac_status" >&5
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13516 ( exit $ac_status )
13517 ac_cv_huge_val_sanity=no
13519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13523 CXXFLAGS=$ac_save_CXXFLAGS
13525 ac_cpp='$CPP $CPPFLAGS'
13526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13532 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13533 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13534 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13537 { echo "$as_me:$LINENO: checking for pid_t" >&5
13538 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13539 if test "${ac_cv_type_pid_t+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 cat >conftest.$ac_ext <<_ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h. */
13548 $ac_includes_default
13549 typedef pid_t ac__type_new_;
13553 if ((ac__type_new_ *) 0)
13555 if (sizeof (ac__type_new_))
13561 rm -f conftest.$ac_objext
13562 if { (ac_try="$ac_compile"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_compile") 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576 { (case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_try") 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest.$ac_objext'
13586 { (case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_try") 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_type_pid_t=yes
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 ac_cv_type_pid_t=no
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13606 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13607 if test $ac_cv_type_pid_t = yes; then
13611 cat >>confdefs.h <<_ACEOF
13617 { echo "$as_me:$LINENO: checking for size_t" >&5
13618 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13619 if test "${ac_cv_type_size_t+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 cat >conftest.$ac_ext <<_ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13628 $ac_includes_default
13629 typedef size_t ac__type_new_;
13633 if ((ac__type_new_ *) 0)
13635 if (sizeof (ac__type_new_))
13641 rm -f conftest.$ac_objext
13642 if { (ac_try="$ac_compile"
13643 case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_compile") 2>conftest.er1
13650 grep -v '^ *+' conftest.er1 >conftest.err
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13656 { (case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_try") 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; } &&
13665 { ac_try='test -s conftest.$ac_objext'
13666 { (case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_try") 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
13675 ac_cv_type_size_t=yes
13677 echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13680 ac_cv_type_size_t=no
13683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13686 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13687 if test $ac_cv_type_size_t = yes; then
13691 cat >>confdefs.h <<_ACEOF
13692 #define size_t unsigned int
13698 cat >>confdefs.h <<_ACEOF
13699 #define RETSIGTYPE void
13702 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13703 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13704 if test "${ac_cv_struct_tm+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 cat >conftest.$ac_ext <<_ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include <sys/types.h>
13719 struct tm *tp; tp->tm_sec;
13724 rm -f conftest.$ac_objext
13725 if { (ac_try="$ac_compile"
13726 case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_compile") 2>conftest.er1
13733 grep -v '^ *+' conftest.er1 >conftest.err
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } &&
13738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13739 { (case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_try") 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; } &&
13748 { ac_try='test -s conftest.$ac_objext'
13749 { (case "(($ac_try" in
13750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751 *) ac_try_echo=$ac_try;;
13753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13754 (eval "$ac_try") 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_cv_struct_tm=time.h
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_cv_struct_tm=sys/time.h
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13769 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13770 if test $ac_cv_struct_tm = sys/time.h; then
13772 cat >>confdefs.h <<\_ACEOF
13773 #define TM_IN_SYS_TIME 1
13778 { echo "$as_me:$LINENO: checking for int64_t" >&5
13779 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13780 if test "${ac_cv_type_int64_t+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 cat >conftest.$ac_ext <<_ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 $ac_includes_default
13790 typedef int64_t ac__type_new_;
13794 if ((ac__type_new_ *) 0)
13796 if (sizeof (ac__type_new_))
13802 rm -f conftest.$ac_objext
13803 if { (ac_try="$ac_compile"
13804 case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_compile") 2>conftest.er1
13811 grep -v '^ *+' conftest.er1 >conftest.err
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817 { (case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_type_int64_t=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_type_int64_t=no
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13847 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13848 if test $ac_cv_type_int64_t = yes; then
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_INT64_T 1
13856 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13857 echo "$as_me: error: Type int64_t required but not found" >&2;}
13858 { (exit 1); exit 1; }; }
13861 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13862 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13863 if test "${ac_cv_type_uint64_t+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 cat >conftest.$ac_ext <<_ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 $ac_includes_default
13873 typedef uint64_t ac__type_new_;
13877 if ((ac__type_new_ *) 0)
13879 if (sizeof (ac__type_new_))
13885 rm -f conftest.$ac_objext
13886 if { (ac_try="$ac_compile"
13887 case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_compile") 2>conftest.er1
13894 grep -v '^ *+' conftest.er1 >conftest.err
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_try") 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_cv_type_uint64_t=yes
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924 ac_cv_type_uint64_t=no
13927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13929 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13930 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13931 if test $ac_cv_type_uint64_t = yes; then
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_UINT64_T 1
13939 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13940 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13941 if test "${ac_cv_type_u_int64_t+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 cat >conftest.$ac_ext <<_ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 $ac_includes_default
13951 typedef u_int64_t ac__type_new_;
13955 if ((ac__type_new_ *) 0)
13957 if (sizeof (ac__type_new_))
13963 rm -f conftest.$ac_objext
13964 if { (ac_try="$ac_compile"
13965 case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13972 grep -v '^ *+' conftest.er1 >conftest.err
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13978 { (case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_try") 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; } &&
13987 { ac_try='test -s conftest.$ac_objext'
13988 { (case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_try") 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13997 ac_cv_type_u_int64_t=yes
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14002 ac_cv_type_u_int64_t=no
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14008 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14009 if test $ac_cv_type_u_int64_t = yes; then
14011 cat >>confdefs.h <<_ACEOF
14012 #define HAVE_U_INT64_T 1
14017 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14018 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14019 { (exit 1); exit 1; }; }
14028 for ac_func in backtrace getcwd
14030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 cat >conftest.$ac_ext <<_ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14044 #define $ac_func innocuous_$ac_func
14046 /* System header to define __stub macros and hopefully few prototypes,
14047 which can conflict with char $ac_func (); below.
14048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14049 <limits.h> exists even on freestanding compilers. */
14052 # include <limits.h>
14054 # include <assert.h>
14059 /* Override any GCC internal prototype to avoid an error.
14060 Use char because int might match the return type of a GCC
14061 builtin and then its argument prototype would still apply. */
14066 /* The GNU C library defines this for functions which it implements
14067 to always fail with ENOSYS. Some functions are actually named
14068 something starting with __ and the normal name is an alias. */
14069 #if defined __stub_$ac_func || defined __stub___$ac_func
14076 return $ac_func ();
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_link") 2>conftest.er1
14090 grep -v '^ *+' conftest.er1 >conftest.err
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
14106 { (case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_try") 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 eval "$as_ac_var=yes"
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 eval "$as_ac_var=no"
14123 rm -f core conftest.err conftest.$ac_objext \
14124 conftest$ac_exeext conftest.$ac_ext
14126 ac_res=`eval echo '${'$as_ac_var'}'`
14127 { echo "$as_me:$LINENO: result: $ac_res" >&5
14128 echo "${ECHO_T}$ac_res" >&6; }
14129 if test `eval echo '${'$as_ac_var'}'` = yes; then
14130 cat >>confdefs.h <<_ACEOF
14131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14142 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14150 cat >conftest.$ac_ext <<_ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14158 #define $ac_func innocuous_$ac_func
14160 /* System header to define __stub macros and hopefully few prototypes,
14161 which can conflict with char $ac_func (); below.
14162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14163 <limits.h> exists even on freestanding compilers. */
14166 # include <limits.h>
14168 # include <assert.h>
14173 /* Override any GCC internal prototype to avoid an error.
14174 Use char because int might match the return type of a GCC
14175 builtin and then its argument prototype would still apply. */
14180 /* The GNU C library defines this for functions which it implements
14181 to always fail with ENOSYS. Some functions are actually named
14182 something starting with __ and the normal name is an alias. */
14183 #if defined __stub_$ac_func || defined __stub___$ac_func
14190 return $ac_func ();
14195 rm -f conftest.$ac_objext conftest$ac_exeext
14196 if { (ac_try="$ac_link"
14197 case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_link") 2>conftest.er1
14204 grep -v '^ *+' conftest.er1 >conftest.err
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
14209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14210 { (case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_try") 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest$ac_exeext'
14220 { (case "(($ac_try" in
14221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225 (eval "$ac_try") 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14229 eval "$as_ac_var=yes"
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14234 eval "$as_ac_var=no"
14237 rm -f core conftest.err conftest.$ac_objext \
14238 conftest$ac_exeext conftest.$ac_ext
14240 ac_res=`eval echo '${'$as_ac_var'}'`
14241 { echo "$as_me:$LINENO: result: $ac_res" >&5
14242 echo "${ECHO_T}$ac_res" >&6; }
14243 if test `eval echo '${'$as_ac_var'}'` = yes; then
14244 cat >>confdefs.h <<_ACEOF
14245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14254 for ac_func in isatty mkdtemp mkstemp
14256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 cat >conftest.$ac_ext <<_ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14270 #define $ac_func innocuous_$ac_func
14272 /* System header to define __stub macros and hopefully few prototypes,
14273 which can conflict with char $ac_func (); below.
14274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14275 <limits.h> exists even on freestanding compilers. */
14278 # include <limits.h>
14280 # include <assert.h>
14285 /* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply. */
14292 /* The GNU C library defines this for functions which it implements
14293 to always fail with ENOSYS. Some functions are actually named
14294 something starting with __ and the normal name is an alias. */
14295 #if defined __stub_$ac_func || defined __stub___$ac_func
14302 return $ac_func ();
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (ac_try="$ac_link"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_link") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322 { (case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_try") 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest$ac_exeext'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 eval "$as_ac_var=yes"
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 eval "$as_ac_var=no"
14349 rm -f core conftest.err conftest.$ac_objext \
14350 conftest$ac_exeext conftest.$ac_ext
14352 ac_res=`eval echo '${'$as_ac_var'}'`
14353 { echo "$as_me:$LINENO: result: $ac_res" >&5
14354 echo "${ECHO_T}$ac_res" >&6; }
14355 if test `eval echo '${'$as_ac_var'}'` = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14369 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 cat >conftest.$ac_ext <<_ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14385 #define $ac_func innocuous_$ac_func
14387 /* System header to define __stub macros and hopefully few prototypes,
14388 which can conflict with char $ac_func (); below.
14389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14390 <limits.h> exists even on freestanding compilers. */
14393 # include <limits.h>
14395 # include <assert.h>
14400 /* Override any GCC internal prototype to avoid an error.
14401 Use char because int might match the return type of a GCC
14402 builtin and then its argument prototype would still apply. */
14407 /* The GNU C library defines this for functions which it implements
14408 to always fail with ENOSYS. Some functions are actually named
14409 something starting with __ and the normal name is an alias. */
14410 #if defined __stub_$ac_func || defined __stub___$ac_func
14417 return $ac_func ();
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (ac_try="$ac_link"
14424 case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 (eval "$ac_link") 2>conftest.er1
14431 grep -v '^ *+' conftest.er1 >conftest.err
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14437 { (case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_try") 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; } &&
14446 { ac_try='test -s conftest$ac_exeext'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 eval "$as_ac_var=yes"
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 eval "$as_ac_var=no"
14464 rm -f core conftest.err conftest.$ac_objext \
14465 conftest$ac_exeext conftest.$ac_ext
14467 ac_res=`eval echo '${'$as_ac_var'}'`
14468 { echo "$as_me:$LINENO: result: $ac_res" >&5
14469 echo "${ECHO_T}$ac_res" >&6; }
14470 if test `eval echo '${'$as_ac_var'}'` = yes; then
14471 cat >>confdefs.h <<_ACEOF
14472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14481 for ac_func in strerror strerror_r setenv
14483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 cat >conftest.$ac_ext <<_ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14497 #define $ac_func innocuous_$ac_func
14499 /* System header to define __stub macros and hopefully few prototypes,
14500 which can conflict with char $ac_func (); below.
14501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14502 <limits.h> exists even on freestanding compilers. */
14505 # include <limits.h>
14507 # include <assert.h>
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14519 /* The GNU C library defines this for functions which it implements
14520 to always fail with ENOSYS. Some functions are actually named
14521 something starting with __ and the normal name is an alias. */
14522 #if defined __stub_$ac_func || defined __stub___$ac_func
14529 return $ac_func ();
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (ac_try="$ac_link"
14536 case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_link") 2>conftest.er1
14543 grep -v '^ *+' conftest.er1 >conftest.err
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14549 { (case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_try") 2>&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; } &&
14558 { ac_try='test -s conftest$ac_exeext'
14559 { (case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_try") 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 eval "$as_ac_var=yes"
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 eval "$as_ac_var=no"
14576 rm -f core conftest.err conftest.$ac_objext \
14577 conftest$ac_exeext conftest.$ac_ext
14579 ac_res=`eval echo '${'$as_ac_var'}'`
14580 { echo "$as_me:$LINENO: result: $ac_res" >&5
14581 echo "${ECHO_T}$ac_res" >&6; }
14582 if test `eval echo '${'$as_ac_var'}'` = yes; then
14583 cat >>confdefs.h <<_ACEOF
14584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14594 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 cat >conftest.$ac_ext <<_ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14610 #define $ac_func innocuous_$ac_func
14612 /* System header to define __stub macros and hopefully few prototypes,
14613 which can conflict with char $ac_func (); below.
14614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14615 <limits.h> exists even on freestanding compilers. */
14618 # include <limits.h>
14620 # include <assert.h>
14625 /* Override any GCC internal prototype to avoid an error.
14626 Use char because int might match the return type of a GCC
14627 builtin and then its argument prototype would still apply. */
14632 /* The GNU C library defines this for functions which it implements
14633 to always fail with ENOSYS. Some functions are actually named
14634 something starting with __ and the normal name is an alias. */
14635 #if defined __stub_$ac_func || defined __stub___$ac_func
14642 return $ac_func ();
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (ac_try="$ac_link"
14649 case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_link") 2>conftest.er1
14656 grep -v '^ *+' conftest.er1 >conftest.err
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14662 { (case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667 (eval "$ac_try") 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; } &&
14671 { ac_try='test -s conftest$ac_exeext'
14672 { (case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_try") 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 eval "$as_ac_var=yes"
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14686 eval "$as_ac_var=no"
14689 rm -f core conftest.err conftest.$ac_objext \
14690 conftest$ac_exeext conftest.$ac_ext
14692 ac_res=`eval echo '${'$as_ac_var'}'`
14693 { echo "$as_me:$LINENO: result: $ac_res" >&5
14694 echo "${ECHO_T}$ac_res" >&6; }
14695 if test `eval echo '${'$as_ac_var'}'` = yes; then
14696 cat >>confdefs.h <<_ACEOF
14697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14708 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 cat >conftest.$ac_ext <<_ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14724 #define $ac_func innocuous_$ac_func
14726 /* System header to define __stub macros and hopefully few prototypes,
14727 which can conflict with char $ac_func (); below.
14728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14729 <limits.h> exists even on freestanding compilers. */
14732 # include <limits.h>
14734 # include <assert.h>
14739 /* Override any GCC internal prototype to avoid an error.
14740 Use char because int might match the return type of a GCC
14741 builtin and then its argument prototype would still apply. */
14746 /* The GNU C library defines this for functions which it implements
14747 to always fail with ENOSYS. Some functions are actually named
14748 something starting with __ and the normal name is an alias. */
14749 #if defined __stub_$ac_func || defined __stub___$ac_func
14756 return $ac_func ();
14761 rm -f conftest.$ac_objext conftest$ac_exeext
14762 if { (ac_try="$ac_link"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_link") 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14776 { (case "(($ac_try" in
14777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778 *) ac_try_echo=$ac_try;;
14780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781 (eval "$ac_try") 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; } &&
14785 { ac_try='test -s conftest$ac_exeext'
14786 { (case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_try") 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 eval "$as_ac_var=yes"
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 eval "$as_ac_var=no"
14803 rm -f core conftest.err conftest.$ac_objext \
14804 conftest$ac_exeext conftest.$ac_ext
14806 ac_res=`eval echo '${'$as_ac_var'}'`
14807 { echo "$as_me:$LINENO: result: $ac_res" >&5
14808 echo "${ECHO_T}$ac_res" >&6; }
14809 if test `eval echo '${'$as_ac_var'}'` = yes; then
14810 cat >>confdefs.h <<_ACEOF
14811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14819 for ac_func in futimes futimens
14821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 cat >conftest.$ac_ext <<_ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14835 #define $ac_func innocuous_$ac_func
14837 /* System header to define __stub macros and hopefully few prototypes,
14838 which can conflict with char $ac_func (); below.
14839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14840 <limits.h> exists even on freestanding compilers. */
14843 # include <limits.h>
14845 # include <assert.h>
14850 /* Override any GCC internal prototype to avoid an error.
14851 Use char because int might match the return type of a GCC
14852 builtin and then its argument prototype would still apply. */
14857 /* The GNU C library defines this for functions which it implements
14858 to always fail with ENOSYS. Some functions are actually named
14859 something starting with __ and the normal name is an alias. */
14860 #if defined __stub_$ac_func || defined __stub___$ac_func
14867 return $ac_func ();
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (ac_try="$ac_link"
14874 case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_link") 2>conftest.er1
14881 grep -v '^ *+' conftest.er1 >conftest.err
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest$ac_exeext'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 eval "$as_ac_var=yes"
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911 eval "$as_ac_var=no"
14914 rm -f core conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14917 ac_res=`eval echo '${'$as_ac_var'}'`
14918 { echo "$as_me:$LINENO: result: $ac_res" >&5
14919 echo "${ECHO_T}$ac_res" >&6; }
14920 if test `eval echo '${'$as_ac_var'}'` = yes; then
14921 cat >>confdefs.h <<_ACEOF
14922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14928 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14929 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14930 if test "${llvm_cv_c_printf_a+set}" = set; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 ac_cpp='$CPP $CPPFLAGS'
14935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14939 if test "$cross_compiling" = yes; then
14940 llvmac_cv_c_printf_a=no
14942 cat >conftest.$ac_ext <<_ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14951 #include <stdlib.h>
14957 volatile double A, B;
14961 sprintf(Buffer, "%a", A);
14965 if (A != 0x1.999999999999ap-4)
14972 rm -f conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 llvm_cv_c_printf_a=yes
14994 echo "$as_me: program exited with status $ac_status" >&5
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14998 ( exit $ac_status )
14999 llvmac_cv_c_printf_a=no
15001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15006 ac_cpp='$CPP $CPPFLAGS'
15007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15012 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15013 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15014 if test "$llvm_cv_c_printf_a" = "yes"; then
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_PRINTF_A 1
15024 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15025 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15026 if test "${ac_cv_func_rand48+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 ac_cpp='$CXXCPP $CPPFLAGS'
15032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15036 cat >conftest.$ac_ext <<_ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 #include <stdlib.h>
15046 srand48(0);lrand48();drand48();
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_compile") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15066 { (case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071 (eval "$ac_try") 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_try") 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 ac_cv_func_rand48=yes
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_cv_func_rand48=no
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 ac_cpp='$CPP $CPPFLAGS'
15096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15102 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15103 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15105 if test "$ac_cv_func_rand48" = "yes" ; then
15107 cat >>confdefs.h <<\_ACEOF
15108 #define HAVE_RAND48 1
15114 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15115 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15116 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 cat >conftest.$ac_ext <<_ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 $ac_includes_default
15130 char *p = (char *) arc4random;
15138 rm -f conftest.$ac_objext
15139 if { (ac_try="$ac_compile"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_compile") 2>conftest.er1
15147 grep -v '^ *+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15153 { (case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_try") 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; } &&
15162 { ac_try='test -s conftest.$ac_objext'
15163 { (case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_try") 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 ac_cv_have_decl_arc4random=yes
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_have_decl_arc4random=no
15180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15182 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15183 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15184 if test $ac_cv_have_decl_arc4random = yes; then
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_DECL_ARC4RANDOM 1
15192 cat >>confdefs.h <<_ACEOF
15193 #define HAVE_DECL_ARC4RANDOM 0
15201 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15202 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15203 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 cat >conftest.$ac_ext <<_ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 $ac_includes_default
15217 char *p = (char *) strerror_s;
15225 rm -f conftest.$ac_objext
15226 if { (ac_try="$ac_compile"
15227 case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_compile") 2>conftest.er1
15234 grep -v '^ *+' conftest.er1 >conftest.err
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15240 { (case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_try") 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest.$ac_objext'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_have_decl_strerror_s=yes
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 ac_cv_have_decl_strerror_s=no
15267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15269 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15270 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15271 if test $ac_cv_have_decl_strerror_s = yes; then
15273 cat >>confdefs.h <<_ACEOF
15274 #define HAVE_DECL_STRERROR_S 1
15279 cat >>confdefs.h <<_ACEOF
15280 #define HAVE_DECL_STRERROR_S 0
15288 if test "$llvm_cv_os_type" = "MingW" ; then
15289 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15290 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15291 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 ac_check_lib_save_LIBS=$LIBS
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15303 /* Override any GCC internal prototype to avoid an error.
15304 Use char because int might match the return type of a GCC
15305 builtin and then its argument prototype would still apply. */
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (ac_try="$ac_link"
15320 case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_link") 2>conftest.er1
15327 grep -v '^ *+' conftest.er1 >conftest.err
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15333 { (case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_try") 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest$ac_exeext'
15343 { (case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_try") 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352 ac_cv_lib_gcc__alloca=yes
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 ac_cv_lib_gcc__alloca=no
15360 rm -f core conftest.err conftest.$ac_objext \
15361 conftest$ac_exeext conftest.$ac_ext
15362 LIBS=$ac_check_lib_save_LIBS
15364 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15365 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15366 if test $ac_cv_lib_gcc__alloca = yes; then
15368 cat >>confdefs.h <<\_ACEOF
15369 #define HAVE__ALLOCA 1
15374 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15375 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15376 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 ac_check_lib_save_LIBS=$LIBS
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15388 /* Override any GCC internal prototype to avoid an error.
15389 Use char because int might match the return type of a GCC
15390 builtin and then its argument prototype would still apply. */
15398 return __alloca ();
15403 rm -f conftest.$ac_objext conftest$ac_exeext
15404 if { (ac_try="$ac_link"
15405 case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_link") 2>conftest.er1
15412 grep -v '^ *+' conftest.er1 >conftest.err
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
15417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15418 { (case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_try") 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; } &&
15427 { ac_try='test -s conftest$ac_exeext'
15428 { (case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_try") 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_lib_gcc___alloca=yes
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15442 ac_cv_lib_gcc___alloca=no
15445 rm -f core conftest.err conftest.$ac_objext \
15446 conftest$ac_exeext conftest.$ac_ext
15447 LIBS=$ac_check_lib_save_LIBS
15449 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15450 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15451 if test $ac_cv_lib_gcc___alloca = yes; then
15453 cat >>confdefs.h <<\_ACEOF
15454 #define HAVE___ALLOCA 1
15459 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15460 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15461 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 ac_check_lib_save_LIBS=$LIBS
15466 cat >conftest.$ac_ext <<_ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15473 /* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15483 return __chkstk ();
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (ac_try="$ac_link"
15490 case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_link") 2>conftest.er1
15497 grep -v '^ *+' conftest.er1 >conftest.err
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15503 { (case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508 (eval "$ac_try") 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest$ac_exeext'
15513 { (case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_try") 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_cv_lib_gcc___chkstk=yes
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ac_cv_lib_gcc___chkstk=no
15530 rm -f core conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15532 LIBS=$ac_check_lib_save_LIBS
15534 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15535 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15536 if test $ac_cv_lib_gcc___chkstk = yes; then
15538 cat >>confdefs.h <<\_ACEOF
15539 #define HAVE___CHKSTK 1
15544 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15545 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15546 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 ac_check_lib_save_LIBS=$LIBS
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15558 /* Override any GCC internal prototype to avoid an error.
15559 Use char because int might match the return type of a GCC
15560 builtin and then its argument prototype would still apply. */
15564 char __chkstk_ms ();
15568 return __chkstk_ms ();
15573 rm -f conftest.$ac_objext conftest$ac_exeext
15574 if { (ac_try="$ac_link"
15575 case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_link") 2>conftest.er1
15582 grep -v '^ *+' conftest.er1 >conftest.err
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } &&
15587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15588 { (case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_try") 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; } &&
15597 { ac_try='test -s conftest$ac_exeext'
15598 { (case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_try") 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 ac_cv_lib_gcc___chkstk_ms=yes
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15612 ac_cv_lib_gcc___chkstk_ms=no
15615 rm -f core conftest.err conftest.$ac_objext \
15616 conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15619 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15620 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15621 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15623 cat >>confdefs.h <<\_ACEOF
15624 #define HAVE___CHKSTK_MS 1
15629 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15630 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15631 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 ac_check_lib_save_LIBS=$LIBS
15636 cat >conftest.$ac_ext <<_ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15643 /* Override any GCC internal prototype to avoid an error.
15644 Use char because int might match the return type of a GCC
15645 builtin and then its argument prototype would still apply. */
15653 return ___chkstk ();
15658 rm -f conftest.$ac_objext conftest$ac_exeext
15659 if { (ac_try="$ac_link"
15660 case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_link") 2>conftest.er1
15667 grep -v '^ *+' conftest.er1 >conftest.err
15669 cat conftest.err >&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } &&
15672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15673 { (case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678 (eval "$ac_try") 2>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; } &&
15682 { ac_try='test -s conftest$ac_exeext'
15683 { (case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_try") 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_lib_gcc____chkstk=yes
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15697 ac_cv_lib_gcc____chkstk=no
15700 rm -f core conftest.err conftest.$ac_objext \
15701 conftest$ac_exeext conftest.$ac_ext
15702 LIBS=$ac_check_lib_save_LIBS
15704 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15705 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15706 if test $ac_cv_lib_gcc____chkstk = yes; then
15708 cat >>confdefs.h <<\_ACEOF
15709 #define HAVE____CHKSTK 1
15714 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15715 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15716 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 ac_check_lib_save_LIBS=$LIBS
15721 cat >conftest.$ac_ext <<_ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15728 /* Override any GCC internal prototype to avoid an error.
15729 Use char because int might match the return type of a GCC
15730 builtin and then its argument prototype would still apply. */
15734 char ___chkstk_ms ();
15738 return ___chkstk_ms ();
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_link") 2>conftest.er1
15752 grep -v '^ *+' conftest.er1 >conftest.err
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15758 { (case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_try") 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; } &&
15767 { ac_try='test -s conftest$ac_exeext'
15768 { (case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_try") 2>&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; }; then
15777 ac_cv_lib_gcc____chkstk_ms=yes
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15782 ac_cv_lib_gcc____chkstk_ms=no
15785 rm -f core conftest.err conftest.$ac_objext \
15786 conftest$ac_exeext conftest.$ac_ext
15787 LIBS=$ac_check_lib_save_LIBS
15789 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15790 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15791 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15793 cat >>confdefs.h <<\_ACEOF
15794 #define HAVE____CHKSTK_MS 1
15800 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15801 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15802 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 ac_check_lib_save_LIBS=$LIBS
15807 cat >conftest.$ac_ext <<_ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15814 /* Override any GCC internal prototype to avoid an error.
15815 Use char because int might match the return type of a GCC
15816 builtin and then its argument prototype would still apply. */
15824 return __ashldi3 ();
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (ac_try="$ac_link"
15831 case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836 (eval "$ac_link") 2>conftest.er1
15838 grep -v '^ *+' conftest.er1 >conftest.err
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15844 { (case "(($ac_try" in
15845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15846 *) ac_try_echo=$ac_try;;
15848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15849 (eval "$ac_try") 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; } &&
15853 { ac_try='test -s conftest$ac_exeext'
15854 { (case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_try") 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 ac_cv_lib_gcc___ashldi3=yes
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_cv_lib_gcc___ashldi3=no
15871 rm -f core conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15873 LIBS=$ac_check_lib_save_LIBS
15875 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15876 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15877 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15879 cat >>confdefs.h <<\_ACEOF
15880 #define HAVE___ASHLDI3 1
15885 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15886 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15887 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 ac_check_lib_save_LIBS=$LIBS
15892 cat >conftest.$ac_ext <<_ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15899 /* Override any GCC internal prototype to avoid an error.
15900 Use char because int might match the return type of a GCC
15901 builtin and then its argument prototype would still apply. */
15909 return __ashrdi3 ();
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (ac_try="$ac_link"
15916 case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_link") 2>conftest.er1
15923 grep -v '^ *+' conftest.er1 >conftest.err
15925 cat conftest.err >&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } &&
15928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15929 { (case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_try") 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; } &&
15938 { ac_try='test -s conftest$ac_exeext'
15939 { (case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_try") 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_cv_lib_gcc___ashrdi3=yes
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15953 ac_cv_lib_gcc___ashrdi3=no
15956 rm -f core conftest.err conftest.$ac_objext \
15957 conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS
15960 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15961 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15962 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15964 cat >>confdefs.h <<\_ACEOF
15965 #define HAVE___ASHRDI3 1
15970 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15971 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15972 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15975 ac_check_lib_save_LIBS=$LIBS
15977 cat >conftest.$ac_ext <<_ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15984 /* Override any GCC internal prototype to avoid an error.
15985 Use char because int might match the return type of a GCC
15986 builtin and then its argument prototype would still apply. */
15994 return __divdi3 ();
15999 rm -f conftest.$ac_objext conftest$ac_exeext
16000 if { (ac_try="$ac_link"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_link") 2>conftest.er1
16008 grep -v '^ *+' conftest.er1 >conftest.err
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16014 { (case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_try") 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest$ac_exeext'
16024 { (case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_try") 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_cv_lib_gcc___divdi3=yes
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 ac_cv_lib_gcc___divdi3=no
16041 rm -f core conftest.err conftest.$ac_objext \
16042 conftest$ac_exeext conftest.$ac_ext
16043 LIBS=$ac_check_lib_save_LIBS
16045 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16046 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16047 if test $ac_cv_lib_gcc___divdi3 = yes; then
16049 cat >>confdefs.h <<\_ACEOF
16050 #define HAVE___DIVDI3 1
16055 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16056 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16057 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 ac_check_lib_save_LIBS=$LIBS
16062 cat >conftest.$ac_ext <<_ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16069 /* Override any GCC internal prototype to avoid an error.
16070 Use char because int might match the return type of a GCC
16071 builtin and then its argument prototype would still apply. */
16079 return __fixdfdi ();
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (ac_try="$ac_link"
16086 case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_link") 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16099 { (case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_try") 2>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest$ac_exeext'
16109 { (case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_try") 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 ac_cv_lib_gcc___fixdfdi=yes
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 ac_cv_lib_gcc___fixdfdi=no
16126 rm -f core conftest.err conftest.$ac_objext \
16127 conftest$ac_exeext conftest.$ac_ext
16128 LIBS=$ac_check_lib_save_LIBS
16130 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16131 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16132 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16134 cat >>confdefs.h <<\_ACEOF
16135 #define HAVE___FIXDFDI 1
16140 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16141 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16142 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 ac_check_lib_save_LIBS=$LIBS
16147 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16154 /* Override any GCC internal prototype to avoid an error.
16155 Use char because int might match the return type of a GCC
16156 builtin and then its argument prototype would still apply. */
16164 return __fixsfdi ();
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (ac_try="$ac_link"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_link") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16184 { (case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_try") 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest$ac_exeext'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_cv_lib_gcc___fixsfdi=yes
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_cv_lib_gcc___fixsfdi=no
16211 rm -f core conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext conftest.$ac_ext
16213 LIBS=$ac_check_lib_save_LIBS
16215 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16216 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16217 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16219 cat >>confdefs.h <<\_ACEOF
16220 #define HAVE___FIXSFDI 1
16225 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16226 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16227 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 ac_check_lib_save_LIBS=$LIBS
16232 cat >conftest.$ac_ext <<_ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16239 /* Override any GCC internal prototype to avoid an error.
16240 Use char because int might match the return type of a GCC
16241 builtin and then its argument prototype would still apply. */
16245 char __floatdidf ();
16249 return __floatdidf ();
16254 rm -f conftest.$ac_objext conftest$ac_exeext
16255 if { (ac_try="$ac_link"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_link") 2>conftest.er1
16263 grep -v '^ *+' conftest.er1 >conftest.err
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269 { (case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_try") 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest$ac_exeext'
16279 { (case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_try") 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_cv_lib_gcc___floatdidf=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_cv_lib_gcc___floatdidf=no
16296 rm -f core conftest.err conftest.$ac_objext \
16297 conftest$ac_exeext conftest.$ac_ext
16298 LIBS=$ac_check_lib_save_LIBS
16300 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16301 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16302 if test $ac_cv_lib_gcc___floatdidf = yes; then
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE___FLOATDIDF 1
16310 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16311 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16312 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 ac_check_lib_save_LIBS=$LIBS
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16324 /* Override any GCC internal prototype to avoid an error.
16325 Use char because int might match the return type of a GCC
16326 builtin and then its argument prototype would still apply. */
16334 return __lshrdi3 ();
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (ac_try="$ac_link"
16341 case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_link") 2>conftest.er1
16348 grep -v '^ *+' conftest.er1 >conftest.err
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16354 { (case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_try") 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try='test -s conftest$ac_exeext'
16364 { (case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_try") 2>&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; }; then
16373 ac_cv_lib_gcc___lshrdi3=yes
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 ac_cv_lib_gcc___lshrdi3=no
16381 rm -f core conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_check_lib_save_LIBS
16385 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16386 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16387 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE___LSHRDI3 1
16395 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16396 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16397 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 ac_check_lib_save_LIBS=$LIBS
16402 cat >conftest.$ac_ext <<_ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16409 /* Override any GCC internal prototype to avoid an error.
16410 Use char because int might match the return type of a GCC
16411 builtin and then its argument prototype would still apply. */
16419 return __moddi3 ();
16424 rm -f conftest.$ac_objext conftest$ac_exeext
16425 if { (ac_try="$ac_link"
16426 case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_link") 2>conftest.er1
16433 grep -v '^ *+' conftest.er1 >conftest.err
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } &&
16438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16439 { (case "(($ac_try" in
16440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441 *) ac_try_echo=$ac_try;;
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444 (eval "$ac_try") 2>&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); }; } &&
16448 { ac_try='test -s conftest$ac_exeext'
16449 { (case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_try") 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_cv_lib_gcc___moddi3=yes
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16463 ac_cv_lib_gcc___moddi3=no
16466 rm -f core conftest.err conftest.$ac_objext \
16467 conftest$ac_exeext conftest.$ac_ext
16468 LIBS=$ac_check_lib_save_LIBS
16470 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16471 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16472 if test $ac_cv_lib_gcc___moddi3 = yes; then
16474 cat >>confdefs.h <<\_ACEOF
16475 #define HAVE___MODDI3 1
16480 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16481 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16482 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 ac_check_lib_save_LIBS=$LIBS
16487 cat >conftest.$ac_ext <<_ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16494 /* Override any GCC internal prototype to avoid an error.
16495 Use char because int might match the return type of a GCC
16496 builtin and then its argument prototype would still apply. */
16504 return __udivdi3 ();
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (ac_try="$ac_link"
16511 case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_link") 2>conftest.er1
16518 grep -v '^ *+' conftest.er1 >conftest.err
16520 cat conftest.err >&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } &&
16523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16524 { (case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_try") 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest$ac_exeext'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_cv_lib_gcc___udivdi3=yes
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 ac_cv_lib_gcc___udivdi3=no
16551 rm -f core conftest.err conftest.$ac_objext \
16552 conftest$ac_exeext conftest.$ac_ext
16553 LIBS=$ac_check_lib_save_LIBS
16555 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16556 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16557 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE___UDIVDI3 1
16565 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16566 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16567 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 ac_check_lib_save_LIBS=$LIBS
16572 cat >conftest.$ac_ext <<_ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16579 /* Override any GCC internal prototype to avoid an error.
16580 Use char because int might match the return type of a GCC
16581 builtin and then its argument prototype would still apply. */
16589 return __umoddi3 ();
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (ac_try="$ac_link"
16596 case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_link") 2>conftest.er1
16603 grep -v '^ *+' conftest.er1 >conftest.err
16605 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16609 { (case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_try") 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest$ac_exeext'
16619 { (case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_try") 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_lib_gcc___umoddi3=yes
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 ac_cv_lib_gcc___umoddi3=no
16636 rm -f core conftest.err conftest.$ac_objext \
16637 conftest$ac_exeext conftest.$ac_ext
16638 LIBS=$ac_check_lib_save_LIBS
16640 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16641 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16642 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16644 cat >>confdefs.h <<\_ACEOF
16645 #define HAVE___UMODDI3 1
16651 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16652 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16653 if test "${ac_cv_lib_gcc___main+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 ac_check_lib_save_LIBS=$LIBS
16658 cat >conftest.$ac_ext <<_ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16665 /* Override any GCC internal prototype to avoid an error.
16666 Use char because int might match the return type of a GCC
16667 builtin and then its argument prototype would still apply. */
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (ac_try="$ac_link"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_link") 2>conftest.er1
16689 grep -v '^ *+' conftest.er1 >conftest.err
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
16694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16695 { (case "(($ac_try" in
16696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697 *) ac_try_echo=$ac_try;;
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700 (eval "$ac_try") 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest$ac_exeext'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 ac_cv_lib_gcc___main=yes
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_cv_lib_gcc___main=no
16722 rm -f core conftest.err conftest.$ac_objext \
16723 conftest$ac_exeext conftest.$ac_ext
16724 LIBS=$ac_check_lib_save_LIBS
16726 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16727 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16728 if test $ac_cv_lib_gcc___main = yes; then
16730 cat >>confdefs.h <<\_ACEOF
16731 #define HAVE___MAIN 1
16736 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16737 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16738 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 ac_check_lib_save_LIBS=$LIBS
16743 cat >conftest.$ac_ext <<_ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16750 /* Override any GCC internal prototype to avoid an error.
16751 Use char because int might match the return type of a GCC
16752 builtin and then its argument prototype would still apply. */
16760 return __cmpdi2 ();
16765 rm -f conftest.$ac_objext conftest$ac_exeext
16766 if { (ac_try="$ac_link"
16767 case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_link") 2>conftest.er1
16774 grep -v '^ *+' conftest.er1 >conftest.err
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
16779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16780 { (case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_try") 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; } &&
16789 { ac_try='test -s conftest$ac_exeext'
16790 { (case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_try") 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_cv_lib_gcc___cmpdi2=yes
16801 echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16804 ac_cv_lib_gcc___cmpdi2=no
16807 rm -f core conftest.err conftest.$ac_objext \
16808 conftest$ac_exeext conftest.$ac_ext
16809 LIBS=$ac_check_lib_save_LIBS
16811 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16812 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16813 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16815 cat >>confdefs.h <<\_ACEOF
16816 #define HAVE___CMPDI2 1
16823 if test "$llvm_cv_os_type" = "MingW" ; then
16824 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16825 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16826 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16834 #include <windows.h>
16835 #include <imagehlp.h>
16836 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16837 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16841 rm -f conftest.$ac_objext
16842 if { (ac_try="$ac_compile"
16843 case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_compile") 2>conftest.er1
16850 grep -v '^ *+' conftest.er1 >conftest.err
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16856 { (case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_try") 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest.$ac_objext'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16876 { echo "$as_me:$LINENO: result: yes" >&5
16877 echo "${ECHO_T}yes" >&6; }
16878 llvm_cv_win32_elmcb_pcstr="PCSTR"
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16885 { echo "$as_me:$LINENO: result: no" >&5
16886 echo "${ECHO_T}no" >&6; }
16887 llvm_cv_win32_elmcb_pcstr="PSTR"
16891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16893 cat >>confdefs.h <<_ACEOF
16894 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16899 if test "$llvm_cv_platform_type" = "Unix" ; then
16902 for ac_header in stdlib.h unistd.h
16904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 ac_res=`eval echo '${'$as_ac_Header'}'`
16912 { echo "$as_me:$LINENO: result: $ac_res" >&5
16913 echo "${ECHO_T}$ac_res" >&6; }
16915 # Is the header compilable?
16916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16918 cat >conftest.$ac_ext <<_ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 $ac_includes_default
16925 #include <$ac_header>
16927 rm -f conftest.$ac_objext
16928 if { (ac_try="$ac_compile"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_compile") 2>conftest.er1
16936 grep -v '^ *+' conftest.er1 >conftest.err
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
16941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16942 { (case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_try") 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
16952 { (case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_try") 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_header_compiler=yes
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 ac_header_compiler=no
16969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16971 echo "${ECHO_T}$ac_header_compiler" >&6; }
16973 # Is the header present?
16974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16976 cat >conftest.$ac_ext <<_ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 #include <$ac_header>
16984 if { (ac_try="$ac_cpp conftest.$ac_ext"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16992 grep -v '^ *+' conftest.er1 >conftest.err
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } >/dev/null; then
16997 if test -s conftest.err; then
16998 ac_cpp_err=$ac_c_preproc_warn_flag
16999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17006 if test -z "$ac_cpp_err"; then
17007 ac_header_preproc=yes
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ac_header_preproc=no
17015 rm -f conftest.err conftest.$ac_ext
17016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 echo "${ECHO_T}$ac_header_preproc" >&6; }
17019 # So? What about this header?
17020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17026 ac_header_preproc=yes
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17042 ## ------------------------------------ ##
17043 ## Report this to http://llvm.org/bugs/ ##
17044 ## ------------------------------------ ##
17046 ) | sed "s/^/$as_me: WARNING: /" >&2
17049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 eval "$as_ac_Header=\$ac_header_preproc"
17056 ac_res=`eval echo '${'$as_ac_Header'}'`
17057 { echo "$as_me:$LINENO: result: $ac_res" >&5
17058 echo "${ECHO_T}$ac_res" >&6; }
17061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17062 cat >>confdefs.h <<_ACEOF
17063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17071 for ac_func in getpagesize
17073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 cat >conftest.$ac_ext <<_ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h. */
17085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17087 #define $ac_func innocuous_$ac_func
17089 /* System header to define __stub macros and hopefully few prototypes,
17090 which can conflict with char $ac_func (); below.
17091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092 <limits.h> exists even on freestanding compilers. */
17095 # include <limits.h>
17097 # include <assert.h>
17102 /* Override any GCC internal prototype to avoid an error.
17103 Use char because int might match the return type of a GCC
17104 builtin and then its argument prototype would still apply. */
17109 /* The GNU C library defines this for functions which it implements
17110 to always fail with ENOSYS. Some functions are actually named
17111 something starting with __ and the normal name is an alias. */
17112 #if defined __stub_$ac_func || defined __stub___$ac_func
17119 return $ac_func ();
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (ac_try="$ac_link"
17126 case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_link") 2>conftest.er1
17133 grep -v '^ *+' conftest.er1 >conftest.err
17135 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
17138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17139 { (case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_try") 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest$ac_exeext'
17149 { (case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_try") 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 eval "$as_ac_var=yes"
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 eval "$as_ac_var=no"
17166 rm -f core conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17169 ac_res=`eval echo '${'$as_ac_var'}'`
17170 { echo "$as_me:$LINENO: result: $ac_res" >&5
17171 echo "${ECHO_T}$ac_res" >&6; }
17172 if test `eval echo '${'$as_ac_var'}'` = yes; then
17173 cat >>confdefs.h <<_ACEOF
17174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17180 { echo "$as_me:$LINENO: checking for working mmap" >&5
17181 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17182 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17185 if test "$cross_compiling" = yes; then
17186 ac_cv_func_mmap_fixed_mapped=no
17188 cat >conftest.$ac_ext <<_ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 $ac_includes_default
17195 /* malloc might have been renamed as rpl_malloc. */
17198 /* Thanks to Mike Haertel and Jim Avera for this test.
17199 Here is a matrix of mmap possibilities:
17200 mmap private not fixed
17201 mmap private fixed at somewhere currently unmapped
17202 mmap private fixed at somewhere already mapped
17203 mmap shared not fixed
17204 mmap shared fixed at somewhere currently unmapped
17205 mmap shared fixed at somewhere already mapped
17206 For private mappings, we should verify that changes cannot be read()
17207 back from the file, nor mmap's back from the file at a different
17208 address. (There have been systems where private was not correctly
17209 implemented like the infamous i386 svr4.0, and systems where the
17210 VM page cache was not coherent with the file system buffer cache
17211 like early versions of FreeBSD and possibly contemporary NetBSD.)
17212 For shared mappings, we should conversely verify that changes get
17213 propagated back to all the places they're supposed to be.
17215 Grep wants private fixed already mapped.
17216 The main things grep needs to know about mmap are:
17217 * does it exist and is it safe to write into the mmap'd area
17218 * how to use it (BSD variants) */
17221 #include <sys/mman.h>
17223 #if !STDC_HEADERS && !HAVE_STDLIB_H
17227 /* This mess was copied from the GNU getpagesize.h. */
17228 #if !HAVE_GETPAGESIZE
17229 /* Assume that all systems that can run configure have sys/param.h. */
17230 # if !HAVE_SYS_PARAM_H
17231 # define HAVE_SYS_PARAM_H 1
17234 # ifdef _SC_PAGESIZE
17235 # define getpagesize() sysconf(_SC_PAGESIZE)
17236 # else /* no _SC_PAGESIZE */
17237 # if HAVE_SYS_PARAM_H
17238 # include <sys/param.h>
17239 # ifdef EXEC_PAGESIZE
17240 # define getpagesize() EXEC_PAGESIZE
17241 # else /* no EXEC_PAGESIZE */
17243 # define getpagesize() NBPG * CLSIZE
17246 # endif /* no CLSIZE */
17247 # else /* no NBPG */
17249 # define getpagesize() NBPC
17250 # else /* no NBPC */
17252 # define getpagesize() PAGESIZE
17253 # endif /* PAGESIZE */
17254 # endif /* no NBPC */
17255 # endif /* no NBPG */
17256 # endif /* no EXEC_PAGESIZE */
17257 # else /* no HAVE_SYS_PARAM_H */
17258 # define getpagesize() 8192 /* punt totally */
17259 # endif /* no HAVE_SYS_PARAM_H */
17260 # endif /* no _SC_PAGESIZE */
17262 #endif /* no HAVE_GETPAGESIZE */
17267 char *data, *data2, *data3;
17271 pagesize = getpagesize ();
17273 /* First, make a file with some known garbage in it. */
17274 data = (char *) malloc (pagesize);
17277 for (i = 0; i < pagesize; ++i)
17278 *(data + i) = rand ();
17280 fd = creat ("conftest.mmap", 0600);
17283 if (write (fd, data, pagesize) != pagesize)
17287 /* Next, try to mmap the file at a fixed address which already has
17288 something else allocated at it. If we can, also make sure that
17289 we see the same garbage. */
17290 fd = open ("conftest.mmap", O_RDWR);
17293 data2 = (char *) malloc (2 * pagesize);
17296 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17297 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17298 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17300 for (i = 0; i < pagesize; ++i)
17301 if (*(data + i) != *(data2 + i))
17304 /* Finally, make sure that changes to the mapped area do not
17305 percolate back to the file as seen by read(). (This is a bug on
17306 some variants of i386 svr4.0.) */
17307 for (i = 0; i < pagesize; ++i)
17308 *(data2 + i) = *(data2 + i) + 1;
17309 data3 = (char *) malloc (pagesize);
17312 if (read (fd, data3, pagesize) != pagesize)
17314 for (i = 0; i < pagesize; ++i)
17315 if (*(data + i) != *(data3 + i))
17321 rm -f conftest$ac_exeext
17322 if { (ac_try="$ac_link"
17323 case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_link") 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17332 { (case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_try") 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 ac_cv_func_mmap_fixed_mapped=yes
17343 echo "$as_me: program exited with status $ac_status" >&5
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 ( exit $ac_status )
17348 ac_cv_func_mmap_fixed_mapped=no
17350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17355 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17356 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17357 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17359 cat >>confdefs.h <<\_ACEOF
17360 #define HAVE_MMAP 1
17364 rm -f conftest.mmap
17366 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17367 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17368 if test "${ac_cv_func_mmap_file+set}" = set; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 ac_cpp='$CPP $CPPFLAGS'
17373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17377 if test "$cross_compiling" = yes; then
17378 ac_cv_func_mmap_file=no
17380 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17388 #include <sys/types.h>
17389 #include <sys/mman.h>
17397 fd = creat ("foo",0777);
17398 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17400 return (fd != (int) MAP_FAILED);
17405 rm -f conftest$ac_exeext
17406 if { (ac_try="$ac_link"
17407 case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_link") 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17416 { (case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_try") 2>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_cv_func_mmap_file=yes
17427 echo "$as_me: program exited with status $ac_status" >&5
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 ( exit $ac_status )
17432 ac_cv_func_mmap_file=no
17434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17439 ac_cpp='$CPP $CPPFLAGS'
17440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17446 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17447 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17448 if test "$ac_cv_func_mmap_file" = yes; then
17450 cat >>confdefs.h <<\_ACEOF
17451 #define HAVE_MMAP_FILE
17458 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17459 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17460 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 if test "$llvm_cv_os_type" = "Interix" ; then
17464 ac_cv_need_dev_zero_for_mmap=yes
17466 ac_cv_need_dev_zero_for_mmap=no
17470 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17471 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17472 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17474 cat >>confdefs.h <<\_ACEOF
17475 #define NEED_DEV_ZERO_FOR_MMAP 1
17480 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17482 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17483 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17485 if test "$ac_cv_func_mmap_file" = "no"
17487 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17488 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17492 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17493 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17495 ac_cpp='$CXXCPP $CPPFLAGS'
17496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17500 cat >conftest.$ac_ext <<_ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17509 volatile unsigned long val = 1;
17510 __sync_synchronize();
17511 __sync_val_compare_and_swap(&val, 1, 0);
17512 __sync_add_and_fetch(&val, 1);
17513 __sync_sub_and_fetch(&val, 1);
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (ac_try="$ac_link"
17521 case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_link") 2>conftest.er1
17528 grep -v '^ *+' conftest.er1 >conftest.err
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17534 { (case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_try") 2>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_try") 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
17554 { echo "$as_me:$LINENO: result: yes" >&5
17555 echo "${ECHO_T}yes" >&6; }
17557 cat >>confdefs.h <<\_ACEOF
17558 #define LLVM_HAS_ATOMICS 1
17563 echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17567 { echo "$as_me:$LINENO: result: no" >&5
17568 echo "${ECHO_T}no" >&6; }
17570 cat >>confdefs.h <<\_ACEOF
17571 #define LLVM_HAS_ATOMICS 0
17574 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17575 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17579 rm -f core conftest.err conftest.$ac_objext \
17580 conftest$ac_exeext conftest.$ac_ext
17582 ac_cpp='$CPP $CPPFLAGS'
17583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17589 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17590 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17591 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17592 if test "${llvm_cv_linux_mixed+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 ac_cpp='$CPP $CPPFLAGS'
17597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17601 cat >conftest.$ac_ext <<_ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17608 error: Not x86-64 even if uname says so!
17619 rm -f conftest.$ac_objext
17620 if { (ac_try="$ac_compile"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_compile") 2>conftest.er1
17628 grep -v '^ *+' conftest.er1 >conftest.err
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17634 { (case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_try") 2>&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } &&
17643 { ac_try='test -s conftest.$ac_objext'
17644 { (case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_try") 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 llvm_cv_linux_mixed=no
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17658 llvm_cv_linux_mixed=yes
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17663 ac_cpp='$CPP $CPPFLAGS'
17664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17670 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17671 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17673 if test "$llvm_cv_linux_mixed" = "yes"; then
17674 llvm_cv_target_arch="x86"
17680 for ac_func in __dso_handle
17682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 cat >conftest.$ac_ext <<_ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17696 #define $ac_func innocuous_$ac_func
17698 /* System header to define __stub macros and hopefully few prototypes,
17699 which can conflict with char $ac_func (); below.
17700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17701 <limits.h> exists even on freestanding compilers. */
17704 # include <limits.h>
17706 # include <assert.h>
17711 /* Override any GCC internal prototype to avoid an error.
17712 Use char because int might match the return type of a GCC
17713 builtin and then its argument prototype would still apply. */
17718 /* The GNU C library defines this for functions which it implements
17719 to always fail with ENOSYS. Some functions are actually named
17720 something starting with __ and the normal name is an alias. */
17721 #if defined __stub_$ac_func || defined __stub___$ac_func
17728 return $ac_func ();
17733 rm -f conftest.$ac_objext conftest$ac_exeext
17734 if { (ac_try="$ac_link"
17735 case "(($ac_try" in
17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737 *) ac_try_echo=$ac_try;;
17739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740 (eval "$ac_link") 2>conftest.er1
17742 grep -v '^ *+' conftest.er1 >conftest.err
17744 cat conftest.err >&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } &&
17747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17748 { (case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753 (eval "$ac_try") 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; } &&
17757 { ac_try='test -s conftest$ac_exeext'
17758 { (case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_try") 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17767 eval "$as_ac_var=yes"
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 eval "$as_ac_var=no"
17775 rm -f core conftest.err conftest.$ac_objext \
17776 conftest$ac_exeext conftest.$ac_ext
17778 ac_res=`eval echo '${'$as_ac_var'}'`
17779 { echo "$as_me:$LINENO: result: $ac_res" >&5
17780 echo "${ECHO_T}$ac_res" >&6; }
17781 if test `eval echo '${'$as_ac_var'}'` = yes; then
17782 cat >>confdefs.h <<_ACEOF
17783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17790 SHLIBEXT=$llvm_shlib_ext
17793 if test "${prefix}" = "NONE" ; then
17794 prefix="/usr/local"
17796 eval LLVM_PREFIX="${prefix}";
17797 eval LLVM_BINDIR="${prefix}/bin";
17798 eval LLVM_DATADIR="${prefix}/share/llvm";
17799 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17800 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17801 eval LLVM_INCLUDEDIR="${prefix}/include";
17802 eval LLVM_INFODIR="${prefix}/info";
17803 eval LLVM_MANDIR="${prefix}/man";
17804 LLVM_CONFIGTIME=`date`
17815 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17816 LLVM_CONFIGTIME="(timestamp not enabled)"
17820 cat >>confdefs.h <<_ACEOF
17821 #define LLVM_PREFIX "$LLVM_PREFIX"
17825 cat >>confdefs.h <<_ACEOF
17826 #define LLVM_BINDIR "$LLVM_BINDIR"
17830 cat >>confdefs.h <<_ACEOF
17831 #define LLVM_DATADIR "$LLVM_DATADIR"
17835 cat >>confdefs.h <<_ACEOF
17836 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17840 cat >>confdefs.h <<_ACEOF
17841 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17845 cat >>confdefs.h <<_ACEOF
17846 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17850 cat >>confdefs.h <<_ACEOF
17851 #define LLVM_INFODIR "$LLVM_INFODIR"
17855 cat >>confdefs.h <<_ACEOF
17856 #define LLVM_MANDIR "$LLVM_MANDIR"
17860 cat >>confdefs.h <<_ACEOF
17861 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17865 cat >>confdefs.h <<_ACEOF
17866 #define LLVM_HOST_TRIPLE "$host"
17870 cat >>confdefs.h <<_ACEOF
17871 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17875 if test "$BINDINGS_TO_BUILD" = auto ; then
17876 BINDINGS_TO_BUILD=""
17877 if test "x$OCAMLFIND" != x ; then
17878 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17880 if test "x$GO" != x ; then
17881 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17882 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17886 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17889 binding_prereqs_failed=0
17890 for a_binding in $BINDINGS_TO_BUILD ; do
17891 case "$a_binding" in
17893 if test "x$OCAMLFIND" = x ; then
17894 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17895 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17896 binding_prereqs_failed=1
17899 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17906 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17907 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17908 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17909 binding_prereqs_failed=1
17912 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17916 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17917 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17921 if test "x$with_ocaml_libdir" != xauto ; then
17922 OCAML_LIBDIR=$with_ocaml_libdir
17925 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17926 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17928 # ocaml stdlib is beneath our prefix; use stdlib
17929 OCAML_LIBDIR=$ocaml_stdlib
17932 # ocaml stdlib is outside our prefix; use libdir/ocaml
17933 OCAML_LIBDIR=${prefix}/lib/ocaml
17939 if test "x$GO" = x ; then
17940 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17941 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17942 binding_prereqs_failed=1
17944 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17947 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17948 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17949 binding_prereqs_failed=1
17955 if test "$binding_prereqs_failed" = 1 ; then
17956 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17957 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17958 { (exit 1); exit 1; }; }
17961 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17962 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17963 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17967 ac_cpp='$CXXCPP $CPPFLAGS'
17968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17972 oldcxxflags="$CXXFLAGS"
17973 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17974 cat >conftest.$ac_ext <<_ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17989 rm -f conftest.$ac_objext
17990 if { (ac_try="$ac_compile"
17991 case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_compile") 2>conftest.er1
17998 grep -v '^ *+' conftest.er1 >conftest.err
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18004 { (case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_try") 2>&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; } &&
18013 { ac_try='test -s conftest.$ac_objext'
18014 { (case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_try") 2>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 llvm_cv_cxx_visibility_inlines_hidden=yes
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18028 llvm_cv_cxx_visibility_inlines_hidden=no
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18032 CXXFLAGS="$oldcxxflags"
18034 ac_cpp='$CPP $CPPFLAGS'
18035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18041 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18042 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18043 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18044 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18047 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18052 if test "$llvm_cv_link_use_r" = "yes" ; then
18059 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18060 RDYNAMIC="-rdynamic"
18067 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18074 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18076 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18078 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18080 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18082 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18085 ac_config_files="$ac_config_files Makefile.config"
18088 ac_config_files="$ac_config_files llvm.spec"
18091 ac_config_files="$ac_config_files docs/doxygen.cfg"
18094 if test "${clang_src_root}" = ""; then
18095 clang_src_root="$srcdir/tools/clang"
18097 if test -f ${clang_src_root}/README.txt; then
18099 cat >>confdefs.h <<_ACEOF
18100 #define CLANG_LIBDIR_SUFFIX ""
18104 configh="include/clang/Config/config.h"
18105 doxy="docs/doxygen.cfg"
18106 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18108 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18112 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18115 test "x$program_prefix" = "xNONE" && program_prefix=""
18119 ac_config_commands="$ac_config_commands setup"
18121 ac_config_commands="$ac_config_commands Makefile"
18124 ac_config_commands="$ac_config_commands Makefile.common"
18127 ac_config_commands="$ac_config_commands examples/Makefile"
18130 ac_config_commands="$ac_config_commands lib/Makefile"
18133 ac_config_commands="$ac_config_commands test/Makefile"
18136 ac_config_commands="$ac_config_commands test/Makefile.tests"
18139 ac_config_commands="$ac_config_commands unittests/Makefile"
18142 ac_config_commands="$ac_config_commands tools/Makefile"
18145 ac_config_commands="$ac_config_commands utils/Makefile"
18148 ac_config_commands="$ac_config_commands projects/Makefile"
18151 ac_config_commands="$ac_config_commands bindings/Makefile"
18154 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18158 cat >confcache <<\_ACEOF
18159 # This file is a shell script that caches the results of configure
18160 # tests run on this system so they can be shared between configure
18161 # scripts and configure runs, see configure's option --config-cache.
18162 # It is not useful on other systems. If it contains results you don't
18163 # want to keep, you may remove or edit it.
18165 # config.status only pays attention to the cache file if you give it
18166 # the --recheck option to rerun configure.
18168 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18169 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18170 # following values.
18174 # The following way of writing the cache mishandles newlines in values,
18175 # but we know of no workaround that is simple, portable, and efficient.
18176 # So, we kill variables containing newlines.
18177 # Ultrix sh set writes to stderr and can't be redirected directly,
18178 # and sets the high bit in the cache file unless we assign to the vars.
18180 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18181 eval ac_val=\$$ac_var
18185 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18186 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18189 _ | IFS | as_nl) ;; #(
18190 *) $as_unset $ac_var ;;
18196 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18197 *${as_nl}ac_space=\ *)
18198 # `set' does not quote correctly, so add quotes (double-quote
18199 # substitution turns \\\\ into \\, and sed turns \\ into \).
18202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18205 # `set' quotes correctly as required by POSIX, so do not add quotes.
18206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18215 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18217 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18219 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18220 if test -w "$cache_file"; then
18221 test "x$cache_file" != "x/dev/null" &&
18222 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18223 echo "$as_me: updating cache $cache_file" >&6;}
18224 cat confcache >$cache_file
18226 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18227 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18232 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18233 # Let make expand exec_prefix.
18234 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18236 DEFS=-DHAVE_CONFIG_H
18240 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18241 # 1. Remove the extension, and $U if already installed.
18242 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18243 ac_i=`echo "$ac_i" | sed "$ac_script"`
18244 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18245 # will be set to the directory where LIBOBJS objects are built.
18246 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18247 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18249 LIBOBJS=$ac_libobjs
18251 LTLIBOBJS=$ac_ltlibobjs
18255 : ${CONFIG_STATUS=./config.status}
18256 ac_clean_files_save=$ac_clean_files
18257 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18258 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18259 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18260 cat >$CONFIG_STATUS <<_ACEOF
18262 # Generated by $as_me.
18263 # Run this file to recreate the current configuration.
18264 # Compiler output produced by configure, useful for debugging
18265 # configure, is in config.log if it exists.
18268 ac_cs_recheck=false
18270 SHELL=\${CONFIG_SHELL-$SHELL}
18273 cat >>$CONFIG_STATUS <<\_ACEOF
18274 ## --------------------- ##
18275 ## M4sh Initialization. ##
18276 ## --------------------- ##
18278 # Be Bourne compatible
18279 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18282 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18283 # is contrary to our usage. Disable this feature.
18284 alias -g '${1+"$@"}'='"$@"'
18285 setopt NO_GLOB_SUBST
18287 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18289 BIN_SH=xpg4; export BIN_SH # for Tru64
18290 DUALCASE=1; export DUALCASE # for MKS sh
18294 # Avoid depending upon Character Ranges.
18295 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18296 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18297 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18298 as_cr_digits='0123456789'
18299 as_cr_alnum=$as_cr_Letters$as_cr_digits
18301 # The user is always right.
18302 if test "${PATH_SEPARATOR+set}" != set; then
18303 echo "#! /bin/sh" >conf$$.sh
18304 echo "exit 0" >>conf$$.sh
18306 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18314 # Support unset when possible.
18315 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18323 # We need space, tab and new line, in precisely that order. Quoting is
18324 # there to prevent editors from complaining about space-tab.
18325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18326 # splitting by setting IFS to empty value.)
18331 # Find who we are. Look in the path if we contain no directory separator.
18333 *[\\/]* ) as_myself=$0 ;;
18334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18335 for as_dir in $PATH
18338 test -z "$as_dir" && as_dir=.
18339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18345 # We did not find ourselves, most probably we were run as `sh COMMAND'
18346 # in which case we are not to be found in the path.
18347 if test "x$as_myself" = x; then
18350 if test ! -f "$as_myself"; then
18351 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18352 { (exit 1); exit 1; }
18355 # Work around bugs in pre-3.0 UWIN ksh.
18356 for as_var in ENV MAIL MAILPATH
18357 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18365 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18366 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18367 LC_TELEPHONE LC_TIME
18369 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18370 eval $as_var=C; export $as_var
18372 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18376 # Required to use basename.
18377 if expr a : '\(a\)' >/dev/null 2>&1 &&
18378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18385 as_basename=basename
18391 # Name of the executable.
18392 as_me=`$as_basename -- "$0" ||
18393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18394 X"$0" : 'X\(//\)$' \| \
18395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18397 sed '/^.*\/\([^/][^/]*\)\/*$/{
18416 as_lineno_1=$LINENO
18417 as_lineno_2=$LINENO
18418 test "x$as_lineno_1" != "x$as_lineno_2" &&
18419 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18421 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18422 # uniformly replaced by the line number. The first 'sed' inserts a
18423 # line-number line after each line using $LINENO; the second 'sed'
18424 # does the real work. The second script uses 'N' to pair each
18425 # line-number line with the line containing $LINENO, and appends
18426 # trailing '-' during substitution so that $LINENO is not a special
18427 # case at line end.
18428 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18429 # scripts with optimization help from Paolo Bonzini. Blame Lee
18430 # E. McMahon (1931-1989) for sed's syntax. :-)
18442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18445 ' >$as_me.lineno &&
18446 chmod +x "$as_me.lineno" ||
18447 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18448 { (exit 1); exit 1; }; }
18450 # Don't try to exec as it changes $[0], causing all sort of problems
18451 # (the dirname of $[0] is not the place where we might find the
18452 # original and so on. Autoconf is especially sensitive to this).
18453 . "./$as_me.lineno"
18454 # Exit status is that of the last command.
18459 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18465 ECHO_C= ECHO_N= ECHO_T=
18466 case `echo -n x` in
18468 case `echo 'x\c'` in
18469 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18476 if expr a : '\(a\)' >/dev/null 2>&1 &&
18477 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18483 rm -f conf$$ conf$$.exe conf$$.file
18484 if test -d conf$$.dir; then
18485 rm -f conf$$.dir/conf$$.file
18491 if ln -s conf$$.file conf$$ 2>/dev/null; then
18493 # ... but there are two gotchas:
18494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18496 # In both cases, we have to default to `cp -p'.
18497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18499 elif ln conf$$.file conf$$ 2>/dev/null; then
18504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18505 rmdir conf$$.dir 2>/dev/null
18507 if mkdir -p . 2>/dev/null; then
18510 test -d ./-p && rmdir ./-p
18514 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18515 # systems may use methods other than mode bits to determine executability.
18516 cat >conf$$.file <<_ASEOF
18520 chmod +x conf$$.file
18521 if test -x conf$$.file >/dev/null 2>&1; then
18522 as_executable_p="test -x"
18528 # Sed expression to map a string onto a valid CPP name.
18529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18531 # Sed expression to map a string onto a valid variable name.
18532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18537 # Save the log message, to keep $[0] and so on meaningful, and to
18538 # report actual input values of CONFIG_FILES etc. instead of their
18539 # values after options handling.
18541 This file was extended by LLVM $as_me 3.7.0svn, which was
18542 generated by GNU Autoconf 2.60. Invocation command line was
18544 CONFIG_FILES = $CONFIG_FILES
18545 CONFIG_HEADERS = $CONFIG_HEADERS
18546 CONFIG_LINKS = $CONFIG_LINKS
18547 CONFIG_COMMANDS = $CONFIG_COMMANDS
18550 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18555 cat >>$CONFIG_STATUS <<_ACEOF
18556 # Files that config.status was made for.
18557 config_files="$ac_config_files"
18558 config_headers="$ac_config_headers"
18559 config_commands="$ac_config_commands"
18563 cat >>$CONFIG_STATUS <<\_ACEOF
18565 \`$as_me' instantiates files from templates according to the
18566 current configuration.
18568 Usage: $0 [OPTIONS] [FILE]...
18570 -h, --help print this help, then exit
18571 -V, --version print version number, then exit
18572 -q, --quiet do not print progress messages
18573 -d, --debug don't remove temporary files
18574 --recheck update $as_me by reconfiguring in the same conditions
18575 --file=FILE[:TEMPLATE]
18576 instantiate the configuration file FILE
18577 --header=FILE[:TEMPLATE]
18578 instantiate the configuration header FILE
18580 Configuration files:
18583 Configuration headers:
18586 Configuration commands:
18589 Report bugs to <bug-autoconf@gnu.org>."
18592 cat >>$CONFIG_STATUS <<_ACEOF
18594 LLVM config.status 3.7.0svn
18595 configured by $0, generated by GNU Autoconf 2.60,
18596 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18598 Copyright (C) 2006 Free Software Foundation, Inc.
18599 This config.status script is free software; the Free Software Foundation
18600 gives unlimited permission to copy, distribute and modify it."
18607 cat >>$CONFIG_STATUS <<\_ACEOF
18608 # If no file are specified by the user, then we need to provide default
18609 # value. By we need to know if files were specified by the user.
18615 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18616 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18627 # Handling of the options.
18628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18630 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18631 echo "$ac_cs_version"; exit ;;
18632 --debug | --debu | --deb | --de | --d | -d )
18634 --file | --fil | --fi | --f )
18636 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18637 ac_need_defaults=false;;
18638 --header | --heade | --head | --hea )
18640 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18641 ac_need_defaults=false;;
18643 # Conflict between --help and --header
18644 { echo "$as_me: error: ambiguous option: $1
18645 Try \`$0 --help' for more information." >&2
18646 { (exit 1); exit 1; }; };;
18647 --help | --hel | -h )
18648 echo "$ac_cs_usage"; exit ;;
18649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18650 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18653 # This is an error.
18654 -*) { echo "$as_me: error: unrecognized option: $1
18655 Try \`$0 --help' for more information." >&2
18656 { (exit 1); exit 1; }; } ;;
18658 *) ac_config_targets="$ac_config_targets $1"
18659 ac_need_defaults=false ;;
18665 ac_configure_extra_args=
18667 if $ac_cs_silent; then
18669 ac_configure_extra_args="$ac_configure_extra_args --silent"
18673 cat >>$CONFIG_STATUS <<_ACEOF
18674 if \$ac_cs_recheck; then
18675 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18676 CONFIG_SHELL=$SHELL
18677 export CONFIG_SHELL
18678 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18682 cat >>$CONFIG_STATUS <<\_ACEOF
18686 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18687 ## Running $as_me. ##
18693 cat >>$CONFIG_STATUS <<_ACEOF
18697 llvm_src="${srcdir}"
18701 cat >>$CONFIG_STATUS <<\_ACEOF
18703 # Handling of arguments.
18704 for ac_config_target in $ac_config_targets
18706 case $ac_config_target in
18707 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18708 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18709 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18710 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18711 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18712 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18713 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18714 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18715 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18716 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18717 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18718 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18719 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18720 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18721 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18722 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18723 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18724 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18725 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18726 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18727 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18728 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18729 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18730 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18731 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18732 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18734 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18735 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18736 { (exit 1); exit 1; }; };;
18741 # If the user did not use the arguments to specify the items to instantiate,
18742 # then the envvar interface is used. Set only those that are not.
18743 # We use the long form for the default assignment because of an extremely
18744 # bizarre bug on SunOS 4.1.3.
18745 if $ac_need_defaults; then
18746 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18747 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18751 # Have a temporary directory for convenience. Make it in the build tree
18752 # simply because there is no reason against having it here, and in addition,
18753 # creating and moving files from /tmp can sometimes cause problems.
18754 # Hook for its removal unless debugging.
18755 # Note that there is a small window in which the directory will not be cleaned:
18756 # after its creation but before its name has been assigned to `$tmp'.
18760 trap 'exit_status=$?
18761 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18763 trap '{ (exit 1); exit 1; }' 1 2 13 15
18765 # Create a (secure) tmp directory for tmp files.
18768 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18769 test -n "$tmp" && test -d "$tmp"
18772 tmp=./conf$$-$RANDOM
18773 (umask 077 && mkdir "$tmp")
18776 echo "$me: cannot create a temporary directory in ." >&2
18777 { (exit 1); exit 1; }
18781 # Set up the sed scripts for CONFIG_FILES section.
18784 # No need to generate the scripts if there are no CONFIG_FILES.
18785 # This happens for instance when ./config.status config.h
18786 if test -n "$CONFIG_FILES"; then
18793 for ac_last_try in false false false false false :; do
18794 cat >conf$$subs.sed <<_ACEOF
18795 SHELL!$SHELL$ac_delim
18796 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18797 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18798 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18799 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18800 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18801 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18802 exec_prefix!$exec_prefix$ac_delim
18803 prefix!$prefix$ac_delim
18804 program_transform_name!$program_transform_name$ac_delim
18805 bindir!$bindir$ac_delim
18806 sbindir!$sbindir$ac_delim
18807 libexecdir!$libexecdir$ac_delim
18808 datarootdir!$datarootdir$ac_delim
18809 datadir!$datadir$ac_delim
18810 sysconfdir!$sysconfdir$ac_delim
18811 sharedstatedir!$sharedstatedir$ac_delim
18812 localstatedir!$localstatedir$ac_delim
18813 includedir!$includedir$ac_delim
18814 oldincludedir!$oldincludedir$ac_delim
18815 docdir!$docdir$ac_delim
18816 infodir!$infodir$ac_delim
18817 htmldir!$htmldir$ac_delim
18818 dvidir!$dvidir$ac_delim
18819 pdfdir!$pdfdir$ac_delim
18820 psdir!$psdir$ac_delim
18821 libdir!$libdir$ac_delim
18822 localedir!$localedir$ac_delim
18823 mandir!$mandir$ac_delim
18824 DEFS!$DEFS$ac_delim
18825 ECHO_C!$ECHO_C$ac_delim
18826 ECHO_N!$ECHO_N$ac_delim
18827 ECHO_T!$ECHO_T$ac_delim
18828 LIBS!$LIBS$ac_delim
18829 build_alias!$build_alias$ac_delim
18830 host_alias!$host_alias$ac_delim
18831 target_alias!$target_alias$ac_delim
18832 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18833 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18834 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18835 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18836 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18838 CFLAGS!$CFLAGS$ac_delim
18839 LDFLAGS!$LDFLAGS$ac_delim
18840 CPPFLAGS!$CPPFLAGS$ac_delim
18841 ac_ct_CC!$ac_ct_CC$ac_delim
18842 EXEEXT!$EXEEXT$ac_delim
18843 OBJEXT!$OBJEXT$ac_delim
18845 CXXFLAGS!$CXXFLAGS$ac_delim
18846 ac_ct_CXX!$ac_ct_CXX$ac_delim
18848 subdirs!$subdirs$ac_delim
18849 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18850 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18851 build!$build$ac_delim
18852 build_cpu!$build_cpu$ac_delim
18853 build_vendor!$build_vendor$ac_delim
18854 build_os!$build_os$ac_delim
18855 host!$host$ac_delim
18856 host_cpu!$host_cpu$ac_delim
18857 host_vendor!$host_vendor$ac_delim
18858 host_os!$host_os$ac_delim
18859 target!$target$ac_delim
18860 target_cpu!$target_cpu$ac_delim
18861 target_vendor!$target_vendor$ac_delim
18862 target_os!$target_os$ac_delim
18864 HOST_OS!$HOST_OS$ac_delim
18865 TARGET_OS!$TARGET_OS$ac_delim
18866 LINKALL!$LINKALL$ac_delim
18867 NOLINKALL!$NOLINKALL$ac_delim
18868 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18869 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18870 ARCH!$ARCH$ac_delim
18871 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18872 HOST_ARCH!$HOST_ARCH$ac_delim
18873 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18874 BUILD_CC!$BUILD_CC$ac_delim
18875 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18876 BUILD_CXX!$BUILD_CXX$ac_delim
18877 CVSBUILD!$CVSBUILD$ac_delim
18878 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18879 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18880 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18881 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18882 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18883 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18884 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18885 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18886 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18887 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18888 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18889 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18890 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18891 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18894 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18896 elif $ac_last_try; then
18897 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18898 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18899 { (exit 1); exit 1; }; }
18901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18905 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18906 if test -n "$ac_eof"; then
18907 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18908 ac_eof=`expr $ac_eof + 1`
18911 cat >>$CONFIG_STATUS <<_ACEOF
18912 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18916 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18917 s/^/s,@/; s/!/@,|#_!!_#|/
18920 s/'"$ac_delim"'$/,g/; t
18922 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18923 ' >>$CONFIG_STATUS <conf$$subs.sed
18924 rm -f conf$$subs.sed
18925 cat >>$CONFIG_STATUS <<_ACEOF
18931 for ac_last_try in false false false false false :; do
18932 cat >conf$$subs.sed <<_ACEOF
18933 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18934 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18936 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18937 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18938 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18939 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18940 enable_searchengine!$enable_searchengine$ac_delim
18941 enable_external_search!$enable_external_search$ac_delim
18942 enable_server_based_search!$enable_server_based_search$ac_delim
18943 searchengine_url!$searchengine_url$ac_delim
18944 extra_search_mappings!$extra_search_mappings$ac_delim
18945 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18946 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18947 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18948 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18949 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18950 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18951 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18952 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18953 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18954 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18955 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18956 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18957 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18958 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18959 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18960 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18961 ENABLE_PIC!$ENABLE_PIC$ac_delim
18962 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18963 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18964 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18965 ALL_TARGETS!$ALL_TARGETS$ac_delim
18966 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18967 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18968 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18969 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18970 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18971 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18972 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18973 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18974 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18975 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18976 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18977 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18978 ifGNUmake!$ifGNUmake$ac_delim
18979 LN_S!$LN_S$ac_delim
18983 DATE!$DATE$ac_delim
18984 FIND!$FIND$ac_delim
18985 GREP!$GREP$ac_delim
18986 MKDIR!$MKDIR$ac_delim
18988 RANLIB!$RANLIB$ac_delim
18993 BINPWD!$BINPWD$ac_delim
18995 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18996 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18997 INSTALL_DATA!$INSTALL_DATA$ac_delim
18998 BZIP2!$BZIP2$ac_delim
19000 DOXYGEN!$DOXYGEN$ac_delim
19001 GROFF!$GROFF$ac_delim
19002 GZIPBIN!$GZIPBIN$ac_delim
19003 PDFROFF!$PDFROFF$ac_delim
19006 OCAMLFIND!$OCAMLFIND$ac_delim
19008 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19009 EGREP!$EGREP$ac_delim
19010 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19011 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19012 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19013 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19014 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19015 NO_COMMENT!$NO_COMMENT$ac_delim
19016 PYTHON!$PYTHON$ac_delim
19017 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19018 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19019 USE_OPROFILE!$USE_OPROFILE$ac_delim
19020 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19021 XML2CONFIG!$XML2CONFIG$ac_delim
19022 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19023 LIBXML2_INC!$LIBXML2_INC$ac_delim
19024 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19025 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19026 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19027 MMAP_FILE!$MMAP_FILE$ac_delim
19028 SHLIBEXT!$SHLIBEXT$ac_delim
19029 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19032 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19034 elif $ac_last_try; then
19035 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19036 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19037 { (exit 1); exit 1; }; }
19039 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19043 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19044 if test -n "$ac_eof"; then
19045 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19046 ac_eof=`expr $ac_eof + 1`
19049 cat >>$CONFIG_STATUS <<_ACEOF
19050 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19054 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19055 s/^/s,@/; s/!/@,|#_!!_#|/
19058 s/'"$ac_delim"'$/,g/; t
19060 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19061 ' >>$CONFIG_STATUS <conf$$subs.sed
19062 rm -f conf$$subs.sed
19063 cat >>$CONFIG_STATUS <<_ACEOF
19069 for ac_last_try in false false false false false :; do
19070 cat >conf$$subs.sed <<_ACEOF
19071 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19072 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19073 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19074 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19075 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19076 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19077 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19078 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19079 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19080 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19081 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19082 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19083 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19084 RPATH!$RPATH$ac_delim
19085 RDYNAMIC!$RDYNAMIC$ac_delim
19086 program_prefix!$program_prefix$ac_delim
19087 LIBOBJS!$LIBOBJS$ac_delim
19088 LTLIBOBJS!$LTLIBOBJS$ac_delim
19091 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19093 elif $ac_last_try; then
19094 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19096 { (exit 1); exit 1; }; }
19098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19103 if test -n "$ac_eof"; then
19104 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19105 ac_eof=`expr $ac_eof + 1`
19108 cat >>$CONFIG_STATUS <<_ACEOF
19109 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19114 s/^/s,@/; s/!/@,|#_!!_#|/
19117 s/'"$ac_delim"'$/,g/; t
19119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19120 ' >>$CONFIG_STATUS <conf$$subs.sed
19121 rm -f conf$$subs.sed
19122 cat >>$CONFIG_STATUS <<_ACEOF
19129 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19130 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19131 # trailing colons and then remove the whole line if VPATH becomes empty
19132 # (actually we leave an empty line to preserve line numbers).
19133 if test "x$srcdir" = x.; then
19134 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19135 s/:*\$(srcdir):*/:/
19136 s/:*\${srcdir}:*/:/
19138 s/^\([^=]*=[ ]*\):*/\1/
19144 cat >>$CONFIG_STATUS <<\_ACEOF
19145 fi # test -n "$CONFIG_FILES"
19148 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19151 :[FHLC]) ac_mode=$ac_tag; continue;;
19153 case $ac_mode$ac_tag in
19155 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19156 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19157 { (exit 1); exit 1; }; };;
19158 :[FH]-) ac_tag=-:-;;
19159 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19176 -) ac_f="$tmp/stdin";;
19177 *) # Look for the file first in the build tree, then in the source tree
19178 # (if the path is not absolute). The absolute path cannot be DOS-style,
19179 # because $ac_f cannot contain `:'.
19183 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19185 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19186 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19187 { (exit 1); exit 1; }; };;
19189 ac_file_inputs="$ac_file_inputs $ac_f"
19192 # Let's still pretend it is `configure' which instantiates (i.e., don't
19193 # use $as_me), people would be surprised to read:
19194 # /* config.h. Generated by config.status. */
19195 configure_input="Generated from "`IFS=:
19196 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19197 if test x"$ac_file" != x-; then
19198 configure_input="$ac_file. $configure_input"
19199 { echo "$as_me:$LINENO: creating $ac_file" >&5
19200 echo "$as_me: creating $ac_file" >&6;}
19204 *:-:* | *:-) cat >"$tmp/stdin";;
19209 ac_dir=`$as_dirname -- "$ac_file" ||
19210 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19211 X"$ac_file" : 'X\(//\)[^/]' \| \
19212 X"$ac_file" : 'X\(//\)$' \| \
19213 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19219 /^X\(\/\/\)[^/].*/{
19234 -*) as_dir=./$as_dir;;
19236 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19240 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19241 *) as_qdir=$as_dir;;
19243 as_dirs="'$as_qdir' $as_dirs"
19244 as_dir=`$as_dirname -- "$as_dir" ||
19245 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19246 X"$as_dir" : 'X\(//\)[^/]' \| \
19247 X"$as_dir" : 'X\(//\)$' \| \
19248 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19254 /^X\(\/\/\)[^/].*/{
19267 test -d "$as_dir" && break
19269 test -z "$as_dirs" || eval "mkdir $as_dirs"
19270 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19271 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19272 { (exit 1); exit 1; }; }; }
19276 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19279 # A ".." for each directory in $ac_dir_suffix.
19280 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19281 case $ac_top_builddir_sub in
19282 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19283 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19286 ac_abs_top_builddir=$ac_pwd
19287 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19288 # for backward compatibility:
19289 ac_top_builddir=$ac_top_build_prefix
19292 .) # We are building in place.
19294 ac_top_srcdir=$ac_top_builddir_sub
19295 ac_abs_top_srcdir=$ac_pwd ;;
19296 [\\/]* | ?:[\\/]* ) # Absolute name.
19297 ac_srcdir=$srcdir$ac_dir_suffix;
19298 ac_top_srcdir=$srcdir
19299 ac_abs_top_srcdir=$srcdir ;;
19300 *) # Relative name.
19301 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19302 ac_top_srcdir=$ac_top_build_prefix$srcdir
19303 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19305 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19315 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19316 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19320 cat >>$CONFIG_STATUS <<\_ACEOF
19321 # If the template does not know about datarootdir, expand it.
19322 # FIXME: This hack should be removed a few years after 2.60.
19323 ac_datarootdir_hack=; ac_datarootdir_seen=
19325 case `sed -n '/datarootdir/ {
19334 ' $ac_file_inputs` in
19335 *datarootdir*) ac_datarootdir_seen=yes;;
19336 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19337 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19338 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19340 cat >>$CONFIG_STATUS <<_ACEOF
19341 ac_datarootdir_hack='
19342 s&@datadir@&$datadir&g
19343 s&@docdir@&$docdir&g
19344 s&@infodir@&$infodir&g
19345 s&@localedir@&$localedir&g
19346 s&@mandir@&$mandir&g
19347 s&\\\${datarootdir}&$datarootdir&g' ;;
19351 # Neutralize VPATH when `$srcdir' = `.'.
19352 # Shell code in configure.ac might set extrasub.
19353 # FIXME: do we really want to maintain this feature?
19354 cat >>$CONFIG_STATUS <<_ACEOF
19358 cat >>$CONFIG_STATUS <<\_ACEOF
19360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19361 s&@configure_input@&$configure_input&;t t
19362 s&@top_builddir@&$ac_top_builddir_sub&;t t
19363 s&@srcdir@&$ac_srcdir&;t t
19364 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19365 s&@top_srcdir@&$ac_top_srcdir&;t t
19366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19367 s&@builddir@&$ac_builddir&;t t
19368 s&@abs_builddir@&$ac_abs_builddir&;t t
19369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19370 s&@INSTALL@&$ac_INSTALL&;t t
19371 $ac_datarootdir_hack
19372 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19374 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19375 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19376 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19377 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19378 which seems to be undefined. Please make sure it is defined." >&5
19379 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19380 which seems to be undefined. Please make sure it is defined." >&2;}
19384 -) cat "$tmp/out"; rm -f "$tmp/out";;
19385 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19394 # Transform confdefs.h into a sed script `conftest.defines', that
19395 # substitutes the proper values into config.h.in to produce config.h.
19396 rm -f conftest.defines conftest.tail
19397 # First, append a space to every undef/define line, to ease matching.
19398 echo 's/$/ /' >conftest.defines
19399 # Then, protect against being on the right side of a sed subst, or in
19400 # an unquoted here document, in config.status. If some macros were
19401 # called several times there might be several #defines for the same
19402 # symbol, which is useless. But do not sort them, since the last
19403 # AC_DEFINE must be honored.
19404 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19405 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19406 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19407 # PARAMS is the parameter list in the macro definition--in most cases, it's
19408 # just an empty string.
19409 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19410 ac_dB='\\)[ (].*,\\1define\\2'
19418 s/^[ ]*#[ ]*define[ ][ ]*//
19423 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19424 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19425 ' >>conftest.defines
19427 # Remove the space that was appended to ease matching.
19428 # Then replace #undef with comments. This is necessary, for
19429 # example, in the case of _POSIX_SOURCE, which is predefined and required
19430 # on some systems where configure will not decide to define it.
19431 # (The regexp can be short, since the line contains either #define or #undef.)
19433 s,^[ #]*u.*,/* & */,' >>conftest.defines
19435 # Break up conftest.defines:
19436 ac_max_sed_lines=50
19438 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19439 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19440 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19442 ac_in='$ac_file_inputs'
19443 ac_out='"$tmp/out1"'
19444 ac_nxt='"$tmp/out2"'
19448 # Write a here document:
19449 cat >>$CONFIG_STATUS <<_ACEOF
19450 # First, check the format of the line:
19451 cat >"\$tmp/defines.sed" <<\\CEOF
19452 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19453 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19457 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19459 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19460 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19461 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19462 grep . conftest.tail >/dev/null || break
19463 rm -f conftest.defines
19464 mv conftest.tail conftest.defines
19466 rm -f conftest.defines conftest.tail
19468 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19469 cat >>$CONFIG_STATUS <<\_ACEOF
19470 if test x"$ac_file" != x-; then
19471 echo "/* $configure_input */" >"$tmp/config.h"
19472 cat "$ac_result" >>"$tmp/config.h"
19473 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19474 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19475 echo "$as_me: $ac_file is unchanged" >&6;}
19478 mv "$tmp/config.h" $ac_file
19481 echo "/* $configure_input */"
19487 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19488 echo "$as_me: executing $ac_file commands" >&6;}
19493 case $ac_file$ac_mode in
19494 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19495 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19496 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19497 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19498 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19499 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19500 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19501 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19502 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19503 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19504 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19505 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19506 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19507 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19508 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19509 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19510 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19511 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19512 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19513 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19514 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19515 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19516 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19517 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19523 { (exit 0); exit 0; }
19525 chmod +x $CONFIG_STATUS
19526 ac_clean_files=$ac_clean_files_save
19529 # configure is writing to config.log, and then calls config.status.
19530 # config.status does its own redirection, appending to config.log.
19531 # Unfortunately, on DOS this fails, as config.log is still kept open
19532 # by configure, so config.status won't be able to write to it; its
19533 # output is simply discarded. So we exec the FD to /dev/null,
19534 # effectively closing config.log, so it can be properly (re)opened and
19535 # appended to by config.status. When coming back to configure, we
19536 # need to make the FD available again.
19537 if test "$no_create" != yes; then
19539 ac_config_status_args=
19540 test "$silent" = yes &&
19541 ac_config_status_args="$ac_config_status_args --quiet"
19543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19546 # would make configure fail if this is the last instruction.
19547 $ac_cs_success || { (exit 1); exit 1; }
19551 # CONFIG_SUBDIRS section.
19553 if test "$no_recursion" != yes; then
19555 # Remove --cache-file and --srcdir arguments so they do not pile up.
19556 ac_sub_configure_args=
19558 eval "set x $ac_configure_args"
19562 if test -n "$ac_prev"; then
19567 -cache-file | --cache-file | --cache-fil | --cache-fi \
19568 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19569 ac_prev=cache_file ;;
19570 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19571 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19574 --config-cache | -C)
19576 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19578 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19580 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19582 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19586 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19588 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19592 # Always prepend --prefix to ensure using the same prefix
19593 # in subdir configurations.
19594 ac_arg="--prefix=$prefix"
19596 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19598 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19601 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19603 # Do not complain, so a configure script can configure whichever
19604 # parts of a large source tree are present.
19605 test -d "$srcdir/$ac_dir" || continue
19607 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19608 echo "$as_me:$LINENO: $ac_msg" >&5
19612 -*) as_dir=./$as_dir;;
19614 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19618 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19619 *) as_qdir=$as_dir;;
19621 as_dirs="'$as_qdir' $as_dirs"
19622 as_dir=`$as_dirname -- "$as_dir" ||
19623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19624 X"$as_dir" : 'X\(//\)[^/]' \| \
19625 X"$as_dir" : 'X\(//\)$' \| \
19626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19632 /^X\(\/\/\)[^/].*/{
19645 test -d "$as_dir" && break
19647 test -z "$as_dirs" || eval "mkdir $as_dirs"
19648 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19649 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19650 { (exit 1); exit 1; }; }; }
19654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19657 # A ".." for each directory in $ac_dir_suffix.
19658 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19659 case $ac_top_builddir_sub in
19660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19664 ac_abs_top_builddir=$ac_pwd
19665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19666 # for backward compatibility:
19667 ac_top_builddir=$ac_top_build_prefix
19670 .) # We are building in place.
19672 ac_top_srcdir=$ac_top_builddir_sub
19673 ac_abs_top_srcdir=$ac_pwd ;;
19674 [\\/]* | ?:[\\/]* ) # Absolute name.
19675 ac_srcdir=$srcdir$ac_dir_suffix;
19676 ac_top_srcdir=$srcdir
19677 ac_abs_top_srcdir=$srcdir ;;
19678 *) # Relative name.
19679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19680 ac_top_srcdir=$ac_top_build_prefix$srcdir
19681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19688 # Check for guested configure; otherwise get Cygnus style configure.
19689 if test -f "$ac_srcdir/configure.gnu"; then
19690 ac_sub_configure=$ac_srcdir/configure.gnu
19691 elif test -f "$ac_srcdir/configure"; then
19692 ac_sub_configure=$ac_srcdir/configure
19693 elif test -f "$ac_srcdir/configure.in"; then
19694 # This should be Cygnus configure.
19695 ac_sub_configure=$ac_aux_dir/configure
19697 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19698 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19702 # The recursion is here.
19703 if test -n "$ac_sub_configure"; then
19704 # Make the cache file name correct relative to the subdirectory.
19705 case $cache_file in
19706 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19707 *) # Relative name.
19708 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19711 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19712 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19713 # The eval makes quoting arguments work.
19714 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19715 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19716 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19717 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19718 { (exit 1); exit 1; }; }