2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
700 ENABLE_ABI_BREAKING_CHECKS
710 enable_external_search
711 enable_server_based_search
713 extra_search_mappings
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
777 HAVE_LINK_VERSION_SCRIPT
780 NO_MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
811 ENABLE_VISIBILITY_INLINES_HIDDEN
818 ac_precious_vars='build_alias
829 ac_subdirs_all='projects/test-suite
832 projects/llvm-poolalloc
836 # Initialize some variables set by options.
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name=s,x,x,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 -enable-* | --enable-*)
956 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960 { (exit 1); exit 1; }; }
961 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962 eval enable_$ac_feature=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package| sed 's/-/_/g'`
1159 eval with_$ac_package=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package=`echo $ac_package | sed 's/-/_/g'`
1168 eval with_$ac_package=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190 { (exit 1); exit 1; }; }
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198 { (exit 1); exit 1; }; }
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 { echo "$as_me: error: missing argument to $ac_option" >&2
1216 { (exit 1); exit 1; }; }
1219 # Be sure to have absolute directory names.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231 { (exit 1); exit 1; }; }
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 { echo "$as_me: error: Working directory cannot be determined" >&2
1262 { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 { echo "$as_me: error: pwd does not report name of working directory" >&2
1265 { (exit 1); exit 1; }; }
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$0" : 'X\(//\)[^/]' \| \
1275 X"$0" : 'X\(//\)$' \| \
1276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305 { (exit 1); exit 1; }; }
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310 { (exit 1); exit 1; }; }
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1336 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-polly Use polly if available (default is YES)
1410 --enable-libcpp Use libc++ if available (default is NO)
1411 --enable-compiler-version-checks
1412 Check the version of the host compiler (default is
1414 --enable-cxx1y Use c++1y if available (default is NO)
1415 --enable-split-dwarf Use split-dwarf if available (default is NO)
1416 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1417 --enable-clang-plugin-support
1418 Enable plugin support in clang (default is YES)
1419 --enable-clang-static-analyzer
1420 Enable building of clang Static Analyzer (default is
1422 --enable-optimized Compile with optimizations enabled (default is NO)
1423 --enable-profiling Compile with profiling enabled (default is NO)
1424 --enable-assertions Compile with assertion checks enabled (default is
1426 --enable-werror Compile with -Werror enabled (default is NO)
1427 --enable-expensive-checks
1428 Compile with expensive debug checks enabled (default
1430 --enable-abi-breaking-checks
1431 Compile with abi-breaking asserts support (default
1433 --enable-debug-runtime Build runtime libs with debug symbols (default is
1435 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1436 optimization is on and YES if it's off)
1437 --enable-keep-symbols Do not strip installed executables)
1438 --enable-jit Enable Just In Time Compiling (default is YES)
1439 --enable-docs Build documents (default is YES)
1440 --enable-doxygen Build doxygen documentation (default is NO)
1441 --enable-doxygen-search Enable doxygen search support (default is NO)
1442 --enable-doxygen-external-search
1443 Enable doxygen exteranl search (default is NO)
1444 --enable-doxygen-qt-help
1445 Build Qt help files (default is NO)
1446 --enable-threads Use threads if available (default is YES)
1447 --enable-pthreads Use pthreads if available (default is YES)
1448 --enable-zlib Use zlib for compression/decompression if available
1450 --enable-pic Build LLVM with Position Independent Code (default
1452 --enable-shared Build a shared library and link tools against it
1454 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1455 Win32 DLL (default is NO)
1456 --enable-timestamps Enable embedding timestamp information in build
1458 --enable-backtraces Enable embedding backtraces on crash (default is
1460 --enable-crash-overrides
1461 Enable crash handling overrides (default is YES)
1462 --enable-targets Build specific host targets: all or
1463 target1,target2,... Valid targets are: host, x86,
1464 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465 hexagon, xcore, msp430, nvptx, systemz, r600, and
1467 --enable-experimental-targets
1468 Build experimental host targets: disable or
1469 target1,target2,... (default=disable)
1470 --enable-bindings Build specific language bindings:
1471 all,auto,none,{binding-name} (default=auto)
1472 --enable-terminfo Query the terminfo database if available (default is
1474 --enable-libedit Use libedit if available (default is YES)
1475 --enable-libffi Check for the presence of libffi (default is NO)
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-doxygen-search-engine-url
1481 Specify the external search engine for doxygen
1482 --with-doxygen-search-mappings
1483 Specify the extra search mapping for doxygen
1484 --with-optimize-option Select the compiler options to use for optimized
1486 --with-extra-options Specify additional options to compile LLVM with
1487 --with-extra-ld-options Specify additional options to link LLVM with
1488 --with-ocaml-libdir Specify install location for ocaml bindings (default
1490 --with-clang-srcdir Directory to the out-of-tree Clang source
1491 --with-clang-resource-dir
1492 Relative directory from the Clang binary for
1494 --with-c-include-dirs Colon separated list of directories clang will
1496 --with-gcc-toolchain Directory where gcc is installed.
1497 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1498 --with-binutils-include Specify path to binutils/include/ containing
1499 plugin-api.h file for gold plugin.
1500 --with-bug-report-url Specify the URL where bug reports should be
1501 submitted (default=http://llvm.org/bugs/)
1502 --with-internal-prefix Installation directory for internal files
1503 --with-python path to python
1504 --with-oprofile=<prefix>
1505 Tell OProfile >= 0.9.4 how to symbolize JIT output
1506 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1509 Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1523 Report bugs to <http://llvm.org/bugs/>.
1528 if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" || continue
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1551 .) # We are building in place.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1575 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1584 LLVM configure 3.7.0svn
1585 generated by GNU Autoconf 2.60
1587 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1588 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1592 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1596 cat >config.log <<_ACEOF
1597 This file contains any messages produced by compilers while
1598 running configure, to aid debugging if configure makes a mistake.
1600 It was created by LLVM $as_me 3.7.0svn, which was
1601 generated by GNU Autoconf 2.60. Invocation command line was
1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1623 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1626 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1627 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1628 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 echo "PATH: $as_dir"
1653 # Keep a trace of the command line.
1654 # Strip out --no-create and --no-recursion so they do not pile up.
1655 # Strip out --silent because we don't want to record it for future runs.
1656 # Also quote any args containing shell meta-characters.
1657 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_must_keep_next=false
1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669 | -silent | --silent | --silen | --sile | --sil)
1672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678 if test $ac_must_keep_next = true; then
1679 ac_must_keep_next=false # Got value, back to normal.
1682 *=* | --config-cache | -C | -disable-* | --disable-* \
1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685 | -with-* | --with-* | -without-* | --without-* | --x)
1686 case "$ac_configure_args0 " in
1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690 -* ) ac_must_keep_next=true ;;
1693 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701 # When interrupted or exit'd, cleanup temporary files, and complete
1702 # config.log. We remove comments because anyway the quotes in there
1703 # would cause problems or look ugly.
1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706 trap 'exit_status=$?
1707 # Save into config.log some information that might help in debugging.
1712 ## ---------------- ##
1713 ## Cache variables. ##
1714 ## ---------------- ##
1717 # The following way of writing the cache mishandles newlines in values,
1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720 eval ac_val=\$$ac_var
1724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728 _ | IFS | as_nl) ;; #(
1729 *) $as_unset $ac_var ;;
1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735 *${as_nl}ac_space=\ *)
1737 "s/'\''/'\''\\\\'\'''\''/g;
1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 ## ----------------- ##
1750 ## Output variables. ##
1751 ## ----------------- ##
1754 for ac_var in $ac_subst_vars
1756 eval ac_val=\$$ac_var
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 echo "$ac_var='\''$ac_val'\''"
1764 if test -n "$ac_subst_files"; then
1766 ## ------------------- ##
1767 ## File substitutions. ##
1768 ## ------------------- ##
1771 for ac_var in $ac_subst_files
1773 eval ac_val=\$$ac_var
1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 echo "$ac_var='\''$ac_val'\''"
1782 if test -s confdefs.h; then
1792 test "$ac_signal" != 0 &&
1793 echo "$as_me: caught signal $ac_signal"
1794 echo "$as_me: exit $exit_status"
1796 rm -f core *.core core.conftest.* &&
1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800 for ac_signal in 1 2 13 15; do
1801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1806 rm -f -r conftest* confdefs.h
1808 # Predefined preprocessor variables.
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_NAME "$PACKAGE_NAME"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_STRING "$PACKAGE_STRING"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835 # Let the site file select an alternate cache file if it wants to.
1836 # Prefer explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838 set x "$CONFIG_SITE"
1839 elif test "x$prefix" != xNONE; then
1840 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1842 set x "$ac_default_prefix/share/config.site" \
1843 "$ac_default_prefix/etc/config.site"
1848 if test -r "$ac_site_file"; then
1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 echo "$as_me: loading site script $ac_site_file" >&6;}
1851 sed 's/^/| /' "$ac_site_file" >&5
1856 if test -r "$cache_file"; then
1857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 echo "$as_me: loading cache $cache_file" >&6;}
1863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864 *) . "./$cache_file";;
1868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 echo "$as_me: creating cache $cache_file" >&6;}
1873 # Check that the precious variables saved in the cache have kept the same
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878 eval ac_new_set=\$ac_env_${ac_var}_set
1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880 eval ac_new_val=\$ac_env_${ac_var}_value
1881 case $ac_old_set,$ac_new_set in
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1892 if test "x$ac_old_val" != "x$ac_new_val"; then
1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1896 echo "$as_me: former value: $ac_old_val" >&2;}
1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1898 echo "$as_me: current value: $ac_new_val" >&2;}
1899 ac_cache_corrupted=:
1902 # Pass precious variables to config.status.
1903 if test "$ac_new_set" = set; then
1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 *) ac_arg=$ac_var=$ac_new_val ;;
1908 case " $ac_configure_args " in
1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914 if $ac_cache_corrupted; then
1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919 { (exit 1); exit 1; }; }
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 LLVM_VERSION_MAJOR=3
1955 LLVM_VERSION_MINOR=7
1956 LLVM_VERSION_PATCH=0
1957 LLVM_VERSION_SUFFIX=svn
1960 cat >>confdefs.h <<_ACEOF
1961 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1965 cat >>confdefs.h <<_ACEOF
1966 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1970 cat >>confdefs.h <<_ACEOF
1971 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1975 cat >>confdefs.h <<_ACEOF
1976 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1985 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1994 for ac_dir in autoconf "$srcdir"/autoconf; do
1995 if test -f "$ac_dir/install-sh"; then
1997 ac_install_sh="$ac_aux_dir/install-sh -c"
1999 elif test -f "$ac_dir/install.sh"; then
2001 ac_install_sh="$ac_aux_dir/install.sh -c"
2003 elif test -f "$ac_dir/shtool"; then
2005 ac_install_sh="$ac_aux_dir/shtool install -c"
2009 if test -z "$ac_aux_dir"; then
2010 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2011 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2012 { (exit 1); exit 1; }; }
2015 # These three variables are undocumented and unsupported,
2016 # and are intended to be withdrawn in a future Autoconf release.
2017 # They can cause serious problems if a builder's source tree is in a directory
2018 # whose full name contains unusual characters.
2019 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2020 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2021 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2025 if test ${srcdir} != "." ; then
2026 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2027 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2028 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2029 { (exit 1); exit 1; }; }
2037 ac_cpp='$CPP $CPPFLAGS'
2038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041 if test -n "$ac_tool_prefix"; then
2042 for ac_prog in clang gcc
2044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048 if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 if test -n "$CC"; then
2052 ac_cv_prog_CC="$CC" # Let the user override the test.
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 if test -n "$CC"; then
2073 { echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6; }
2076 { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2081 test -n "$CC" && break
2084 if test -z "$CC"; then
2086 for ac_prog in clang gcc
2088 # Extract the first word of "$ac_prog", so it can be a program name with args.
2089 set dummy $ac_prog; ac_word=$2
2090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2105 ac_cv_prog_ac_ct_CC="$ac_prog"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116 if test -n "$ac_ct_CC"; then
2117 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118 echo "${ECHO_T}$ac_ct_CC" >&6; }
2120 { echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6; }
2125 test -n "$ac_ct_CC" && break
2128 if test "x$ac_ct_CC" = x; then
2131 case $cross_compiling:$ac_tool_warned in
2133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2134 whose name does not start with the host triplet. If you think this
2135 configuration is useful to you, please write to autoconf@gnu.org." >&5
2136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2137 whose name does not start with the host triplet. If you think this
2138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2139 ac_tool_warned=yes ;;
2146 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: no acceptable C compiler found in \$PATH
2149 See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
2152 # Provide some information about the compiler.
2153 echo "$as_me:$LINENO: checking for C compiler version" >&5
2154 ac_compiler=`set X $ac_compile; echo $2`
2155 { (ac_try="$ac_compiler --version >&5"
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2161 (eval "$ac_compiler --version >&5") 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (ac_try="$ac_compiler -v >&5"
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2171 (eval "$ac_compiler -v >&5") 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }
2175 { (ac_try="$ac_compiler -V >&5"
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2181 (eval "$ac_compiler -V >&5") 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }
2186 cat >conftest.$ac_ext <<_ACEOF
2189 cat confdefs.h >>conftest.$ac_ext
2190 cat >>conftest.$ac_ext <<_ACEOF
2191 /* end confdefs.h. */
2201 ac_clean_files_save=$ac_clean_files
2202 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2203 # Try to create an executable without -o first, disregard a.out.
2204 # It will help us diagnose broken compilers, and finding out an intuition
2206 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2207 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2208 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2210 # List of possible output files, starting from the most likely.
2211 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2212 # only as a last resort. b.out is created by i960 compilers.
2213 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2215 # The IRIX 6 linker writes into existing files which may not be
2216 # executable, retaining their permissions. Remove them first so a
2217 # subsequent execution test works.
2219 for ac_file in $ac_files
2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2223 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2228 if { (ac_try="$ac_link_default"
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234 (eval "$ac_link_default") 2>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; then
2238 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2239 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2240 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2241 # so that the user can short-circuit this test for compilers unknown to
2243 for ac_file in $ac_files
2245 test -f "$ac_file" || continue
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2250 # We found the default executable, but exeext='' is most
2254 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2256 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2258 # We set ac_cv_exeext here because the later test for it is not
2259 # safe: cross compilers may not add the suffix if given an `-o'
2260 # argument, so we may need to know it at that point already.
2261 # Even if this section looks crufty: it has the advantage of
2268 test "$ac_cv_exeext" = no && ac_cv_exeext=
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2274 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: C compiler cannot create executables
2277 See \`config.log' for more details." >&2;}
2278 { (exit 77); exit 77; }; }
2281 ac_exeext=$ac_cv_exeext
2282 { echo "$as_me:$LINENO: result: $ac_file" >&5
2283 echo "${ECHO_T}$ac_file" >&6; }
2285 # Check that the compiler produces executables we can run. If not, either
2286 # the compiler is broken, or we cross compile.
2287 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2289 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290 # If not cross compiling, check that we can run a simple program.
2291 if test "$cross_compiling" != yes; then
2292 if { ac_try='./$ac_file'
2293 { (case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_try") 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2304 if test "$cross_compiling" = maybe; then
2307 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2308 If you meant to cross compile, use \`--host'.
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot run C compiled programs.
2311 If you meant to cross compile, use \`--host'.
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2317 { echo "$as_me:$LINENO: result: yes" >&5
2318 echo "${ECHO_T}yes" >&6; }
2320 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2321 ac_clean_files=$ac_clean_files_save
2322 # Check that the compiler produces executables we can run. If not, either
2323 # the compiler is broken, or we cross compile.
2324 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2325 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2326 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2327 echo "${ECHO_T}$cross_compiling" >&6; }
2329 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2330 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2331 if { (ac_try="$ac_link"
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337 (eval "$ac_link") 2>&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then
2341 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2342 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2343 # work properly (i.e., refer to `conftest.exe'), while it won't with
2345 for ac_file in conftest.exe conftest conftest.*; do
2346 test -f "$ac_file" || continue
2348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2349 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2355 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2356 See \`config.log' for more details." >&5
2357 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2358 See \`config.log' for more details." >&2;}
2359 { (exit 1); exit 1; }; }
2362 rm -f conftest$ac_cv_exeext
2363 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2364 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2366 rm -f conftest.$ac_ext
2367 EXEEXT=$ac_cv_exeext
2369 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2370 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2371 if test "${ac_cv_objext+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 cat >conftest.$ac_ext <<_ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 rm -f conftest.o conftest.obj
2390 if { (ac_try="$ac_compile"
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_compile") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 for ac_file in conftest.o conftest.obj conftest.*; do
2401 test -f "$ac_file" || continue;
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2404 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2413 See \`config.log' for more details." >&5
2414 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2415 See \`config.log' for more details." >&2;}
2416 { (exit 1); exit 1; }; }
2419 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2421 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2422 echo "${ECHO_T}$ac_cv_objext" >&6; }
2423 OBJEXT=$ac_cv_objext
2425 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2426 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2427 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 cat >conftest.$ac_ext <<_ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2448 rm -f conftest.$ac_objext
2449 if { (ac_try="$ac_compile"
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compile") 2>conftest.er1
2457 grep -v '^ *+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
2472 { ac_try='test -s conftest.$ac_objext'
2473 { (case "(($ac_try" in
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_try") 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2494 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2495 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2496 GCC=`test $ac_compiler_gnu = yes && echo yes`
2497 ac_test_CFLAGS=${CFLAGS+set}
2498 ac_save_CFLAGS=$CFLAGS
2499 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2500 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_cc_g+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 ac_save_c_werror_flag=$ac_c_werror_flag
2505 ac_c_werror_flag=yes
2508 cat >conftest.$ac_ext <<_ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (ac_try="$ac_compile"
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2532 grep -v '^ *+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2538 { (case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_try") 2>&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (case "(($ac_try" in
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_try") 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2587 grep -v '^ *+' conftest.er1 >conftest.err
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; } &&
2602 { ac_try='test -s conftest.$ac_objext'
2603 { (case "(($ac_try" in
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_try") 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2619 cat >conftest.$ac_ext <<_ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2634 rm -f conftest.$ac_objext
2635 if { (ac_try="$ac_compile"
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_compile") 2>conftest.er1
2643 grep -v '^ *+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2649 { (case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_try") 2>&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; } &&
2658 { ac_try='test -s conftest.$ac_objext'
2659 { (case "(($ac_try" in
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_try") 2>&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_c_werror_flag=$ac_save_c_werror_flag
2685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2686 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2687 if test "$ac_test_CFLAGS" = set; then
2688 CFLAGS=$ac_save_CFLAGS
2689 elif test $ac_cv_prog_cc_g = yes; then
2690 if test "$GCC" = yes; then
2696 if test "$GCC" = yes; then
2702 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2703 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2704 if test "${ac_cv_prog_cc_c89+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 ac_cv_prog_cc_c89=no
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2717 #include <sys/types.h>
2718 #include <sys/stat.h>
2719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2720 struct buf { int x; };
2721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2722 static char *e (p, i)
2728 static char *f (char * (*g) (char **, int), char **p, ...)
2733 s = g (p, va_arg (v,int));
2738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2739 function prototypes and stuff, but not '\xHH' hex character constants.
2740 These don't provoke an error unfortunately, instead are silently treated
2741 as 'x'. The following induces an error, until -std is added to get
2742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2743 array size at least. It's necessary to write '\x00'==0 to get something
2744 that's true only with -std. */
2745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2748 inside strings and character constants. */
2750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2752 int test (int i, double x);
2753 struct s1 {int (*f) (int a);};
2754 struct s2 {int (*f) (double a);};
2755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2769 CC="$ac_save_CC $ac_arg"
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2779 grep -v '^ *+' conftest.er1 >conftest.err
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2785 { (case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_try") 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (case "(($ac_try" in
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_try") 2>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 ac_cv_prog_cc_c89=$ac_arg
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2812 rm -f core conftest.err conftest.$ac_objext
2813 test "x$ac_cv_prog_cc_c89" != "xno" && break
2815 rm -f conftest.$ac_ext
2820 case "x$ac_cv_prog_cc_c89" in
2822 { echo "$as_me:$LINENO: result: none needed" >&5
2823 echo "${ECHO_T}none needed" >&6; } ;;
2825 { echo "$as_me:$LINENO: result: unsupported" >&5
2826 echo "${ECHO_T}unsupported" >&6; } ;;
2828 CC="$CC $ac_cv_prog_cc_c89"
2829 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2830 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841 ac_cpp='$CXXCPP $CPPFLAGS'
2842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2845 if test -z "$CXX"; then
2846 if test -n "$CCC"; then
2849 if test -n "$ac_tool_prefix"; then
2850 for ac_prog in clang++ g++
2852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2856 if test "${ac_cv_prog_CXX+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 if test -n "$CXX"; then
2860 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test -n "$CXX"; then
2881 { echo "$as_me:$LINENO: result: $CXX" >&5
2882 echo "${ECHO_T}$CXX" >&6; }
2884 { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2889 test -n "$CXX" && break
2892 if test -z "$CXX"; then
2894 for ac_prog in clang++ g++
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if test -n "$ac_ct_CXX"; then
2904 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_ac_ct_CXX="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2924 if test -n "$ac_ct_CXX"; then
2925 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2926 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2928 { echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6; }
2933 test -n "$ac_ct_CXX" && break
2936 if test "x$ac_ct_CXX" = x; then
2939 case $cross_compiling:$ac_tool_warned in
2941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2942 whose name does not start with the host triplet. If you think this
2943 configuration is useful to you, please write to autoconf@gnu.org." >&5
2944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2945 whose name does not start with the host triplet. If you think this
2946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2947 ac_tool_warned=yes ;;
2955 # Provide some information about the compiler.
2956 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2957 ac_compiler=`set X $ac_compile; echo $2`
2958 { (ac_try="$ac_compiler --version >&5"
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_compiler --version >&5") 2>&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968 { (ac_try="$ac_compiler -v >&5"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compiler -v >&5") 2>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }
2978 { (ac_try="$ac_compiler -V >&5"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compiler -V >&5") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }
2989 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2990 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2991 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (case "(($ac_try" in
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_try") 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3058 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3059 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3060 GXX=`test $ac_compiler_gnu = yes && echo yes`
3061 ac_test_CXXFLAGS=${CXXFLAGS+set}
3062 ac_save_CXXFLAGS=$CXXFLAGS
3063 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3064 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3065 if test "${ac_cv_prog_cxx_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3069 ac_cxx_werror_flag=yes
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (case "(($ac_try" in
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_try") 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 ac_cv_prog_cxx_g=yes
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3127 cat >conftest.$ac_ext <<_ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3142 rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>conftest.er1
3151 grep -v '^ *+' conftest.er1 >conftest.err
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; } &&
3166 { ac_try='test -s conftest.$ac_objext'
3167 { (case "(($ac_try" in
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_try") 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3213 { (case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_try") 2>&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (case "(($ac_try" in
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_try") 2>&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 ac_cv_prog_cxx_g=yes
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3250 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3251 if test "$ac_test_CXXFLAGS" = set; then
3252 CXXFLAGS=$ac_save_CXXFLAGS
3253 elif test $ac_cv_prog_cxx_g = yes; then
3254 if test "$GXX" = yes; then
3260 if test "$GXX" = yes; then
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3278 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3279 # On Suns, sometimes $CPP names a directory.
3280 if test -n "$CPP" && test -d "$CPP"; then
3283 if test -z "$CPP"; then
3284 if test "${ac_cv_prog_CPP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 # Double quotes because CPP needs to be expanded
3288 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3291 for ac_c_preproc_warn_flag in '' yes
3293 # Use a header file that comes with gcc, so configuring glibc
3294 # with a fresh cross-compiler works.
3295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3296 # <limits.h> exists even on freestanding compilers.
3297 # On the NeXT, cc -E runs the code through the compiler's parser,
3298 # not just through cpp. "Syntax error" is here to catch this case.
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3306 # include <limits.h>
3308 # include <assert.h>
3312 if { (ac_try="$ac_cpp conftest.$ac_ext"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3320 grep -v '^ *+' conftest.er1 >conftest.err
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } >/dev/null; then
3325 if test -s conftest.err; then
3326 ac_cpp_err=$ac_c_preproc_warn_flag
3327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3334 if test -z "$ac_cpp_err"; then
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 # Broken: fails on valid input.
3344 rm -f conftest.err conftest.$ac_ext
3346 # OK, works on sane cases. Now check whether nonexistent headers
3347 # can be detected and how.
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3354 #include <ac_nonexistent.h>
3356 if { (ac_try="$ac_cpp conftest.$ac_ext"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364 grep -v '^ *+' conftest.er1 >conftest.err
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_c_preproc_warn_flag
3371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378 if test -z "$ac_cpp_err"; then
3379 # Broken: success on invalid input.
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 # Passes both tests.
3390 rm -f conftest.err conftest.$ac_ext
3393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3394 rm -f conftest.err conftest.$ac_ext
3395 if $ac_preproc_ok; then
3407 { echo "$as_me:$LINENO: result: $CPP" >&5
3408 echo "${ECHO_T}$CPP" >&6; }
3410 for ac_c_preproc_warn_flag in '' yes
3412 # Use a header file that comes with gcc, so configuring glibc
3413 # with a fresh cross-compiler works.
3414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3415 # <limits.h> exists even on freestanding compilers.
3416 # On the NeXT, cc -E runs the code through the compiler's parser,
3417 # not just through cpp. "Syntax error" is here to catch this case.
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3425 # include <limits.h>
3427 # include <assert.h>
3431 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } >/dev/null; then
3444 if test -s conftest.err; then
3445 ac_cpp_err=$ac_c_preproc_warn_flag
3446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453 if test -z "$ac_cpp_err"; then
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 # Broken: fails on valid input.
3463 rm -f conftest.err conftest.$ac_ext
3465 # OK, works on sane cases. Now check whether nonexistent headers
3466 # can be detected and how.
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #include <ac_nonexistent.h>
3475 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483 grep -v '^ *+' conftest.er1 >conftest.err
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3497 if test -z "$ac_cpp_err"; then
3498 # Broken: success on invalid input.
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 # Passes both tests.
3509 rm -f conftest.err conftest.$ac_ext
3512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513 rm -f conftest.err conftest.$ac_ext
3514 if $ac_preproc_ok; then
3517 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3518 See \`config.log' for more details." >&5
3519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531 if test "$CXX" = "clang++" ; then
3532 { echo "$as_me:$LINENO: checking whether clang works" >&5
3533 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3535 ac_cpp='$CXXCPP $CPPFLAGS'
3536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3548 #if __has_include (<cxxabi.h>)
3551 #if __has_include (<unwind.h>)
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3578 { (case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_try") 2>&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (case "(($ac_try" in
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_try") 2>&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3598 { echo "$as_me:$LINENO: result: yes" >&5
3599 echo "${ECHO_T}yes" >&6; }
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3606 { echo "$as_me:$LINENO: result: no" >&5
3607 echo "${ECHO_T}no" >&6; }
3608 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3609 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3610 { (exit 1); exit 1; }; }
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 ac_cpp='$CPP $CPPFLAGS'
3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3624 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3626 ac_cpp='$CXXCPP $CPPFLAGS'
3627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3631 llvm_cv_cxx_compiler=unknown
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3643 rm -f conftest.$ac_objext
3644 if { (ac_try="$ac_compile"
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_compile") 2>conftest.er1
3652 grep -v '^ *+' conftest.er1 >conftest.err
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3658 { (case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_try") 2>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest.$ac_objext'
3668 { (case "(($ac_try" in
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_try") 2>&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 llvm_cv_cxx_compiler=clang
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3693 rm -f conftest.$ac_objext
3694 if { (ac_try="$ac_compile"
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3702 grep -v '^ *+' conftest.er1 >conftest.err
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3708 { (case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_try") 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (case "(($ac_try" in
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_try") 2>&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 llvm_cv_cxx_compiler=gcc
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3746 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3750 if test -d ${srcdir}/projects/test-suite ; then
3751 subdirs="$subdirs projects/test-suite"
3755 if test -d ${srcdir}/projects/llvm-test ; then
3756 subdirs="$subdirs projects/llvm-test"
3760 if test -d ${srcdir}/projects/poolalloc ; then
3761 subdirs="$subdirs projects/poolalloc"
3765 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3766 subdirs="$subdirs projects/llvm-poolalloc"
3770 for i in `ls ${srcdir}/projects`
3772 if test -d ${srcdir}/projects/${i} ; then
3774 safecode) subdirs="$subdirs projects/safecode"
3782 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3783 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3789 # Check whether --enable-polly was given.
3790 if test "${enable_polly+set}" = set; then
3791 enableval=$enable_polly;
3796 case "$enableval" in
3801 default) ENABLE_POLLY=1
3803 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3804 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3805 { (exit 1); exit 1; }; } ;;
3809 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3812 subdirs="$subdirs tools/polly"
3817 # Make sure we can run config.sub.
3818 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3819 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3820 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3821 { (exit 1); exit 1; }; }
3823 { echo "$as_me:$LINENO: checking build system type" >&5
3824 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3825 if test "${ac_cv_build+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 ac_build_alias=$build_alias
3829 test "x$ac_build_alias" = x &&
3830 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3831 test "x$ac_build_alias" = x &&
3832 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3833 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3834 { (exit 1); exit 1; }; }
3835 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3836 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3837 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3838 { (exit 1); exit 1; }; }
3841 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3842 echo "${ECHO_T}$ac_cv_build" >&6; }
3843 case $ac_cv_build in
3845 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3846 echo "$as_me: error: invalid value of canonical build" >&2;}
3847 { (exit 1); exit 1; }; };;
3850 ac_save_IFS=$IFS; IFS='-'
3856 # Remember, the first character of IFS is used to create $*,
3857 # except with old shells:
3860 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3863 { echo "$as_me:$LINENO: checking host system type" >&5
3864 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3865 if test "${ac_cv_host+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 if test "x$host_alias" = x; then
3869 ac_cv_host=$ac_cv_build
3871 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3872 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3873 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3874 { (exit 1); exit 1; }; }
3878 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3879 echo "${ECHO_T}$ac_cv_host" >&6; }
3882 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3883 echo "$as_me: error: invalid value of canonical host" >&2;}
3884 { (exit 1); exit 1; }; };;
3887 ac_save_IFS=$IFS; IFS='-'
3893 # Remember, the first character of IFS is used to create $*,
3894 # except with old shells:
3897 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3900 { echo "$as_me:$LINENO: checking target system type" >&5
3901 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3902 if test "${ac_cv_target+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 if test "x$target_alias" = x; then
3906 ac_cv_target=$ac_cv_host
3908 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3909 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3910 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3911 { (exit 1); exit 1; }; }
3915 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3916 echo "${ECHO_T}$ac_cv_target" >&6; }
3917 case $ac_cv_target in
3919 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3920 echo "$as_me: error: invalid value of canonical target" >&2;}
3921 { (exit 1); exit 1; }; };;
3923 target=$ac_cv_target
3924 ac_save_IFS=$IFS; IFS='-'
3930 # Remember, the first character of IFS is used to create $*,
3931 # except with old shells:
3934 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3937 # The aliases save the names the user supplied, while $host etc.
3938 # will get canonicalized.
3939 test -n "$target_alias" &&
3940 test "$program_prefix$program_suffix$program_transform_name" = \
3942 program_prefix=${target_alias}-
3944 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3945 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3946 if test "${llvm_cv_os_type+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 llvm_cv_link_all_option="-Wl,--whole-archive"
3952 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3953 llvm_cv_os_type="AIX"
3954 llvm_cv_platform_type="Unix" ;;
3956 llvm_cv_link_all_option="-Wl,--whole-archive"
3957 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3958 llvm_cv_os_type="IRIX"
3959 llvm_cv_platform_type="Unix" ;;
3961 llvm_cv_link_all_option="-Wl,--whole-archive"
3962 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3963 llvm_cv_os_type="Cygwin"
3964 llvm_cv_platform_type="Unix" ;;
3966 llvm_cv_link_all_option="-Wl,-all_load"
3967 llvm_cv_no_link_all_option="-Wl,-noall_load"
3968 llvm_cv_os_type="Darwin"
3969 llvm_cv_platform_type="Unix" ;;
3971 llvm_cv_link_all_option="-Wl,-all_load"
3972 llvm_cv_no_link_all_option="-Wl,-noall_load"
3973 llvm_cv_os_type="Minix"
3974 llvm_cv_platform_type="Unix" ;;
3976 llvm_cv_link_all_option="-Wl,--whole-archive"
3977 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3978 llvm_cv_os_type="FreeBSD"
3979 llvm_cv_platform_type="Unix" ;;
3981 llvm_cv_link_all_option="-Wl,--whole-archive"
3982 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3983 llvm_cv_os_type="GNU/kFreeBSD"
3984 llvm_cv_platform_type="Unix" ;;
3986 llvm_cv_link_all_option="-Wl,--whole-archive"
3987 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3988 llvm_cv_os_type="OpenBSD"
3989 llvm_cv_platform_type="Unix" ;;
3991 llvm_cv_link_all_option="-Wl,--whole-archive"
3992 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3993 llvm_cv_os_type="NetBSD"
3994 llvm_cv_platform_type="Unix" ;;
3996 llvm_cv_link_all_option="-Wl,--whole-archive"
3997 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3998 llvm_cv_os_type="DragonFly"
3999 llvm_cv_platform_type="Unix" ;;
4001 llvm_cv_link_all_option="-Wl,--whole-archive"
4002 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4003 llvm_cv_os_type="Bitrig"
4004 llvm_cv_platform_type="Unix" ;;
4006 llvm_cv_link_all_option="-Wl,--whole-archive"
4007 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4008 llvm_cv_os_type="HP-UX"
4009 llvm_cv_platform_type="Unix" ;;
4011 llvm_cv_link_all_option="-Wl,--whole-archive"
4012 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4013 llvm_cv_os_type="Interix"
4014 llvm_cv_platform_type="Unix" ;;
4016 llvm_cv_link_all_option="-Wl,--whole-archive"
4017 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4018 llvm_cv_os_type="Linux"
4019 llvm_cv_platform_type="Unix" ;;
4021 llvm_cv_link_all_option="-Wl,--whole-archive"
4022 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4023 llvm_cv_os_type="GNU"
4024 llvm_cv_platform_type="Unix" ;;
4026 llvm_cv_link_all_option="-Wl,-z,allextract"
4027 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4028 llvm_cv_os_type="SunOS"
4029 llvm_cv_platform_type="Unix" ;;
4031 llvm_cv_link_all_option="-Wl,--whole-archive"
4032 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4033 llvm_cv_os_type="Win32"
4034 llvm_cv_platform_type="Win32" ;;
4036 llvm_cv_link_all_option="-Wl,--whole-archive"
4037 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4038 llvm_cv_os_type="MingW"
4039 llvm_cv_platform_type="Win32" ;;
4041 llvm_cv_link_all_option="-Wl,--whole-archive"
4042 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4043 llvm_cv_os_type="Haiku"
4044 llvm_cv_platform_type="Unix" ;;
4046 llvm_cv_link_all_option="-Wl,--whole-archive"
4047 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4048 llvm_cv_os_type="Freestanding"
4049 llvm_cv_platform_type="Unix" ;;
4051 llvm_cv_link_all_option="-Wl,--whole-archive"
4052 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4053 llvm_cv_os_type="Freestanding"
4054 llvm_cv_platform_type="Unix" ;;
4056 llvm_cv_link_all_option=""
4057 llvm_cv_no_link_all_option=""
4058 llvm_cv_os_type="Unknown"
4059 llvm_cv_platform_type="Unknown" ;;
4062 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4063 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4065 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4066 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4067 if test "${llvm_cv_target_os_type+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 llvm_cv_target_os_type="AIX" ;;
4074 llvm_cv_target_os_type="IRIX" ;;
4076 llvm_cv_target_os_type="Cygwin" ;;
4078 llvm_cv_target_os_type="Darwin" ;;
4080 llvm_cv_target_os_type="Minix" ;;
4082 llvm_cv_target_os_type="FreeBSD" ;;
4084 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4086 llvm_cv_target_os_type="OpenBSD" ;;
4088 llvm_cv_target_os_type="NetBSD" ;;
4090 llvm_cv_target_os_type="DragonFly" ;;
4092 llvm_cv_target_os_type="Bitrig" ;;
4094 llvm_cv_target_os_type="HP-UX" ;;
4096 llvm_cv_target_os_type="Interix" ;;
4098 llvm_cv_target_os_type="Linux" ;;
4100 llvm_cv_target_os_type="GNU" ;;
4102 llvm_cv_target_os_type="SunOS" ;;
4104 llvm_cv_target_os_type="Win32" ;;
4106 llvm_cv_target_os_type="MingW" ;;
4108 llvm_cv_target_os_type="Haiku" ;;
4110 llvm_cv_target_os_type="RTEMS" ;;
4112 llvm_cv_target_os_type="NativeClient" ;;
4114 llvm_cv_target_os_type="Freestanding" ;;
4116 llvm_cv_target_os_type="PS4" ;;
4118 llvm_cv_target_os_type="Unknown" ;;
4121 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4122 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4124 if test "$llvm_cv_os_type" = "Unknown" ; then
4125 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4126 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4127 { (exit 1); exit 1; }; }
4132 HOST_OS=$llvm_cv_os_type
4134 TARGET_OS=$llvm_cv_target_os_type
4137 LINKALL=$llvm_cv_link_all_option
4139 NOLINKALL=$llvm_cv_no_link_all_option
4142 case $llvm_cv_platform_type in
4145 cat >>confdefs.h <<\_ACEOF
4146 #define LLVM_ON_UNIX 1
4156 cat >>confdefs.h <<\_ACEOF
4157 #define LLVM_ON_WIN32 1
4167 { echo "$as_me:$LINENO: checking target architecture" >&5
4168 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4169 if test "${llvm_cv_target_arch+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 i?86-*) llvm_cv_target_arch="x86" ;;
4174 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4175 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4176 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4177 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4178 arm*-*) llvm_cv_target_arch="ARM" ;;
4179 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4180 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4181 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4182 xcore-*) llvm_cv_target_arch="XCore" ;;
4183 msp430-*) llvm_cv_target_arch="MSP430" ;;
4184 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4185 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4186 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4187 *) llvm_cv_target_arch="Unknown" ;;
4190 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4191 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4193 if test "$llvm_cv_target_arch" = "Unknown" ; then
4194 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4195 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4198 case "$llvm_cv_target_arch" in
4199 x86) LLVM_NATIVE_ARCH="X86" ;;
4200 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4201 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4204 ARCH=$llvm_cv_target_arch
4206 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4210 i?86-*) host_arch="x86" ;;
4211 amd64-* | x86_64-*) host_arch="x86_64" ;;
4212 sparc*-*) host_arch="Sparc" ;;
4213 powerpc*-*) host_arch="PowerPC" ;;
4214 arm64*-*) host_arch="AArch64" ;;
4215 arm*-*) host_arch="ARM" ;;
4216 aarch64*-*) host_arch="AArch64" ;;
4217 mips-* | mips64-*) host_arch="Mips" ;;
4218 mipsel-* | mips64el-*) host_arch="Mips" ;;
4219 xcore-*) host_arch="XCore" ;;
4220 msp430-*) host_arch="MSP430" ;;
4221 hexagon-*) host_arch="Hexagon" ;;
4222 s390x-*) host_arch="SystemZ" ;;
4223 *) host_arch="Unknown" ;;
4226 if test "$host_arch" = "Unknown" ; then
4227 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4228 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4231 HOST_ARCH=$host_arch
4234 if test "$cross_compiling" = yes; then
4235 LLVM_CROSS_COMPILING=1
4238 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4239 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4240 if test "${ac_cv_build_exeext+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4244 ac_cv_build_exeext=.exe
4246 ac_build_prefix=${build_alias}-
4248 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4249 set dummy ${ac_build_prefix}gcc; ac_word=$2
4250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4252 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 if test -n "$BUILD_CC"; then
4256 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4265 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 BUILD_CC=$ac_cv_prog_BUILD_CC
4276 if test -n "$BUILD_CC"; then
4277 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4278 echo "${ECHO_T}$BUILD_CC" >&6; }
4280 { echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6; }
4285 if test -z "$BUILD_CC"; then
4286 # Extract the first word of "gcc", so it can be a program name with args.
4287 set dummy gcc; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 if test -n "$BUILD_CC"; then
4294 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_BUILD_CC="gcc"
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 BUILD_CC=$ac_cv_prog_BUILD_CC
4314 if test -n "$BUILD_CC"; then
4315 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4316 echo "${ECHO_T}$BUILD_CC" >&6; }
4318 { echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6; }
4323 if test -z "$BUILD_CC"; then
4324 # Extract the first word of "cc", so it can be a program name with args.
4325 set dummy cc; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 if test -n "$BUILD_CC"; then
4332 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4343 ac_prog_rejected=yes
4346 ac_cv_prog_BUILD_CC="cc"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 if test $ac_prog_rejected = yes; then
4355 # We found a bogon in the path, so make sure we never use it.
4356 set dummy $ac_cv_prog_BUILD_CC
4358 if test $# != 0; then
4359 # We chose a different compiler from the bogus one.
4360 # However, it has the same basename, so the bogon will be chosen
4361 # first if we set BUILD_CC to just the basename; use the full file name.
4363 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4368 BUILD_CC=$ac_cv_prog_BUILD_CC
4369 if test -n "$BUILD_CC"; then
4370 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4371 echo "${ECHO_T}$BUILD_CC" >&6; }
4373 { echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6; }
4380 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4381 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4382 { (exit 1); exit 1; }; }
4383 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4385 echo 'int main () { return 0; }' > conftest.$ac_ext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4388 (eval $ac_build_link) 2>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; then
4392 for file in conftest.*; do
4394 *.c | *.o | *.obj | *.dSYM) ;;
4395 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4399 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4400 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4401 { (exit 1); exit 1; }; }
4404 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4409 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4410 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4411 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4412 ac_build_exeext=$BUILD_EXEEXT
4414 ac_build_prefix=${build_alias}-
4415 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4416 set dummy ${ac_build_prefix}g++; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 if test -n "$BUILD_CXX"; then
4423 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4443 if test -n "$BUILD_CXX"; then
4444 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4445 echo "${ECHO_T}$BUILD_CXX" >&6; }
4447 { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4452 if test -z "$BUILD_CXX"; then
4453 # Extract the first word of "g++", so it can be a program name with args.
4454 set dummy g++; ac_word=$2
4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 if test -n "$BUILD_CXX"; then
4461 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4470 ac_cv_prog_BUILD_CXX="g++"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4481 if test -n "$BUILD_CXX"; then
4482 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4483 echo "${ECHO_T}$BUILD_CXX" >&6; }
4485 { echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6; }
4490 if test -z "$BUILD_CXX"; then
4491 # Extract the first word of "c++", so it can be a program name with args.
4492 set dummy c++; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 if test -n "$BUILD_CXX"; then
4499 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4510 ac_prog_rejected=yes
4513 ac_cv_prog_BUILD_CXX="c++"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 if test $ac_prog_rejected = yes; then
4522 # We found a bogon in the path, so make sure we never use it.
4523 set dummy $ac_cv_prog_BUILD_CXX
4525 if test $# != 0; then
4526 # We chose a different compiler from the bogus one.
4527 # However, it has the same basename, so the bogon will be chosen
4528 # first if we set BUILD_CXX to just the basename; use the full file name.
4530 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4535 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4536 if test -n "$BUILD_CXX"; then
4537 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4538 echo "${ECHO_T}$BUILD_CXX" >&6; }
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4548 LLVM_CROSS_COMPILING=0
4552 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4563 # Check whether --enable-libcpp was given.
4564 if test "${enable_libcpp+set}" = set; then
4565 enableval=$enable_libcpp;
4570 case "$enableval" in
4571 yes) ENABLE_LIBCPP=1
4575 default) ENABLE_LIBCPP=0
4577 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4578 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4579 { (exit 1); exit 1; }; } ;;
4582 # Check whether --enable-compiler-version-checks was given.
4583 if test "${enable_compiler_version_checks+set}" = set; then
4584 enableval=$enable_compiler_version_checks;
4589 case "$enableval" in
4594 ac_cpp='$CXXCPP $CPPFLAGS'
4595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4599 case "$llvm_cv_cxx_compiler" in
4601 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4602 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4603 cat >conftest.$ac_ext <<_ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4610 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4611 #error This version of Clang is too old to build LLVM
4615 rm -f conftest.$ac_objext
4616 if { (ac_try="$ac_compile"
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_compile") 2>conftest.er1
4624 grep -v '^ *+' conftest.er1 >conftest.err
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } &&
4629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4630 { (case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_try") 2>&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest.$ac_objext'
4640 { (case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_try") 2>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 { echo "$as_me:$LINENO: result: yes" >&5
4650 echo "${ECHO_T}yes" >&6; }
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4657 { { echo "$as_me:$LINENO: error:
4658 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4659 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4660 bypass these sanity checks." >&5
4661 echo "$as_me: error:
4662 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4663 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4664 bypass these sanity checks." >&2;}
4665 { (exit 1); exit 1; }; }
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 if test "$ENABLE_LIBCPP" -eq 0 ; then
4671 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4672 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4673 llvm_cv_old_cxxflags="$CXXFLAGS"
4674 CXXFLAGS="$CXXFLAGS -std=c++0x"
4675 cat >conftest.$ac_ext <<_ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4683 std::atomic<float> x(0.0f);
4684 int main() { return (float)x; }
4687 rm -f conftest.$ac_objext conftest$ac_exeext
4688 if { (ac_try="$ac_link"
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_link") 2>conftest.er1
4696 grep -v '^ *+' conftest.er1 >conftest.err
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4702 { (case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_try") 2>&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest$ac_exeext'
4712 { (case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_try") 2>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 { echo "$as_me:$LINENO: result: yes" >&5
4722 echo "${ECHO_T}yes" >&6; }
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4729 { { echo "$as_me:$LINENO: error:
4730 We detected a missing feature in the standard C++ library that was known to be
4731 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4732 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4733 than 4.7. You will need to update your system and ensure Clang uses the newer
4736 If this error is incorrect or you need to force things to work, you may pass
4737 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4738 echo "$as_me: error:
4739 We detected a missing feature in the standard C++ library that was known to be
4740 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4741 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4742 than 4.7. You will need to update your system and ensure Clang uses the newer
4745 If this error is incorrect or you need to force things to work, you may pass
4746 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4747 { (exit 1); exit 1; }; }
4750 rm -f core conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752 CXXFLAGS="$llvm_cv_old_cxxflags"
4756 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4757 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4765 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4766 #error This version of GCC is too old to build LLVM
4770 rm -f conftest.$ac_objext
4771 if { (ac_try="$ac_compile"
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_compile") 2>conftest.er1
4779 grep -v '^ *+' conftest.er1 >conftest.err
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4785 { (case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_try") 2>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try='test -s conftest.$ac_objext'
4795 { (case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_try") 2>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 { echo "$as_me:$LINENO: result: yes" >&5
4805 echo "${ECHO_T}yes" >&6; }
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4812 { { echo "$as_me:$LINENO: error:
4813 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4814 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4815 bypass these sanity checks." >&5
4816 echo "$as_me: error:
4817 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4818 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4819 bypass these sanity checks." >&2;}
4820 { (exit 1); exit 1; }; }
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 ac_cpp='$CPP $CPPFLAGS'
4830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4837 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4838 { (exit 1); exit 1; }; }
4842 # Check whether --enable-cxx1y was given.
4843 if test "${enable_cxx1y+set}" = set; then
4844 enableval=$enable_cxx1y;
4849 case "$enableval" in
4854 default) ENABLE_CXX1Y=0
4856 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4857 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4858 { (exit 1); exit 1; }; } ;;
4861 # Check whether --enable-split-dwarf was given.
4862 if test "${enable_split_dwarf+set}" = set; then
4863 enableval=$enable_split_dwarf;
4868 case "$enableval" in
4869 yes) ENABLE_SPLIT_DWARF=1
4871 no) ENABLE_SPLIT_DWARF=0
4873 default) ENABLE_SPLIT_DWARF=0
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4881 # Check whether --enable-clang-arcmt was given.
4882 if test "${enable_clang_arcmt+set}" = set; then
4883 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4888 case "$enableval" in
4889 yes) ENABLE_CLANG_ARCMT=1
4891 no) ENABLE_CLANG_ARCMT=0
4893 default) ENABLE_CLANG_ARCMT=1
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4900 clang_plugin_support="yes"
4901 # Check whether --enable-clang-plugin-support was given.
4902 if test "${enable_clang_plugin_support+set}" = set; then
4903 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4908 case "$enableval" in
4909 yes) CLANG_PLUGIN_SUPPORT=1
4911 no) CLANG_PLUGIN_SUPPORT=0
4913 default) CLANG_PLUGIN_SUPPORT=1
4915 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4916 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4917 { (exit 1); exit 1; }; } ;;
4920 clang_static_analyzer="yes"
4921 # Check whether --enable-clang-static-analyzer was given.
4922 if test "${enable_clang_static_analyzer+set}" = set; then
4923 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4928 case "$enableval" in
4929 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4932 if test ${clang_arcmt} != "no" ; then
4933 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4934 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4935 { (exit 1); exit 1; }; }
4937 ENABLE_CLANG_STATIC_ANALYZER=0
4940 default) ENABLE_CLANG_STATIC_ANALYZER=1
4942 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4943 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4944 { (exit 1); exit 1; }; } ;;
4947 # Check whether --enable-optimized was given.
4948 if test "${enable_optimized+set}" = set; then
4949 enableval=$enable_optimized;
4954 if test ${enableval} = "no" ; then
4958 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4962 # Check whether --enable-profiling was given.
4963 if test "${enable_profiling+set}" = set; then
4964 enableval=$enable_profiling;
4969 if test ${enableval} = "no" ; then
4973 ENABLE_PROFILING=ENABLE_PROFILING=1
4977 # Check whether --enable-assertions was given.
4978 if test "${enable_assertions+set}" = set; then
4979 enableval=$enable_assertions;
4984 if test ${enableval} = "yes" ; then
4987 assertions_enabled="yes"
4989 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4991 assertions_enabled="no"
4994 # Check whether --enable-werror was given.
4995 if test "${enable_werror+set}" = set; then
4996 enableval=$enable_werror;
5001 case "$enableval" in
5002 yes) ENABLE_WERROR=1
5006 default) ENABLE_WERROR=0
5008 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5009 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5010 { (exit 1); exit 1; }; } ;;
5013 # Check whether --enable-expensive-checks was given.
5014 if test "${enable_expensive_checks+set}" = set; then
5015 enableval=$enable_expensive_checks;
5020 if test ${enableval} = "yes" ; then
5021 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5023 EXPENSIVE_CHECKS=yes
5026 ENABLE_EXPENSIVE_CHECKS=
5032 # Check whether --enable-abi-breaking-checks was given.
5033 if test "${enable_abi_breaking_checks+set}" = set; then
5034 enableval=$enable_abi_breaking_checks;
5036 enableval="with-asserts"
5039 case "$enableval" in
5040 with-asserts) if test ${assertions_enabled} = "yes" ; then
5042 cat >>confdefs.h <<\_ACEOF
5043 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5046 ENABLE_ABI_BREAKING_CHECKS=1
5049 ENABLE_ABI_BREAKING_CHECKS=0
5054 cat >>confdefs.h <<\_ACEOF
5055 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5058 ENABLE_ABI_BREAKING_CHECKS=1
5062 ENABLE_ABI_BREAKING_CHECKS=0
5065 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5066 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5067 { (exit 1); exit 1; }; }
5070 # Check whether --enable-debug-runtime was given.
5071 if test "${enable_debug_runtime+set}" = set; then
5072 enableval=$enable_debug_runtime;
5077 if test ${enableval} = "no" ; then
5081 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5085 # Check whether --enable-debug-symbols was given.
5086 if test "${enable_debug_symbols+set}" = set; then
5087 enableval=$enable_debug_symbols;
5092 if test ${enableval} = "no" ; then
5096 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5100 # Check whether --enable-keep-symbols was given.
5101 if test "${enable_keep_symbols+set}" = set; then
5102 enableval=$enable_keep_symbols;
5107 if test ${enableval} = "no" ; then
5111 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5115 # Check whether --enable-jit was given.
5116 if test "${enable_jit+set}" = set; then
5117 enableval=$enable_jit;
5122 if test ${enableval} = "no"
5127 case "$llvm_cv_target_arch" in
5128 x86) TARGET_HAS_JIT=1
5130 Sparc) TARGET_HAS_JIT=0
5132 PowerPC) TARGET_HAS_JIT=1
5134 x86_64) TARGET_HAS_JIT=1
5136 ARM) TARGET_HAS_JIT=1
5138 Mips) TARGET_HAS_JIT=1
5140 XCore) TARGET_HAS_JIT=0
5142 MSP430) TARGET_HAS_JIT=0
5144 Hexagon) TARGET_HAS_JIT=0
5146 NVPTX) TARGET_HAS_JIT=0
5148 SystemZ) TARGET_HAS_JIT=1
5155 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5156 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5159 # Check whether --enable-docs was given.
5160 if test "${enable_docs+set}" = set; then
5161 enableval=$enable_docs;
5166 case "$enableval" in
5171 default) ENABLE_DOCS=1
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5178 # Check whether --enable-doxygen was given.
5179 if test "${enable_doxygen+set}" = set; then
5180 enableval=$enable_doxygen;
5185 case "$enableval" in
5186 yes) ENABLE_DOXYGEN=1
5188 no|default) ENABLE_DOXYGEN=0
5190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5191 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5192 { (exit 1); exit 1; }; } ;;
5195 # Check whether --enable-doxygen-search was given.
5196 if test "${enable_doxygen_search+set}" = set; then
5197 enableval=$enable_doxygen_search;
5202 ENABLE_DOXYGEN_SEARCH="$enableval"
5204 case "$enableval" in
5206 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5207 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5208 { (exit 1); exit 1; }; } ;;
5211 # Check whether --enable-doxygen-external-search was given.
5212 if test "${enable_doxygen_external_search+set}" = set; then
5213 enableval=$enable_doxygen_external_search;
5218 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5220 case "$enableval" in
5222 case "$ENABLE_DOXYGEN_SEARCH" in
5223 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5224 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5225 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5230 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5231 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5232 { (exit 1); exit 1; }; } ;;
5236 # Check whether --with-doxygen-search-engine-url was given.
5237 if test "${with_doxygen_search_engine_url+set}" = set; then
5238 withval=$with_doxygen_search_engine_url;
5241 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5244 # Check whether --with-doxygen-search-mappings was given.
5245 if test "${with_doxygen_search_mappings+set}" = set; then
5246 withval=$with_doxygen_search_mappings;
5249 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5251 case "$ENABLE_DOXYGEN_SEARCH" in
5253 if test "$ENABLE_DOXYGEN" = "0" ; then
5254 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5255 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5256 { (exit 1); exit 1; }; }
5259 enable_searchengine=YES
5262 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5264 enable_external_search=YES
5266 enable_server_based_search=YES
5268 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5270 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5275 enable_external_search=NO
5277 enable_server_based_search=NO
5286 enable_searchengine=NO
5289 enable_server_based_search=NO
5291 enable_external_search=NO
5297 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5298 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5299 { (exit 1); exit 1; }; }
5303 # Check whether --enable-doxygen-qt-help was given.
5304 if test "${enable_doxygen_qt_help+set}" = set; then
5305 enableval=$enable_doxygen_qt_help;
5310 case "$enableval" in
5312 if test "$ENABLE_DOXYGEN" = "0" ; then
5313 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5314 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5315 { (exit 1); exit 1; }; }
5318 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5319 set dummy qhelpgenerator; ac_word=$2
5320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5322 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 case $QHELPGENERATOR in
5327 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5349 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5350 if test -n "$QHELPGENERATOR"; then
5351 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5352 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5354 { echo "$as_me:$LINENO: result: no" >&5
5355 echo "${ECHO_T}no" >&6; }
5360 llvm_doxygen_generate_qhp=YES
5362 llvm_doxygen_qch_filename=org.llvm.qch
5364 llvm_doxygen_qhp_namespace=org.llvm
5366 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5368 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5370 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5373 clang_doxygen_generate_qhp=YES
5375 clang_doxygen_qch_filename=org.llvm.clang.qch
5377 clang_doxygen_qhp_namespace=org.llvm.clang
5379 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5381 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5383 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5388 llvm_doxygen_generate_qhp=NO
5396 clang_doxygen_generate_qhp=NO
5401 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5403 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5408 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5409 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5410 { (exit 1); exit 1; }; } ;;
5413 # Check whether --enable-threads was given.
5414 if test "${enable_threads+set}" = set; then
5415 enableval=$enable_threads;
5420 case "$enableval" in
5421 yes) LLVM_ENABLE_THREADS=1
5423 no) LLVM_ENABLE_THREADS=0
5425 default) LLVM_ENABLE_THREADS=1
5427 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5428 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5429 { (exit 1); exit 1; }; } ;;
5432 cat >>confdefs.h <<_ACEOF
5433 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5437 # Check whether --enable-pthreads was given.
5438 if test "${enable_pthreads+set}" = set; then
5439 enableval=$enable_pthreads;
5444 case "$enableval" in
5445 yes) ENABLE_PTHREADS=1
5447 no) ENABLE_PTHREADS=0
5449 default) ENABLE_PTHREADS=1
5451 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5452 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5453 { (exit 1); exit 1; }; } ;;
5456 # Check whether --enable-zlib was given.
5457 if test "${enable_zlib+set}" = set; then
5458 enableval=$enable_zlib;
5463 case "$enableval" in
5464 yes) LLVM_ENABLE_ZLIB=1
5466 no) LLVM_ENABLE_ZLIB=0
5468 default) LLVM_ENABLE_ZLIB=1
5470 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5471 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5472 { (exit 1); exit 1; }; } ;;
5475 cat >>confdefs.h <<_ACEOF
5476 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5480 # Check whether --enable-pic was given.
5481 if test "${enable_pic+set}" = set; then
5482 enableval=$enable_pic;
5487 case "$enableval" in
5492 default) ENABLE_PIC=1
5494 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5495 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5496 { (exit 1); exit 1; }; } ;;
5499 cat >>confdefs.h <<_ACEOF
5500 #define ENABLE_PIC $ENABLE_PIC
5504 # Check whether --enable-shared was given.
5505 if test "${enable_shared+set}" = set; then
5506 enableval=$enable_shared;
5511 case "$enableval" in
5512 yes) ENABLE_SHARED=1
5516 default) ENABLE_SHARED=0
5518 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5519 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5520 { (exit 1); exit 1; }; } ;;
5523 # Check whether --enable-embed-stdcxx was given.
5524 if test "${enable_embed_stdcxx+set}" = set; then
5525 enableval=$enable_embed_stdcxx;
5530 case "$enableval" in
5531 yes) ENABLE_EMBED_STDCXX=1
5533 no) ENABLE_EMBED_STDCXX=0
5535 default) ENABLE_EMBED_STDCXX=0
5537 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5538 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5539 { (exit 1); exit 1; }; } ;;
5542 # Check whether --enable-timestamps was given.
5543 if test "${enable_timestamps+set}" = set; then
5544 enableval=$enable_timestamps;
5549 case "$enableval" in
5550 yes) ENABLE_TIMESTAMPS=1
5552 no) ENABLE_TIMESTAMPS=0
5554 default) ENABLE_TIMESTAMPS=1
5556 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5557 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5558 { (exit 1); exit 1; }; } ;;
5561 cat >>confdefs.h <<_ACEOF
5562 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5566 # Check whether --enable-backtraces was given.
5567 if test "${enable_backtraces+set}" = set; then
5568 enableval=$enable_backtraces; case "$enableval" in
5569 yes) llvm_cv_enable_backtraces="yes" ;;
5570 no) llvm_cv_enable_backtraces="no" ;;
5571 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5572 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5573 { (exit 1); exit 1; }; } ;;
5576 llvm_cv_enable_backtraces="yes"
5579 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5581 cat >>confdefs.h <<\_ACEOF
5582 #define ENABLE_BACKTRACES 1
5587 # Check whether --enable-crash-overrides was given.
5588 if test "${enable_crash_overrides+set}" = set; then
5589 enableval=$enable_crash_overrides; case "$enableval" in
5590 yes) llvm_cv_enable_crash_overrides="yes" ;;
5591 no) llvm_cv_enable_crash_overrides="no" ;;
5592 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5593 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5594 { (exit 1); exit 1; }; } ;;
5597 llvm_cv_enable_crash_overrides="yes"
5600 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5602 cat >>confdefs.h <<\_ACEOF
5603 #define ENABLE_CRASH_OVERRIDES 1
5608 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5609 ALL_TARGETS=$ALL_TARGETS
5613 # Check whether --enable-targets was given.
5614 if test "${enable_targets+set}" = set; then
5615 enableval=$enable_targets;
5620 if test "$enableval" = host-only ; then
5623 case "$enableval" in
5624 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5625 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5627 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5628 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5629 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5630 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5631 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5632 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5633 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5634 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5635 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5636 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5637 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5638 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5639 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5640 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5641 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5642 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5643 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5644 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5645 host) case "$llvm_cv_target_arch" in
5646 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5647 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5648 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5649 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5650 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5651 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5652 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5653 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5654 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5655 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5656 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5657 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5658 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5659 echo "$as_me: error: Can not set target to build" >&2;}
5660 { (exit 1); exit 1; }; } ;;
5662 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5663 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5664 { (exit 1); exit 1; }; } ;;
5670 # Check whether --enable-experimental-targets was given.
5671 if test "${enable_experimental_targets+set}" = set; then
5672 enableval=$enable_experimental_targets;
5678 if test ${enableval} != "disable"
5680 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5683 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5686 for a_target in $TARGETS_TO_BUILD; do
5687 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5689 cat >>confdefs.h <<_ACEOF
5690 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5693 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5694 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5695 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5696 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5697 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5698 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5700 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5701 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5704 cat >>confdefs.h <<_ACEOF
5705 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5709 cat >>confdefs.h <<_ACEOF
5710 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5714 cat >>confdefs.h <<_ACEOF
5715 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5719 cat >>confdefs.h <<_ACEOF
5720 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5723 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5730 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5732 cat >>confdefs.h <<_ACEOF
5733 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5740 LLVM_ENUM_TARGETS=""
5741 LLVM_ENUM_ASM_PRINTERS=""
5742 LLVM_ENUM_ASM_PARSERS=""
5743 LLVM_ENUM_DISASSEMBLERS=""
5744 for target_to_build in $TARGETS_TO_BUILD; do
5745 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5746 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5747 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5749 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5750 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5752 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5753 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5762 # Check whether --with-optimize-option was given.
5763 if test "${with_optimize_option+set}" = set; then
5764 withval=$with_optimize_option;
5769 { echo "$as_me:$LINENO: checking optimization flags" >&5
5770 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5773 case "$llvm_cv_os_type" in
5774 FreeBSD) optimize_option=-O2 ;;
5775 MingW) optimize_option=-O2 ;;
5776 *) optimize_option=-O3 ;;
5778 *) optimize_option="$withval" ;;
5780 OPTIMIZE_OPTION=$optimize_option
5782 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5783 echo "${ECHO_T}$optimize_option" >&6; }
5786 # Check whether --with-extra-options was given.
5787 if test "${with_extra_options+set}" = set; then
5788 withval=$with_extra_options;
5794 default) EXTRA_OPTIONS= ;;
5795 *) EXTRA_OPTIONS=$withval ;;
5797 EXTRA_OPTIONS=$EXTRA_OPTIONS
5801 # Check whether --with-extra-ld-options was given.
5802 if test "${with_extra_ld_options+set}" = set; then
5803 withval=$with_extra_ld_options;
5809 default) EXTRA_LD_OPTIONS= ;;
5810 *) EXTRA_LD_OPTIONS=$withval ;;
5812 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5815 # Check whether --enable-bindings was given.
5816 if test "${enable_bindings+set}" = set; then
5817 enableval=$enable_bindings;
5822 BINDINGS_TO_BUILD=""
5823 case "$enableval" in
5824 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5825 all ) BINDINGS_TO_BUILD="ocaml" ;;
5826 none | no) BINDINGS_TO_BUILD="" ;;
5827 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5828 case "$a_binding" in
5829 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5830 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5831 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5832 { (exit 1); exit 1; }; } ;;
5839 # Check whether --with-ocaml-libdir was given.
5840 if test "${with_ocaml_libdir+set}" = set; then
5841 withval=$with_ocaml_libdir;
5847 auto) with_ocaml_libdir="$withval" ;;
5848 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5849 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5850 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5851 { (exit 1); exit 1; }; } ;;
5855 # Check whether --with-clang-srcdir was given.
5856 if test "${with_clang_srcdir+set}" = set; then
5857 withval=$with_clang_srcdir;
5863 -) clang_src_root="" ;;
5864 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5865 *) clang_src_root="$ac_pwd/$withval" ;;
5867 CLANG_SRC_ROOT=$clang_src_root
5871 # Check whether --with-clang-resource-dir was given.
5872 if test "${with_clang_resource_dir+set}" = set; then
5873 withval=$with_clang_resource_dir;
5879 cat >>confdefs.h <<_ACEOF
5880 #define CLANG_RESOURCE_DIR "$withval"
5885 # Check whether --with-c-include-dirs was given.
5886 if test "${with_c_include_dirs+set}" = set; then
5887 withval=$with_c_include_dirs;
5893 cat >>confdefs.h <<_ACEOF
5894 #define C_INCLUDE_DIRS "$withval"
5898 # Clang normally uses the system c++ headers and libraries. With this option,
5899 # clang will use the ones provided by a gcc installation instead. This option should
5900 # be passed the same value that was used with --prefix when configuring gcc.
5902 # Check whether --with-gcc-toolchain was given.
5903 if test "${with_gcc_toolchain+set}" = set; then
5904 withval=$with_gcc_toolchain;
5910 cat >>confdefs.h <<_ACEOF
5911 #define GCC_INSTALL_PREFIX "$withval"
5916 # Check whether --with-default-sysroot was given.
5917 if test "${with_default_sysroot+set}" = set; then
5918 withval=$with_default_sysroot;
5924 cat >>confdefs.h <<_ACEOF
5925 #define DEFAULT_SYSROOT "$withval"
5930 # Check whether --with-binutils-include was given.
5931 if test "${with_binutils_include+set}" = set; then
5932 withval=$with_binutils_include;
5938 default) WITH_BINUTILS_INCDIR=default ;;
5939 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5940 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5941 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5942 { (exit 1); exit 1; }; } ;;
5944 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5945 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5947 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5948 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5949 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5950 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5951 { (exit 1); exit 1; }; };
5956 # Check whether --with-bug-report-url was given.
5957 if test "${with_bug_report_url+set}" = set; then
5958 withval=$with_bug_report_url;
5960 withval="http://llvm.org/bugs/"
5964 cat >>confdefs.h <<_ACEOF
5965 #define BUG_REPORT_URL "$withval"
5969 # Check whether --enable-terminfo was given.
5970 if test "${enable_terminfo+set}" = set; then
5971 enableval=$enable_terminfo; case "$enableval" in
5972 yes) llvm_cv_enable_terminfo="yes" ;;
5973 no) llvm_cv_enable_terminfo="no" ;;
5974 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5975 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5976 { (exit 1); exit 1; }; } ;;
5979 llvm_cv_enable_terminfo="yes"
5982 case "$llvm_cv_enable_terminfo" in
5983 yes) ENABLE_TERMINFO=1
5985 no) ENABLE_TERMINFO=0
5989 # Check whether --enable-libedit was given.
5990 if test "${enable_libedit+set}" = set; then
5991 enableval=$enable_libedit; case "$enableval" in
5992 yes) llvm_cv_enable_libedit="yes" ;;
5993 no) llvm_cv_enable_libedit="no" ;;
5994 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5995 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5996 { (exit 1); exit 1; }; } ;;
5999 llvm_cv_enable_libedit="yes"
6003 # Check whether --enable-libffi was given.
6004 if test "${enable_libffi+set}" = set; then
6005 enableval=$enable_libffi; case "$enableval" in
6006 yes) llvm_cv_enable_libffi="yes" ;;
6007 no) llvm_cv_enable_libffi="no" ;;
6008 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6009 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6010 { (exit 1); exit 1; }; } ;;
6013 llvm_cv_enable_libffi=no
6018 # Check whether --with-internal-prefix was given.
6019 if test "${with_internal_prefix+set}" = set; then
6020 withval=$with_internal_prefix;
6025 INTERNAL_PREFIX=$withval
6029 { echo "$as_me:$LINENO: checking for GNU make" >&5
6030 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6031 if test "${llvm_cv_gnu_make_command+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 llvm_cv_gnu_make_command=''
6035 for a in "$MAKE" make gmake gnumake ; do
6036 if test -z "$a" ; then continue ; fi ;
6037 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6039 llvm_cv_gnu_make_command=$a ;
6044 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6045 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6046 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6050 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6051 echo "${ECHO_T}\"Not found\"" >&6; };
6055 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6056 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6058 if test "$LN_S" = "ln -s"; then
6059 { echo "$as_me:$LINENO: result: yes" >&5
6060 echo "${ECHO_T}yes" >&6; }
6062 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6063 echo "${ECHO_T}no, using $LN_S" >&6; }
6066 # Extract the first word of "nm", so it can be a program name with args.
6067 set dummy nm; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_path_NM+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6098 if test -n "$NM"; then
6099 { echo "$as_me:$LINENO: result: $NM" >&5
6100 echo "${ECHO_T}$NM" >&6; }
6102 { echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6; }
6107 # Extract the first word of "cmp", so it can be a program name with args.
6108 set dummy cmp; ac_word=$2
6109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6111 if test "${ac_cv_path_CMP+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6139 if test -n "$CMP"; then
6140 { echo "$as_me:$LINENO: result: $CMP" >&5
6141 echo "${ECHO_T}$CMP" >&6; }
6143 { echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6; }
6148 # Extract the first word of "cp", so it can be a program name with args.
6149 set dummy cp; ac_word=$2
6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152 if test "${ac_cv_path_CP+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6180 if test -n "$CP"; then
6181 { echo "$as_me:$LINENO: result: $CP" >&5
6182 echo "${ECHO_T}$CP" >&6; }
6184 { echo "$as_me:$LINENO: result: no" >&5
6185 echo "${ECHO_T}no" >&6; }
6189 # Extract the first word of "date", so it can be a program name with args.
6190 set dummy date; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_path_DATE+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6220 DATE=$ac_cv_path_DATE
6221 if test -n "$DATE"; then
6222 { echo "$as_me:$LINENO: result: $DATE" >&5
6223 echo "${ECHO_T}$DATE" >&6; }
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6230 # Extract the first word of "find", so it can be a program name with args.
6231 set dummy find; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_FIND+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6261 FIND=$ac_cv_path_FIND
6262 if test -n "$FIND"; then
6263 { echo "$as_me:$LINENO: result: $FIND" >&5
6264 echo "${ECHO_T}$FIND" >&6; }
6266 { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6271 # Extract the first word of "grep", so it can be a program name with args.
6272 set dummy grep; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_GREP+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6302 GREP=$ac_cv_path_GREP
6303 if test -n "$GREP"; then
6304 { echo "$as_me:$LINENO: result: $GREP" >&5
6305 echo "${ECHO_T}$GREP" >&6; }
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6312 # Extract the first word of "mkdir", so it can be a program name with args.
6313 set dummy mkdir; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_MKDIR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6343 MKDIR=$ac_cv_path_MKDIR
6344 if test -n "$MKDIR"; then
6345 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6346 echo "${ECHO_T}$MKDIR" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6353 # Extract the first word of "mv", so it can be a program name with args.
6354 set dummy mv; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_MV+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6385 if test -n "$MV"; then
6386 { echo "$as_me:$LINENO: result: $MV" >&5
6387 echo "${ECHO_T}$MV" >&6; }
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6394 if test -n "$ac_tool_prefix"; then
6395 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6396 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_prog_RANLIB+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 if test -n "$RANLIB"; then
6403 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 RANLIB=$ac_cv_prog_RANLIB
6423 if test -n "$RANLIB"; then
6424 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6425 echo "${ECHO_T}$RANLIB" >&6; }
6427 { echo "$as_me:$LINENO: result: no" >&5
6428 echo "${ECHO_T}no" >&6; }
6433 if test -z "$ac_cv_prog_RANLIB"; then
6434 ac_ct_RANLIB=$RANLIB
6435 # Extract the first word of "ranlib", so it can be a program name with args.
6436 set dummy ranlib; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 if test -n "$ac_ct_RANLIB"; then
6443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_prog_ac_ct_RANLIB="ranlib"
6453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6463 if test -n "$ac_ct_RANLIB"; then
6464 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6465 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6467 { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6471 if test "x$ac_ct_RANLIB" = x; then
6474 case $cross_compiling:$ac_tool_warned in
6476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6477 whose name does not start with the host triplet. If you think this
6478 configuration is useful to you, please write to autoconf@gnu.org." >&5
6479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6480 whose name does not start with the host triplet. If you think this
6481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6482 ac_tool_warned=yes ;;
6484 RANLIB=$ac_ct_RANLIB
6487 RANLIB="$ac_cv_prog_RANLIB"
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}ar; ac_word=$2
6493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6495 if test "${ac_cv_prog_AR+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 if test -n "$AR"; then
6499 ac_cv_prog_AR="$AR" # Let the user override the test.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6508 ac_cv_prog_AR="${ac_tool_prefix}ar"
6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 if test -n "$AR"; then
6520 { echo "$as_me:$LINENO: result: $AR" >&5
6521 echo "${ECHO_T}$AR" >&6; }
6523 { echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6; }
6529 if test -z "$ac_cv_prog_AR"; then
6531 # Extract the first word of "ar", so it can be a program name with args.
6532 set dummy ar; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 if test -n "$ac_ct_AR"; then
6539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_ac_ct_AR="ar"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6559 if test -n "$ac_ct_AR"; then
6560 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6561 echo "${ECHO_T}$ac_ct_AR" >&6; }
6563 { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6567 if test "x$ac_ct_AR" = x; then
6570 case $cross_compiling:$ac_tool_warned in
6572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6573 whose name does not start with the host triplet. If you think this
6574 configuration is useful to you, please write to autoconf@gnu.org." >&5
6575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6576 whose name does not start with the host triplet. If you think this
6577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6578 ac_tool_warned=yes ;;
6586 # Extract the first word of "rm", so it can be a program name with args.
6587 set dummy rm; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_path_RM+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6618 if test -n "$RM"; then
6619 { echo "$as_me:$LINENO: result: $RM" >&5
6620 echo "${ECHO_T}$RM" >&6; }
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6627 # Extract the first word of "sed", so it can be a program name with args.
6628 set dummy sed; ac_word=$2
6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631 if test "${ac_cv_path_SED+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6659 if test -n "$SED"; then
6660 { echo "$as_me:$LINENO: result: $SED" >&5
6661 echo "${ECHO_T}$SED" >&6; }
6663 { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6668 # Extract the first word of "tar", so it can be a program name with args.
6669 set dummy tar; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_path_TAR+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6700 if test -n "$TAR"; then
6701 { echo "$as_me:$LINENO: result: $TAR" >&5
6702 echo "${ECHO_T}$TAR" >&6; }
6704 { echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6; }
6709 # Extract the first word of "pwd", so it can be a program name with args.
6710 set dummy pwd; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_path_BINPWD+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6728 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6740 BINPWD=$ac_cv_path_BINPWD
6741 if test -n "$BINPWD"; then
6742 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6743 echo "${ECHO_T}$BINPWD" >&6; }
6745 { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6751 # Extract the first word of "dot", so it can be a program name with args.
6752 set dummy dot; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_DOT+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6783 if test -n "$DOT"; then
6784 { echo "$as_me:$LINENO: result: $DOT" >&5
6785 echo "${ECHO_T}$DOT" >&6; }
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6792 if test "$DOT" != "echo dot" ; then
6794 cat >>confdefs.h <<\_ACEOF
6798 if test "$llvm_cv_os_type" = "MingW" ; then
6799 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6802 cat >>confdefs.h <<_ACEOF
6803 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6808 # Find a good install program. We prefer a C program (faster),
6809 # so one script is as good as another. But avoid the broken or
6810 # incompatible versions:
6811 # SysV /etc/install, /usr/sbin/install
6812 # SunOS /usr/etc/install
6813 # IRIX /sbin/install
6815 # AmigaOS /C/install, which installs bootblocks on floppy discs
6816 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6817 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6818 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6819 # OS/2's system install, which has a completely different semantic
6820 # ./install, which can be erroneously created by make from ./install.sh.
6821 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6822 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6823 if test -z "$INSTALL"; then
6824 if test "${ac_cv_path_install+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 # Account for people who put trailing slashes in PATH elements.
6834 ./ | .// | /cC/* | \
6835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6836 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6839 # OSF1 and SCO ODT 3.0 have their own names for install.
6840 # Don't use installbsd from OSF since it installs stuff as root
6842 for ac_prog in ginstall scoinst install; do
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6845 if test $ac_prog = install &&
6846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6847 # AIX install. It has an incompatible calling convention.
6849 elif test $ac_prog = install &&
6850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6851 # program-specific install script used by HP pwplus--don't use.
6854 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6867 if test "${ac_cv_path_install+set}" = set; then
6868 INSTALL=$ac_cv_path_install
6870 # As a last resort, use the slow shell script. Don't cache a
6871 # value for INSTALL within a source directory, because that will
6872 # break other packages using the cache if that directory is
6873 # removed, or if the value is a relative name.
6874 INSTALL=$ac_install_sh
6877 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6878 echo "${ECHO_T}$INSTALL" >&6; }
6880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6881 # It thinks the first close brace ends the variable substitution.
6882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6889 [\\/$]* | ?:[\\/]* ) ;;
6890 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6893 # Extract the first word of "bzip2", so it can be a program name with args.
6894 set dummy bzip2; ac_word=$2
6895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897 if test "${ac_cv_path_BZIP2+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 BZIP2=$ac_cv_path_BZIP2
6924 if test -n "$BZIP2"; then
6925 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6926 echo "${ECHO_T}$BZIP2" >&6; }
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6933 # Extract the first word of "cat", so it can be a program name with args.
6934 set dummy cat; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_CAT+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 if test -n "$CAT"; then
6965 { echo "$as_me:$LINENO: result: $CAT" >&5
6966 echo "${ECHO_T}$CAT" >&6; }
6968 { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6973 # Extract the first word of "doxygen", so it can be a program name with args.
6974 set dummy doxygen; ac_word=$2
6975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6992 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 DOXYGEN=$ac_cv_path_DOXYGEN
7004 if test -n "$DOXYGEN"; then
7005 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7006 echo "${ECHO_T}$DOXYGEN" >&6; }
7008 { echo "$as_me:$LINENO: result: no" >&5
7009 echo "${ECHO_T}no" >&6; }
7013 # Extract the first word of "groff", so it can be a program name with args.
7014 set dummy groff; ac_word=$2
7015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7017 if test "${ac_cv_path_GROFF+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 GROFF=$ac_cv_path_GROFF
7044 if test -n "$GROFF"; then
7045 { echo "$as_me:$LINENO: result: $GROFF" >&5
7046 echo "${ECHO_T}$GROFF" >&6; }
7048 { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7053 # Extract the first word of "gzip", so it can be a program name with args.
7054 set dummy gzip; ac_word=$2
7055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7072 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 GZIPBIN=$ac_cv_path_GZIPBIN
7084 if test -n "$GZIPBIN"; then
7085 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7086 echo "${ECHO_T}$GZIPBIN" >&6; }
7088 { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7093 # Extract the first word of "pdfroff", so it can be a program name with args.
7094 set dummy pdfroff; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_PDFROFF+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 PDFROFF=$ac_cv_path_PDFROFF
7124 if test -n "$PDFROFF"; then
7125 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7126 echo "${ECHO_T}$PDFROFF" >&6; }
7128 { echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6; }
7133 # Extract the first word of "zip", so it can be a program name with args.
7134 set dummy zip; ac_word=$2
7135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137 if test "${ac_cv_path_ZIP+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 if test -n "$ZIP"; then
7165 { echo "$as_me:$LINENO: result: $ZIP" >&5
7166 echo "${ECHO_T}$ZIP" >&6; }
7168 { echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6; }
7173 # Extract the first word of "go", so it can be a program name with args.
7174 set dummy go; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_GO+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 if test -n "$GO"; then
7205 { echo "$as_me:$LINENO: result: $GO" >&5
7206 echo "${ECHO_T}$GO" >&6; }
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7213 for ac_prog in ocamlfind
7215 # Extract the first word of "$ac_prog", so it can be a program name with args.
7216 set dummy $ac_prog; ac_word=$2
7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 OCAMLFIND=$ac_cv_path_OCAMLFIND
7246 if test -n "$OCAMLFIND"; then
7247 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7248 echo "${ECHO_T}$OCAMLFIND" >&6; }
7250 { echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6; }
7255 test -n "$OCAMLFIND" && break
7258 for ac_prog in gas as
7260 # Extract the first word of "$ac_prog", so it can be a program name with args.
7261 set dummy $ac_prog; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_GAS+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 if test -n "$GAS"; then
7292 { echo "$as_me:$LINENO: result: $GAS" >&5
7293 echo "${ECHO_T}$GAS" >&6; }
7295 { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7300 test -n "$GAS" && break
7304 { echo "$as_me:$LINENO: checking for linker version" >&5
7305 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7306 if test "${llvm_cv_link_version+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7313 if (echo "$version_string" | grep -q "ld64"); then
7314 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7316 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7320 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7321 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7323 cat >>confdefs.h <<_ACEOF
7324 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7330 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7331 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7332 if test "${llvm_cv_link_use_r+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 ac_cpp='$CPP $CPPFLAGS'
7337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7342 CFLAGS="$CFLAGS -Wl,-R."
7343 cat >conftest.$ac_ext <<_ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7358 rm -f conftest.$ac_objext conftest$ac_exeext
7359 if { (ac_try="$ac_link"
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_link") 2>conftest.er1
7367 grep -v '^ *+' conftest.er1 >conftest.err
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7373 { (case "(($ac_try" in
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378 (eval "$ac_try") 2>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try='test -s conftest$ac_exeext'
7383 { (case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_try") 2>&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 llvm_cv_link_use_r=yes
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 llvm_cv_link_use_r=no
7400 rm -f core conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7404 ac_cpp='$CPP $CPPFLAGS'
7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7412 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7413 if test "$llvm_cv_link_use_r" = yes ; then
7415 cat >>confdefs.h <<\_ACEOF
7416 #define HAVE_LINK_R 1
7422 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7423 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7424 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 ac_cpp='$CPP $CPPFLAGS'
7429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7434 CFLAGS="$CFLAGS -rdynamic"
7435 cat >conftest.$ac_ext <<_ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7450 rm -f conftest.$ac_objext conftest$ac_exeext
7451 if { (ac_try="$ac_link"
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457 (eval "$ac_link") 2>conftest.er1
7459 grep -v '^ *+' conftest.er1 >conftest.err
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7465 { (case "(($ac_try" in
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470 (eval "$ac_try") 2>&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest$ac_exeext'
7475 { (case "(($ac_try" in
7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480 (eval "$ac_try") 2>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7484 llvm_cv_link_use_export_dynamic=yes
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7489 llvm_cv_link_use_export_dynamic=no
7492 rm -f core conftest.err conftest.$ac_objext \
7493 conftest$ac_exeext conftest.$ac_ext
7496 ac_cpp='$CPP $CPPFLAGS'
7497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7504 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7505 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7507 cat >>confdefs.h <<\_ACEOF
7508 #define HAVE_LINK_EXPORT_DYNAMIC 1
7514 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7515 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7516 if test "${llvm_cv_link_use_version_script+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 ac_cpp='$CPP $CPPFLAGS'
7521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527 # The following code is from the autoconf manual,
7528 # "11.13: Limitations of Usual Tools".
7529 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7530 # Use mktemp if possible; otherwise fall back on mkdir,
7531 # with $RANDOM to make collisions less likely.
7535 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7537 test -n "$tmp" && test -d "$tmp"
7539 tmp=$TMPDIR/foo$$-$RANDOM
7540 (umask 077 && mkdir "$tmp")
7543 echo "{" > "$tmp/export.map"
7544 echo " global: main;" >> "$tmp/export.map"
7545 echo " local: *;" >> "$tmp/export.map"
7546 echo "};" >> "$tmp/export.map"
7548 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7549 cat >conftest.$ac_ext <<_ACEOF
7552 cat confdefs.h >>conftest.$ac_ext
7553 cat >>conftest.$ac_ext <<_ACEOF
7554 /* end confdefs.h. */
7564 rm -f conftest.$ac_objext conftest$ac_exeext
7565 if { (ac_try="$ac_link"
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_link") 2>conftest.er1
7573 grep -v '^ *+' conftest.er1 >conftest.err
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7579 { (case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_try") 2>&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (case "(($ac_try" in
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594 (eval "$ac_try") 2>&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 llvm_cv_link_use_version_script=yes
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7603 llvm_cv_link_use_version_script=no
7606 rm -f core conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7608 rm "$tmp/export.map"
7612 ac_cpp='$CPP $CPPFLAGS'
7613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7620 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7621 if test "$llvm_cv_link_use_version_script" = yes ; then
7622 HAVE_LINK_VERSION_SCRIPT=1
7628 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7629 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7630 if test "${ac_cv_path_GREP+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 # Extract the first word of "grep ggrep" to use in msg output
7634 if test -z "$GREP"; then
7635 set dummy grep ggrep; ac_prog_name=$2
7636 if test "${ac_cv_path_GREP+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 ac_path_GREP_found=false
7640 # Loop through the user's path and test for each of PROGNAME-LIST
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7645 test -z "$as_dir" && as_dir=.
7646 for ac_prog in grep ggrep; do
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7649 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7650 # Check for GNU ac_path_GREP and select it if it is found.
7651 # Check for GNU $ac_path_GREP
7652 case `"$ac_path_GREP" --version 2>&1` in
7654 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7657 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7660 cat "conftest.in" "conftest.in" >"conftest.tmp"
7661 mv "conftest.tmp" "conftest.in"
7662 cp "conftest.in" "conftest.nl"
7663 echo 'GREP' >> "conftest.nl"
7664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7666 ac_count=`expr $ac_count + 1`
7667 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7668 # Best one so far, save it but keep looking for a better one
7669 ac_cv_path_GREP="$ac_path_GREP"
7670 ac_path_GREP_max=$ac_count
7672 # 10*(2^10) chars as input seems more than enough
7673 test $ac_count -gt 10 && break
7675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7679 $ac_path_GREP_found && break 3
7689 GREP="$ac_cv_path_GREP"
7690 if test -z "$GREP"; then
7691 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7692 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7693 { (exit 1); exit 1; }; }
7697 ac_cv_path_GREP=$GREP
7702 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7703 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7704 GREP="$ac_cv_path_GREP"
7707 { echo "$as_me:$LINENO: checking for egrep" >&5
7708 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7709 if test "${ac_cv_path_EGREP+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7713 then ac_cv_path_EGREP="$GREP -E"
7715 # Extract the first word of "egrep" to use in msg output
7716 if test -z "$EGREP"; then
7717 set dummy egrep; ac_prog_name=$2
7718 if test "${ac_cv_path_EGREP+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_path_EGREP_found=false
7722 # Loop through the user's path and test for each of PROGNAME-LIST
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7727 test -z "$as_dir" && as_dir=.
7728 for ac_prog in egrep; do
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7731 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7732 # Check for GNU ac_path_EGREP and select it if it is found.
7733 # Check for GNU $ac_path_EGREP
7734 case `"$ac_path_EGREP" --version 2>&1` in
7736 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7739 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7742 cat "conftest.in" "conftest.in" >"conftest.tmp"
7743 mv "conftest.tmp" "conftest.in"
7744 cp "conftest.in" "conftest.nl"
7745 echo 'EGREP' >> "conftest.nl"
7746 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7748 ac_count=`expr $ac_count + 1`
7749 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7750 # Best one so far, save it but keep looking for a better one
7751 ac_cv_path_EGREP="$ac_path_EGREP"
7752 ac_path_EGREP_max=$ac_count
7754 # 10*(2^10) chars as input seems more than enough
7755 test $ac_count -gt 10 && break
7757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7761 $ac_path_EGREP_found && break 3
7771 EGREP="$ac_cv_path_EGREP"
7772 if test -z "$EGREP"; then
7773 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7774 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7775 { (exit 1); exit 1; }; }
7779 ac_cv_path_EGREP=$EGREP
7785 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7786 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7787 EGREP="$ac_cv_path_EGREP"
7790 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7792 if test "${ac_cv_header_stdc+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7814 rm -f conftest.$ac_objext
7815 if { (ac_try="$ac_compile"
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_compile") 2>conftest.er1
7823 grep -v '^ *+' conftest.er1 >conftest.err
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7829 { (case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_try") 2>&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest.$ac_objext'
7839 { (case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_try") 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_header_stdc=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_header_stdc=no
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 if test $ac_cv_header_stdc = yes; then
7859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7860 cat >conftest.$ac_ext <<_ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7870 $EGREP "memchr" >/dev/null 2>&1; then
7873 ac_cv_header_stdc=no
7879 if test $ac_cv_header_stdc = yes; then
7880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7881 cat >conftest.$ac_ext <<_ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891 $EGREP "free" >/dev/null 2>&1; then
7894 ac_cv_header_stdc=no
7900 if test $ac_cv_header_stdc = yes; then
7901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7902 if test "$cross_compiling" = yes; then
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7913 #if ((' ' & 0x0FF) == 0x020)
7914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7917 # define ISLOWER(c) \
7918 (('a' <= (c) && (c) <= 'i') \
7919 || ('j' <= (c) && (c) <= 'r') \
7920 || ('s' <= (c) && (c) <= 'z'))
7921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7929 for (i = 0; i < 256; i++)
7930 if (XOR (islower (i), ISLOWER (i))
7931 || toupper (i) != TOUPPER (i))
7936 rm -f conftest$ac_exeext
7937 if { (ac_try="$ac_link"
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_link") 2>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7947 { (case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_try") 2>&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then
7958 echo "$as_me: program exited with status $ac_status" >&5
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7963 ac_cv_header_stdc=no
7965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7971 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7972 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7973 if test $ac_cv_header_stdc = yes; then
7975 cat >>confdefs.h <<\_ACEOF
7976 #define STDC_HEADERS 1
7981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7992 inttypes.h stdint.h unistd.h
7994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 cat >conftest.$ac_ext <<_ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 $ac_includes_default
8008 #include <$ac_header>
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8019 grep -v '^ *+' conftest.er1 >conftest.err
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8025 { (case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_try") 2>&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_try") 2>&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8044 eval "$as_ac_Header=yes"
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 eval "$as_ac_Header=no"
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 ac_res=`eval echo '${'$as_ac_Header'}'`
8055 { echo "$as_me:$LINENO: result: $ac_res" >&5
8056 echo "${ECHO_T}$ac_res" >&6; }
8057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8058 cat >>confdefs.h <<_ACEOF
8059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8068 for ac_header in errno.h
8070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 ac_res=`eval echo '${'$as_ac_Header'}'`
8078 { echo "$as_me:$LINENO: result: $ac_res" >&5
8079 echo "${ECHO_T}$ac_res" >&6; }
8081 # Is the header compilable?
8082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8084 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 $ac_includes_default
8091 #include <$ac_header>
8093 rm -f conftest.$ac_objext
8094 if { (ac_try="$ac_compile"
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_compile") 2>conftest.er1
8102 grep -v '^ *+' conftest.er1 >conftest.err
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108 { (case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_try") 2>&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest.$ac_objext'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 ac_header_compiler=yes
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8132 ac_header_compiler=no
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8137 echo "${ECHO_T}$ac_header_compiler" >&6; }
8139 # Is the header present?
8140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8142 cat >conftest.$ac_ext <<_ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8148 #include <$ac_header>
8150 if { (ac_try="$ac_cpp conftest.$ac_ext"
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8158 grep -v '^ *+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } >/dev/null; then
8163 if test -s conftest.err; then
8164 ac_cpp_err=$ac_c_preproc_warn_flag
8165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8172 if test -z "$ac_cpp_err"; then
8173 ac_header_preproc=yes
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_header_preproc=no
8181 rm -f conftest.err conftest.$ac_ext
8182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183 echo "${ECHO_T}$ac_header_preproc" >&6; }
8185 # So? What about this header?
8186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8192 ac_header_preproc=yes
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8208 ## ------------------------------------ ##
8209 ## Report this to http://llvm.org/bugs/ ##
8210 ## ------------------------------------ ##
8212 ) | sed "s/^/$as_me: WARNING: /" >&2
8215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 eval "$as_ac_Header=\$ac_header_preproc"
8222 ac_res=`eval echo '${'$as_ac_Header'}'`
8223 { echo "$as_me:$LINENO: result: $ac_res" >&5
8224 echo "${ECHO_T}$ac_res" >&6; }
8227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8237 case "$llvm_cv_os_type" in
8238 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8239 Darwin) llvm_shlib_ext=.dylib ;;
8240 *) llvm_shlib_ext=.so ;;
8244 cat >>confdefs.h <<_ACEOF
8245 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8249 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8250 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8263 if test "$GCC" != "yes" && test "$ICC" != "yes"
8265 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8266 echo "$as_me: error: gcc|icc required but not found" >&2;}
8267 { (exit 1); exit 1; }; }
8270 if test "$GXX" != "yes" && test "$IXX" != "yes"
8272 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8273 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8274 { (exit 1); exit 1; }; }
8277 if test "$GCC" = "yes"
8279 cat >conftest.$ac_ext <<_ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8287 #if !defined(__GNUC__) || __GNUC__ < 3
8288 #error Unsupported GCC version
8293 rm -f conftest.$ac_objext
8294 if { (ac_try="$ac_compile"
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8302 grep -v '^ *+' conftest.er1 >conftest.err
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8308 { (case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_try") 2>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest.$ac_objext'
8318 { (case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_try") 2>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8332 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8333 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8334 { (exit 1); exit 1; }; }
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 if test -z "$llvm_cv_gnu_make_command"
8342 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8343 echo "$as_me: error: GNU Make required but not found" >&2;}
8344 { (exit 1); exit 1; }; }
8347 { echo "$as_me:$LINENO: result: ok" >&5
8348 echo "${ECHO_T}ok" >&6; }
8350 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8351 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8352 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8354 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8356 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8360 NO_MAYBE_UNINITIALIZED=
8361 if test "$GXX" = "yes"
8363 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8365 if test -z "$NO_MAYBE_UNINITIALIZED"
8367 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8373 llvm_cv_old_cxxflags="$CXXFLAGS"
8374 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8375 cat >conftest.$ac_ext <<_ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8384 int main() { return 0; }
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_try") 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8423 no_comment=-Wno-comment
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 NO_COMMENT=$no_comment
8435 CXXFLAGS="$llvm_cv_old_cxxflags"
8437 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8438 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8441 # Check whether --with-python was given.
8442 if test "${with_python+set}" = set; then
8443 withval=$with_python; PYTHON="$withval"
8447 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8448 { echo "$as_me:$LINENO: checking for python" >&5
8449 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8450 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8451 echo "${ECHO_T}user defined: $with_python" >&6; }
8453 if test -n "$PYTHON" ; then
8454 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8455 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8458 # Extract the first word of "python python2 python27", so it can be a program name with args.
8459 set dummy python python2 python27; ac_word=$2
8460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462 if test "${ac_cv_path_PYTHON+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8486 echo "${ECHO_T}not found" >&6; }
8487 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8488 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8489 { (exit 1); exit 1; }; }"
8493 PYTHON=$ac_cv_path_PYTHON
8494 if test -n "$PYTHON"; then
8495 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8496 echo "${ECHO_T}$PYTHON" >&6; }
8498 { echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6; }
8505 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8506 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8507 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8508 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8509 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8510 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8511 if test "$ac_python_version_major" -gt "2" || \
8512 (test "$ac_python_version_major" -eq "2" && \
8513 test "$ac_python_version_minor" -ge "7") ; then
8514 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8515 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8517 { echo "$as_me:$LINENO: result: not found" >&5
8518 echo "${ECHO_T}not found" >&6; }
8519 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8520 See \`config.log' for more details." >&5
8521 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8522 See \`config.log' for more details." >&2;}
8523 { (exit 1); exit 1; }; }
8528 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8529 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8530 if test "${ac_cv_lib_m_sin+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 ac_check_lib_save_LIBS=$LIBS
8535 cat >conftest.$ac_ext <<_ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8542 /* Override any GCC internal prototype to avoid an error.
8543 Use char because int might match the return type of a GCC
8544 builtin and then its argument prototype would still apply. */
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (ac_try="$ac_link"
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_link") 2>conftest.er1
8566 grep -v '^ *+' conftest.er1 >conftest.err
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8572 { (case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_try") 2>&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; } &&
8581 { ac_try='test -s conftest$ac_exeext'
8582 { (case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_try") 2>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; }; then
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8599 rm -f core conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8601 LIBS=$ac_check_lib_save_LIBS
8603 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8604 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8605 if test $ac_cv_lib_m_sin = yes; then
8606 cat >>confdefs.h <<_ACEOF
8614 if test "$llvm_cv_os_type" = "MingW" ; then
8616 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8617 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8618 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 ac_check_lib_save_LIBS=$LIBS
8622 LIBS="-limagehlp $LIBS"
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (ac_try="$ac_link"
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_link") 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654 { (case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_try") 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8669 (eval "$ac_try") 2>&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8673 ac_cv_lib_imagehlp_main=yes
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 ac_cv_lib_imagehlp_main=no
8681 rm -f core conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8683 LIBS=$ac_check_lib_save_LIBS
8685 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8686 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8687 if test $ac_cv_lib_imagehlp_main = yes; then
8688 cat >>confdefs.h <<_ACEOF
8689 #define HAVE_LIBIMAGEHLP 1
8692 LIBS="-limagehlp $LIBS"
8697 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8698 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8699 if test "${ac_cv_lib_psapi_main+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 ac_check_lib_save_LIBS=$LIBS
8703 LIBS="-lpsapi $LIBS"
8704 cat >conftest.$ac_ext <<_ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8720 rm -f conftest.$ac_objext conftest$ac_exeext
8721 if { (ac_try="$ac_link"
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_link") 2>conftest.er1
8729 grep -v '^ *+' conftest.er1 >conftest.err
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8735 { (case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_try") 2>&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest$ac_exeext'
8745 { (case "(($ac_try" in
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_try") 2>&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 ac_cv_lib_psapi_main=yes
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 ac_cv_lib_psapi_main=no
8762 rm -f core conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
8764 LIBS=$ac_check_lib_save_LIBS
8766 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8767 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8768 if test $ac_cv_lib_psapi_main = yes; then
8769 cat >>confdefs.h <<_ACEOF
8770 #define HAVE_LIBPSAPI 1
8773 LIBS="-lpsapi $LIBS"
8778 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8779 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8780 if test "${ac_cv_lib_shell32_main+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 ac_check_lib_save_LIBS=$LIBS
8784 LIBS="-lshell32 $LIBS"
8785 cat >conftest.$ac_ext <<_ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8801 rm -f conftest.$ac_objext conftest$ac_exeext
8802 if { (ac_try="$ac_link"
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_link") 2>conftest.er1
8810 grep -v '^ *+' conftest.er1 >conftest.err
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8816 { (case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_try") 2>&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; } &&
8825 { ac_try='test -s conftest$ac_exeext'
8826 { (case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_try") 2>&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 ac_cv_lib_shell32_main=yes
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_cv_lib_shell32_main=no
8843 rm -f core conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8847 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8848 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8849 if test $ac_cv_lib_shell32_main = yes; then
8850 cat >>confdefs.h <<_ACEOF
8851 #define HAVE_LIBSHELL32 1
8854 LIBS="-lshell32 $LIBS"
8860 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8861 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8862 if test "${ac_cv_search_dlopen+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 ac_func_search_save_LIBS=$LIBS
8866 cat >conftest.$ac_ext <<_ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8873 /* Override any GCC internal prototype to avoid an error.
8874 Use char because int might match the return type of a GCC
8875 builtin and then its argument prototype would still apply. */
8888 for ac_lib in '' dl; do
8889 if test -z "$ac_lib"; then
8890 ac_res="none required"
8893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8895 rm -f conftest.$ac_objext conftest$ac_exeext
8896 if { (ac_try="$ac_link"
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_link") 2>conftest.er1
8904 grep -v '^ *+' conftest.er1 >conftest.err
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest$ac_exeext'
8920 { (case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_try") 2>&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_cv_search_dlopen=$ac_res
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8937 rm -f core conftest.err conftest.$ac_objext \
8939 if test "${ac_cv_search_dlopen+set}" = set; then
8943 if test "${ac_cv_search_dlopen+set}" = set; then
8946 ac_cv_search_dlopen=no
8949 LIBS=$ac_func_search_save_LIBS
8951 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8952 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8953 ac_res=$ac_cv_search_dlopen
8954 if test "$ac_res" != no; then
8955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8958 cat >>confdefs.h <<\_ACEOF
8959 #define HAVE_DLOPEN 1
8966 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8967 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8971 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8972 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8973 if test "${ac_cv_search_clock_gettime+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 ac_func_search_save_LIBS=$LIBS
8977 cat >conftest.$ac_ext <<_ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8984 /* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8990 char clock_gettime ();
8994 return clock_gettime ();
8999 for ac_lib in '' rt; do
9000 if test -z "$ac_lib"; then
9001 ac_res="none required"
9004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (ac_try="$ac_link"
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_link") 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9021 { (case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_try") 2>&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; } &&
9030 { ac_try='test -s conftest$ac_exeext'
9031 { (case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_try") 2>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_cv_search_clock_gettime=$ac_res
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9048 rm -f core conftest.err conftest.$ac_objext \
9050 if test "${ac_cv_search_clock_gettime+set}" = set; then
9054 if test "${ac_cv_search_clock_gettime+set}" = set; then
9057 ac_cv_search_clock_gettime=no
9060 LIBS=$ac_func_search_save_LIBS
9062 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9063 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9064 ac_res=$ac_cv_search_clock_gettime
9065 if test "$ac_res" != no; then
9066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9071 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9072 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9073 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9074 if test "${ac_cv_search_setupterm+set}" = set; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 ac_func_search_save_LIBS=$LIBS
9078 cat >conftest.$ac_ext <<_ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9085 /* Override any GCC internal prototype to avoid an error.
9086 Use char because int might match the return type of a GCC
9087 builtin and then its argument prototype would still apply. */
9095 return setupterm ();
9100 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9101 if test -z "$ac_lib"; then
9102 ac_res="none required"
9105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9107 rm -f conftest.$ac_objext conftest$ac_exeext
9108 if { (ac_try="$ac_link"
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_link") 2>conftest.er1
9116 grep -v '^ *+' conftest.er1 >conftest.err
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (case "(($ac_try" in
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_try") 2>&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_cv_search_setupterm=$ac_res
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9149 rm -f core conftest.err conftest.$ac_objext \
9151 if test "${ac_cv_search_setupterm+set}" = set; then
9155 if test "${ac_cv_search_setupterm+set}" = set; then
9158 ac_cv_search_setupterm=no
9161 LIBS=$ac_func_search_save_LIBS
9163 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9164 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9165 ac_res=$ac_cv_search_setupterm
9166 if test "$ac_res" != no; then
9167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_TERMINFO 1
9181 if test "$llvm_cv_enable_libedit" = "yes" ; then
9182 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9183 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9184 if test "${ac_cv_search_el_init+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 ac_func_search_save_LIBS=$LIBS
9188 cat >conftest.$ac_ext <<_ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9195 /* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
9210 for ac_lib in '' edit; do
9211 if test -z "$ac_lib"; then
9212 ac_res="none required"
9215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (ac_try="$ac_link"
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_link") 2>conftest.er1
9226 grep -v '^ *+' conftest.er1 >conftest.err
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9232 { (case "(($ac_try" in
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_try") 2>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; } &&
9241 { ac_try='test -s conftest$ac_exeext'
9242 { (case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_try") 2>&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9251 ac_cv_search_el_init=$ac_res
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9259 rm -f core conftest.err conftest.$ac_objext \
9261 if test "${ac_cv_search_el_init+set}" = set; then
9265 if test "${ac_cv_search_el_init+set}" = set; then
9268 ac_cv_search_el_init=no
9271 LIBS=$ac_func_search_save_LIBS
9273 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9274 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9275 ac_res=$ac_cv_search_el_init
9276 if test "$ac_res" != no; then
9277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9279 cat >>confdefs.h <<\_ACEOF
9280 #define HAVE_LIBEDIT 1
9287 if test "$llvm_cv_enable_libffi" = "yes" ; then
9288 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9289 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9290 if test "${ac_cv_search_ffi_call+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 ac_func_search_save_LIBS=$LIBS
9294 cat >conftest.$ac_ext <<_ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9301 /* Override any GCC internal prototype to avoid an error.
9302 Use char because int might match the return type of a GCC
9303 builtin and then its argument prototype would still apply. */
9316 for ac_lib in '' ffi; do
9317 if test -z "$ac_lib"; then
9318 ac_res="none required"
9321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (ac_try="$ac_link"
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_link") 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9338 { (case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_try") 2>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; } &&
9347 { ac_try='test -s conftest$ac_exeext'
9348 { (case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_try") 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 ac_cv_search_ffi_call=$ac_res
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9365 rm -f core conftest.err conftest.$ac_objext \
9367 if test "${ac_cv_search_ffi_call+set}" = set; then
9371 if test "${ac_cv_search_ffi_call+set}" = set; then
9374 ac_cv_search_ffi_call=no
9377 LIBS=$ac_func_search_save_LIBS
9379 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9380 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9381 ac_res=$ac_cv_search_ffi_call
9382 if test "$ac_res" != no; then
9383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9385 cat >>confdefs.h <<\_ACEOF
9386 #define HAVE_FFI_CALL 1
9390 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9391 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9392 { (exit 1); exit 1; }; }
9397 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9398 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9399 if test "${ac_cv_search_mallinfo+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 ac_func_search_save_LIBS=$LIBS
9403 cat >conftest.$ac_ext <<_ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9410 /* Override any GCC internal prototype to avoid an error.
9411 Use char because int might match the return type of a GCC
9412 builtin and then its argument prototype would still apply. */
9425 for ac_lib in '' malloc; do
9426 if test -z "$ac_lib"; then
9427 ac_res="none required"
9430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (ac_try="$ac_link"
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439 (eval "$ac_link") 2>conftest.er1
9441 grep -v '^ *+' conftest.er1 >conftest.err
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9447 { (case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_try") 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest$ac_exeext'
9457 { (case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_try") 2>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_cv_search_mallinfo=$ac_res
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9474 rm -f core conftest.err conftest.$ac_objext \
9476 if test "${ac_cv_search_mallinfo+set}" = set; then
9480 if test "${ac_cv_search_mallinfo+set}" = set; then
9483 ac_cv_search_mallinfo=no
9486 LIBS=$ac_func_search_save_LIBS
9488 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9489 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9490 ac_res=$ac_cv_search_mallinfo
9491 if test "$ac_res" != no; then
9492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9494 cat >>confdefs.h <<\_ACEOF
9495 #define HAVE_MALLINFO 1
9501 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9503 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9504 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9505 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-lpthread $LIBS"
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9523 char pthread_mutex_init ();
9527 return pthread_mutex_init ();
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_link") 2>conftest.er1
9541 grep -v '^ *+' conftest.er1 >conftest.err
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9547 { (case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_try") 2>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_try") 2>&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_lib_pthread_pthread_mutex_init=yes
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_cv_lib_pthread_pthread_mutex_init=no
9574 rm -f core conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
9576 LIBS=$ac_check_lib_save_LIBS
9578 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9579 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9580 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9581 cat >>confdefs.h <<_ACEOF
9582 #define HAVE_LIBPTHREAD 1
9585 LIBS="-lpthread $LIBS"
9589 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9590 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9591 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 ac_func_search_save_LIBS=$LIBS
9595 cat >conftest.$ac_ext <<_ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9608 char pthread_mutex_lock ();
9612 return pthread_mutex_lock ();
9617 for ac_lib in '' pthread; do
9618 if test -z "$ac_lib"; then
9619 ac_res="none required"
9622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1 >conftest.err
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9639 { (case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_try") 2>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; } &&
9648 { ac_try='test -s conftest$ac_exeext'
9649 { (case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_try") 2>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 ac_cv_search_pthread_mutex_lock=$ac_res
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9666 rm -f core conftest.err conftest.$ac_objext \
9668 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9672 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9675 ac_cv_search_pthread_mutex_lock=no
9678 LIBS=$ac_func_search_save_LIBS
9680 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9681 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9682 ac_res=$ac_cv_search_pthread_mutex_lock
9683 if test "$ac_res" != no; then
9684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9686 cat >>confdefs.h <<\_ACEOF
9687 #define HAVE_PTHREAD_MUTEX_LOCK 1
9692 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9693 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9694 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 ac_func_search_save_LIBS=$LIBS
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9705 /* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
9711 char pthread_rwlock_init ();
9715 return pthread_rwlock_init ();
9720 for ac_lib in '' pthread; do
9721 if test -z "$ac_lib"; then
9722 ac_res="none required"
9725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (ac_try="$ac_link"
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_link") 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742 { (case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_try") 2>&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_search_pthread_rwlock_init=$ac_res
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9769 rm -f core conftest.err conftest.$ac_objext \
9771 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9775 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9778 ac_cv_search_pthread_rwlock_init=no
9781 LIBS=$ac_func_search_save_LIBS
9783 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9784 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9785 ac_res=$ac_cv_search_pthread_rwlock_init
9786 if test "$ac_res" != no; then
9787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9789 cat >>confdefs.h <<\_ACEOF
9790 #define HAVE_PTHREAD_RWLOCK_INIT 1
9795 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9796 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9797 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 ac_func_search_save_LIBS=$LIBS
9801 cat >conftest.$ac_ext <<_ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9814 char pthread_getspecific ();
9818 return pthread_getspecific ();
9823 for ac_lib in '' pthread; do
9824 if test -z "$ac_lib"; then
9825 ac_res="none required"
9828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest$ac_exeext'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_search_pthread_getspecific=$ac_res
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9872 rm -f core conftest.err conftest.$ac_objext \
9874 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9878 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9881 ac_cv_search_pthread_getspecific=no
9884 LIBS=$ac_func_search_save_LIBS
9886 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9887 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9888 ac_res=$ac_cv_search_pthread_getspecific
9889 if test "$ac_res" != no; then
9890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9892 cat >>confdefs.h <<\_ACEOF
9893 #define HAVE_PTHREAD_GETSPECIFIC 1
9900 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9902 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9903 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9904 if test "${ac_cv_lib_z_compress2+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 ac_check_lib_save_LIBS=$LIBS
9909 cat >conftest.$ac_ext <<_ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9926 return compress2 ();
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (ac_try="$ac_link"
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_link") 2>conftest.er1
9940 grep -v '^ *+' conftest.er1 >conftest.err
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9946 { (case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_try") 2>&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; } &&
9955 { ac_try='test -s conftest$ac_exeext'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_cv_lib_z_compress2=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_cv_lib_z_compress2=no
9973 rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 LIBS=$ac_check_lib_save_LIBS
9977 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9978 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9979 if test $ac_cv_lib_z_compress2 = yes; then
9980 cat >>confdefs.h <<_ACEOF
9991 # Check whether --with-oprofile was given.
9992 if test "${with_oprofile+set}" = set; then
9993 withval=$with_oprofile;
9997 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10001 *) llvm_cv_oppath="${withval}/lib/oprofile"
10002 CPPFLAGS="-I${withval}/include";;
10004 case $llvm_cv_os_type in
10006 if test -n "$llvm_cv_oppath" ; then
10007 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10008 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10009 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10010 if test "${ac_cv_search_bfd_init+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 ac_func_search_save_LIBS=$LIBS
10014 cat >conftest.$ac_ext <<_ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10021 /* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10031 return bfd_init ();
10036 for ac_lib in '' bfd; do
10037 if test -z "$ac_lib"; then
10038 ac_res="none required"
10041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1 >conftest.err
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_search_bfd_init=$ac_res
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10085 rm -f core conftest.err conftest.$ac_objext \
10087 if test "${ac_cv_search_bfd_init+set}" = set; then
10091 if test "${ac_cv_search_bfd_init+set}" = set; then
10094 ac_cv_search_bfd_init=no
10096 rm conftest.$ac_ext
10097 LIBS=$ac_func_search_save_LIBS
10099 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10100 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10101 ac_res=$ac_cv_search_bfd_init
10102 if test "$ac_res" != no; then
10103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10107 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10108 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10109 if test "${ac_cv_search_op_open_agent+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 ac_func_search_save_LIBS=$LIBS
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10120 /* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10126 char op_open_agent ();
10130 return op_open_agent ();
10135 for ac_lib in '' opagent; do
10136 if test -z "$ac_lib"; then
10137 ac_res="none required"
10140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (ac_try="$ac_link"
10144 case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_link") 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157 { (case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_try") 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest$ac_exeext'
10167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 ac_cv_search_op_open_agent=$ac_res
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10184 rm -f core conftest.err conftest.$ac_objext \
10186 if test "${ac_cv_search_op_open_agent+set}" = set; then
10190 if test "${ac_cv_search_op_open_agent+set}" = set; then
10193 ac_cv_search_op_open_agent=no
10195 rm conftest.$ac_ext
10196 LIBS=$ac_func_search_save_LIBS
10198 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10199 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10200 ac_res=$ac_cv_search_op_open_agent
10201 if test "$ac_res" != no; then
10202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10206 echo "Error! You need to have libopagent around."
10211 if test "${ac_cv_header_opagent_h+set}" = set; then
10212 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10213 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10214 if test "${ac_cv_header_opagent_h+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10218 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10220 # Is the header compilable?
10221 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10222 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10223 cat >conftest.$ac_ext <<_ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 $ac_includes_default
10230 #include <opagent.h>
10232 rm -f conftest.$ac_objext
10233 if { (ac_try="$ac_compile"
10234 case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_compile") 2>conftest.er1
10241 grep -v '^ *+' conftest.er1 >conftest.err
10243 cat conftest.err >&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } &&
10246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10247 { (case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_try") 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest.$ac_objext'
10257 { (case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_try") 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 ac_header_compiler=yes
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10271 ac_header_compiler=no
10274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10276 echo "${ECHO_T}$ac_header_compiler" >&6; }
10278 # Is the header present?
10279 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10280 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10281 cat >conftest.$ac_ext <<_ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 #include <opagent.h>
10289 if { (ac_try="$ac_cpp conftest.$ac_ext"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10297 grep -v '^ *+' conftest.er1 >conftest.err
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } >/dev/null; then
10302 if test -s conftest.err; then
10303 ac_cpp_err=$ac_c_preproc_warn_flag
10304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10311 if test -z "$ac_cpp_err"; then
10312 ac_header_preproc=yes
10314 echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10317 ac_header_preproc=no
10320 rm -f conftest.err conftest.$ac_ext
10321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322 echo "${ECHO_T}$ac_header_preproc" >&6; }
10324 # So? What about this header?
10325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10327 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10328 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10330 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10331 ac_header_preproc=yes
10334 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10335 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10337 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10339 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10341 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10343 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10345 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10347 ## ------------------------------------ ##
10348 ## Report this to http://llvm.org/bugs/ ##
10349 ## ------------------------------------ ##
10351 ) | sed "s/^/$as_me: WARNING: /" >&2
10354 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10355 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10356 if test "${ac_cv_header_opagent_h+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 ac_cv_header_opagent_h=$ac_header_preproc
10361 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10362 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10365 if test $ac_cv_header_opagent_h = yes; then
10369 echo "Error! You need to have opagent.h around."
10377 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10378 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10379 { (exit 1); exit 1; }; } ;;
10390 cat >>confdefs.h <<_ACEOF
10391 #define LLVM_USE_OPROFILE $USE_OPROFILE
10396 # Check whether --with-intel-jitevents was given.
10397 if test "${with_intel_jitevents+set}" = set; then
10398 withval=$with_intel_jitevents;
10400 yes) USE_INTEL_JITEVENTS=1
10402 no) USE_INTEL_JITEVENTS=0
10404 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10405 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10406 { (exit 1); exit 1; }; };;
10409 case $llvm_cv_os_type in
10410 Linux|Win32|Cygwin|MingW) ;;
10411 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10412 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10413 { (exit 1); exit 1; }; };;
10416 case "$llvm_cv_target_arch" in
10418 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10419 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10420 { (exit 1); exit 1; }; };;
10425 USE_INTEL_JITEVENTS=0
10431 cat >>confdefs.h <<_ACEOF
10432 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10436 for ac_prog in xml2-config
10438 # Extract the first word of "$ac_prog", so it can be a program name with args.
10439 set dummy $ac_prog; ac_word=$2
10440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10442 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 if test -n "$XML2CONFIG"; then
10446 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10455 ac_cv_prog_XML2CONFIG="$ac_prog"
10456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10466 if test -n "$XML2CONFIG"; then
10467 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10468 echo "${ECHO_T}$XML2CONFIG" >&6; }
10470 { echo "$as_me:$LINENO: result: no" >&5
10471 echo "${ECHO_T}no" >&6; }
10475 test -n "$XML2CONFIG" && break
10479 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10480 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10481 if test "x$XML2CONFIG" = "x"; then
10482 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10483 echo "${ECHO_T}xml2-config not found" >&6; }
10485 LIBXML2_INC=`$XML2CONFIG --cflags`
10486 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10487 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10488 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10489 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10490 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 ac_check_lib_save_LIBS=$LIBS
10494 LIBS="-lxml2 $LIBS"
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10508 char xmlReadFile ();
10512 return xmlReadFile ();
10517 rm -f conftest.$ac_objext conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest$ac_exeext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_lib_xml2_xmlReadFile=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_cv_lib_xml2_xmlReadFile=no
10559 rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10563 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10564 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10565 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10567 cat >>confdefs.h <<\_ACEOF
10568 #define CLANG_HAVE_LIBXML 1
10571 LIBXML2_LIBS="-lxml2"
10584 ac_header_dirent=no
10585 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10586 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10587 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10588 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 cat >conftest.$ac_ext <<_ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 #include <sys/types.h>
10610 rm -f conftest.$ac_objext
10611 if { (ac_try="$ac_compile"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_compile") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 eval "$as_ac_Header=yes"
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 eval "$as_ac_Header=no"
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654 ac_res=`eval echo '${'$as_ac_Header'}'`
10655 { echo "$as_me:$LINENO: result: $ac_res" >&5
10656 echo "${ECHO_T}$ac_res" >&6; }
10657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10658 cat >>confdefs.h <<_ACEOF
10659 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10662 ac_header_dirent=$ac_hdr; break
10666 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10667 if test $ac_header_dirent = dirent.h; then
10668 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10669 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10670 if test "${ac_cv_search_opendir+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 ac_func_search_save_LIBS=$LIBS
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10681 /* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10696 for ac_lib in '' dir; do
10697 if test -z "$ac_lib"; then
10698 ac_res="none required"
10701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10703 rm -f conftest.$ac_objext conftest$ac_exeext
10704 if { (ac_try="$ac_link"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_link") 2>conftest.er1
10712 grep -v '^ *+' conftest.er1 >conftest.err
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10718 { (case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_try") 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; } &&
10727 { ac_try='test -s conftest$ac_exeext'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_search_opendir=$ac_res
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10745 rm -f core conftest.err conftest.$ac_objext \
10747 if test "${ac_cv_search_opendir+set}" = set; then
10751 if test "${ac_cv_search_opendir+set}" = set; then
10754 ac_cv_search_opendir=no
10756 rm conftest.$ac_ext
10757 LIBS=$ac_func_search_save_LIBS
10759 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10760 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10761 ac_res=$ac_cv_search_opendir
10762 if test "$ac_res" != no; then
10763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10768 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10769 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10770 if test "${ac_cv_search_opendir+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 ac_func_search_save_LIBS=$LIBS
10774 cat >conftest.$ac_ext <<_ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10796 for ac_lib in '' x; do
10797 if test -z "$ac_lib"; then
10798 ac_res="none required"
10801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (ac_try="$ac_link"
10805 case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_link") 2>conftest.er1
10812 grep -v '^ *+' conftest.er1 >conftest.err
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10818 { (case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_try") 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_try") 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 ac_cv_search_opendir=$ac_res
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10845 rm -f core conftest.err conftest.$ac_objext \
10847 if test "${ac_cv_search_opendir+set}" = set; then
10851 if test "${ac_cv_search_opendir+set}" = set; then
10854 ac_cv_search_opendir=no
10856 rm conftest.$ac_ext
10857 LIBS=$ac_func_search_save_LIBS
10859 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10860 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10861 ac_res=$ac_cv_search_opendir
10862 if test "$ac_res" != no; then
10863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10869 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10870 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10871 if test "${ac_cv_header_mmap_anon+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 ac_cpp='$CPP $CPPFLAGS'
10876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10880 cat >conftest.$ac_ext <<_ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 #include <sys/mman.h>
10887 #include <unistd.h>
10892 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10897 rm -f conftest.$ac_objext
10898 if { (ac_try="$ac_compile"
10899 case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_compile") 2>conftest.er1
10906 grep -v '^ *+' conftest.er1 >conftest.err
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912 { (case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_try") 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; } &&
10921 { ac_try='test -s conftest.$ac_objext'
10922 { (case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_try") 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 ac_cv_header_mmap_anon=yes
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10936 ac_cv_header_mmap_anon=no
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941 ac_cpp='$CPP $CPPFLAGS'
10942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10948 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10949 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10950 if test "$ac_cv_header_mmap_anon" = yes; then
10952 cat >>confdefs.h <<\_ACEOF
10953 #define HAVE_MMAP_ANONYMOUS 1
10958 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10959 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10960 if test "${ac_cv_header_stat_broken+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10969 #include <sys/types.h>
10970 #include <sys/stat.h>
10972 #if defined S_ISBLK && defined S_IFDIR
10973 # if S_ISBLK (S_IFDIR)
10978 #if defined S_ISBLK && defined S_IFCHR
10979 # if S_ISBLK (S_IFCHR)
10984 #if defined S_ISLNK && defined S_IFREG
10985 # if S_ISLNK (S_IFREG)
10990 #if defined S_ISSOCK && defined S_IFREG
10991 # if S_ISSOCK (S_IFREG)
10997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10998 $EGREP "You lose" >/dev/null 2>&1; then
10999 ac_cv_header_stat_broken=yes
11001 ac_cv_header_stat_broken=no
11006 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11007 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11008 if test $ac_cv_header_stat_broken = yes; then
11010 cat >>confdefs.h <<\_ACEOF
11011 #define STAT_MACROS_BROKEN 1
11016 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11017 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11018 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 cat >conftest.$ac_ext <<_ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 #include <sys/types.h>
11028 #include <sys/wait.h>
11029 #ifndef WEXITSTATUS
11030 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11033 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11041 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11046 rm -f conftest.$ac_objext
11047 if { (ac_try="$ac_compile"
11048 case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_compile") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest.$ac_objext'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_cv_header_sys_wait_h=yes
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_cv_header_sys_wait_h=no
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11091 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11092 if test $ac_cv_header_sys_wait_h = yes; then
11094 cat >>confdefs.h <<\_ACEOF
11095 #define HAVE_SYS_WAIT_H 1
11100 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11101 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11102 if test "${ac_cv_header_time+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11105 cat >conftest.$ac_ext <<_ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11111 #include <sys/types.h>
11112 #include <sys/time.h>
11118 if ((struct tm *) 0)
11124 rm -f conftest.$ac_objext
11125 if { (ac_try="$ac_compile"
11126 case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_compile") 2>conftest.er1
11133 grep -v '^ *+' conftest.er1 >conftest.err
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
11138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11139 { (case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_try") 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; } &&
11148 { ac_try='test -s conftest.$ac_objext'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 ac_cv_header_time=yes
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11163 ac_cv_header_time=no
11166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11169 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11170 if test $ac_cv_header_time = yes; then
11172 cat >>confdefs.h <<\_ACEOF
11173 #define TIME_WITH_SYS_TIME 1
11180 ac_cpp='$CXXCPP $CPPFLAGS'
11181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11186 for ac_header in cxxabi.h
11188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 #include <stddef.h>
11203 #include <$ac_header>
11205 rm -f conftest.$ac_objext
11206 if { (ac_try="$ac_compile"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_compile") 2>conftest.er1
11214 grep -v '^ *+' conftest.er1 >conftest.err
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest.$ac_objext'
11230 { (case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_try") 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 eval "$as_ac_Header=yes"
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 eval "$as_ac_Header=no"
11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11249 ac_res=`eval echo '${'$as_ac_Header'}'`
11250 { echo "$as_me:$LINENO: result: $ac_res" >&5
11251 echo "${ECHO_T}$ac_res" >&6; }
11252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11262 ac_cpp='$CPP $CPPFLAGS'
11263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11273 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 ac_res=`eval echo '${'$as_ac_Header'}'`
11283 { echo "$as_me:$LINENO: result: $ac_res" >&5
11284 echo "${ECHO_T}$ac_res" >&6; }
11286 # Is the header compilable?
11287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11289 cat >conftest.$ac_ext <<_ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 $ac_includes_default
11296 #include <$ac_header>
11298 rm -f conftest.$ac_objext
11299 if { (ac_try="$ac_compile"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_compile") 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11313 { (case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_try") 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest.$ac_objext'
11323 { (case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_try") 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_header_compiler=yes
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_header_compiler=no
11340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342 echo "${ECHO_T}$ac_header_compiler" >&6; }
11344 # Is the header present?
11345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11347 cat >conftest.$ac_ext <<_ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 #include <$ac_header>
11355 if { (ac_try="$ac_cpp conftest.$ac_ext"
11356 case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11363 grep -v '^ *+' conftest.er1 >conftest.err
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } >/dev/null; then
11368 if test -s conftest.err; then
11369 ac_cpp_err=$ac_c_preproc_warn_flag
11370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11377 if test -z "$ac_cpp_err"; then
11378 ac_header_preproc=yes
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_header_preproc=no
11386 rm -f conftest.err conftest.$ac_ext
11387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11388 echo "${ECHO_T}$ac_header_preproc" >&6; }
11390 # So? What about this header?
11391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11397 ac_header_preproc=yes
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11413 ## ------------------------------------ ##
11414 ## Report this to http://llvm.org/bugs/ ##
11415 ## ------------------------------------ ##
11417 ) | sed "s/^/$as_me: WARNING: /" >&2
11420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 eval "$as_ac_Header=\$ac_header_preproc"
11427 ac_res=`eval echo '${'$as_ac_Header'}'`
11428 { echo "$as_me:$LINENO: result: $ac_res" >&5
11429 echo "${ECHO_T}$ac_res" >&6; }
11432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11433 cat >>confdefs.h <<_ACEOF
11434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11447 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 ac_res=`eval echo '${'$as_ac_Header'}'`
11457 { echo "$as_me:$LINENO: result: $ac_res" >&5
11458 echo "${ECHO_T}$ac_res" >&6; }
11460 # Is the header compilable?
11461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11463 cat >conftest.$ac_ext <<_ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 $ac_includes_default
11470 #include <$ac_header>
11472 rm -f conftest.$ac_objext
11473 if { (ac_try="$ac_compile"
11474 case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_compile") 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11487 { (case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_try") 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest.$ac_objext'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 ac_header_compiler=yes
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 ac_header_compiler=no
11514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11516 echo "${ECHO_T}$ac_header_compiler" >&6; }
11518 # Is the header present?
11519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11521 cat >conftest.$ac_ext <<_ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 #include <$ac_header>
11529 if { (ac_try="$ac_cpp conftest.$ac_ext"
11530 case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11537 grep -v '^ *+' conftest.er1 >conftest.err
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } >/dev/null; then
11542 if test -s conftest.err; then
11543 ac_cpp_err=$ac_c_preproc_warn_flag
11544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11551 if test -z "$ac_cpp_err"; then
11552 ac_header_preproc=yes
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 ac_header_preproc=no
11560 rm -f conftest.err conftest.$ac_ext
11561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11562 echo "${ECHO_T}$ac_header_preproc" >&6; }
11564 # So? What about this header?
11565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11571 ac_header_preproc=yes
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11587 ## ------------------------------------ ##
11588 ## Report this to http://llvm.org/bugs/ ##
11589 ## ------------------------------------ ##
11591 ) | sed "s/^/$as_me: WARNING: /" >&2
11594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 eval "$as_ac_Header=\$ac_header_preproc"
11601 ac_res=`eval echo '${'$as_ac_Header'}'`
11602 { echo "$as_me:$LINENO: result: $ac_res" >&5
11603 echo "${ECHO_T}$ac_res" >&6; }
11606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11607 cat >>confdefs.h <<_ACEOF
11608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11616 for ac_header in utime.h
11618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 ac_res=`eval echo '${'$as_ac_Header'}'`
11626 { echo "$as_me:$LINENO: result: $ac_res" >&5
11627 echo "${ECHO_T}$ac_res" >&6; }
11629 # Is the header compilable?
11630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11632 cat >conftest.$ac_ext <<_ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11638 $ac_includes_default
11639 #include <$ac_header>
11641 rm -f conftest.$ac_objext
11642 if { (ac_try="$ac_compile"
11643 case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_compile") 2>conftest.er1
11650 grep -v '^ *+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11656 { (case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_try") 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; } &&
11665 { ac_try='test -s conftest.$ac_objext'
11666 { (case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_try") 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_header_compiler=yes
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 ac_header_compiler=no
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11685 echo "${ECHO_T}$ac_header_compiler" >&6; }
11687 # Is the header present?
11688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11690 cat >conftest.$ac_ext <<_ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 #include <$ac_header>
11698 if { (ac_try="$ac_cpp conftest.$ac_ext"
11699 case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11706 grep -v '^ *+' conftest.er1 >conftest.err
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } >/dev/null; then
11711 if test -s conftest.err; then
11712 ac_cpp_err=$ac_c_preproc_warn_flag
11713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11720 if test -z "$ac_cpp_err"; then
11721 ac_header_preproc=yes
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 ac_header_preproc=no
11729 rm -f conftest.err conftest.$ac_ext
11730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11731 echo "${ECHO_T}$ac_header_preproc" >&6; }
11733 # So? What about this header?
11734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11740 ac_header_preproc=yes
11743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11756 ## ------------------------------------ ##
11757 ## Report this to http://llvm.org/bugs/ ##
11758 ## ------------------------------------ ##
11760 ) | sed "s/^/$as_me: WARNING: /" >&2
11763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 eval "$as_ac_Header=\$ac_header_preproc"
11770 ac_res=`eval echo '${'$as_ac_Header'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11776 cat >>confdefs.h <<_ACEOF
11777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11789 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 ac_res=`eval echo '${'$as_ac_Header'}'`
11799 { echo "$as_me:$LINENO: result: $ac_res" >&5
11800 echo "${ECHO_T}$ac_res" >&6; }
11802 # Is the header compilable?
11803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 $ac_includes_default
11812 #include <$ac_header>
11814 rm -f conftest.$ac_objext
11815 if { (ac_try="$ac_compile"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_compile") 2>conftest.er1
11823 grep -v '^ *+' conftest.er1 >conftest.err
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829 { (case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_try") 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; } &&
11838 { ac_try='test -s conftest.$ac_objext'
11839 { (case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_try") 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_header_compiler=yes
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 ac_header_compiler=no
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11858 echo "${ECHO_T}$ac_header_compiler" >&6; }
11860 # Is the header present?
11861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11863 cat >conftest.$ac_ext <<_ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 #include <$ac_header>
11871 if { (ac_try="$ac_cpp conftest.$ac_ext"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11879 grep -v '^ *+' conftest.er1 >conftest.err
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } >/dev/null; then
11884 if test -s conftest.err; then
11885 ac_cpp_err=$ac_c_preproc_warn_flag
11886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11893 if test -z "$ac_cpp_err"; then
11894 ac_header_preproc=yes
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 ac_header_preproc=no
11902 rm -f conftest.err conftest.$ac_ext
11903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11904 echo "${ECHO_T}$ac_header_preproc" >&6; }
11906 # So? What about this header?
11907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11913 ac_header_preproc=yes
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11929 ## ------------------------------------ ##
11930 ## Report this to http://llvm.org/bugs/ ##
11931 ## ------------------------------------ ##
11933 ) | sed "s/^/$as_me: WARNING: /" >&2
11936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 eval "$as_ac_Header=\$ac_header_preproc"
11943 ac_res=`eval echo '${'$as_ac_Header'}'`
11944 { echo "$as_me:$LINENO: result: $ac_res" >&5
11945 echo "${ECHO_T}$ac_res" >&6; }
11948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11949 cat >>confdefs.h <<_ACEOF
11950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11960 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 ac_res=`eval echo '${'$as_ac_Header'}'`
11970 { echo "$as_me:$LINENO: result: $ac_res" >&5
11971 echo "${ECHO_T}$ac_res" >&6; }
11973 # Is the header compilable?
11974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11976 cat >conftest.$ac_ext <<_ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 $ac_includes_default
11983 #include <$ac_header>
11985 rm -f conftest.$ac_objext
11986 if { (ac_try="$ac_compile"
11987 case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_compile") 2>conftest.er1
11994 grep -v '^ *+' conftest.er1 >conftest.err
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12000 { (case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_try") 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; } &&
12009 { ac_try='test -s conftest.$ac_objext'
12010 { (case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_try") 2>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; }; then
12019 ac_header_compiler=yes
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12024 ac_header_compiler=no
12027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12029 echo "${ECHO_T}$ac_header_compiler" >&6; }
12031 # Is the header present?
12032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12034 cat >conftest.$ac_ext <<_ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 #include <$ac_header>
12042 if { (ac_try="$ac_cpp conftest.$ac_ext"
12043 case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12050 grep -v '^ *+' conftest.er1 >conftest.err
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } >/dev/null; then
12055 if test -s conftest.err; then
12056 ac_cpp_err=$ac_c_preproc_warn_flag
12057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12064 if test -z "$ac_cpp_err"; then
12065 ac_header_preproc=yes
12067 echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 ac_header_preproc=no
12073 rm -f conftest.err conftest.$ac_ext
12074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075 echo "${ECHO_T}$ac_header_preproc" >&6; }
12077 # So? What about this header?
12078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084 ac_header_preproc=yes
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12100 ## ------------------------------------ ##
12101 ## Report this to http://llvm.org/bugs/ ##
12102 ## ------------------------------------ ##
12104 ) | sed "s/^/$as_me: WARNING: /" >&2
12107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 eval "$as_ac_Header=\$ac_header_preproc"
12114 ac_res=`eval echo '${'$as_ac_Header'}'`
12115 { echo "$as_me:$LINENO: result: $ac_res" >&5
12116 echo "${ECHO_T}$ac_res" >&6; }
12119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12120 cat >>confdefs.h <<_ACEOF
12121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12129 for ac_header in valgrind/valgrind.h
12131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 ac_res=`eval echo '${'$as_ac_Header'}'`
12139 { echo "$as_me:$LINENO: result: $ac_res" >&5
12140 echo "${ECHO_T}$ac_res" >&6; }
12142 # Is the header compilable?
12143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12145 cat >conftest.$ac_ext <<_ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 $ac_includes_default
12152 #include <$ac_header>
12154 rm -f conftest.$ac_objext
12155 if { (ac_try="$ac_compile"
12156 case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_compile") 2>conftest.er1
12163 grep -v '^ *+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169 { (case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_try") 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_header_compiler=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 ac_header_compiler=no
12196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12198 echo "${ECHO_T}$ac_header_compiler" >&6; }
12200 # Is the header present?
12201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12203 cat >conftest.$ac_ext <<_ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 #include <$ac_header>
12211 if { (ac_try="$ac_cpp conftest.$ac_ext"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } >/dev/null; then
12224 if test -s conftest.err; then
12225 ac_cpp_err=$ac_c_preproc_warn_flag
12226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12233 if test -z "$ac_cpp_err"; then
12234 ac_header_preproc=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_header_preproc=no
12242 rm -f conftest.err conftest.$ac_ext
12243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12244 echo "${ECHO_T}$ac_header_preproc" >&6; }
12246 # So? What about this header?
12247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12253 ac_header_preproc=yes
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12269 ## ------------------------------------ ##
12270 ## Report this to http://llvm.org/bugs/ ##
12271 ## ------------------------------------ ##
12273 ) | sed "s/^/$as_me: WARNING: /" >&2
12276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 eval "$as_ac_Header=\$ac_header_preproc"
12283 ac_res=`eval echo '${'$as_ac_Header'}'`
12284 { echo "$as_me:$LINENO: result: $ac_res" >&5
12285 echo "${ECHO_T}$ac_res" >&6; }
12288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12289 cat >>confdefs.h <<_ACEOF
12290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12298 for ac_header in fenv.h
12300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 ac_res=`eval echo '${'$as_ac_Header'}'`
12308 { echo "$as_me:$LINENO: result: $ac_res" >&5
12309 echo "${ECHO_T}$ac_res" >&6; }
12311 # Is the header compilable?
12312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12314 cat >conftest.$ac_ext <<_ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 $ac_includes_default
12321 #include <$ac_header>
12323 rm -f conftest.$ac_objext
12324 if { (ac_try="$ac_compile"
12325 case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_compile") 2>conftest.er1
12332 grep -v '^ *+' conftest.er1 >conftest.err
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest.$ac_objext'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_header_compiler=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_header_compiler=no
12365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12367 echo "${ECHO_T}$ac_header_compiler" >&6; }
12369 # Is the header present?
12370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12372 cat >conftest.$ac_ext <<_ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378 #include <$ac_header>
12380 if { (ac_try="$ac_cpp conftest.$ac_ext"
12381 case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12388 grep -v '^ *+' conftest.er1 >conftest.err
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } >/dev/null; then
12393 if test -s conftest.err; then
12394 ac_cpp_err=$ac_c_preproc_warn_flag
12395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12402 if test -z "$ac_cpp_err"; then
12403 ac_header_preproc=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_header_preproc=no
12411 rm -f conftest.err conftest.$ac_ext
12412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12413 echo "${ECHO_T}$ac_header_preproc" >&6; }
12415 # So? What about this header?
12416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12422 ac_header_preproc=yes
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12438 ## ------------------------------------ ##
12439 ## Report this to http://llvm.org/bugs/ ##
12440 ## ------------------------------------ ##
12442 ) | sed "s/^/$as_me: WARNING: /" >&2
12445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 eval "$as_ac_Header=\$ac_header_preproc"
12452 ac_res=`eval echo '${'$as_ac_Header'}'`
12453 { echo "$as_me:$LINENO: result: $ac_res" >&5
12454 echo "${ECHO_T}$ac_res" >&6; }
12457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12458 cat >>confdefs.h <<_ACEOF
12459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12466 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12467 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12468 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 cat >conftest.$ac_ext <<_ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12482 #ifndef FE_ALL_EXCEPT
12483 char *p = (char *) FE_ALL_EXCEPT;
12491 rm -f conftest.$ac_objext
12492 if { (ac_try="$ac_compile"
12493 case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_compile") 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12506 { (case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_try") 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest.$ac_objext'
12516 { (case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_try") 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ac_cv_have_decl_FE_ALL_EXCEPT=no
12533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12535 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12536 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12537 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12539 cat >>confdefs.h <<_ACEOF
12540 #define HAVE_DECL_FE_ALL_EXCEPT 1
12545 cat >>confdefs.h <<_ACEOF
12546 #define HAVE_DECL_FE_ALL_EXCEPT 0
12551 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12552 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12553 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12568 char *p = (char *) FE_INEXACT;
12576 rm -f conftest.$ac_objext
12577 if { (ac_try="$ac_compile"
12578 case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_compile") 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591 { (case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_try") 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_try") 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_cv_have_decl_FE_INEXACT=yes
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12615 ac_cv_have_decl_FE_INEXACT=no
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12621 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12622 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12624 cat >>confdefs.h <<_ACEOF
12625 #define HAVE_DECL_FE_INEXACT 1
12630 cat >>confdefs.h <<_ACEOF
12631 #define HAVE_DECL_FE_INEXACT 0
12638 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12640 for ac_header in pthread.h
12642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 ac_res=`eval echo '${'$as_ac_Header'}'`
12650 { echo "$as_me:$LINENO: result: $ac_res" >&5
12651 echo "${ECHO_T}$ac_res" >&6; }
12653 # Is the header compilable?
12654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12656 cat >conftest.$ac_ext <<_ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 $ac_includes_default
12663 #include <$ac_header>
12665 rm -f conftest.$ac_objext
12666 if { (ac_try="$ac_compile"
12667 case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_compile") 2>conftest.er1
12674 grep -v '^ *+' conftest.er1 >conftest.err
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_try") 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest.$ac_objext'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 ac_header_compiler=yes
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 ac_header_compiler=no
12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12709 echo "${ECHO_T}$ac_header_compiler" >&6; }
12711 # Is the header present?
12712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12714 cat >conftest.$ac_ext <<_ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 #include <$ac_header>
12722 if { (ac_try="$ac_cpp conftest.$ac_ext"
12723 case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12730 grep -v '^ *+' conftest.er1 >conftest.err
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } >/dev/null; then
12735 if test -s conftest.err; then
12736 ac_cpp_err=$ac_c_preproc_warn_flag
12737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12744 if test -z "$ac_cpp_err"; then
12745 ac_header_preproc=yes
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12750 ac_header_preproc=no
12753 rm -f conftest.err conftest.$ac_ext
12754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12755 echo "${ECHO_T}$ac_header_preproc" >&6; }
12757 # So? What about this header?
12758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12764 ac_header_preproc=yes
12767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12780 ## ------------------------------------ ##
12781 ## Report this to http://llvm.org/bugs/ ##
12782 ## ------------------------------------ ##
12784 ) | sed "s/^/$as_me: WARNING: /" >&2
12787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 eval "$as_ac_Header=\$ac_header_preproc"
12794 ac_res=`eval echo '${'$as_ac_Header'}'`
12795 { echo "$as_me:$LINENO: result: $ac_res" >&5
12796 echo "${ECHO_T}$ac_res" >&6; }
12799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12800 cat >>confdefs.h <<_ACEOF
12801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12816 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12818 for ac_header in zlib.h
12820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 ac_res=`eval echo '${'$as_ac_Header'}'`
12828 { echo "$as_me:$LINENO: result: $ac_res" >&5
12829 echo "${ECHO_T}$ac_res" >&6; }
12831 # Is the header compilable?
12832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12834 cat >conftest.$ac_ext <<_ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 $ac_includes_default
12841 #include <$ac_header>
12843 rm -f conftest.$ac_objext
12844 if { (ac_try="$ac_compile"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_compile") 2>conftest.er1
12852 grep -v '^ *+' conftest.er1 >conftest.err
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12858 { (case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_try") 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest.$ac_objext'
12868 { (case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_try") 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12877 ac_header_compiler=yes
12879 echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12882 ac_header_compiler=no
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12887 echo "${ECHO_T}$ac_header_compiler" >&6; }
12889 # Is the header present?
12890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12892 cat >conftest.$ac_ext <<_ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12898 #include <$ac_header>
12900 if { (ac_try="$ac_cpp conftest.$ac_ext"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12908 grep -v '^ *+' conftest.er1 >conftest.err
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } >/dev/null; then
12913 if test -s conftest.err; then
12914 ac_cpp_err=$ac_c_preproc_warn_flag
12915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12922 if test -z "$ac_cpp_err"; then
12923 ac_header_preproc=yes
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12928 ac_header_preproc=no
12931 rm -f conftest.err conftest.$ac_ext
12932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12933 echo "${ECHO_T}$ac_header_preproc" >&6; }
12935 # So? What about this header?
12936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12942 ac_header_preproc=yes
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12958 ## ------------------------------------ ##
12959 ## Report this to http://llvm.org/bugs/ ##
12960 ## ------------------------------------ ##
12962 ) | sed "s/^/$as_me: WARNING: /" >&2
12965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 eval "$as_ac_Header=\$ac_header_preproc"
12972 ac_res=`eval echo '${'$as_ac_Header'}'`
12973 { echo "$as_me:$LINENO: result: $ac_res" >&5
12974 echo "${ECHO_T}$ac_res" >&6; }
12977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12978 cat >>confdefs.h <<_ACEOF
12979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12995 if test "$llvm_cv_enable_libffi" = "yes" ; then
12998 for ac_header in ffi.h ffi/ffi.h
13000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 ac_res=`eval echo '${'$as_ac_Header'}'`
13008 { echo "$as_me:$LINENO: result: $ac_res" >&5
13009 echo "${ECHO_T}$ac_res" >&6; }
13011 # Is the header compilable?
13012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13014 cat >conftest.$ac_ext <<_ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13020 $ac_includes_default
13021 #include <$ac_header>
13023 rm -f conftest.$ac_objext
13024 if { (ac_try="$ac_compile"
13025 case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_compile") 2>conftest.er1
13032 grep -v '^ *+' conftest.er1 >conftest.err
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest.$ac_objext'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_header_compiler=yes
13059 echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13062 ac_header_compiler=no
13065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13067 echo "${ECHO_T}$ac_header_compiler" >&6; }
13069 # Is the header present?
13070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13072 cat >conftest.$ac_ext <<_ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13078 #include <$ac_header>
13080 if { (ac_try="$ac_cpp conftest.$ac_ext"
13081 case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13088 grep -v '^ *+' conftest.er1 >conftest.err
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } >/dev/null; then
13093 if test -s conftest.err; then
13094 ac_cpp_err=$ac_c_preproc_warn_flag
13095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13102 if test -z "$ac_cpp_err"; then
13103 ac_header_preproc=yes
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_header_preproc=no
13111 rm -f conftest.err conftest.$ac_ext
13112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13113 echo "${ECHO_T}$ac_header_preproc" >&6; }
13115 # So? What about this header?
13116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13122 ac_header_preproc=yes
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13138 ## ------------------------------------ ##
13139 ## Report this to http://llvm.org/bugs/ ##
13140 ## ------------------------------------ ##
13142 ) | sed "s/^/$as_me: WARNING: /" >&2
13145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 eval "$as_ac_Header=\$ac_header_preproc"
13152 ac_res=`eval echo '${'$as_ac_Header'}'`
13153 { echo "$as_me:$LINENO: result: $ac_res" >&5
13154 echo "${ECHO_T}$ac_res" >&6; }
13157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13158 cat >>confdefs.h <<_ACEOF
13159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13169 for ac_header in CrashReporterClient.h
13171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 ac_res=`eval echo '${'$as_ac_Header'}'`
13179 { echo "$as_me:$LINENO: result: $ac_res" >&5
13180 echo "${ECHO_T}$ac_res" >&6; }
13182 # Is the header compilable?
13183 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13185 cat >conftest.$ac_ext <<_ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 $ac_includes_default
13192 #include <$ac_header>
13194 rm -f conftest.$ac_objext
13195 if { (ac_try="$ac_compile"
13196 case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_compile") 2>conftest.er1
13203 grep -v '^ *+' conftest.er1 >conftest.err
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13209 { (case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_try") 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try='test -s conftest.$ac_objext'
13219 { (case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_try") 2>&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_header_compiler=yes
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 ac_header_compiler=no
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13238 echo "${ECHO_T}$ac_header_compiler" >&6; }
13240 # Is the header present?
13241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13243 cat >conftest.$ac_ext <<_ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 #include <$ac_header>
13251 if { (ac_try="$ac_cpp conftest.$ac_ext"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } >/dev/null; then
13264 if test -s conftest.err; then
13265 ac_cpp_err=$ac_c_preproc_warn_flag
13266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13273 if test -z "$ac_cpp_err"; then
13274 ac_header_preproc=yes
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 ac_header_preproc=no
13282 rm -f conftest.err conftest.$ac_ext
13283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13284 echo "${ECHO_T}$ac_header_preproc" >&6; }
13286 # So? What about this header?
13287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13293 ac_header_preproc=yes
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13309 ## ------------------------------------ ##
13310 ## Report this to http://llvm.org/bugs/ ##
13311 ## ------------------------------------ ##
13313 ) | sed "s/^/$as_me: WARNING: /" >&2
13316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13321 eval "$as_ac_Header=\$ac_header_preproc"
13323 ac_res=`eval echo '${'$as_ac_Header'}'`
13324 { echo "$as_me:$LINENO: result: $ac_res" >&5
13325 echo "${ECHO_T}$ac_res" >&6; }
13328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13329 cat >>confdefs.h <<_ACEOF
13330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13338 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13339 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13340 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 extern const char *__crashreporter_info__;
13350 __crashreporter_info__ = "test";
13356 rm -f conftest.$ac_objext conftest$ac_exeext
13357 if { (ac_try="$ac_link"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_link") 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13391 { echo "$as_me:$LINENO: result: yes" >&5
13392 echo "${ECHO_T}yes" >&6; }
13394 cat >>confdefs.h <<\_ACEOF
13395 #define HAVE_CRASHREPORTER_INFO 1
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13404 { echo "$as_me:$LINENO: result: no" >&5
13405 echo "${ECHO_T}no" >&6; }
13407 cat >>confdefs.h <<\_ACEOF
13408 #define HAVE_CRASHREPORTER_INFO 0
13414 rm -f core conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13419 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13420 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13421 if test "${ac_cv_huge_val_sanity+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 ac_cpp='$CXXCPP $CPPFLAGS'
13427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13431 ac_save_CXXFLAGS=$CXXFLAGS
13432 CXXFLAGS="$CXXFLAGS -pedantic"
13433 if test "$cross_compiling" = yes; then
13434 ac_cv_huge_val_sanity=yes
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13446 double x = HUGE_VAL; return x != x;
13451 rm -f conftest$ac_exeext
13452 if { (ac_try="$ac_link"
13453 case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_link") 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_cv_huge_val_sanity=yes
13473 echo "$as_me: program exited with status $ac_status" >&5
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 ( exit $ac_status )
13478 ac_cv_huge_val_sanity=no
13480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13484 CXXFLAGS=$ac_save_CXXFLAGS
13486 ac_cpp='$CPP $CPPFLAGS'
13487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13493 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13494 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13495 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13498 { echo "$as_me:$LINENO: checking for pid_t" >&5
13499 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13500 if test "${ac_cv_type_pid_t+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 cat >conftest.$ac_ext <<_ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 $ac_includes_default
13510 typedef pid_t ac__type_new_;
13514 if ((ac__type_new_ *) 0)
13516 if (sizeof (ac__type_new_))
13522 rm -f conftest.$ac_objext
13523 if { (ac_try="$ac_compile"
13524 case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_compile") 2>conftest.er1
13531 grep -v '^ *+' conftest.er1 >conftest.err
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest.$ac_objext'
13547 { (case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_try") 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_cv_type_pid_t=yes
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13561 ac_cv_type_pid_t=no
13564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13567 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13568 if test $ac_cv_type_pid_t = yes; then
13572 cat >>confdefs.h <<_ACEOF
13578 { echo "$as_me:$LINENO: checking for size_t" >&5
13579 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13580 if test "${ac_cv_type_size_t+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 cat >conftest.$ac_ext <<_ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13589 $ac_includes_default
13590 typedef size_t ac__type_new_;
13594 if ((ac__type_new_ *) 0)
13596 if (sizeof (ac__type_new_))
13602 rm -f conftest.$ac_objext
13603 if { (ac_try="$ac_compile"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_compile") 2>conftest.er1
13611 grep -v '^ *+' conftest.er1 >conftest.err
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest.$ac_objext'
13627 { (case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_try") 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_cv_type_size_t=yes
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 ac_cv_type_size_t=no
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13647 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13648 if test $ac_cv_type_size_t = yes; then
13652 cat >>confdefs.h <<_ACEOF
13653 #define size_t unsigned int
13659 cat >>confdefs.h <<_ACEOF
13660 #define RETSIGTYPE void
13663 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13664 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13665 if test "${ac_cv_struct_tm+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 cat >conftest.$ac_ext <<_ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13674 #include <sys/types.h>
13680 struct tm *tp; tp->tm_sec;
13685 rm -f conftest.$ac_objext
13686 if { (ac_try="$ac_compile"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_compile") 2>conftest.er1
13694 grep -v '^ *+' conftest.er1 >conftest.err
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest.$ac_objext'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_struct_tm=time.h
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_cv_struct_tm=sys/time.h
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13730 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13731 if test $ac_cv_struct_tm = sys/time.h; then
13733 cat >>confdefs.h <<\_ACEOF
13734 #define TM_IN_SYS_TIME 1
13739 { echo "$as_me:$LINENO: checking for int64_t" >&5
13740 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13741 if test "${ac_cv_type_int64_t+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 cat >conftest.$ac_ext <<_ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h. */
13750 $ac_includes_default
13751 typedef int64_t ac__type_new_;
13755 if ((ac__type_new_ *) 0)
13757 if (sizeof (ac__type_new_))
13763 rm -f conftest.$ac_objext
13764 if { (ac_try="$ac_compile"
13765 case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_compile") 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } &&
13787 { ac_try='test -s conftest.$ac_objext'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_cv_type_int64_t=yes
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ac_cv_type_int64_t=no
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13807 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13808 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13809 if test $ac_cv_type_int64_t = yes; then
13811 cat >>confdefs.h <<_ACEOF
13812 #define HAVE_INT64_T 1
13817 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13818 echo "$as_me: error: Type int64_t required but not found" >&2;}
13819 { (exit 1); exit 1; }; }
13822 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13823 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13824 if test "${ac_cv_type_uint64_t+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 $ac_includes_default
13834 typedef uint64_t ac__type_new_;
13838 if ((ac__type_new_ *) 0)
13840 if (sizeof (ac__type_new_))
13846 rm -f conftest.$ac_objext
13847 if { (ac_try="$ac_compile"
13848 case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_compile") 2>conftest.er1
13855 grep -v '^ *+' conftest.er1 >conftest.err
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest.$ac_objext'
13871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_cv_type_uint64_t=yes
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 ac_cv_type_uint64_t=no
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13891 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13892 if test $ac_cv_type_uint64_t = yes; then
13894 cat >>confdefs.h <<_ACEOF
13895 #define HAVE_UINT64_T 1
13900 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13901 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13902 if test "${ac_cv_type_u_int64_t+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 $ac_includes_default
13912 typedef u_int64_t ac__type_new_;
13916 if ((ac__type_new_ *) 0)
13918 if (sizeof (ac__type_new_))
13924 rm -f conftest.$ac_objext
13925 if { (ac_try="$ac_compile"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_compile") 2>conftest.er1
13933 grep -v '^ *+' conftest.er1 >conftest.err
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13939 { (case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_try") 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try='test -s conftest.$ac_objext'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_cv_type_u_int64_t=yes
13960 echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13963 ac_cv_type_u_int64_t=no
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13969 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13970 if test $ac_cv_type_u_int64_t = yes; then
13972 cat >>confdefs.h <<_ACEOF
13973 #define HAVE_U_INT64_T 1
13978 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13979 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13980 { (exit 1); exit 1; }; }
13989 for ac_func in backtrace getcwd
13991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 cat >conftest.$ac_ext <<_ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14005 #define $ac_func innocuous_$ac_func
14007 /* System header to define __stub macros and hopefully few prototypes,
14008 which can conflict with char $ac_func (); below.
14009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14010 <limits.h> exists even on freestanding compilers. */
14013 # include <limits.h>
14015 # include <assert.h>
14020 /* Override any GCC internal prototype to avoid an error.
14021 Use char because int might match the return type of a GCC
14022 builtin and then its argument prototype would still apply. */
14027 /* The GNU C library defines this for functions which it implements
14028 to always fail with ENOSYS. Some functions are actually named
14029 something starting with __ and the normal name is an alias. */
14030 #if defined __stub_$ac_func || defined __stub___$ac_func
14037 return $ac_func ();
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (ac_try="$ac_link"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_link") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest$ac_exeext'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076 eval "$as_ac_var=yes"
14078 echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14081 eval "$as_ac_var=no"
14084 rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14087 ac_res=`eval echo '${'$as_ac_var'}'`
14088 { echo "$as_me:$LINENO: result: $ac_res" >&5
14089 echo "${ECHO_T}$ac_res" >&6; }
14090 if test `eval echo '${'$as_ac_var'}'` = yes; then
14091 cat >>confdefs.h <<_ACEOF
14092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14103 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14119 #define $ac_func innocuous_$ac_func
14121 /* System header to define __stub macros and hopefully few prototypes,
14122 which can conflict with char $ac_func (); below.
14123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14124 <limits.h> exists even on freestanding compilers. */
14127 # include <limits.h>
14129 # include <assert.h>
14134 /* Override any GCC internal prototype to avoid an error.
14135 Use char because int might match the return type of a GCC
14136 builtin and then its argument prototype would still apply. */
14141 /* The GNU C library defines this for functions which it implements
14142 to always fail with ENOSYS. Some functions are actually named
14143 something starting with __ and the normal name is an alias. */
14144 #if defined __stub_$ac_func || defined __stub___$ac_func
14151 return $ac_func ();
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (ac_try="$ac_link"
14158 case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_link") 2>conftest.er1
14165 grep -v '^ *+' conftest.er1 >conftest.err
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest$ac_exeext'
14181 { (case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_try") 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 eval "$as_ac_var=yes"
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 eval "$as_ac_var=no"
14198 rm -f core conftest.err conftest.$ac_objext \
14199 conftest$ac_exeext conftest.$ac_ext
14201 ac_res=`eval echo '${'$as_ac_var'}'`
14202 { echo "$as_me:$LINENO: result: $ac_res" >&5
14203 echo "${ECHO_T}$ac_res" >&6; }
14204 if test `eval echo '${'$as_ac_var'}'` = yes; then
14205 cat >>confdefs.h <<_ACEOF
14206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14215 for ac_func in isatty mkdtemp mkstemp
14217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14231 #define $ac_func innocuous_$ac_func
14233 /* System header to define __stub macros and hopefully few prototypes,
14234 which can conflict with char $ac_func (); below.
14235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14236 <limits.h> exists even on freestanding compilers. */
14239 # include <limits.h>
14241 # include <assert.h>
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14253 /* The GNU C library defines this for functions which it implements
14254 to always fail with ENOSYS. Some functions are actually named
14255 something starting with __ and the normal name is an alias. */
14256 #if defined __stub_$ac_func || defined __stub___$ac_func
14263 return $ac_func ();
14268 rm -f conftest.$ac_objext conftest$ac_exeext
14269 if { (ac_try="$ac_link"
14270 case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_link") 2>conftest.er1
14277 grep -v '^ *+' conftest.er1 >conftest.err
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
14282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14283 { (case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_try") 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; } &&
14292 { ac_try='test -s conftest$ac_exeext'
14293 { (case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_try") 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 eval "$as_ac_var=yes"
14304 echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14307 eval "$as_ac_var=no"
14310 rm -f core conftest.err conftest.$ac_objext \
14311 conftest$ac_exeext conftest.$ac_ext
14313 ac_res=`eval echo '${'$as_ac_var'}'`
14314 { echo "$as_me:$LINENO: result: $ac_res" >&5
14315 echo "${ECHO_T}$ac_res" >&6; }
14316 if test `eval echo '${'$as_ac_var'}'` = yes; then
14317 cat >>confdefs.h <<_ACEOF
14318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14330 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14346 #define $ac_func innocuous_$ac_func
14348 /* System header to define __stub macros and hopefully few prototypes,
14349 which can conflict with char $ac_func (); below.
14350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14351 <limits.h> exists even on freestanding compilers. */
14354 # include <limits.h>
14356 # include <assert.h>
14361 /* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
14368 /* The GNU C library defines this for functions which it implements
14369 to always fail with ENOSYS. Some functions are actually named
14370 something starting with __ and the normal name is an alias. */
14371 #if defined __stub_$ac_func || defined __stub___$ac_func
14378 return $ac_func ();
14383 rm -f conftest.$ac_objext conftest$ac_exeext
14384 if { (ac_try="$ac_link"
14385 case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_link") 2>conftest.er1
14392 grep -v '^ *+' conftest.er1 >conftest.err
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest$ac_exeext'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 eval "$as_ac_var=yes"
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 eval "$as_ac_var=no"
14425 rm -f core conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
14428 ac_res=`eval echo '${'$as_ac_var'}'`
14429 { echo "$as_me:$LINENO: result: $ac_res" >&5
14430 echo "${ECHO_T}$ac_res" >&6; }
14431 if test `eval echo '${'$as_ac_var'}'` = yes; then
14432 cat >>confdefs.h <<_ACEOF
14433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14442 for ac_func in strerror strerror_r setenv
14444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14458 #define $ac_func innocuous_$ac_func
14460 /* System header to define __stub macros and hopefully few prototypes,
14461 which can conflict with char $ac_func (); below.
14462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463 <limits.h> exists even on freestanding compilers. */
14466 # include <limits.h>
14468 # include <assert.h>
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14480 /* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483 #if defined __stub_$ac_func || defined __stub___$ac_func
14490 return $ac_func ();
14495 rm -f conftest.$ac_objext conftest$ac_exeext
14496 if { (ac_try="$ac_link"
14497 case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_link") 2>conftest.er1
14504 grep -v '^ *+' conftest.er1 >conftest.err
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14510 { (case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_try") 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest$ac_exeext'
14520 { (case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_try") 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 eval "$as_ac_var=yes"
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 eval "$as_ac_var=no"
14537 rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14540 ac_res=`eval echo '${'$as_ac_var'}'`
14541 { echo "$as_me:$LINENO: result: $ac_res" >&5
14542 echo "${ECHO_T}$ac_res" >&6; }
14543 if test `eval echo '${'$as_ac_var'}'` = yes; then
14544 cat >>confdefs.h <<_ACEOF
14545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14555 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 cat >conftest.$ac_ext <<_ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14571 #define $ac_func innocuous_$ac_func
14573 /* System header to define __stub macros and hopefully few prototypes,
14574 which can conflict with char $ac_func (); below.
14575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14576 <limits.h> exists even on freestanding compilers. */
14579 # include <limits.h>
14581 # include <assert.h>
14586 /* Override any GCC internal prototype to avoid an error.
14587 Use char because int might match the return type of a GCC
14588 builtin and then its argument prototype would still apply. */
14593 /* The GNU C library defines this for functions which it implements
14594 to always fail with ENOSYS. Some functions are actually named
14595 something starting with __ and the normal name is an alias. */
14596 #if defined __stub_$ac_func || defined __stub___$ac_func
14603 return $ac_func ();
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (ac_try="$ac_link"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_link") 2>conftest.er1
14617 grep -v '^ *+' conftest.er1 >conftest.err
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14623 { (case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_try") 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest$ac_exeext'
14633 { (case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_try") 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 eval "$as_ac_var=yes"
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 eval "$as_ac_var=no"
14650 rm -f core conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14653 ac_res=`eval echo '${'$as_ac_var'}'`
14654 { echo "$as_me:$LINENO: result: $ac_res" >&5
14655 echo "${ECHO_T}$ac_res" >&6; }
14656 if test `eval echo '${'$as_ac_var'}'` = yes; then
14657 cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14669 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 cat >conftest.$ac_ext <<_ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14685 #define $ac_func innocuous_$ac_func
14687 /* System header to define __stub macros and hopefully few prototypes,
14688 which can conflict with char $ac_func (); below.
14689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14690 <limits.h> exists even on freestanding compilers. */
14693 # include <limits.h>
14695 # include <assert.h>
14700 /* Override any GCC internal prototype to avoid an error.
14701 Use char because int might match the return type of a GCC
14702 builtin and then its argument prototype would still apply. */
14707 /* The GNU C library defines this for functions which it implements
14708 to always fail with ENOSYS. Some functions are actually named
14709 something starting with __ and the normal name is an alias. */
14710 #if defined __stub_$ac_func || defined __stub___$ac_func
14717 return $ac_func ();
14722 rm -f conftest.$ac_objext conftest$ac_exeext
14723 if { (ac_try="$ac_link"
14724 case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_link") 2>conftest.er1
14731 grep -v '^ *+' conftest.er1 >conftest.err
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_try") 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 eval "$as_ac_var=yes"
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14761 eval "$as_ac_var=no"
14764 rm -f core conftest.err conftest.$ac_objext \
14765 conftest$ac_exeext conftest.$ac_ext
14767 ac_res=`eval echo '${'$as_ac_var'}'`
14768 { echo "$as_me:$LINENO: result: $ac_res" >&5
14769 echo "${ECHO_T}$ac_res" >&6; }
14770 if test `eval echo '${'$as_ac_var'}'` = yes; then
14771 cat >>confdefs.h <<_ACEOF
14772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14780 for ac_func in futimes futimens
14782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 cat >conftest.$ac_ext <<_ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14796 #define $ac_func innocuous_$ac_func
14798 /* System header to define __stub macros and hopefully few prototypes,
14799 which can conflict with char $ac_func (); below.
14800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801 <limits.h> exists even on freestanding compilers. */
14804 # include <limits.h>
14806 # include <assert.h>
14811 /* Override any GCC internal prototype to avoid an error.
14812 Use char because int might match the return type of a GCC
14813 builtin and then its argument prototype would still apply. */
14818 /* The GNU C library defines this for functions which it implements
14819 to always fail with ENOSYS. Some functions are actually named
14820 something starting with __ and the normal name is an alias. */
14821 #if defined __stub_$ac_func || defined __stub___$ac_func
14828 return $ac_func ();
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_link") 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14848 { (case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_try") 2>&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest$ac_exeext'
14858 { (case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_try") 2>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 eval "$as_ac_var=yes"
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 eval "$as_ac_var=no"
14875 rm -f core conftest.err conftest.$ac_objext \
14876 conftest$ac_exeext conftest.$ac_ext
14878 ac_res=`eval echo '${'$as_ac_var'}'`
14879 { echo "$as_me:$LINENO: result: $ac_res" >&5
14880 echo "${ECHO_T}$ac_res" >&6; }
14881 if test `eval echo '${'$as_ac_var'}'` = yes; then
14882 cat >>confdefs.h <<_ACEOF
14883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14889 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14890 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14891 if test "${llvm_cv_c_printf_a+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 ac_cpp='$CPP $CPPFLAGS'
14896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14900 if test "$cross_compiling" = yes; then
14901 llvmac_cv_c_printf_a=no
14903 cat >conftest.$ac_ext <<_ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14912 #include <stdlib.h>
14918 volatile double A, B;
14922 sprintf(Buffer, "%a", A);
14926 if (A != 0x1.999999999999ap-4)
14933 rm -f conftest$ac_exeext
14934 if { (ac_try="$ac_link"
14935 case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_link") 2>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14944 { (case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_try") 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
14953 llvm_cv_c_printf_a=yes
14955 echo "$as_me: program exited with status $ac_status" >&5
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 ( exit $ac_status )
14960 llvmac_cv_c_printf_a=no
14962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14967 ac_cpp='$CPP $CPPFLAGS'
14968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14973 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14974 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14975 if test "$llvm_cv_c_printf_a" = "yes"; then
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_PRINTF_A 1
14985 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14986 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14987 if test "${ac_cv_func_rand48+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 ac_cpp='$CXXCPP $CPPFLAGS'
14993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14997 cat >conftest.$ac_ext <<_ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 #include <stdlib.h>
15007 srand48(0);lrand48();drand48();
15012 rm -f conftest.$ac_objext
15013 if { (ac_try="$ac_compile"
15014 case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15021 grep -v '^ *+' conftest.er1 >conftest.err
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15027 { (case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_try") 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 ac_cv_func_rand48=yes
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 ac_cv_func_rand48=no
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 ac_cpp='$CPP $CPPFLAGS'
15057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15063 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15064 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15066 if test "$ac_cv_func_rand48" = "yes" ; then
15068 cat >>confdefs.h <<\_ACEOF
15069 #define HAVE_RAND48 1
15075 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15076 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15077 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 $ac_includes_default
15091 char *p = (char *) arc4random;
15099 rm -f conftest.$ac_objext
15100 if { (ac_try="$ac_compile"
15101 case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_compile") 2>conftest.er1
15108 grep -v '^ *+' conftest.er1 >conftest.err
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15114 { (case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_try") 2>&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try='test -s conftest.$ac_objext'
15124 { (case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_try") 2>&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_have_decl_arc4random=yes
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 ac_cv_have_decl_arc4random=no
15141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15144 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15145 if test $ac_cv_have_decl_arc4random = yes; then
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_DECL_ARC4RANDOM 1
15153 cat >>confdefs.h <<_ACEOF
15154 #define HAVE_DECL_ARC4RANDOM 0
15162 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15163 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15164 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 $ac_includes_default
15178 char *p = (char *) strerror_s;
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_compile") 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } &&
15210 { ac_try='test -s conftest.$ac_objext'
15211 { (case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_try") 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_have_decl_strerror_s=yes
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 ac_cv_have_decl_strerror_s=no
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15230 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15231 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15232 if test $ac_cv_have_decl_strerror_s = yes; then
15234 cat >>confdefs.h <<_ACEOF
15235 #define HAVE_DECL_STRERROR_S 1
15240 cat >>confdefs.h <<_ACEOF
15241 #define HAVE_DECL_STRERROR_S 0
15249 if test "$llvm_cv_os_type" = "MingW" ; then
15250 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15251 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15252 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 ac_check_lib_save_LIBS=$LIBS
15257 cat >conftest.$ac_ext <<_ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15264 /* Override any GCC internal prototype to avoid an error.
15265 Use char because int might match the return type of a GCC
15266 builtin and then its argument prototype would still apply. */
15279 rm -f conftest.$ac_objext conftest$ac_exeext
15280 if { (ac_try="$ac_link"
15281 case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_link") 2>conftest.er1
15288 grep -v '^ *+' conftest.er1 >conftest.err
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294 { (case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_try") 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } &&
15303 { ac_try='test -s conftest$ac_exeext'
15304 { (case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_try") 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_cv_lib_gcc__alloca=yes
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_cv_lib_gcc__alloca=no
15321 rm -f core conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15325 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15326 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15327 if test $ac_cv_lib_gcc__alloca = yes; then
15329 cat >>confdefs.h <<\_ACEOF
15330 #define HAVE__ALLOCA 1
15335 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15336 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15337 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 ac_check_lib_save_LIBS=$LIBS
15342 cat >conftest.$ac_ext <<_ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15349 /* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
15359 return __alloca ();
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest$ac_exeext'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_cv_lib_gcc___alloca=yes
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_cv_lib_gcc___alloca=no
15406 rm -f core conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
15408 LIBS=$ac_check_lib_save_LIBS
15410 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15411 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15412 if test $ac_cv_lib_gcc___alloca = yes; then
15414 cat >>confdefs.h <<\_ACEOF
15415 #define HAVE___ALLOCA 1
15420 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15421 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15422 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 ac_check_lib_save_LIBS=$LIBS
15427 cat >conftest.$ac_ext <<_ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15434 /* Override any GCC internal prototype to avoid an error.
15435 Use char because int might match the return type of a GCC
15436 builtin and then its argument prototype would still apply. */
15444 return __chkstk ();
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (ac_try="$ac_link"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_link") 2>conftest.er1
15458 grep -v '^ *+' conftest.er1 >conftest.err
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15464 { (case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_try") 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest$ac_exeext'
15474 { (case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_try") 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_lib_gcc___chkstk=yes
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_cv_lib_gcc___chkstk=no
15491 rm -f core conftest.err conftest.$ac_objext \
15492 conftest$ac_exeext conftest.$ac_ext
15493 LIBS=$ac_check_lib_save_LIBS
15495 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15496 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15497 if test $ac_cv_lib_gcc___chkstk = yes; then
15499 cat >>confdefs.h <<\_ACEOF
15500 #define HAVE___CHKSTK 1
15505 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15506 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15507 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 ac_check_lib_save_LIBS=$LIBS
15512 cat >conftest.$ac_ext <<_ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15519 /* Override any GCC internal prototype to avoid an error.
15520 Use char because int might match the return type of a GCC
15521 builtin and then its argument prototype would still apply. */
15525 char __chkstk_ms ();
15529 return __chkstk_ms ();
15534 rm -f conftest.$ac_objext conftest$ac_exeext
15535 if { (ac_try="$ac_link"
15536 case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_link") 2>conftest.er1
15543 grep -v '^ *+' conftest.er1 >conftest.err
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; } &&
15558 { ac_try='test -s conftest$ac_exeext'
15559 { (case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_try") 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_cv_lib_gcc___chkstk_ms=yes
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_cv_lib_gcc___chkstk_ms=no
15576 rm -f core conftest.err conftest.$ac_objext \
15577 conftest$ac_exeext conftest.$ac_ext
15578 LIBS=$ac_check_lib_save_LIBS
15580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15581 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15582 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15584 cat >>confdefs.h <<\_ACEOF
15585 #define HAVE___CHKSTK_MS 1
15590 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15591 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15592 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 ac_check_lib_save_LIBS=$LIBS
15597 cat >conftest.$ac_ext <<_ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15604 /* Override any GCC internal prototype to avoid an error.
15605 Use char because int might match the return type of a GCC
15606 builtin and then its argument prototype would still apply. */
15614 return ___chkstk ();
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_link") 2>conftest.er1
15628 grep -v '^ *+' conftest.er1 >conftest.err
15630 cat conftest.err >&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15634 { (case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_try") 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest$ac_exeext'
15644 { (case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_try") 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 ac_cv_lib_gcc____chkstk=yes
15655 echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15658 ac_cv_lib_gcc____chkstk=no
15661 rm -f core conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
15663 LIBS=$ac_check_lib_save_LIBS
15665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15666 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15667 if test $ac_cv_lib_gcc____chkstk = yes; then
15669 cat >>confdefs.h <<\_ACEOF
15670 #define HAVE____CHKSTK 1
15675 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15676 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15677 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 ac_check_lib_save_LIBS=$LIBS
15682 cat >conftest.$ac_ext <<_ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15689 /* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15695 char ___chkstk_ms ();
15699 return ___chkstk_ms ();
15704 rm -f conftest.$ac_objext conftest$ac_exeext
15705 if { (ac_try="$ac_link"
15706 case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_link") 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
15718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15719 { (case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_try") 2>&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; } &&
15728 { ac_try='test -s conftest$ac_exeext'
15729 { (case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_try") 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_cv_lib_gcc____chkstk_ms=yes
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 ac_cv_lib_gcc____chkstk_ms=no
15746 rm -f core conftest.err conftest.$ac_objext \
15747 conftest$ac_exeext conftest.$ac_ext
15748 LIBS=$ac_check_lib_save_LIBS
15750 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15751 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15752 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15754 cat >>confdefs.h <<\_ACEOF
15755 #define HAVE____CHKSTK_MS 1
15761 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15762 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15763 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 ac_check_lib_save_LIBS=$LIBS
15768 cat >conftest.$ac_ext <<_ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15775 /* Override any GCC internal prototype to avoid an error.
15776 Use char because int might match the return type of a GCC
15777 builtin and then its argument prototype would still apply. */
15785 return __ashldi3 ();
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (ac_try="$ac_link"
15792 case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_link") 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15805 { (case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_try") 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; } &&
15814 { ac_try='test -s conftest$ac_exeext'
15815 { (case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_try") 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_cv_lib_gcc___ashldi3=yes
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_cv_lib_gcc___ashldi3=no
15832 rm -f core conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834 LIBS=$ac_check_lib_save_LIBS
15836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15837 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15838 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15840 cat >>confdefs.h <<\_ACEOF
15841 #define HAVE___ASHLDI3 1
15846 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15847 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15848 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 ac_check_lib_save_LIBS=$LIBS
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15860 /* Override any GCC internal prototype to avoid an error.
15861 Use char because int might match the return type of a GCC
15862 builtin and then its argument prototype would still apply. */
15870 return __ashrdi3 ();
15875 rm -f conftest.$ac_objext conftest$ac_exeext
15876 if { (ac_try="$ac_link"
15877 case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_link") 2>conftest.er1
15884 grep -v '^ *+' conftest.er1 >conftest.err
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15890 { (case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_try") 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } &&
15899 { ac_try='test -s conftest$ac_exeext'
15900 { (case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_try") 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 ac_cv_lib_gcc___ashrdi3=yes
15911 echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15914 ac_cv_lib_gcc___ashrdi3=no
15917 rm -f core conftest.err conftest.$ac_objext \
15918 conftest$ac_exeext conftest.$ac_ext
15919 LIBS=$ac_check_lib_save_LIBS
15921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15922 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15923 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE___ASHRDI3 1
15931 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15932 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15933 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 ac_check_lib_save_LIBS=$LIBS
15938 cat >conftest.$ac_ext <<_ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15945 /* Override any GCC internal prototype to avoid an error.
15946 Use char because int might match the return type of a GCC
15947 builtin and then its argument prototype would still apply. */
15955 return __divdi3 ();
15960 rm -f conftest.$ac_objext conftest$ac_exeext
15961 if { (ac_try="$ac_link"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_link") 2>conftest.er1
15969 grep -v '^ *+' conftest.er1 >conftest.err
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } &&
15974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15975 { (case "(($ac_try" in
15976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977 *) ac_try_echo=$ac_try;;
15979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980 (eval "$ac_try") 2>&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; } &&
15984 { ac_try='test -s conftest$ac_exeext'
15985 { (case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_try") 2>&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; }; then
15994 ac_cv_lib_gcc___divdi3=yes
15996 echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15999 ac_cv_lib_gcc___divdi3=no
16002 rm -f core conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16004 LIBS=$ac_check_lib_save_LIBS
16006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16007 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16008 if test $ac_cv_lib_gcc___divdi3 = yes; then
16010 cat >>confdefs.h <<\_ACEOF
16011 #define HAVE___DIVDI3 1
16016 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16017 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16018 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 ac_check_lib_save_LIBS=$LIBS
16023 cat >conftest.$ac_ext <<_ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16030 /* Override any GCC internal prototype to avoid an error.
16031 Use char because int might match the return type of a GCC
16032 builtin and then its argument prototype would still apply. */
16040 return __fixdfdi ();
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_link") 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060 { (case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_try") 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest$ac_exeext'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 ac_cv_lib_gcc___fixdfdi=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_cv_lib_gcc___fixdfdi=no
16087 rm -f core conftest.err conftest.$ac_objext \
16088 conftest$ac_exeext conftest.$ac_ext
16089 LIBS=$ac_check_lib_save_LIBS
16091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16092 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16093 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE___FIXDFDI 1
16101 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16102 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16103 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16106 ac_check_lib_save_LIBS=$LIBS
16108 cat >conftest.$ac_ext <<_ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h. */
16115 /* Override any GCC internal prototype to avoid an error.
16116 Use char because int might match the return type of a GCC
16117 builtin and then its argument prototype would still apply. */
16125 return __fixsfdi ();
16130 rm -f conftest.$ac_objext conftest$ac_exeext
16131 if { (ac_try="$ac_link"
16132 case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_link") 2>conftest.er1
16139 grep -v '^ *+' conftest.er1 >conftest.err
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16145 { (case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_try") 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest$ac_exeext'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16164 ac_cv_lib_gcc___fixsfdi=yes
16166 echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16169 ac_cv_lib_gcc___fixsfdi=no
16172 rm -f core conftest.err conftest.$ac_objext \
16173 conftest$ac_exeext conftest.$ac_ext
16174 LIBS=$ac_check_lib_save_LIBS
16176 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16177 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16178 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16180 cat >>confdefs.h <<\_ACEOF
16181 #define HAVE___FIXSFDI 1
16186 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16187 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16188 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 ac_check_lib_save_LIBS=$LIBS
16193 cat >conftest.$ac_ext <<_ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16200 /* Override any GCC internal prototype to avoid an error.
16201 Use char because int might match the return type of a GCC
16202 builtin and then its argument prototype would still apply. */
16206 char __floatdidf ();
16210 return __floatdidf ();
16215 rm -f conftest.$ac_objext conftest$ac_exeext
16216 if { (ac_try="$ac_link"
16217 case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_link") 2>conftest.er1
16224 grep -v '^ *+' conftest.er1 >conftest.err
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest$ac_exeext'
16240 { (case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_try") 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 ac_cv_lib_gcc___floatdidf=yes
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 ac_cv_lib_gcc___floatdidf=no
16257 rm -f core conftest.err conftest.$ac_objext \
16258 conftest$ac_exeext conftest.$ac_ext
16259 LIBS=$ac_check_lib_save_LIBS
16261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16262 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16263 if test $ac_cv_lib_gcc___floatdidf = yes; then
16265 cat >>confdefs.h <<\_ACEOF
16266 #define HAVE___FLOATDIDF 1
16271 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16272 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16273 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 ac_check_lib_save_LIBS=$LIBS
16278 cat >conftest.$ac_ext <<_ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16295 return __lshrdi3 ();
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
16309 grep -v '^ *+' conftest.er1 >conftest.err
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
16314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest$ac_exeext'
16325 { (case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330 (eval "$ac_try") 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_lib_gcc___lshrdi3=yes
16336 echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16339 ac_cv_lib_gcc___lshrdi3=no
16342 rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16344 LIBS=$ac_check_lib_save_LIBS
16346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16347 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16348 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16350 cat >>confdefs.h <<\_ACEOF
16351 #define HAVE___LSHRDI3 1
16356 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16357 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16358 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 ac_check_lib_save_LIBS=$LIBS
16363 cat >conftest.$ac_ext <<_ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16370 /* Override any GCC internal prototype to avoid an error.
16371 Use char because int might match the return type of a GCC
16372 builtin and then its argument prototype would still apply. */
16380 return __moddi3 ();
16385 rm -f conftest.$ac_objext conftest$ac_exeext
16386 if { (ac_try="$ac_link"
16387 case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_link") 2>conftest.er1
16394 grep -v '^ *+' conftest.er1 >conftest.err
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; } &&
16409 { ac_try='test -s conftest$ac_exeext'
16410 { (case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_try") 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 ac_cv_lib_gcc___moddi3=yes
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 ac_cv_lib_gcc___moddi3=no
16427 rm -f core conftest.err conftest.$ac_objext \
16428 conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16432 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16433 if test $ac_cv_lib_gcc___moddi3 = yes; then
16435 cat >>confdefs.h <<\_ACEOF
16436 #define HAVE___MODDI3 1
16441 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16442 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16443 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 ac_check_lib_save_LIBS=$LIBS
16448 cat >conftest.$ac_ext <<_ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16455 /* Override any GCC internal prototype to avoid an error.
16456 Use char because int might match the return type of a GCC
16457 builtin and then its argument prototype would still apply. */
16465 return __udivdi3 ();
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_link") 2>conftest.er1
16479 grep -v '^ *+' conftest.er1 >conftest.err
16481 cat conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
16484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16485 { (case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_try") 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; } &&
16494 { ac_try='test -s conftest$ac_exeext'
16495 { (case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_try") 2>&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_lib_gcc___udivdi3=yes
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 ac_cv_lib_gcc___udivdi3=no
16512 rm -f core conftest.err conftest.$ac_objext \
16513 conftest$ac_exeext conftest.$ac_ext
16514 LIBS=$ac_check_lib_save_LIBS
16516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16517 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16518 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16520 cat >>confdefs.h <<\_ACEOF
16521 #define HAVE___UDIVDI3 1
16526 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16527 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16528 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 ac_check_lib_save_LIBS=$LIBS
16533 cat >conftest.$ac_ext <<_ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16540 /* Override any GCC internal prototype to avoid an error.
16541 Use char because int might match the return type of a GCC
16542 builtin and then its argument prototype would still apply. */
16550 return __umoddi3 ();
16555 rm -f conftest.$ac_objext conftest$ac_exeext
16556 if { (ac_try="$ac_link"
16557 case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_link") 2>conftest.er1
16564 grep -v '^ *+' conftest.er1 >conftest.err
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } &&
16569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16570 { (case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_try") 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; } &&
16579 { ac_try='test -s conftest$ac_exeext'
16580 { (case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_try") 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589 ac_cv_lib_gcc___umoddi3=yes
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 ac_cv_lib_gcc___umoddi3=no
16597 rm -f core conftest.err conftest.$ac_objext \
16598 conftest$ac_exeext conftest.$ac_ext
16599 LIBS=$ac_check_lib_save_LIBS
16601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16602 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16603 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16605 cat >>confdefs.h <<\_ACEOF
16606 #define HAVE___UMODDI3 1
16612 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16613 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16614 if test "${ac_cv_lib_gcc___main+set}" = set; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 ac_check_lib_save_LIBS=$LIBS
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16626 /* Override any GCC internal prototype to avoid an error.
16627 Use char because int might match the return type of a GCC
16628 builtin and then its argument prototype would still apply. */
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (ac_try="$ac_link"
16643 case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_link") 2>conftest.er1
16650 grep -v '^ *+' conftest.er1 >conftest.err
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try='test -s conftest$ac_exeext'
16666 { (case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_try") 2>&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 ac_cv_lib_gcc___main=yes
16677 echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16680 ac_cv_lib_gcc___main=no
16683 rm -f core conftest.err conftest.$ac_objext \
16684 conftest$ac_exeext conftest.$ac_ext
16685 LIBS=$ac_check_lib_save_LIBS
16687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16688 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16689 if test $ac_cv_lib_gcc___main = yes; then
16691 cat >>confdefs.h <<\_ACEOF
16692 #define HAVE___MAIN 1
16697 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16698 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16699 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 ac_check_lib_save_LIBS=$LIBS
16704 cat >conftest.$ac_ext <<_ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16711 /* Override any GCC internal prototype to avoid an error.
16712 Use char because int might match the return type of a GCC
16713 builtin and then its argument prototype would still apply. */
16721 return __cmpdi2 ();
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (ac_try="$ac_link"
16728 case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_link") 2>conftest.er1
16735 grep -v '^ *+' conftest.er1 >conftest.err
16737 cat conftest.err >&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16741 { (case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_try") 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try='test -s conftest$ac_exeext'
16751 { (case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_try") 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 ac_cv_lib_gcc___cmpdi2=yes
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16765 ac_cv_lib_gcc___cmpdi2=no
16768 rm -f core conftest.err conftest.$ac_objext \
16769 conftest$ac_exeext conftest.$ac_ext
16770 LIBS=$ac_check_lib_save_LIBS
16772 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16773 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16774 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16776 cat >>confdefs.h <<\_ACEOF
16777 #define HAVE___CMPDI2 1
16784 if test "$llvm_cv_os_type" = "MingW" ; then
16785 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16786 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16787 cat >conftest.$ac_ext <<_ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16795 #include <windows.h>
16796 #include <imagehlp.h>
16797 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16798 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16802 rm -f conftest.$ac_objext
16803 if { (ac_try="$ac_compile"
16804 case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_compile") 2>conftest.er1
16811 grep -v '^ *+' conftest.er1 >conftest.err
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16817 { (case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_try") 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; } &&
16826 { ac_try='test -s conftest.$ac_objext'
16827 { (case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_try") 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16837 { echo "$as_me:$LINENO: result: yes" >&5
16838 echo "${ECHO_T}yes" >&6; }
16839 llvm_cv_win32_elmcb_pcstr="PCSTR"
16842 echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16846 { echo "$as_me:$LINENO: result: no" >&5
16847 echo "${ECHO_T}no" >&6; }
16848 llvm_cv_win32_elmcb_pcstr="PSTR"
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854 cat >>confdefs.h <<_ACEOF
16855 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16860 if test "$llvm_cv_platform_type" = "Unix" ; then
16863 for ac_header in stdlib.h unistd.h
16865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 ac_res=`eval echo '${'$as_ac_Header'}'`
16873 { echo "$as_me:$LINENO: result: $ac_res" >&5
16874 echo "${ECHO_T}$ac_res" >&6; }
16876 # Is the header compilable?
16877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16879 cat >conftest.$ac_ext <<_ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16885 $ac_includes_default
16886 #include <$ac_header>
16888 rm -f conftest.$ac_objext
16889 if { (ac_try="$ac_compile"
16890 case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_compile") 2>conftest.er1
16897 grep -v '^ *+' conftest.er1 >conftest.err
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903 { (case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_try") 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest.$ac_objext'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_header_compiler=yes
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 ac_header_compiler=no
16930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16932 echo "${ECHO_T}$ac_header_compiler" >&6; }
16934 # Is the header present?
16935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16937 cat >conftest.$ac_ext <<_ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 #include <$ac_header>
16945 if { (ac_try="$ac_cpp conftest.$ac_ext"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16953 grep -v '^ *+' conftest.er1 >conftest.err
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } >/dev/null; then
16958 if test -s conftest.err; then
16959 ac_cpp_err=$ac_c_preproc_warn_flag
16960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16967 if test -z "$ac_cpp_err"; then
16968 ac_header_preproc=yes
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 ac_header_preproc=no
16976 rm -f conftest.err conftest.$ac_ext
16977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16978 echo "${ECHO_T}$ac_header_preproc" >&6; }
16980 # So? What about this header?
16981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16987 ac_header_preproc=yes
16990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17003 ## ------------------------------------ ##
17004 ## Report this to http://llvm.org/bugs/ ##
17005 ## ------------------------------------ ##
17007 ) | sed "s/^/$as_me: WARNING: /" >&2
17010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 eval "$as_ac_Header=\$ac_header_preproc"
17017 ac_res=`eval echo '${'$as_ac_Header'}'`
17018 { echo "$as_me:$LINENO: result: $ac_res" >&5
17019 echo "${ECHO_T}$ac_res" >&6; }
17022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17023 cat >>confdefs.h <<_ACEOF
17024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17032 for ac_func in getpagesize
17034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 cat >conftest.$ac_ext <<_ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17048 #define $ac_func innocuous_$ac_func
17050 /* System header to define __stub macros and hopefully few prototypes,
17051 which can conflict with char $ac_func (); below.
17052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17053 <limits.h> exists even on freestanding compilers. */
17056 # include <limits.h>
17058 # include <assert.h>
17063 /* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17070 /* The GNU C library defines this for functions which it implements
17071 to always fail with ENOSYS. Some functions are actually named
17072 something starting with __ and the normal name is an alias. */
17073 #if defined __stub_$ac_func || defined __stub___$ac_func
17080 return $ac_func ();
17085 rm -f conftest.$ac_objext conftest$ac_exeext
17086 if { (ac_try="$ac_link"
17087 case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_link") 2>conftest.er1
17094 grep -v '^ *+' conftest.er1 >conftest.err
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17100 { (case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_try") 2>&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; } &&
17109 { ac_try='test -s conftest$ac_exeext'
17110 { (case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_try") 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; }; then
17119 eval "$as_ac_var=yes"
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17124 eval "$as_ac_var=no"
17127 rm -f core conftest.err conftest.$ac_objext \
17128 conftest$ac_exeext conftest.$ac_ext
17130 ac_res=`eval echo '${'$as_ac_var'}'`
17131 { echo "$as_me:$LINENO: result: $ac_res" >&5
17132 echo "${ECHO_T}$ac_res" >&6; }
17133 if test `eval echo '${'$as_ac_var'}'` = yes; then
17134 cat >>confdefs.h <<_ACEOF
17135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17141 { echo "$as_me:$LINENO: checking for working mmap" >&5
17142 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17143 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 if test "$cross_compiling" = yes; then
17147 ac_cv_func_mmap_fixed_mapped=no
17149 cat >conftest.$ac_ext <<_ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 $ac_includes_default
17156 /* malloc might have been renamed as rpl_malloc. */
17159 /* Thanks to Mike Haertel and Jim Avera for this test.
17160 Here is a matrix of mmap possibilities:
17161 mmap private not fixed
17162 mmap private fixed at somewhere currently unmapped
17163 mmap private fixed at somewhere already mapped
17164 mmap shared not fixed
17165 mmap shared fixed at somewhere currently unmapped
17166 mmap shared fixed at somewhere already mapped
17167 For private mappings, we should verify that changes cannot be read()
17168 back from the file, nor mmap's back from the file at a different
17169 address. (There have been systems where private was not correctly
17170 implemented like the infamous i386 svr4.0, and systems where the
17171 VM page cache was not coherent with the file system buffer cache
17172 like early versions of FreeBSD and possibly contemporary NetBSD.)
17173 For shared mappings, we should conversely verify that changes get
17174 propagated back to all the places they're supposed to be.
17176 Grep wants private fixed already mapped.
17177 The main things grep needs to know about mmap are:
17178 * does it exist and is it safe to write into the mmap'd area
17179 * how to use it (BSD variants) */
17182 #include <sys/mman.h>
17184 #if !STDC_HEADERS && !HAVE_STDLIB_H
17188 /* This mess was copied from the GNU getpagesize.h. */
17189 #if !HAVE_GETPAGESIZE
17190 /* Assume that all systems that can run configure have sys/param.h. */
17191 # if !HAVE_SYS_PARAM_H
17192 # define HAVE_SYS_PARAM_H 1
17195 # ifdef _SC_PAGESIZE
17196 # define getpagesize() sysconf(_SC_PAGESIZE)
17197 # else /* no _SC_PAGESIZE */
17198 # if HAVE_SYS_PARAM_H
17199 # include <sys/param.h>
17200 # ifdef EXEC_PAGESIZE
17201 # define getpagesize() EXEC_PAGESIZE
17202 # else /* no EXEC_PAGESIZE */
17204 # define getpagesize() NBPG * CLSIZE
17207 # endif /* no CLSIZE */
17208 # else /* no NBPG */
17210 # define getpagesize() NBPC
17211 # else /* no NBPC */
17213 # define getpagesize() PAGESIZE
17214 # endif /* PAGESIZE */
17215 # endif /* no NBPC */
17216 # endif /* no NBPG */
17217 # endif /* no EXEC_PAGESIZE */
17218 # else /* no HAVE_SYS_PARAM_H */
17219 # define getpagesize() 8192 /* punt totally */
17220 # endif /* no HAVE_SYS_PARAM_H */
17221 # endif /* no _SC_PAGESIZE */
17223 #endif /* no HAVE_GETPAGESIZE */
17228 char *data, *data2, *data3;
17232 pagesize = getpagesize ();
17234 /* First, make a file with some known garbage in it. */
17235 data = (char *) malloc (pagesize);
17238 for (i = 0; i < pagesize; ++i)
17239 *(data + i) = rand ();
17241 fd = creat ("conftest.mmap", 0600);
17244 if (write (fd, data, pagesize) != pagesize)
17248 /* Next, try to mmap the file at a fixed address which already has
17249 something else allocated at it. If we can, also make sure that
17250 we see the same garbage. */
17251 fd = open ("conftest.mmap", O_RDWR);
17254 data2 = (char *) malloc (2 * pagesize);
17257 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17258 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17259 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17261 for (i = 0; i < pagesize; ++i)
17262 if (*(data + i) != *(data2 + i))
17265 /* Finally, make sure that changes to the mapped area do not
17266 percolate back to the file as seen by read(). (This is a bug on
17267 some variants of i386 svr4.0.) */
17268 for (i = 0; i < pagesize; ++i)
17269 *(data2 + i) = *(data2 + i) + 1;
17270 data3 = (char *) malloc (pagesize);
17273 if (read (fd, data3, pagesize) != pagesize)
17275 for (i = 0; i < pagesize; ++i)
17276 if (*(data + i) != *(data3 + i))
17282 rm -f conftest$ac_exeext
17283 if { (ac_try="$ac_link"
17284 case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_link") 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17293 { (case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_try") 2>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_cv_func_mmap_fixed_mapped=yes
17304 echo "$as_me: program exited with status $ac_status" >&5
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ( exit $ac_status )
17309 ac_cv_func_mmap_fixed_mapped=no
17311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17316 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17317 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17318 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17320 cat >>confdefs.h <<\_ACEOF
17321 #define HAVE_MMAP 1
17325 rm -f conftest.mmap
17327 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17328 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17329 if test "${ac_cv_func_mmap_file+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 ac_cpp='$CPP $CPPFLAGS'
17334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17338 if test "$cross_compiling" = yes; then
17339 ac_cv_func_mmap_file=no
17341 cat >conftest.$ac_ext <<_ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17349 #include <sys/types.h>
17350 #include <sys/mman.h>
17358 fd = creat ("foo",0777);
17359 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17361 return (fd != (int) MAP_FAILED);
17366 rm -f conftest$ac_exeext
17367 if { (ac_try="$ac_link"
17368 case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_link") 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 ac_cv_func_mmap_file=yes
17388 echo "$as_me: program exited with status $ac_status" >&5
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 ( exit $ac_status )
17393 ac_cv_func_mmap_file=no
17395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17400 ac_cpp='$CPP $CPPFLAGS'
17401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17407 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17408 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17409 if test "$ac_cv_func_mmap_file" = yes; then
17411 cat >>confdefs.h <<\_ACEOF
17412 #define HAVE_MMAP_FILE
17419 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17420 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17421 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 if test "$llvm_cv_os_type" = "Interix" ; then
17425 ac_cv_need_dev_zero_for_mmap=yes
17427 ac_cv_need_dev_zero_for_mmap=no
17431 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17432 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17433 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17435 cat >>confdefs.h <<\_ACEOF
17436 #define NEED_DEV_ZERO_FOR_MMAP 1
17441 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17443 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17444 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17446 if test "$ac_cv_func_mmap_file" = "no"
17448 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17449 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17453 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17454 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17456 ac_cpp='$CXXCPP $CPPFLAGS'
17457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17461 cat >conftest.$ac_ext <<_ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17470 volatile unsigned long val = 1;
17471 __sync_synchronize();
17472 __sync_val_compare_and_swap(&val, 1, 0);
17473 __sync_add_and_fetch(&val, 1);
17474 __sync_sub_and_fetch(&val, 1);
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (ac_try="$ac_link"
17482 case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_link") 2>conftest.er1
17489 grep -v '^ *+' conftest.er1 >conftest.err
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17515 { echo "$as_me:$LINENO: result: yes" >&5
17516 echo "${ECHO_T}yes" >&6; }
17518 cat >>confdefs.h <<\_ACEOF
17519 #define LLVM_HAS_ATOMICS 1
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17528 { echo "$as_me:$LINENO: result: no" >&5
17529 echo "${ECHO_T}no" >&6; }
17531 cat >>confdefs.h <<\_ACEOF
17532 #define LLVM_HAS_ATOMICS 0
17535 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17536 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17540 rm -f core conftest.err conftest.$ac_objext \
17541 conftest$ac_exeext conftest.$ac_ext
17543 ac_cpp='$CPP $CPPFLAGS'
17544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17550 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17551 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17552 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17553 if test "${llvm_cv_linux_mixed+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17557 ac_cpp='$CPP $CPPFLAGS'
17558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17562 cat >conftest.$ac_ext <<_ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17569 error: Not x86-64 even if uname says so!
17580 rm -f conftest.$ac_objext
17581 if { (ac_try="$ac_compile"
17582 case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_compile") 2>conftest.er1
17589 grep -v '^ *+' conftest.er1 >conftest.err
17591 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
17594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17595 { (case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_try") 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; } &&
17604 { ac_try='test -s conftest.$ac_objext'
17605 { (case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_try") 2>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 llvm_cv_linux_mixed=no
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619 llvm_cv_linux_mixed=yes
17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17624 ac_cpp='$CPP $CPPFLAGS'
17625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17631 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17632 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17634 if test "$llvm_cv_linux_mixed" = "yes"; then
17635 llvm_cv_target_arch="x86"
17641 for ac_func in __dso_handle
17643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 cat >conftest.$ac_ext <<_ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17657 #define $ac_func innocuous_$ac_func
17659 /* System header to define __stub macros and hopefully few prototypes,
17660 which can conflict with char $ac_func (); below.
17661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17662 <limits.h> exists even on freestanding compilers. */
17665 # include <limits.h>
17667 # include <assert.h>
17672 /* Override any GCC internal prototype to avoid an error.
17673 Use char because int might match the return type of a GCC
17674 builtin and then its argument prototype would still apply. */
17679 /* The GNU C library defines this for functions which it implements
17680 to always fail with ENOSYS. Some functions are actually named
17681 something starting with __ and the normal name is an alias. */
17682 #if defined __stub_$ac_func || defined __stub___$ac_func
17689 return $ac_func ();
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (ac_try="$ac_link"
17696 case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_link") 2>conftest.er1
17703 grep -v '^ *+' conftest.er1 >conftest.err
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
17708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17709 { (case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_try") 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; } &&
17718 { ac_try='test -s conftest$ac_exeext'
17719 { (case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_try") 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 eval "$as_ac_var=yes"
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 eval "$as_ac_var=no"
17736 rm -f core conftest.err conftest.$ac_objext \
17737 conftest$ac_exeext conftest.$ac_ext
17739 ac_res=`eval echo '${'$as_ac_var'}'`
17740 { echo "$as_me:$LINENO: result: $ac_res" >&5
17741 echo "${ECHO_T}$ac_res" >&6; }
17742 if test `eval echo '${'$as_ac_var'}'` = yes; then
17743 cat >>confdefs.h <<_ACEOF
17744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17751 SHLIBEXT=$llvm_shlib_ext
17754 if test "${prefix}" = "NONE" ; then
17755 prefix="/usr/local"
17757 eval LLVM_PREFIX="${prefix}";
17758 eval LLVM_BINDIR="${prefix}/bin";
17759 eval LLVM_DATADIR="${prefix}/share/llvm";
17760 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17761 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17762 eval LLVM_INCLUDEDIR="${prefix}/include";
17763 eval LLVM_INFODIR="${prefix}/info";
17764 eval LLVM_MANDIR="${prefix}/man";
17765 LLVM_CONFIGTIME=`date`
17776 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17777 LLVM_CONFIGTIME="(timestamp not enabled)"
17781 cat >>confdefs.h <<_ACEOF
17782 #define LLVM_PREFIX "$LLVM_PREFIX"
17786 cat >>confdefs.h <<_ACEOF
17787 #define LLVM_BINDIR "$LLVM_BINDIR"
17791 cat >>confdefs.h <<_ACEOF
17792 #define LLVM_DATADIR "$LLVM_DATADIR"
17796 cat >>confdefs.h <<_ACEOF
17797 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17801 cat >>confdefs.h <<_ACEOF
17802 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17806 cat >>confdefs.h <<_ACEOF
17807 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17811 cat >>confdefs.h <<_ACEOF
17812 #define LLVM_INFODIR "$LLVM_INFODIR"
17816 cat >>confdefs.h <<_ACEOF
17817 #define LLVM_MANDIR "$LLVM_MANDIR"
17821 cat >>confdefs.h <<_ACEOF
17822 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17826 cat >>confdefs.h <<_ACEOF
17827 #define LLVM_HOST_TRIPLE "$host"
17831 cat >>confdefs.h <<_ACEOF
17832 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17836 if test "$BINDINGS_TO_BUILD" = auto ; then
17837 BINDINGS_TO_BUILD=""
17838 if test "x$OCAMLFIND" != x ; then
17839 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17841 if test "x$GO" != x ; then
17842 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17843 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17847 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17850 binding_prereqs_failed=0
17851 for a_binding in $BINDINGS_TO_BUILD ; do
17852 case "$a_binding" in
17854 if test "x$OCAMLFIND" = x ; then
17855 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17856 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17857 binding_prereqs_failed=1
17860 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17867 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17868 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17869 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17870 binding_prereqs_failed=1
17873 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17877 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17878 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17882 if test "x$with_ocaml_libdir" != xauto ; then
17883 OCAML_LIBDIR=$with_ocaml_libdir
17886 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17887 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17889 # ocaml stdlib is beneath our prefix; use stdlib
17890 OCAML_LIBDIR=$ocaml_stdlib
17893 # ocaml stdlib is outside our prefix; use libdir/ocaml
17894 OCAML_LIBDIR=${prefix}/lib/ocaml
17900 if test "x$GO" = x ; then
17901 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17902 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17903 binding_prereqs_failed=1
17905 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17908 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17909 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17910 binding_prereqs_failed=1
17916 if test "$binding_prereqs_failed" = 1 ; then
17917 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17918 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17919 { (exit 1); exit 1; }; }
17922 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17923 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17924 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 ac_cpp='$CXXCPP $CPPFLAGS'
17929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17933 oldcxxflags="$CXXFLAGS"
17934 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17935 cat >conftest.$ac_ext <<_ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17941 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17950 rm -f conftest.$ac_objext
17951 if { (ac_try="$ac_compile"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17965 { (case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_try") 2>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest.$ac_objext'
17975 { (case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_try") 2>&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
17984 llvm_cv_cxx_visibility_inlines_hidden=yes
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17989 llvm_cv_cxx_visibility_inlines_hidden=no
17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993 CXXFLAGS="$oldcxxflags"
17995 ac_cpp='$CPP $CPPFLAGS'
17996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18002 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18003 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18004 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18005 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18008 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18013 if test "$llvm_cv_link_use_r" = "yes" ; then
18020 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18021 RDYNAMIC="-rdynamic"
18028 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18035 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18037 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18039 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18041 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18043 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18046 ac_config_files="$ac_config_files Makefile.config"
18049 ac_config_files="$ac_config_files llvm.spec"
18052 ac_config_files="$ac_config_files docs/doxygen.cfg"
18055 if test "${clang_src_root}" = ""; then
18056 clang_src_root="$srcdir/tools/clang"
18058 if test -f ${clang_src_root}/README.txt; then
18060 cat >>confdefs.h <<_ACEOF
18061 #define CLANG_LIBDIR_SUFFIX ""
18065 configh="include/clang/Config/config.h"
18066 doxy="docs/doxygen.cfg"
18067 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18069 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18073 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18076 test "x$program_prefix" = "xNONE" && program_prefix=""
18080 ac_config_commands="$ac_config_commands setup"
18082 ac_config_commands="$ac_config_commands Makefile"
18085 ac_config_commands="$ac_config_commands Makefile.common"
18088 ac_config_commands="$ac_config_commands examples/Makefile"
18091 ac_config_commands="$ac_config_commands lib/Makefile"
18094 ac_config_commands="$ac_config_commands test/Makefile"
18097 ac_config_commands="$ac_config_commands test/Makefile.tests"
18100 ac_config_commands="$ac_config_commands unittests/Makefile"
18103 ac_config_commands="$ac_config_commands tools/Makefile"
18106 ac_config_commands="$ac_config_commands utils/Makefile"
18109 ac_config_commands="$ac_config_commands projects/Makefile"
18112 ac_config_commands="$ac_config_commands bindings/Makefile"
18115 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18119 cat >confcache <<\_ACEOF
18120 # This file is a shell script that caches the results of configure
18121 # tests run on this system so they can be shared between configure
18122 # scripts and configure runs, see configure's option --config-cache.
18123 # It is not useful on other systems. If it contains results you don't
18124 # want to keep, you may remove or edit it.
18126 # config.status only pays attention to the cache file if you give it
18127 # the --recheck option to rerun configure.
18129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18131 # following values.
18135 # The following way of writing the cache mishandles newlines in values,
18136 # but we know of no workaround that is simple, portable, and efficient.
18137 # So, we kill variables containing newlines.
18138 # Ultrix sh set writes to stderr and can't be redirected directly,
18139 # and sets the high bit in the cache file unless we assign to the vars.
18141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18142 eval ac_val=\$$ac_var
18146 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18147 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18150 _ | IFS | as_nl) ;; #(
18151 *) $as_unset $ac_var ;;
18157 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18158 *${as_nl}ac_space=\ *)
18159 # `set' does not quote correctly, so add quotes (double-quote
18160 # substitution turns \\\\ into \\, and sed turns \\ into \).
18163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18166 # `set' quotes correctly as required by POSIX, so do not add quotes.
18167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18180 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18181 if test -w "$cache_file"; then
18182 test "x$cache_file" != "x/dev/null" &&
18183 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18184 echo "$as_me: updating cache $cache_file" >&6;}
18185 cat confcache >$cache_file
18187 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18188 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18194 # Let make expand exec_prefix.
18195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18197 DEFS=-DHAVE_CONFIG_H
18201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18202 # 1. Remove the extension, and $U if already installed.
18203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18204 ac_i=`echo "$ac_i" | sed "$ac_script"`
18205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18206 # will be set to the directory where LIBOBJS objects are built.
18207 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18208 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18210 LIBOBJS=$ac_libobjs
18212 LTLIBOBJS=$ac_ltlibobjs
18216 : ${CONFIG_STATUS=./config.status}
18217 ac_clean_files_save=$ac_clean_files
18218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18219 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18220 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18221 cat >$CONFIG_STATUS <<_ACEOF
18223 # Generated by $as_me.
18224 # Run this file to recreate the current configuration.
18225 # Compiler output produced by configure, useful for debugging
18226 # configure, is in config.log if it exists.
18229 ac_cs_recheck=false
18231 SHELL=\${CONFIG_SHELL-$SHELL}
18234 cat >>$CONFIG_STATUS <<\_ACEOF
18235 ## --------------------- ##
18236 ## M4sh Initialization. ##
18237 ## --------------------- ##
18239 # Be Bourne compatible
18240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18244 # is contrary to our usage. Disable this feature.
18245 alias -g '${1+"$@"}'='"$@"'
18246 setopt NO_GLOB_SUBST
18248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18250 BIN_SH=xpg4; export BIN_SH # for Tru64
18251 DUALCASE=1; export DUALCASE # for MKS sh
18255 # Avoid depending upon Character Ranges.
18256 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18259 as_cr_digits='0123456789'
18260 as_cr_alnum=$as_cr_Letters$as_cr_digits
18262 # The user is always right.
18263 if test "${PATH_SEPARATOR+set}" != set; then
18264 echo "#! /bin/sh" >conf$$.sh
18265 echo "exit 0" >>conf$$.sh
18267 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18275 # Support unset when possible.
18276 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18284 # We need space, tab and new line, in precisely that order. Quoting is
18285 # there to prevent editors from complaining about space-tab.
18286 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18287 # splitting by setting IFS to empty value.)
18292 # Find who we are. Look in the path if we contain no directory separator.
18294 *[\\/]* ) as_myself=$0 ;;
18295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18296 for as_dir in $PATH
18299 test -z "$as_dir" && as_dir=.
18300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18306 # We did not find ourselves, most probably we were run as `sh COMMAND'
18307 # in which case we are not to be found in the path.
18308 if test "x$as_myself" = x; then
18311 if test ! -f "$as_myself"; then
18312 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18313 { (exit 1); exit 1; }
18316 # Work around bugs in pre-3.0 UWIN ksh.
18317 for as_var in ENV MAIL MAILPATH
18318 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18326 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18327 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18328 LC_TELEPHONE LC_TIME
18330 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18331 eval $as_var=C; export $as_var
18333 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18337 # Required to use basename.
18338 if expr a : '\(a\)' >/dev/null 2>&1 &&
18339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18345 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18346 as_basename=basename
18352 # Name of the executable.
18353 as_me=`$as_basename -- "$0" ||
18354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18355 X"$0" : 'X\(//\)$' \| \
18356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18358 sed '/^.*\/\([^/][^/]*\)\/*$/{
18377 as_lineno_1=$LINENO
18378 as_lineno_2=$LINENO
18379 test "x$as_lineno_1" != "x$as_lineno_2" &&
18380 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18382 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18383 # uniformly replaced by the line number. The first 'sed' inserts a
18384 # line-number line after each line using $LINENO; the second 'sed'
18385 # does the real work. The second script uses 'N' to pair each
18386 # line-number line with the line containing $LINENO, and appends
18387 # trailing '-' during substitution so that $LINENO is not a special
18388 # case at line end.
18389 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18390 # scripts with optimization help from Paolo Bonzini. Blame Lee
18391 # E. McMahon (1931-1989) for sed's syntax. :-)
18403 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18406 ' >$as_me.lineno &&
18407 chmod +x "$as_me.lineno" ||
18408 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18409 { (exit 1); exit 1; }; }
18411 # Don't try to exec as it changes $[0], causing all sort of problems
18412 # (the dirname of $[0] is not the place where we might find the
18413 # original and so on. Autoconf is especially sensitive to this).
18414 . "./$as_me.lineno"
18415 # Exit status is that of the last command.
18420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18426 ECHO_C= ECHO_N= ECHO_T=
18427 case `echo -n x` in
18429 case `echo 'x\c'` in
18430 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18437 if expr a : '\(a\)' >/dev/null 2>&1 &&
18438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18444 rm -f conf$$ conf$$.exe conf$$.file
18445 if test -d conf$$.dir; then
18446 rm -f conf$$.dir/conf$$.file
18452 if ln -s conf$$.file conf$$ 2>/dev/null; then
18454 # ... but there are two gotchas:
18455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18457 # In both cases, we have to default to `cp -p'.
18458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18460 elif ln conf$$.file conf$$ 2>/dev/null; then
18465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18466 rmdir conf$$.dir 2>/dev/null
18468 if mkdir -p . 2>/dev/null; then
18471 test -d ./-p && rmdir ./-p
18475 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18476 # systems may use methods other than mode bits to determine executability.
18477 cat >conf$$.file <<_ASEOF
18481 chmod +x conf$$.file
18482 if test -x conf$$.file >/dev/null 2>&1; then
18483 as_executable_p="test -x"
18489 # Sed expression to map a string onto a valid CPP name.
18490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18492 # Sed expression to map a string onto a valid variable name.
18493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18498 # Save the log message, to keep $[0] and so on meaningful, and to
18499 # report actual input values of CONFIG_FILES etc. instead of their
18500 # values after options handling.
18502 This file was extended by LLVM $as_me 3.7.0svn, which was
18503 generated by GNU Autoconf 2.60. Invocation command line was
18505 CONFIG_FILES = $CONFIG_FILES
18506 CONFIG_HEADERS = $CONFIG_HEADERS
18507 CONFIG_LINKS = $CONFIG_LINKS
18508 CONFIG_COMMANDS = $CONFIG_COMMANDS
18511 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18516 cat >>$CONFIG_STATUS <<_ACEOF
18517 # Files that config.status was made for.
18518 config_files="$ac_config_files"
18519 config_headers="$ac_config_headers"
18520 config_commands="$ac_config_commands"
18524 cat >>$CONFIG_STATUS <<\_ACEOF
18526 \`$as_me' instantiates files from templates according to the
18527 current configuration.
18529 Usage: $0 [OPTIONS] [FILE]...
18531 -h, --help print this help, then exit
18532 -V, --version print version number, then exit
18533 -q, --quiet do not print progress messages
18534 -d, --debug don't remove temporary files
18535 --recheck update $as_me by reconfiguring in the same conditions
18536 --file=FILE[:TEMPLATE]
18537 instantiate the configuration file FILE
18538 --header=FILE[:TEMPLATE]
18539 instantiate the configuration header FILE
18541 Configuration files:
18544 Configuration headers:
18547 Configuration commands:
18550 Report bugs to <bug-autoconf@gnu.org>."
18553 cat >>$CONFIG_STATUS <<_ACEOF
18555 LLVM config.status 3.7.0svn
18556 configured by $0, generated by GNU Autoconf 2.60,
18557 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18559 Copyright (C) 2006 Free Software Foundation, Inc.
18560 This config.status script is free software; the Free Software Foundation
18561 gives unlimited permission to copy, distribute and modify it."
18568 cat >>$CONFIG_STATUS <<\_ACEOF
18569 # If no file are specified by the user, then we need to provide default
18570 # value. By we need to know if files were specified by the user.
18576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18588 # Handling of the options.
18589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18592 echo "$ac_cs_version"; exit ;;
18593 --debug | --debu | --deb | --de | --d | -d )
18595 --file | --fil | --fi | --f )
18597 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18598 ac_need_defaults=false;;
18599 --header | --heade | --head | --hea )
18601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18602 ac_need_defaults=false;;
18604 # Conflict between --help and --header
18605 { echo "$as_me: error: ambiguous option: $1
18606 Try \`$0 --help' for more information." >&2
18607 { (exit 1); exit 1; }; };;
18608 --help | --hel | -h )
18609 echo "$ac_cs_usage"; exit ;;
18610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18611 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18614 # This is an error.
18615 -*) { echo "$as_me: error: unrecognized option: $1
18616 Try \`$0 --help' for more information." >&2
18617 { (exit 1); exit 1; }; } ;;
18619 *) ac_config_targets="$ac_config_targets $1"
18620 ac_need_defaults=false ;;
18626 ac_configure_extra_args=
18628 if $ac_cs_silent; then
18630 ac_configure_extra_args="$ac_configure_extra_args --silent"
18634 cat >>$CONFIG_STATUS <<_ACEOF
18635 if \$ac_cs_recheck; then
18636 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18637 CONFIG_SHELL=$SHELL
18638 export CONFIG_SHELL
18639 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18643 cat >>$CONFIG_STATUS <<\_ACEOF
18647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18648 ## Running $as_me. ##
18654 cat >>$CONFIG_STATUS <<_ACEOF
18658 llvm_src="${srcdir}"
18662 cat >>$CONFIG_STATUS <<\_ACEOF
18664 # Handling of arguments.
18665 for ac_config_target in $ac_config_targets
18667 case $ac_config_target in
18668 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18669 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18670 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18671 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18672 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18673 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18674 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18675 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18676 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18677 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18678 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18679 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18680 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18681 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18682 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18683 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18684 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18685 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18686 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18687 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18688 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18689 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18690 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18691 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18692 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18693 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18695 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18696 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18697 { (exit 1); exit 1; }; };;
18702 # If the user did not use the arguments to specify the items to instantiate,
18703 # then the envvar interface is used. Set only those that are not.
18704 # We use the long form for the default assignment because of an extremely
18705 # bizarre bug on SunOS 4.1.3.
18706 if $ac_need_defaults; then
18707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18708 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18709 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18712 # Have a temporary directory for convenience. Make it in the build tree
18713 # simply because there is no reason against having it here, and in addition,
18714 # creating and moving files from /tmp can sometimes cause problems.
18715 # Hook for its removal unless debugging.
18716 # Note that there is a small window in which the directory will not be cleaned:
18717 # after its creation but before its name has been assigned to `$tmp'.
18721 trap 'exit_status=$?
18722 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18724 trap '{ (exit 1); exit 1; }' 1 2 13 15
18726 # Create a (secure) tmp directory for tmp files.
18729 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18730 test -n "$tmp" && test -d "$tmp"
18733 tmp=./conf$$-$RANDOM
18734 (umask 077 && mkdir "$tmp")
18737 echo "$me: cannot create a temporary directory in ." >&2
18738 { (exit 1); exit 1; }
18742 # Set up the sed scripts for CONFIG_FILES section.
18745 # No need to generate the scripts if there are no CONFIG_FILES.
18746 # This happens for instance when ./config.status config.h
18747 if test -n "$CONFIG_FILES"; then
18754 for ac_last_try in false false false false false :; do
18755 cat >conf$$subs.sed <<_ACEOF
18756 SHELL!$SHELL$ac_delim
18757 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18758 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18759 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18760 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18761 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18762 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18763 exec_prefix!$exec_prefix$ac_delim
18764 prefix!$prefix$ac_delim
18765 program_transform_name!$program_transform_name$ac_delim
18766 bindir!$bindir$ac_delim
18767 sbindir!$sbindir$ac_delim
18768 libexecdir!$libexecdir$ac_delim
18769 datarootdir!$datarootdir$ac_delim
18770 datadir!$datadir$ac_delim
18771 sysconfdir!$sysconfdir$ac_delim
18772 sharedstatedir!$sharedstatedir$ac_delim
18773 localstatedir!$localstatedir$ac_delim
18774 includedir!$includedir$ac_delim
18775 oldincludedir!$oldincludedir$ac_delim
18776 docdir!$docdir$ac_delim
18777 infodir!$infodir$ac_delim
18778 htmldir!$htmldir$ac_delim
18779 dvidir!$dvidir$ac_delim
18780 pdfdir!$pdfdir$ac_delim
18781 psdir!$psdir$ac_delim
18782 libdir!$libdir$ac_delim
18783 localedir!$localedir$ac_delim
18784 mandir!$mandir$ac_delim
18785 DEFS!$DEFS$ac_delim
18786 ECHO_C!$ECHO_C$ac_delim
18787 ECHO_N!$ECHO_N$ac_delim
18788 ECHO_T!$ECHO_T$ac_delim
18789 LIBS!$LIBS$ac_delim
18790 build_alias!$build_alias$ac_delim
18791 host_alias!$host_alias$ac_delim
18792 target_alias!$target_alias$ac_delim
18793 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18794 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18795 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18796 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18797 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18799 CFLAGS!$CFLAGS$ac_delim
18800 LDFLAGS!$LDFLAGS$ac_delim
18801 CPPFLAGS!$CPPFLAGS$ac_delim
18802 ac_ct_CC!$ac_ct_CC$ac_delim
18803 EXEEXT!$EXEEXT$ac_delim
18804 OBJEXT!$OBJEXT$ac_delim
18806 CXXFLAGS!$CXXFLAGS$ac_delim
18807 ac_ct_CXX!$ac_ct_CXX$ac_delim
18809 subdirs!$subdirs$ac_delim
18810 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18811 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18812 build!$build$ac_delim
18813 build_cpu!$build_cpu$ac_delim
18814 build_vendor!$build_vendor$ac_delim
18815 build_os!$build_os$ac_delim
18816 host!$host$ac_delim
18817 host_cpu!$host_cpu$ac_delim
18818 host_vendor!$host_vendor$ac_delim
18819 host_os!$host_os$ac_delim
18820 target!$target$ac_delim
18821 target_cpu!$target_cpu$ac_delim
18822 target_vendor!$target_vendor$ac_delim
18823 target_os!$target_os$ac_delim
18825 HOST_OS!$HOST_OS$ac_delim
18826 TARGET_OS!$TARGET_OS$ac_delim
18827 LINKALL!$LINKALL$ac_delim
18828 NOLINKALL!$NOLINKALL$ac_delim
18829 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18830 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18831 ARCH!$ARCH$ac_delim
18832 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18833 HOST_ARCH!$HOST_ARCH$ac_delim
18834 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18835 BUILD_CC!$BUILD_CC$ac_delim
18836 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18837 BUILD_CXX!$BUILD_CXX$ac_delim
18838 CVSBUILD!$CVSBUILD$ac_delim
18839 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18840 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18841 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18842 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18843 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18844 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18845 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18846 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18847 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18848 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18849 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18850 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18851 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18852 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18855 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18857 elif $ac_last_try; then
18858 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18859 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18860 { (exit 1); exit 1; }; }
18862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18866 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18867 if test -n "$ac_eof"; then
18868 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18869 ac_eof=`expr $ac_eof + 1`
18872 cat >>$CONFIG_STATUS <<_ACEOF
18873 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18877 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18878 s/^/s,@/; s/!/@,|#_!!_#|/
18881 s/'"$ac_delim"'$/,g/; t
18883 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18884 ' >>$CONFIG_STATUS <conf$$subs.sed
18885 rm -f conf$$subs.sed
18886 cat >>$CONFIG_STATUS <<_ACEOF
18892 for ac_last_try in false false false false false :; do
18893 cat >conf$$subs.sed <<_ACEOF
18894 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18895 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18897 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18898 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18899 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18900 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18901 enable_searchengine!$enable_searchengine$ac_delim
18902 enable_external_search!$enable_external_search$ac_delim
18903 enable_server_based_search!$enable_server_based_search$ac_delim
18904 searchengine_url!$searchengine_url$ac_delim
18905 extra_search_mappings!$extra_search_mappings$ac_delim
18906 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18907 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18908 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18909 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18910 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18911 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18912 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18913 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18914 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18915 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18916 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18917 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18918 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18919 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18920 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18921 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18922 ENABLE_PIC!$ENABLE_PIC$ac_delim
18923 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18924 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18925 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18926 ALL_TARGETS!$ALL_TARGETS$ac_delim
18927 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18928 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18929 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18930 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18931 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18932 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18933 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18934 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18935 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18936 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18937 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18938 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18939 ifGNUmake!$ifGNUmake$ac_delim
18940 LN_S!$LN_S$ac_delim
18944 DATE!$DATE$ac_delim
18945 FIND!$FIND$ac_delim
18946 GREP!$GREP$ac_delim
18947 MKDIR!$MKDIR$ac_delim
18949 RANLIB!$RANLIB$ac_delim
18954 BINPWD!$BINPWD$ac_delim
18956 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18957 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18958 INSTALL_DATA!$INSTALL_DATA$ac_delim
18959 BZIP2!$BZIP2$ac_delim
18961 DOXYGEN!$DOXYGEN$ac_delim
18962 GROFF!$GROFF$ac_delim
18963 GZIPBIN!$GZIPBIN$ac_delim
18964 PDFROFF!$PDFROFF$ac_delim
18967 OCAMLFIND!$OCAMLFIND$ac_delim
18969 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18970 EGREP!$EGREP$ac_delim
18971 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18972 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18973 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18974 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18975 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18976 NO_COMMENT!$NO_COMMENT$ac_delim
18977 PYTHON!$PYTHON$ac_delim
18978 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18979 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18980 USE_OPROFILE!$USE_OPROFILE$ac_delim
18981 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18982 XML2CONFIG!$XML2CONFIG$ac_delim
18983 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18984 LIBXML2_INC!$LIBXML2_INC$ac_delim
18985 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18986 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18987 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18988 MMAP_FILE!$MMAP_FILE$ac_delim
18989 SHLIBEXT!$SHLIBEXT$ac_delim
18990 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18993 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18995 elif $ac_last_try; then
18996 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18998 { (exit 1); exit 1; }; }
19000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19005 if test -n "$ac_eof"; then
19006 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19007 ac_eof=`expr $ac_eof + 1`
19010 cat >>$CONFIG_STATUS <<_ACEOF
19011 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19015 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19016 s/^/s,@/; s/!/@,|#_!!_#|/
19019 s/'"$ac_delim"'$/,g/; t
19021 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19022 ' >>$CONFIG_STATUS <conf$$subs.sed
19023 rm -f conf$$subs.sed
19024 cat >>$CONFIG_STATUS <<_ACEOF
19030 for ac_last_try in false false false false false :; do
19031 cat >conf$$subs.sed <<_ACEOF
19032 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19033 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19034 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19035 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19036 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19037 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19038 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19039 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19040 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19041 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19042 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19043 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19044 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19045 RPATH!$RPATH$ac_delim
19046 RDYNAMIC!$RDYNAMIC$ac_delim
19047 program_prefix!$program_prefix$ac_delim
19048 LIBOBJS!$LIBOBJS$ac_delim
19049 LTLIBOBJS!$LTLIBOBJS$ac_delim
19052 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19054 elif $ac_last_try; then
19055 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19056 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19057 { (exit 1); exit 1; }; }
19059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19063 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19064 if test -n "$ac_eof"; then
19065 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19066 ac_eof=`expr $ac_eof + 1`
19069 cat >>$CONFIG_STATUS <<_ACEOF
19070 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19074 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19075 s/^/s,@/; s/!/@,|#_!!_#|/
19078 s/'"$ac_delim"'$/,g/; t
19080 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19081 ' >>$CONFIG_STATUS <conf$$subs.sed
19082 rm -f conf$$subs.sed
19083 cat >>$CONFIG_STATUS <<_ACEOF
19090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19092 # trailing colons and then remove the whole line if VPATH becomes empty
19093 # (actually we leave an empty line to preserve line numbers).
19094 if test "x$srcdir" = x.; then
19095 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19096 s/:*\$(srcdir):*/:/
19097 s/:*\${srcdir}:*/:/
19099 s/^\([^=]*=[ ]*\):*/\1/
19105 cat >>$CONFIG_STATUS <<\_ACEOF
19106 fi # test -n "$CONFIG_FILES"
19109 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19112 :[FHLC]) ac_mode=$ac_tag; continue;;
19114 case $ac_mode$ac_tag in
19116 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19117 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19118 { (exit 1); exit 1; }; };;
19119 :[FH]-) ac_tag=-:-;;
19120 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19137 -) ac_f="$tmp/stdin";;
19138 *) # Look for the file first in the build tree, then in the source tree
19139 # (if the path is not absolute). The absolute path cannot be DOS-style,
19140 # because $ac_f cannot contain `:'.
19144 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19146 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19147 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19148 { (exit 1); exit 1; }; };;
19150 ac_file_inputs="$ac_file_inputs $ac_f"
19153 # Let's still pretend it is `configure' which instantiates (i.e., don't
19154 # use $as_me), people would be surprised to read:
19155 # /* config.h. Generated by config.status. */
19156 configure_input="Generated from "`IFS=:
19157 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19158 if test x"$ac_file" != x-; then
19159 configure_input="$ac_file. $configure_input"
19160 { echo "$as_me:$LINENO: creating $ac_file" >&5
19161 echo "$as_me: creating $ac_file" >&6;}
19165 *:-:* | *:-) cat >"$tmp/stdin";;
19170 ac_dir=`$as_dirname -- "$ac_file" ||
19171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19172 X"$ac_file" : 'X\(//\)[^/]' \| \
19173 X"$ac_file" : 'X\(//\)$' \| \
19174 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19180 /^X\(\/\/\)[^/].*/{
19195 -*) as_dir=./$as_dir;;
19197 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19201 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19202 *) as_qdir=$as_dir;;
19204 as_dirs="'$as_qdir' $as_dirs"
19205 as_dir=`$as_dirname -- "$as_dir" ||
19206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19207 X"$as_dir" : 'X\(//\)[^/]' \| \
19208 X"$as_dir" : 'X\(//\)$' \| \
19209 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19215 /^X\(\/\/\)[^/].*/{
19228 test -d "$as_dir" && break
19230 test -z "$as_dirs" || eval "mkdir $as_dirs"
19231 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19232 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19233 { (exit 1); exit 1; }; }; }
19237 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19239 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19240 # A ".." for each directory in $ac_dir_suffix.
19241 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19242 case $ac_top_builddir_sub in
19243 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19244 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19247 ac_abs_top_builddir=$ac_pwd
19248 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19249 # for backward compatibility:
19250 ac_top_builddir=$ac_top_build_prefix
19253 .) # We are building in place.
19255 ac_top_srcdir=$ac_top_builddir_sub
19256 ac_abs_top_srcdir=$ac_pwd ;;
19257 [\\/]* | ?:[\\/]* ) # Absolute name.
19258 ac_srcdir=$srcdir$ac_dir_suffix;
19259 ac_top_srcdir=$srcdir
19260 ac_abs_top_srcdir=$srcdir ;;
19261 *) # Relative name.
19262 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19263 ac_top_srcdir=$ac_top_build_prefix$srcdir
19264 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19266 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19277 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19281 cat >>$CONFIG_STATUS <<\_ACEOF
19282 # If the template does not know about datarootdir, expand it.
19283 # FIXME: This hack should be removed a few years after 2.60.
19284 ac_datarootdir_hack=; ac_datarootdir_seen=
19286 case `sed -n '/datarootdir/ {
19295 ' $ac_file_inputs` in
19296 *datarootdir*) ac_datarootdir_seen=yes;;
19297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19298 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19299 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19301 cat >>$CONFIG_STATUS <<_ACEOF
19302 ac_datarootdir_hack='
19303 s&@datadir@&$datadir&g
19304 s&@docdir@&$docdir&g
19305 s&@infodir@&$infodir&g
19306 s&@localedir@&$localedir&g
19307 s&@mandir@&$mandir&g
19308 s&\\\${datarootdir}&$datarootdir&g' ;;
19312 # Neutralize VPATH when `$srcdir' = `.'.
19313 # Shell code in configure.ac might set extrasub.
19314 # FIXME: do we really want to maintain this feature?
19315 cat >>$CONFIG_STATUS <<_ACEOF
19319 cat >>$CONFIG_STATUS <<\_ACEOF
19321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19322 s&@configure_input@&$configure_input&;t t
19323 s&@top_builddir@&$ac_top_builddir_sub&;t t
19324 s&@srcdir@&$ac_srcdir&;t t
19325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19326 s&@top_srcdir@&$ac_top_srcdir&;t t
19327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19328 s&@builddir@&$ac_builddir&;t t
19329 s&@abs_builddir@&$ac_abs_builddir&;t t
19330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19331 s&@INSTALL@&$ac_INSTALL&;t t
19332 $ac_datarootdir_hack
19333 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19335 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19336 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19337 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19338 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19339 which seems to be undefined. Please make sure it is defined." >&5
19340 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19341 which seems to be undefined. Please make sure it is defined." >&2;}
19345 -) cat "$tmp/out"; rm -f "$tmp/out";;
19346 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19355 # Transform confdefs.h into a sed script `conftest.defines', that
19356 # substitutes the proper values into config.h.in to produce config.h.
19357 rm -f conftest.defines conftest.tail
19358 # First, append a space to every undef/define line, to ease matching.
19359 echo 's/$/ /' >conftest.defines
19360 # Then, protect against being on the right side of a sed subst, or in
19361 # an unquoted here document, in config.status. If some macros were
19362 # called several times there might be several #defines for the same
19363 # symbol, which is useless. But do not sort them, since the last
19364 # AC_DEFINE must be honored.
19365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19366 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19367 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19368 # PARAMS is the parameter list in the macro definition--in most cases, it's
19369 # just an empty string.
19370 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19371 ac_dB='\\)[ (].*,\\1define\\2'
19379 s/^[ ]*#[ ]*define[ ][ ]*//
19384 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19385 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19386 ' >>conftest.defines
19388 # Remove the space that was appended to ease matching.
19389 # Then replace #undef with comments. This is necessary, for
19390 # example, in the case of _POSIX_SOURCE, which is predefined and required
19391 # on some systems where configure will not decide to define it.
19392 # (The regexp can be short, since the line contains either #define or #undef.)
19394 s,^[ #]*u.*,/* & */,' >>conftest.defines
19396 # Break up conftest.defines:
19397 ac_max_sed_lines=50
19399 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19400 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19401 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19403 ac_in='$ac_file_inputs'
19404 ac_out='"$tmp/out1"'
19405 ac_nxt='"$tmp/out2"'
19409 # Write a here document:
19410 cat >>$CONFIG_STATUS <<_ACEOF
19411 # First, check the format of the line:
19412 cat >"\$tmp/defines.sed" <<\\CEOF
19413 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19414 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19418 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19420 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19421 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19422 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19423 grep . conftest.tail >/dev/null || break
19424 rm -f conftest.defines
19425 mv conftest.tail conftest.defines
19427 rm -f conftest.defines conftest.tail
19429 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19430 cat >>$CONFIG_STATUS <<\_ACEOF
19431 if test x"$ac_file" != x-; then
19432 echo "/* $configure_input */" >"$tmp/config.h"
19433 cat "$ac_result" >>"$tmp/config.h"
19434 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19435 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19436 echo "$as_me: $ac_file is unchanged" >&6;}
19439 mv "$tmp/config.h" $ac_file
19442 echo "/* $configure_input */"
19448 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19449 echo "$as_me: executing $ac_file commands" >&6;}
19454 case $ac_file$ac_mode in
19455 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19457 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19458 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19459 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19460 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19461 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19462 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19463 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19464 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19465 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19466 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19467 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19468 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19469 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19470 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19471 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19472 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19473 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19474 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19475 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19476 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19477 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19478 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19484 { (exit 0); exit 0; }
19486 chmod +x $CONFIG_STATUS
19487 ac_clean_files=$ac_clean_files_save
19490 # configure is writing to config.log, and then calls config.status.
19491 # config.status does its own redirection, appending to config.log.
19492 # Unfortunately, on DOS this fails, as config.log is still kept open
19493 # by configure, so config.status won't be able to write to it; its
19494 # output is simply discarded. So we exec the FD to /dev/null,
19495 # effectively closing config.log, so it can be properly (re)opened and
19496 # appended to by config.status. When coming back to configure, we
19497 # need to make the FD available again.
19498 if test "$no_create" != yes; then
19500 ac_config_status_args=
19501 test "$silent" = yes &&
19502 ac_config_status_args="$ac_config_status_args --quiet"
19504 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19506 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19507 # would make configure fail if this is the last instruction.
19508 $ac_cs_success || { (exit 1); exit 1; }
19512 # CONFIG_SUBDIRS section.
19514 if test "$no_recursion" != yes; then
19516 # Remove --cache-file and --srcdir arguments so they do not pile up.
19517 ac_sub_configure_args=
19519 eval "set x $ac_configure_args"
19523 if test -n "$ac_prev"; then
19528 -cache-file | --cache-file | --cache-fil | --cache-fi \
19529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19530 ac_prev=cache_file ;;
19531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19535 --config-cache | -C)
19537 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19539 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19541 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19543 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19547 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19549 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19553 # Always prepend --prefix to ensure using the same prefix
19554 # in subdir configurations.
19555 ac_arg="--prefix=$prefix"
19557 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19559 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19562 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19564 # Do not complain, so a configure script can configure whichever
19565 # parts of a large source tree are present.
19566 test -d "$srcdir/$ac_dir" || continue
19568 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19569 echo "$as_me:$LINENO: $ac_msg" >&5
19573 -*) as_dir=./$as_dir;;
19575 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19579 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19580 *) as_qdir=$as_dir;;
19582 as_dirs="'$as_qdir' $as_dirs"
19583 as_dir=`$as_dirname -- "$as_dir" ||
19584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19585 X"$as_dir" : 'X\(//\)[^/]' \| \
19586 X"$as_dir" : 'X\(//\)$' \| \
19587 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19593 /^X\(\/\/\)[^/].*/{
19606 test -d "$as_dir" && break
19608 test -z "$as_dirs" || eval "mkdir $as_dirs"
19609 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19610 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19611 { (exit 1); exit 1; }; }; }
19615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19618 # A ".." for each directory in $ac_dir_suffix.
19619 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19620 case $ac_top_builddir_sub in
19621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19625 ac_abs_top_builddir=$ac_pwd
19626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19627 # for backward compatibility:
19628 ac_top_builddir=$ac_top_build_prefix
19631 .) # We are building in place.
19633 ac_top_srcdir=$ac_top_builddir_sub
19634 ac_abs_top_srcdir=$ac_pwd ;;
19635 [\\/]* | ?:[\\/]* ) # Absolute name.
19636 ac_srcdir=$srcdir$ac_dir_suffix;
19637 ac_top_srcdir=$srcdir
19638 ac_abs_top_srcdir=$srcdir ;;
19639 *) # Relative name.
19640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19641 ac_top_srcdir=$ac_top_build_prefix$srcdir
19642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19649 # Check for guested configure; otherwise get Cygnus style configure.
19650 if test -f "$ac_srcdir/configure.gnu"; then
19651 ac_sub_configure=$ac_srcdir/configure.gnu
19652 elif test -f "$ac_srcdir/configure"; then
19653 ac_sub_configure=$ac_srcdir/configure
19654 elif test -f "$ac_srcdir/configure.in"; then
19655 # This should be Cygnus configure.
19656 ac_sub_configure=$ac_aux_dir/configure
19658 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19659 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19663 # The recursion is here.
19664 if test -n "$ac_sub_configure"; then
19665 # Make the cache file name correct relative to the subdirectory.
19666 case $cache_file in
19667 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19668 *) # Relative name.
19669 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19672 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19673 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19674 # The eval makes quoting arguments work.
19675 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19676 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19677 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19678 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19679 { (exit 1); exit 1; }; }