2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5.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-2014 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.5.0svn'
565 PACKAGE_STRING='LLVM 3.5.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
692 ENABLE_CLANG_STATIC_ANALYZER
693 ENABLE_CLANG_REWRITER
698 ENABLE_EXPENSIVE_CHECKS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
768 HAVE_LINK_VERSION_SCRIPT
771 NO_MISSING_FIELD_INITIALIZERS
772 COVERED_SWITCH_DEFAULT
773 NO_MAYBE_UNINITIALIZED
802 ENABLE_VISIBILITY_INLINES_HIDDEN
809 ac_precious_vars='build_alias
821 ac_subdirs_all='projects/test-suite
824 projects/llvm-poolalloc
829 # Initialize some variables set by options.
831 ac_init_version=false
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
841 program_transform_name=s,x,x,
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 # Accept the important Cygnus configure options, so we can diagnose typos.
893 case $ac_dashdash$ac_option in
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
915 cache_file=config.cache ;;
917 -datadir | --datadir | --datadi | --datad)
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
929 -disable-* | --disable-*)
930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934 { (exit 1); exit 1; }; }
935 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936 eval enable_$ac_feature=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 -enable-* | --enable-*)
949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_$ac_feature=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
970 -help | --help | --hel | --he | -h)
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1119 -site=* | --site=* | --sit=*)
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package| sed 's/-/_/g'`
1152 eval with_$ac_package=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid package name: $ac_package" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_package=`echo $ac_package | sed 's/-/_/g'`
1161 eval with_$ac_package=no ;;
1164 # Obsolete; use --with-x.
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1181 -*) { echo "$as_me: error: unrecognized option: $ac_option
1182 Try \`$0 --help' for more information." >&2
1183 { (exit 1); exit 1; }; }
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191 { (exit 1); exit 1; }; }
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1196 # FIXME: should be removed in autoconf 3.0.
1197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 { echo "$as_me: error: missing argument to $ac_option" >&2
1209 { (exit 1); exit 1; }; }
1212 # Be sure to have absolute directory names.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1218 eval ac_val=\$$ac_var
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 { echo "$as_me: error: Working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 { echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$0" ||
1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$0" : 'X\(//\)[^/]' \| \
1268 X"$0" : 'X\(//\)$' \| \
1269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1329 \`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of LLVM 3.5.0svn:";;
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-polly Use polly if available (default is YES)
1403 --enable-libcpp Use libc++ if available (default is NO)
1404 --enable-compiler-version-checks
1405 Check the version of the host compiler (default is
1407 --enable-cxx1y Use c++1y if available (default is NO)
1408 --enable-split-dwarf Use split-dwarf if available (default is NO)
1409 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1410 --enable-clang-static-analyzer
1411 Enable building of clang Static Analyzer (default is
1413 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1414 --enable-optimized Compile with optimizations enabled (default is NO)
1415 --enable-profiling Compile with profiling enabled (default is NO)
1416 --enable-assertions Compile with assertion checks enabled (default is
1418 --enable-werror Compile with -Werror enabled (default is NO)
1419 --enable-expensive-checks
1420 Compile with expensive debug checks enabled (default
1422 --enable-debug-runtime Build runtime libs with debug symbols (default is
1424 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1425 optimization is on and YES if it's off)
1426 --enable-keep-symbols Do not strip installed executables)
1427 --enable-jit Enable Just In Time Compiling (default is YES)
1428 --enable-docs Build documents (default is YES)
1429 --enable-doxygen Build doxygen documentation (default is NO)
1430 --enable-threads Use threads if available (default is YES)
1431 --enable-pthreads Use pthreads if available (default is YES)
1432 --enable-zlib Use zlib for compression/decompression if available
1434 --enable-pic Build LLVM with Position Independent Code (default
1436 --enable-shared Build a shared library and link tools against it
1438 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1439 Win32 DLL (default is NO)
1440 --enable-timestamps Enable embedding timestamp information in build
1442 --enable-backtraces Enable embedding backtraces on crash (default is
1444 --enable-crash-overrides
1445 Enable crash handling overrides (default is YES)
1446 --enable-targets Build specific host targets: all or
1447 target1,target2,... Valid targets are: host, x86,
1448 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449 xcore, msp430, nvptx, systemz, r600, and cpp
1451 --enable-experimental-targets
1452 Build experimental host targets: disable or
1453 target1,target2,... (default=disable)
1454 --enable-bindings Build specific language bindings:
1455 all,auto,none,{binding-name} (default=auto)
1456 --enable-terminfo Query the terminfo database if available (default is
1458 --enable-libedit Use libedit if available (default is YES)
1459 --enable-libffi Check for the presence of libffi (default is NO)
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-optimize-option Select the compiler options to use for optimized
1466 --with-extra-options Specify additional options to compile LLVM with
1467 --with-extra-ld-options Specify additional options to link LLVM with
1468 --with-ocaml-libdir Specify install location for ocaml bindings (default
1470 --with-clang-srcdir Directory to the out-of-tree Clang source
1471 --with-clang-resource-dir
1472 Relative directory from the Clang binary for
1474 --with-c-include-dirs Colon separated list of directories clang will
1476 --with-gcc-toolchain Directory where gcc is installed.
1477 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1478 --with-binutils-include Specify path to binutils/include/ containing
1479 plugin-api.h file for gold plugin.
1480 --with-bug-report-url Specify the URL where bug reports should be
1481 submitted (default=http://llvm.org/bugs/)
1482 --with-internal-prefix Installation directory for internal files
1483 --with-python path to python
1484 --with-udis86=<path> Use udis86 external x86 disassembler library
1485 --with-oprofile=<prefix>
1486 Tell OProfile >= 0.9.4 how to symbolize JIT output
1487 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CXX C++ compiler command
1498 CXXFLAGS C++ compiler flags
1500 CXXCPP C++ preprocessor
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1505 Report bugs to <http://llvm.org/bugs/>.
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" || continue
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1533 .) # We are building in place.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1566 LLVM configure 3.5.0svn
1567 generated by GNU Autoconf 2.60
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1574 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1582 It was created by LLVM $as_me 3.5.0svn, which was
1583 generated by GNU Autoconf 2.60. Invocation command line was
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1604 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1608 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_must_keep_next=false
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 -* ) ac_must_keep_next=true ;;
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log. We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1699 # The following way of writing the cache mishandles newlines in values,
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 echo "$ac_var='\''$ac_val'\''"
1746 if test -n "$ac_subst_files"; then
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 echo "$ac_var='\''$ac_val'\''"
1764 if test -s confdefs.h; then
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1838 if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1855 # Check that the precious variables saved in the cache have kept the same
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860 eval ac_new_set=\$ac_env_${ac_var}_set
1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862 eval ac_new_val=\$ac_env_${ac_var}_value
1863 case $ac_old_set,$ac_new_set in
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1874 if test "x$ac_old_val" != "x$ac_new_val"; then
1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1878 echo "$as_me: former value: $ac_old_val" >&2;}
1879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1880 echo "$as_me: current value: $ac_new_val" >&2;}
1881 ac_cache_corrupted=:
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 *) ac_arg=$ac_var=$ac_new_val ;;
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896 if $ac_cache_corrupted; then
1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901 { (exit 1); exit 1; }; }
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 LLVM_VERSION_MAJOR=3
1937 LLVM_VERSION_MINOR=5
1938 LLVM_VERSION_PATCH=0
1939 LLVM_VERSION_SUFFIX=svn
1942 cat >>confdefs.h <<_ACEOF
1943 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1947 cat >>confdefs.h <<_ACEOF
1948 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1952 cat >>confdefs.h <<_ACEOF
1953 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1962 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1971 for ac_dir in autoconf "$srcdir"/autoconf; do
1972 if test -f "$ac_dir/install-sh"; then
1974 ac_install_sh="$ac_aux_dir/install-sh -c"
1976 elif test -f "$ac_dir/install.sh"; then
1978 ac_install_sh="$ac_aux_dir/install.sh -c"
1980 elif test -f "$ac_dir/shtool"; then
1982 ac_install_sh="$ac_aux_dir/shtool install -c"
1986 if test -z "$ac_aux_dir"; then
1987 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1988 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1989 { (exit 1); exit 1; }; }
1992 # These three variables are undocumented and unsupported,
1993 # and are intended to be withdrawn in a future Autoconf release.
1994 # They can cause serious problems if a builder's source tree is in a directory
1995 # whose full name contains unusual characters.
1996 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1997 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1998 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2002 if test ${srcdir} != "." ; then
2003 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2004 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2005 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2006 { (exit 1); exit 1; }; }
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018 if test -n "$ac_tool_prefix"; then
2019 for ac_prog in clang gcc
2021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test.
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 if test -n "$CC"; then
2050 { echo "$as_me:$LINENO: result: $CC" >&5
2051 echo "${ECHO_T}$CC" >&6; }
2053 { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2058 test -n "$CC" && break
2061 if test -z "$CC"; then
2063 for ac_prog in clang gcc
2065 # Extract the first word of "$ac_prog", so it can be a program name with args.
2066 set dummy $ac_prog; ac_word=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2082 ac_cv_prog_ac_ct_CC="$ac_prog"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093 if test -n "$ac_ct_CC"; then
2094 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095 echo "${ECHO_T}$ac_ct_CC" >&6; }
2097 { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2102 test -n "$ac_ct_CC" && break
2105 if test "x$ac_ct_CC" = x; then
2108 case $cross_compiling:$ac_tool_warned in
2110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111 whose name does not start with the host triplet. If you think this
2112 configuration is useful to you, please write to autoconf@gnu.org." >&5
2113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet. If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116 ac_tool_warned=yes ;;
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO: checking for C compiler version" >&5
2131 ac_compiler=`set X $ac_compile; echo $2`
2132 { (ac_try="$ac_compiler --version >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler --version >&5") 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2142 { (ac_try="$ac_compiler -v >&5"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148 (eval "$ac_compiler -v >&5") 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2152 { (ac_try="$ac_compiler -V >&5"
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158 (eval "$ac_compiler -V >&5") 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }
2163 cat >conftest.$ac_ext <<_ACEOF
2166 cat confdefs.h >>conftest.$ac_ext
2167 cat >>conftest.$ac_ext <<_ACEOF
2168 /* end confdefs.h. */
2178 ac_clean_files_save=$ac_clean_files
2179 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2180 # Try to create an executable without -o first, disregard a.out.
2181 # It will help us diagnose broken compilers, and finding out an intuition
2183 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2184 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2185 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187 # List of possible output files, starting from the most likely.
2188 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2189 # only as a last resort. b.out is created by i960 compilers.
2190 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2192 # The IRIX 6 linker writes into existing files which may not be
2193 # executable, retaining their permissions. Remove them first so a
2194 # subsequent execution test works.
2196 for ac_file in $ac_files
2199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2200 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2205 if { (ac_try="$ac_link_default"
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2211 (eval "$ac_link_default") 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; then
2215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2218 # so that the user can short-circuit this test for compilers unknown to
2220 for ac_file in $ac_files
2222 test -f "$ac_file" || continue
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2227 # We found the default executable, but exeext='' is most
2231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 # We set ac_cv_exeext here because the later test for it is not
2236 # safe: cross compilers may not add the suffix if given an `-o'
2237 # argument, so we may need to know it at that point already.
2238 # Even if this section looks crufty: it has the advantage of
2245 test "$ac_cv_exeext" = no && ac_cv_exeext=
2248 echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2251 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&2;}
2255 { (exit 77); exit 77; }; }
2258 ac_exeext=$ac_cv_exeext
2259 { echo "$as_me:$LINENO: result: $ac_file" >&5
2260 echo "${ECHO_T}$ac_file" >&6; }
2262 # Check that the compiler produces executables we can run. If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2265 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2266 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2267 # If not cross compiling, check that we can run a simple program.
2268 if test "$cross_compiling" != yes; then
2269 if { ac_try='./$ac_file'
2270 { (case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_try") 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2281 if test "$cross_compiling" = maybe; then
2284 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285 If you meant to cross compile, use \`--host'.
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot run C compiled programs.
2288 If you meant to cross compile, use \`--host'.
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2294 { echo "$as_me:$LINENO: result: yes" >&5
2295 echo "${ECHO_T}yes" >&6; }
2297 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298 ac_clean_files=$ac_clean_files_save
2299 # Check that the compiler produces executables we can run. If not, either
2300 # the compiler is broken, or we cross compile.
2301 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2303 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304 echo "${ECHO_T}$cross_compiling" >&6; }
2306 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2308 if { (ac_try="$ac_link"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314 (eval "$ac_link") 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2319 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2320 # work properly (i.e., refer to `conftest.exe'), while it won't with
2322 for ac_file in conftest.exe conftest conftest.*; do
2323 test -f "$ac_file" || continue
2325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2339 rm -f conftest$ac_cv_exeext
2340 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2341 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2343 rm -f conftest.$ac_ext
2344 EXEEXT=$ac_cv_exeext
2346 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2347 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2348 if test "${ac_cv_objext+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat >conftest.$ac_ext <<_ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2366 rm -f conftest.o conftest.obj
2367 if { (ac_try="$ac_compile"
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; then
2377 for ac_file in conftest.o conftest.obj conftest.*; do
2378 test -f "$ac_file" || continue;
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6; }
2400 OBJEXT=$ac_cv_objext
2402 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 cat >conftest.$ac_ext <<_ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2425 rm -f conftest.$ac_objext
2426 if { (ac_try="$ac_compile"
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_compile") 2>conftest.er1
2434 grep -v '^ *+' conftest.er1 >conftest.err
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2440 { (case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_try") 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; } &&
2449 { ac_try='test -s conftest.$ac_objext'
2450 { (case "(($ac_try" in
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_try") 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2471 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2472 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2473 GCC=`test $ac_compiler_gnu = yes && echo yes`
2474 ac_test_CFLAGS=${CFLAGS+set}
2475 ac_save_CFLAGS=$CFLAGS
2476 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2477 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_cc_g+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 ac_save_c_werror_flag=$ac_c_werror_flag
2482 ac_c_werror_flag=yes
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2500 rm -f conftest.$ac_objext
2501 if { (ac_try="$ac_compile"
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_compile") 2>conftest.er1
2509 grep -v '^ *+' conftest.er1 >conftest.err
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } &&
2514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2515 { (case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_try") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; } &&
2524 { ac_try='test -s conftest.$ac_objext'
2525 { (case "(($ac_try" in
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_try") 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2540 cat >conftest.$ac_ext <<_ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2555 rm -f conftest.$ac_objext
2556 if { (ac_try="$ac_compile"
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_compile") 2>conftest.er1
2564 grep -v '^ *+' conftest.er1 >conftest.err
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2570 { (case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_try") 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest.$ac_objext'
2580 { (case "(($ac_try" in
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_try") 2>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2594 ac_c_werror_flag=$ac_save_c_werror_flag
2596 cat >conftest.$ac_ext <<_ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2611 rm -f conftest.$ac_objext
2612 if { (ac_try="$ac_compile"
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_compile") 2>conftest.er1
2620 grep -v '^ *+' conftest.er1 >conftest.err
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (case "(($ac_try" in
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_try") 2>&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 ac_c_werror_flag=$ac_save_c_werror_flag
2662 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2663 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2664 if test "$ac_test_CFLAGS" = set; then
2665 CFLAGS=$ac_save_CFLAGS
2666 elif test $ac_cv_prog_cc_g = yes; then
2667 if test "$GCC" = yes; then
2673 if test "$GCC" = yes; then
2679 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2680 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2681 if test "${ac_cv_prog_cc_c89+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 ac_cv_prog_cc_c89=no
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2694 #include <sys/types.h>
2695 #include <sys/stat.h>
2696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2697 struct buf { int x; };
2698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2699 static char *e (p, i)
2705 static char *f (char * (*g) (char **, int), char **p, ...)
2710 s = g (p, va_arg (v,int));
2715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2716 function prototypes and stuff, but not '\xHH' hex character constants.
2717 These don't provoke an error unfortunately, instead are silently treated
2718 as 'x'. The following induces an error, until -std is added to get
2719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2720 array size at least. It's necessary to write '\x00'==0 to get something
2721 that's true only with -std. */
2722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2725 inside strings and character constants. */
2727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2729 int test (int i, double x);
2730 struct s1 {int (*f) (int a);};
2731 struct s2 {int (*f) (double a);};
2732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2738 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2744 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2746 CC="$ac_save_CC $ac_arg"
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>conftest.er1
2756 grep -v '^ *+' conftest.er1 >conftest.err
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } &&
2761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2762 { (case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_try") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (case "(($ac_try" in
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_try") 2>&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_cv_prog_cc_c89=$ac_arg
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2789 rm -f core conftest.err conftest.$ac_objext
2790 test "x$ac_cv_prog_cc_c89" != "xno" && break
2792 rm -f conftest.$ac_ext
2797 case "x$ac_cv_prog_cc_c89" in
2799 { echo "$as_me:$LINENO: result: none needed" >&5
2800 echo "${ECHO_T}none needed" >&6; } ;;
2802 { echo "$as_me:$LINENO: result: unsupported" >&5
2803 echo "${ECHO_T}unsupported" >&6; } ;;
2805 CC="$CC $ac_cv_prog_cc_c89"
2806 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2807 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818 ac_cpp='$CXXCPP $CPPFLAGS'
2819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2822 if test -z "$CXX"; then
2823 if test -n "$CCC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 for ac_prog in clang++ g++
2829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_CXX+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 if test -n "$CXX"; then
2837 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 if test -n "$CXX"; then
2858 { echo "$as_me:$LINENO: result: $CXX" >&5
2859 echo "${ECHO_T}$CXX" >&6; }
2861 { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2866 test -n "$CXX" && break
2869 if test -z "$CXX"; then
2871 for ac_prog in clang++ g++
2873 # Extract the first word of "$ac_prog", so it can be a program name with args.
2874 set dummy $ac_prog; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test -n "$ac_ct_CXX"; then
2881 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 ac_cv_prog_ac_ct_CXX="$ac_prog"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2901 if test -n "$ac_ct_CXX"; then
2902 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2903 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2905 { echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6; }
2910 test -n "$ac_ct_CXX" && break
2913 if test "x$ac_ct_CXX" = x; then
2916 case $cross_compiling:$ac_tool_warned in
2918 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2919 whose name does not start with the host triplet. If you think this
2920 configuration is useful to you, please write to autoconf@gnu.org." >&5
2921 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2922 whose name does not start with the host triplet. If you think this
2923 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2924 ac_tool_warned=yes ;;
2932 # Provide some information about the compiler.
2933 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2934 ac_compiler=`set X $ac_compile; echo $2`
2935 { (ac_try="$ac_compiler --version >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler --version >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2945 { (ac_try="$ac_compiler -v >&5"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compiler -v >&5") 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2955 { (ac_try="$ac_compiler -V >&5"
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_compiler -V >&5") 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }
2966 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2967 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2968 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 cat >conftest.$ac_ext <<_ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2989 rm -f conftest.$ac_objext
2990 if { (ac_try="$ac_compile"
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_compile") 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3004 { (case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_try") 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (case "(($ac_try" in
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_try") 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3035 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3036 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3037 GXX=`test $ac_compiler_gnu = yes && echo yes`
3038 ac_test_CXXFLAGS=${CXXFLAGS+set}
3039 ac_save_CXXFLAGS=$CXXFLAGS
3040 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3041 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3042 if test "${ac_cv_prog_cxx_g+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3046 ac_cxx_werror_flag=yes
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (case "(($ac_try" in
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_try") 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_prog_cxx_g=yes
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3128 grep -v '^ *+' conftest.er1 >conftest.err
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (case "(($ac_try" in
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_try") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (case "(($ac_try" in
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_try") 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3209 ac_cv_prog_cxx_g=yes
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3226 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3227 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3228 if test "$ac_test_CXXFLAGS" = set; then
3229 CXXFLAGS=$ac_save_CXXFLAGS
3230 elif test $ac_cv_prog_cxx_g = yes; then
3231 if test "$GXX" = yes; then
3237 if test "$GXX" = yes; then
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250 ac_cpp='$CPP $CPPFLAGS'
3251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3255 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3256 # On Suns, sometimes $CPP names a directory.
3257 if test -n "$CPP" && test -d "$CPP"; then
3260 if test -z "$CPP"; then
3261 if test "${ac_cv_prog_CPP+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 # Double quotes because CPP needs to be expanded
3265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3268 for ac_c_preproc_warn_flag in '' yes
3270 # Use a header file that comes with gcc, so configuring glibc
3271 # with a fresh cross-compiler works.
3272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3273 # <limits.h> exists even on freestanding compilers.
3274 # On the NeXT, cc -E runs the code through the compiler's parser,
3275 # not just through cpp. "Syntax error" is here to catch this case.
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3283 # include <limits.h>
3285 # include <assert.h>
3289 if { (ac_try="$ac_cpp conftest.$ac_ext"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null; then
3302 if test -s conftest.err; then
3303 ac_cpp_err=$ac_c_preproc_warn_flag
3304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3311 if test -z "$ac_cpp_err"; then
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 # Broken: fails on valid input.
3321 rm -f conftest.err conftest.$ac_ext
3323 # OK, works on sane cases. Now check whether nonexistent headers
3324 # can be detected and how.
3325 cat >conftest.$ac_ext <<_ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #include <ac_nonexistent.h>
3333 if { (ac_try="$ac_cpp conftest.$ac_ext"
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null; then
3346 if test -s conftest.err; then
3347 ac_cpp_err=$ac_c_preproc_warn_flag
3348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3355 if test -z "$ac_cpp_err"; then
3356 # Broken: success on invalid input.
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 # Passes both tests.
3367 rm -f conftest.err conftest.$ac_ext
3370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3371 rm -f conftest.err conftest.$ac_ext
3372 if $ac_preproc_ok; then
3384 { echo "$as_me:$LINENO: result: $CPP" >&5
3385 echo "${ECHO_T}$CPP" >&6; }
3387 for ac_c_preproc_warn_flag in '' yes
3389 # Use a header file that comes with gcc, so configuring glibc
3390 # with a fresh cross-compiler works.
3391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3392 # <limits.h> exists even on freestanding compilers.
3393 # On the NeXT, cc -E runs the code through the compiler's parser,
3394 # not just through cpp. "Syntax error" is here to catch this case.
3395 cat >conftest.$ac_ext <<_ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3402 # include <limits.h>
3404 # include <assert.h>
3408 if { (ac_try="$ac_cpp conftest.$ac_ext"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null; then
3421 if test -s conftest.err; then
3422 ac_cpp_err=$ac_c_preproc_warn_flag
3423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3430 if test -z "$ac_cpp_err"; then
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 # Broken: fails on valid input.
3440 rm -f conftest.err conftest.$ac_ext
3442 # OK, works on sane cases. Now check whether nonexistent headers
3443 # can be detected and how.
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <ac_nonexistent.h>
3452 if { (ac_try="$ac_cpp conftest.$ac_ext"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3460 grep -v '^ *+' conftest.er1 >conftest.err
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } >/dev/null; then
3465 if test -s conftest.err; then
3466 ac_cpp_err=$ac_c_preproc_warn_flag
3467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3474 if test -z "$ac_cpp_err"; then
3475 # Broken: success on invalid input.
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 # Passes both tests.
3486 rm -f conftest.err conftest.$ac_ext
3489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3490 rm -f conftest.err conftest.$ac_ext
3491 if $ac_preproc_ok; then
3494 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3495 See \`config.log' for more details." >&5
3496 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3497 See \`config.log' for more details." >&2;}
3498 { (exit 1); exit 1; }; }
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508 if test "$CXX" = "clang++" ; then
3509 { echo "$as_me:$LINENO: checking whether clang works" >&5
3510 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3512 ac_cpp='$CXXCPP $CPPFLAGS'
3513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3525 #if __has_include (<cxxabi.h>)
3528 #if __has_include (<unwind.h>)
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3549 grep -v '^ *+' conftest.er1 >conftest.err
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } &&
3554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3555 { (case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_try") 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try='test -s conftest.$ac_objext'
3565 { (case "(($ac_try" in
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_try") 2>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3575 { echo "$as_me:$LINENO: result: yes" >&5
3576 echo "${ECHO_T}yes" >&6; }
3579 echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3583 { echo "$as_me:$LINENO: result: no" >&5
3584 echo "${ECHO_T}no" >&6; }
3585 { { 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
3586 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;}
3587 { (exit 1); exit 1; }; }
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3601 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3603 ac_cpp='$CXXCPP $CPPFLAGS'
3604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3608 llvm_cv_cxx_compiler=unknown
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3620 rm -f conftest.$ac_objext
3621 if { (ac_try="$ac_compile"
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_compile") 2>conftest.er1
3629 grep -v '^ *+' conftest.er1 >conftest.err
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3635 { (case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_try") 2>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try='test -s conftest.$ac_objext'
3645 { (case "(($ac_try" in
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_try") 2>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 llvm_cv_cxx_compiler=clang
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3670 rm -f conftest.$ac_objext
3671 if { (ac_try="$ac_compile"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_compile") 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3685 { (case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_try") 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (case "(($ac_try" in
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_try") 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 llvm_cv_cxx_compiler=gcc
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3723 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3727 if test -d ${srcdir}/projects/test-suite ; then
3728 subdirs="$subdirs projects/test-suite"
3732 if test -d ${srcdir}/projects/llvm-test ; then
3733 subdirs="$subdirs projects/llvm-test"
3737 if test -d ${srcdir}/projects/poolalloc ; then
3738 subdirs="$subdirs projects/poolalloc"
3742 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3743 subdirs="$subdirs projects/llvm-poolalloc"
3747 for i in `ls ${srcdir}/projects`
3749 if test -d ${srcdir}/projects/${i} ; then
3751 sample) subdirs="$subdirs projects/sample"
3753 safecode) subdirs="$subdirs projects/safecode"
3761 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3762 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3768 # Check whether --enable-polly was given.
3769 if test "${enable_polly+set}" = set; then
3770 enableval=$enable_polly;
3775 case "$enableval" in
3780 default) ENABLE_POLLY=1
3782 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3783 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3784 { (exit 1); exit 1; }; } ;;
3788 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3791 subdirs="$subdirs tools/polly"
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800 { (exit 1); exit 1; }; }
3802 { echo "$as_me:$LINENO: checking build system type" >&5
3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804 if test "${ac_cv_build+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 ac_build_alias=$build_alias
3808 test "x$ac_build_alias" = x &&
3809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810 test "x$ac_build_alias" = x &&
3811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813 { (exit 1); exit 1; }; }
3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821 echo "${ECHO_T}$ac_cv_build" >&6; }
3822 case $ac_cv_build in
3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825 echo "$as_me: error: invalid value of canonical build" >&2;}
3826 { (exit 1); exit 1; }; };;
3829 ac_save_IFS=$IFS; IFS='-'
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3842 { echo "$as_me:$LINENO: checking host system type" >&5
3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844 if test "${ac_cv_host+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if test "x$host_alias" = x; then
3848 ac_cv_host=$ac_cv_build
3850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853 { (exit 1); exit 1; }; }
3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858 echo "${ECHO_T}$ac_cv_host" >&6; }
3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862 echo "$as_me: error: invalid value of canonical host" >&2;}
3863 { (exit 1); exit 1; }; };;
3866 ac_save_IFS=$IFS; IFS='-'
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3879 { echo "$as_me:$LINENO: checking target system type" >&5
3880 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3881 if test "${ac_cv_target+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 if test "x$target_alias" = x; then
3885 ac_cv_target=$ac_cv_host
3887 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3888 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3889 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3890 { (exit 1); exit 1; }; }
3894 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3895 echo "${ECHO_T}$ac_cv_target" >&6; }
3896 case $ac_cv_target in
3898 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3899 echo "$as_me: error: invalid value of canonical target" >&2;}
3900 { (exit 1); exit 1; }; };;
3902 target=$ac_cv_target
3903 ac_save_IFS=$IFS; IFS='-'
3909 # Remember, the first character of IFS is used to create $*,
3910 # except with old shells:
3913 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3916 # The aliases save the names the user supplied, while $host etc.
3917 # will get canonicalized.
3918 test -n "$target_alias" &&
3919 test "$program_prefix$program_suffix$program_transform_name" = \
3921 program_prefix=${target_alias}-
3923 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3924 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3925 if test "${llvm_cv_os_type+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 llvm_cv_link_all_option="-Wl,--whole-archive"
3931 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932 llvm_cv_os_type="AIX"
3933 llvm_cv_platform_type="Unix" ;;
3935 llvm_cv_link_all_option="-Wl,--whole-archive"
3936 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3937 llvm_cv_os_type="IRIX"
3938 llvm_cv_platform_type="Unix" ;;
3940 llvm_cv_link_all_option="-Wl,--whole-archive"
3941 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942 llvm_cv_os_type="Cygwin"
3943 llvm_cv_platform_type="Unix" ;;
3945 llvm_cv_link_all_option="-Wl,-all_load"
3946 llvm_cv_no_link_all_option="-Wl,-noall_load"
3947 llvm_cv_os_type="Darwin"
3948 llvm_cv_platform_type="Unix" ;;
3950 llvm_cv_link_all_option="-Wl,-all_load"
3951 llvm_cv_no_link_all_option="-Wl,-noall_load"
3952 llvm_cv_os_type="Minix"
3953 llvm_cv_platform_type="Unix" ;;
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="FreeBSD"
3958 llvm_cv_platform_type="Unix" ;;
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="GNU/kFreeBSD"
3963 llvm_cv_platform_type="Unix" ;;
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="OpenBSD"
3968 llvm_cv_platform_type="Unix" ;;
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="NetBSD"
3973 llvm_cv_platform_type="Unix" ;;
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="DragonFly"
3978 llvm_cv_platform_type="Unix" ;;
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="HP-UX"
3983 llvm_cv_platform_type="Unix" ;;
3985 llvm_cv_link_all_option="-Wl,--whole-archive"
3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987 llvm_cv_os_type="Interix"
3988 llvm_cv_platform_type="Unix" ;;
3990 llvm_cv_link_all_option="-Wl,--whole-archive"
3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992 llvm_cv_os_type="Linux"
3993 llvm_cv_platform_type="Unix" ;;
3995 llvm_cv_link_all_option="-Wl,--whole-archive"
3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997 llvm_cv_os_type="GNU"
3998 llvm_cv_platform_type="Unix" ;;
4000 llvm_cv_link_all_option="-Wl,-z,allextract"
4001 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4002 llvm_cv_os_type="SunOS"
4003 llvm_cv_platform_type="Unix" ;;
4005 llvm_cv_link_all_option="-Wl,-z,allextract"
4006 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4007 llvm_cv_os_type="AuroraUX"
4008 llvm_cv_platform_type="Unix" ;;
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Win32"
4013 llvm_cv_platform_type="Win32" ;;
4015 llvm_cv_link_all_option="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="MingW"
4018 llvm_cv_platform_type="Win32" ;;
4020 llvm_cv_link_all_option="-Wl,--whole-archive"
4021 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022 llvm_cv_os_type="Haiku"
4023 llvm_cv_platform_type="Unix" ;;
4025 llvm_cv_link_all_option="-Wl,--whole-archive"
4026 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4027 llvm_cv_os_type="Freestanding"
4028 llvm_cv_platform_type="Unix" ;;
4030 llvm_cv_link_all_option="-Wl,--whole-archive"
4031 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4032 llvm_cv_os_type="Freestanding"
4033 llvm_cv_platform_type="Unix" ;;
4035 llvm_cv_link_all_option=""
4036 llvm_cv_no_link_all_option=""
4037 llvm_cv_os_type="Unknown"
4038 llvm_cv_platform_type="Unknown" ;;
4041 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4042 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4044 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4045 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4046 if test "${llvm_cv_target_os_type+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 llvm_cv_target_os_type="AIX" ;;
4053 llvm_cv_target_os_type="IRIX" ;;
4055 llvm_cv_target_os_type="Cygwin" ;;
4057 llvm_cv_target_os_type="Darwin" ;;
4059 llvm_cv_target_os_type="Minix" ;;
4061 llvm_cv_target_os_type="FreeBSD" ;;
4063 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4065 llvm_cv_target_os_type="OpenBSD" ;;
4067 llvm_cv_target_os_type="NetBSD" ;;
4069 llvm_cv_target_os_type="DragonFly" ;;
4071 llvm_cv_target_os_type="HP-UX" ;;
4073 llvm_cv_target_os_type="Interix" ;;
4075 llvm_cv_target_os_type="Linux" ;;
4077 llvm_cv_target_os_type="GNU" ;;
4079 llvm_cv_target_os_type="SunOS" ;;
4081 llvm_cv_target_os_type="AuroraUX" ;;
4083 llvm_cv_target_os_type="Win32" ;;
4085 llvm_cv_target_os_type="MingW" ;;
4087 llvm_cv_target_os_type="Haiku" ;;
4089 llvm_cv_target_os_type="RTEMS" ;;
4091 llvm_cv_target_os_type="NativeClient" ;;
4093 llvm_cv_target_os_type="Freestanding" ;;
4095 llvm_cv_target_os_type="Unknown" ;;
4098 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4099 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4101 if test "$llvm_cv_os_type" = "Unknown" ; then
4102 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4103 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4104 { (exit 1); exit 1; }; }
4109 HOST_OS=$llvm_cv_os_type
4111 TARGET_OS=$llvm_cv_target_os_type
4114 LINKALL=$llvm_cv_link_all_option
4116 NOLINKALL=$llvm_cv_no_link_all_option
4119 case $llvm_cv_platform_type in
4122 cat >>confdefs.h <<\_ACEOF
4123 #define LLVM_ON_UNIX 1
4133 cat >>confdefs.h <<\_ACEOF
4134 #define LLVM_ON_WIN32 1
4144 { echo "$as_me:$LINENO: checking target architecture" >&5
4145 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4146 if test "${llvm_cv_target_arch+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 i?86-*) llvm_cv_target_arch="x86" ;;
4151 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4152 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4153 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4154 arm*-*) llvm_cv_target_arch="ARM" ;;
4155 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4156 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4157 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4158 xcore-*) llvm_cv_target_arch="XCore" ;;
4159 msp430-*) llvm_cv_target_arch="MSP430" ;;
4160 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4161 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4162 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4163 *) llvm_cv_target_arch="Unknown" ;;
4166 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4167 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4169 if test "$llvm_cv_target_arch" = "Unknown" ; then
4170 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4171 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4174 case "$llvm_cv_target_arch" in
4175 x86) LLVM_NATIVE_ARCH="X86" ;;
4176 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4177 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4180 ARCH=$llvm_cv_target_arch
4182 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4186 i?86-*) host_arch="x86" ;;
4187 amd64-* | x86_64-*) host_arch="x86_64" ;;
4188 sparc*-*) host_arch="Sparc" ;;
4189 powerpc*-*) host_arch="PowerPC" ;;
4190 arm*-*) host_arch="ARM" ;;
4191 aarch64*-*) host_arch="AArch64" ;;
4192 mips-* | mips64-*) host_arch="Mips" ;;
4193 mipsel-* | mips64el-*) host_arch="Mips" ;;
4194 xcore-*) host_arch="XCore" ;;
4195 msp430-*) host_arch="MSP430" ;;
4196 hexagon-*) host_arch="Hexagon" ;;
4197 s390x-*) host_arch="SystemZ" ;;
4198 *) host_arch="Unknown" ;;
4201 if test "$host_arch" = "Unknown" ; then
4202 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4203 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4206 HOST_ARCH=$host_arch
4209 if test "$cross_compiling" = yes; then
4210 LLVM_CROSS_COMPILING=1
4213 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4214 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4215 if test "${ac_cv_build_exeext+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4219 ac_cv_build_exeext=.exe
4221 ac_build_prefix=${build_alias}-
4223 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4224 set dummy ${ac_build_prefix}gcc; ac_word=$2
4225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test -n "$BUILD_CC"; then
4231 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 BUILD_CC=$ac_cv_prog_BUILD_CC
4251 if test -n "$BUILD_CC"; then
4252 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4253 echo "${ECHO_T}$BUILD_CC" >&6; }
4255 { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4260 if test -z "$BUILD_CC"; then
4261 # Extract the first word of "gcc", so it can be a program name with args.
4262 set dummy gcc; ac_word=$2
4263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 if test -n "$BUILD_CC"; then
4269 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_BUILD_CC="gcc"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 BUILD_CC=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6; }
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4298 if test -z "$BUILD_CC"; then
4299 # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$BUILD_CC"; then
4307 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318 ac_prog_rejected=yes
4321 ac_cv_prog_BUILD_CC="cc"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 if test $ac_prog_rejected = yes; then
4330 # We found a bogon in the path, so make sure we never use it.
4331 set dummy $ac_cv_prog_BUILD_CC
4333 if test $# != 0; then
4334 # We chose a different compiler from the bogus one.
4335 # However, it has the same basename, so the bogon will be chosen
4336 # first if we set BUILD_CC to just the basename; use the full file name.
4338 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4343 BUILD_CC=$ac_cv_prog_BUILD_CC
4344 if test -n "$BUILD_CC"; then
4345 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4346 echo "${ECHO_T}$BUILD_CC" >&6; }
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4355 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4356 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4357 { (exit 1); exit 1; }; }
4358 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4360 echo 'int main () { return 0; }' > conftest.$ac_ext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4363 (eval $ac_build_link) 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; then
4367 for file in conftest.*; do
4369 *.c | *.o | *.obj | *.dSYM) ;;
4370 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4374 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4375 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4376 { (exit 1); exit 1; }; }
4379 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4384 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4385 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4386 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4387 ac_build_exeext=$BUILD_EXEEXT
4389 ac_build_prefix=${build_alias}-
4390 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}g++; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test -n "$BUILD_CXX"; then
4398 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4418 if test -n "$BUILD_CXX"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4420 echo "${ECHO_T}$BUILD_CXX" >&6; }
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test -z "$BUILD_CXX"; then
4428 # Extract the first word of "g++", so it can be a program name with args.
4429 set dummy g++; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CXX"; then
4436 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CXX="g++"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4456 if test -n "$BUILD_CXX"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4458 echo "${ECHO_T}$BUILD_CXX" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CXX"; then
4466 # Extract the first word of "c++", so it can be a program name with args.
4467 set dummy c++; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$BUILD_CXX"; then
4474 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4485 ac_prog_rejected=yes
4488 ac_cv_prog_BUILD_CXX="c++"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CXX
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CXX to just the basename; use the full file name.
4505 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4510 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4511 if test -n "$BUILD_CXX"; then
4512 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4513 echo "${ECHO_T}$BUILD_CXX" >&6; }
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4523 LLVM_CROSS_COMPILING=0
4527 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4538 # Check whether --enable-libcpp was given.
4539 if test "${enable_libcpp+set}" = set; then
4540 enableval=$enable_libcpp;
4545 case "$enableval" in
4546 yes) ENABLE_LIBCPP=1
4550 default) ENABLE_LIBCPP=0
4552 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4553 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4554 { (exit 1); exit 1; }; } ;;
4557 # Check whether --enable-compiler-version-checks was given.
4558 if test "${enable_compiler_version_checks+set}" = set; then
4559 enableval=$enable_compiler_version_checks;
4564 case "$enableval" in
4569 ac_cpp='$CXXCPP $CPPFLAGS'
4570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4574 case "$llvm_cv_cxx_compiler" in
4576 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4577 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4585 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4586 #error This version of Clang is too old to build LLVM
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_compile") 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4605 { (case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest.$ac_objext'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 { echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6; }
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4632 { { echo "$as_me:$LINENO: error:
4633 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4634 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4635 bypass these sanity checks." >&5
4636 echo "$as_me: error:
4637 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4638 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4639 bypass these sanity checks." >&2;}
4640 { (exit 1); exit 1; }; }
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 if test "$ENABLE_LIBCPP" -eq 0 ; then
4646 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4647 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4648 llvm_cv_old_cxxflags="$CXXFLAGS"
4649 CXXFLAGS="$CXXFLAGS -std=c++0x"
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4658 std::atomic<float> x(0.0f);
4659 int main() { return (float)x; }
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (ac_try="$ac_link"
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669 (eval "$ac_link") 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest$ac_exeext'
4687 { (case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_try") 2>&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 { echo "$as_me:$LINENO: result: yes" >&5
4697 echo "${ECHO_T}yes" >&6; }
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704 { { echo "$as_me:$LINENO: error:
4705 We detected a missing feature in the standard C++ library that was known to be
4706 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4707 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4708 than 4.7. You will need to update your system and ensure Clang uses the newer
4711 If this error is incorrect or you need to force things to work, you may pass
4712 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4713 echo "$as_me: error:
4714 We detected a missing feature in the standard C++ library that was known to be
4715 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4716 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4717 than 4.7. You will need to update your system and ensure Clang uses the newer
4720 If this error is incorrect or you need to force things to work, you may pass
4721 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4722 { (exit 1); exit 1; }; }
4725 rm -f core conftest.err conftest.$ac_objext \
4726 conftest$ac_exeext conftest.$ac_ext
4727 CXXFLAGS="$llvm_cv_old_cxxflags"
4731 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4732 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4733 cat >conftest.$ac_ext <<_ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4740 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4741 #error This version of GCC is too old to build LLVM
4745 rm -f conftest.$ac_objext
4746 if { (ac_try="$ac_compile"
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752 (eval "$ac_compile") 2>conftest.er1
4754 grep -v '^ *+' conftest.er1 >conftest.err
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4760 { (case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765 (eval "$ac_try") 2>&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; } &&
4769 { ac_try='test -s conftest.$ac_objext'
4770 { (case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_try") 2>&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 { echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6; }
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787 { { echo "$as_me:$LINENO: error:
4788 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4789 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4790 bypass these sanity checks." >&5
4791 echo "$as_me: error:
4792 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4793 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4794 bypass these sanity checks." >&2;}
4795 { (exit 1); exit 1; }; }
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4813 { (exit 1); exit 1; }; }
4817 # Check whether --enable-cxx1y was given.
4818 if test "${enable_cxx1y+set}" = set; then
4819 enableval=$enable_cxx1y;
4824 case "$enableval" in
4829 default) ENABLE_CXX1Y=0
4831 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4832 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4833 { (exit 1); exit 1; }; } ;;
4836 # Check whether --enable-split-dwarf was given.
4837 if test "${enable_split_dwarf+set}" = set; then
4838 enableval=$enable_split_dwarf;
4843 case "$enableval" in
4844 yes) ENABLE_SPLIT_DWARF=1
4846 no) ENABLE_SPLIT_DWARF=0
4848 default) ENABLE_SPLIT_DWARF=0
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4856 # Check whether --enable-clang-arcmt was given.
4857 if test "${enable_clang_arcmt+set}" = set; then
4858 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4863 case "$enableval" in
4864 yes) ENABLE_CLANG_ARCMT=1
4866 no) ENABLE_CLANG_ARCMT=0
4868 default) ENABLE_CLANG_ARCMT=1
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4875 clang_static_analyzer="yes"
4876 # Check whether --enable-clang-static-analyzer was given.
4877 if test "${enable_clang_static_analyzer+set}" = set; then
4878 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4883 case "$enableval" in
4884 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4887 if test ${clang_arcmt} != "no" ; then
4888 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4889 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4890 { (exit 1); exit 1; }; }
4892 ENABLE_CLANG_STATIC_ANALYZER=0
4895 default) ENABLE_CLANG_STATIC_ANALYZER=1
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4902 # Check whether --enable-clang-rewriter was given.
4903 if test "${enable_clang_rewriter+set}" = set; then
4904 enableval=$enable_clang_rewriter;
4909 case "$enableval" in
4910 yes) ENABLE_CLANG_REWRITER=1
4913 if test ${clang_arcmt} != "no" ; then
4914 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4915 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4916 { (exit 1); exit 1; }; }
4918 if test ${clang_static_analyzer} != "no" ; then
4919 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4920 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4921 { (exit 1); exit 1; }; }
4923 ENABLE_CLANG_REWRITER=0
4926 default) ENABLE_CLANG_REWRITER=1
4928 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4929 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4930 { (exit 1); exit 1; }; } ;;
4933 # Check whether --enable-optimized was given.
4934 if test "${enable_optimized+set}" = set; then
4935 enableval=$enable_optimized;
4940 if test ${enableval} = "no" ; then
4944 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4948 # Check whether --enable-profiling was given.
4949 if test "${enable_profiling+set}" = set; then
4950 enableval=$enable_profiling;
4955 if test ${enableval} = "no" ; then
4959 ENABLE_PROFILING=ENABLE_PROFILING=1
4963 # Check whether --enable-assertions was given.
4964 if test "${enable_assertions+set}" = set; then
4965 enableval=$enable_assertions;
4970 if test ${enableval} = "yes" ; then
4974 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4978 # Check whether --enable-werror was given.
4979 if test "${enable_werror+set}" = set; then
4980 enableval=$enable_werror;
4985 case "$enableval" in
4986 yes) ENABLE_WERROR=1
4990 default) ENABLE_WERROR=0
4992 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4993 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4994 { (exit 1); exit 1; }; } ;;
4997 # Check whether --enable-expensive-checks was given.
4998 if test "${enable_expensive_checks+set}" = set; then
4999 enableval=$enable_expensive_checks;
5004 if test ${enableval} = "yes" ; then
5005 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5007 EXPENSIVE_CHECKS=yes
5010 ENABLE_EXPENSIVE_CHECKS=
5016 # Check whether --enable-debug-runtime was given.
5017 if test "${enable_debug_runtime+set}" = set; then
5018 enableval=$enable_debug_runtime;
5023 if test ${enableval} = "no" ; then
5027 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5031 # Check whether --enable-debug-symbols was given.
5032 if test "${enable_debug_symbols+set}" = set; then
5033 enableval=$enable_debug_symbols;
5038 if test ${enableval} = "no" ; then
5042 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5046 # Check whether --enable-keep-symbols was given.
5047 if test "${enable_keep_symbols+set}" = set; then
5048 enableval=$enable_keep_symbols;
5053 if test ${enableval} = "no" ; then
5057 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5061 # Check whether --enable-jit was given.
5062 if test "${enable_jit+set}" = set; then
5063 enableval=$enable_jit;
5068 if test ${enableval} = "no"
5073 case "$llvm_cv_target_arch" in
5074 x86) TARGET_HAS_JIT=1
5076 Sparc) TARGET_HAS_JIT=0
5078 PowerPC) TARGET_HAS_JIT=1
5080 x86_64) TARGET_HAS_JIT=1
5082 ARM) TARGET_HAS_JIT=1
5084 AArch64) TARGET_HAS_JIT=0
5086 Mips) TARGET_HAS_JIT=1
5088 XCore) TARGET_HAS_JIT=0
5090 MSP430) TARGET_HAS_JIT=0
5092 Hexagon) TARGET_HAS_JIT=0
5094 NVPTX) TARGET_HAS_JIT=0
5096 SystemZ) TARGET_HAS_JIT=1
5103 TARGETS_WITH_JIT="AArch64 ARM Mips PowerPC SystemZ X86"
5104 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5107 # Check whether --enable-docs was given.
5108 if test "${enable_docs+set}" = set; then
5109 enableval=$enable_docs;
5114 case "$enableval" in
5119 default) ENABLE_DOCS=1
5121 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5122 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5123 { (exit 1); exit 1; }; } ;;
5126 # Check whether --enable-doxygen was given.
5127 if test "${enable_doxygen+set}" = set; then
5128 enableval=$enable_doxygen;
5133 case "$enableval" in
5134 yes) ENABLE_DOXYGEN=1
5136 no) ENABLE_DOXYGEN=0
5138 default) ENABLE_DOXYGEN=0
5140 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5141 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5142 { (exit 1); exit 1; }; } ;;
5145 # Check whether --enable-threads was given.
5146 if test "${enable_threads+set}" = set; then
5147 enableval=$enable_threads;
5152 case "$enableval" in
5153 yes) LLVM_ENABLE_THREADS=1
5155 no) LLVM_ENABLE_THREADS=0
5157 default) LLVM_ENABLE_THREADS=1
5159 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5160 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5161 { (exit 1); exit 1; }; } ;;
5164 cat >>confdefs.h <<_ACEOF
5165 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5169 # Check whether --enable-pthreads was given.
5170 if test "${enable_pthreads+set}" = set; then
5171 enableval=$enable_pthreads;
5176 case "$enableval" in
5177 yes) ENABLE_PTHREADS=1
5179 no) ENABLE_PTHREADS=0
5181 default) ENABLE_PTHREADS=1
5183 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5185 { (exit 1); exit 1; }; } ;;
5188 # Check whether --enable-zlib was given.
5189 if test "${enable_zlib+set}" = set; then
5190 enableval=$enable_zlib;
5195 case "$enableval" in
5196 yes) LLVM_ENABLE_ZLIB=1
5198 no) LLVM_ENABLE_ZLIB=0
5200 default) LLVM_ENABLE_ZLIB=1
5202 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5207 cat >>confdefs.h <<_ACEOF
5208 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5212 # Check whether --enable-pic was given.
5213 if test "${enable_pic+set}" = set; then
5214 enableval=$enable_pic;
5219 case "$enableval" in
5224 default) ENABLE_PIC=1
5226 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5227 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5228 { (exit 1); exit 1; }; } ;;
5231 cat >>confdefs.h <<_ACEOF
5232 #define ENABLE_PIC $ENABLE_PIC
5236 # Check whether --enable-shared was given.
5237 if test "${enable_shared+set}" = set; then
5238 enableval=$enable_shared;
5243 case "$enableval" in
5244 yes) ENABLE_SHARED=1
5248 default) ENABLE_SHARED=0
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5255 # Check whether --enable-embed-stdcxx was given.
5256 if test "${enable_embed_stdcxx+set}" = set; then
5257 enableval=$enable_embed_stdcxx;
5262 case "$enableval" in
5263 yes) ENABLE_EMBED_STDCXX=1
5265 no) ENABLE_EMBED_STDCXX=0
5267 default) ENABLE_EMBED_STDCXX=0
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 # Check whether --enable-timestamps was given.
5275 if test "${enable_timestamps+set}" = set; then
5276 enableval=$enable_timestamps;
5281 case "$enableval" in
5282 yes) ENABLE_TIMESTAMPS=1
5284 no) ENABLE_TIMESTAMPS=0
5286 default) ENABLE_TIMESTAMPS=1
5288 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5289 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5290 { (exit 1); exit 1; }; } ;;
5293 cat >>confdefs.h <<_ACEOF
5294 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5298 # Check whether --enable-backtraces was given.
5299 if test "${enable_backtraces+set}" = set; then
5300 enableval=$enable_backtraces; case "$enableval" in
5301 yes) llvm_cv_enable_backtraces="yes" ;;
5302 no) llvm_cv_enable_backtraces="no" ;;
5303 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5304 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5305 { (exit 1); exit 1; }; } ;;
5308 llvm_cv_enable_backtraces="yes"
5311 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5313 cat >>confdefs.h <<\_ACEOF
5314 #define ENABLE_BACKTRACES 1
5319 # Check whether --enable-crash-overrides was given.
5320 if test "${enable_crash_overrides+set}" = set; then
5321 enableval=$enable_crash_overrides; case "$enableval" in
5322 yes) llvm_cv_enable_crash_overrides="yes" ;;
5323 no) llvm_cv_enable_crash_overrides="no" ;;
5324 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5325 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5326 { (exit 1); exit 1; }; } ;;
5329 llvm_cv_enable_crash_overrides="yes"
5332 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5334 cat >>confdefs.h <<\_ACEOF
5335 #define ENABLE_CRASH_OVERRIDES 1
5340 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5341 ALL_TARGETS=$ALL_TARGETS
5345 # Check whether --enable-targets was given.
5346 if test "${enable_targets+set}" = set; then
5347 enableval=$enable_targets;
5352 if test "$enableval" = host-only ; then
5355 case "$enableval" in
5356 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5357 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5359 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5361 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5362 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5363 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5364 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5365 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5366 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5367 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5368 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5369 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5370 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5371 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5372 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5373 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5374 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5375 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5376 host) case "$llvm_cv_target_arch" in
5377 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5378 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5379 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5380 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5381 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5382 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5383 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5384 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5385 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5386 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5387 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5388 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5389 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5390 echo "$as_me: error: Can not set target to build" >&2;}
5391 { (exit 1); exit 1; }; } ;;
5393 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5394 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5395 { (exit 1); exit 1; }; } ;;
5401 # Check whether --enable-experimental-targets was given.
5402 if test "${enable_experimental_targets+set}" = set; then
5403 enableval=$enable_experimental_targets;
5409 if test ${enableval} != "disable"
5411 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5414 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5417 for a_target in $TARGETS_TO_BUILD; do
5418 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5424 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5425 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5426 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5427 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5428 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5429 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5431 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5432 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5435 cat >>confdefs.h <<_ACEOF
5436 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5440 cat >>confdefs.h <<_ACEOF
5441 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5445 cat >>confdefs.h <<_ACEOF
5446 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5450 cat >>confdefs.h <<_ACEOF
5451 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5454 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5456 cat >>confdefs.h <<_ACEOF
5457 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5461 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5463 cat >>confdefs.h <<_ACEOF
5464 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5471 LLVM_ENUM_TARGETS=""
5472 LLVM_ENUM_ASM_PRINTERS=""
5473 LLVM_ENUM_ASM_PARSERS=""
5474 LLVM_ENUM_DISASSEMBLERS=""
5475 for target_to_build in $TARGETS_TO_BUILD; do
5476 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5477 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5478 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5480 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5481 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5483 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5484 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5493 # Check whether --with-optimize-option was given.
5494 if test "${with_optimize_option+set}" = set; then
5495 withval=$with_optimize_option;
5500 { echo "$as_me:$LINENO: checking optimization flags" >&5
5501 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5504 case "$llvm_cv_os_type" in
5505 FreeBSD) optimize_option=-O2 ;;
5506 MingW) optimize_option=-O2 ;;
5507 *) optimize_option=-O3 ;;
5509 *) optimize_option="$withval" ;;
5511 OPTIMIZE_OPTION=$optimize_option
5513 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5514 echo "${ECHO_T}$optimize_option" >&6; }
5517 # Check whether --with-extra-options was given.
5518 if test "${with_extra_options+set}" = set; then
5519 withval=$with_extra_options;
5525 default) EXTRA_OPTIONS= ;;
5526 *) EXTRA_OPTIONS=$withval ;;
5528 EXTRA_OPTIONS=$EXTRA_OPTIONS
5532 # Check whether --with-extra-ld-options was given.
5533 if test "${with_extra_ld_options+set}" = set; then
5534 withval=$with_extra_ld_options;
5540 default) EXTRA_LD_OPTIONS= ;;
5541 *) EXTRA_LD_OPTIONS=$withval ;;
5543 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5546 # Check whether --enable-bindings was given.
5547 if test "${enable_bindings+set}" = set; then
5548 enableval=$enable_bindings;
5553 BINDINGS_TO_BUILD=""
5554 case "$enableval" in
5555 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5556 all ) BINDINGS_TO_BUILD="ocaml" ;;
5557 none | no) BINDINGS_TO_BUILD="" ;;
5558 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5559 case "$a_binding" in
5560 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5561 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5562 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5563 { (exit 1); exit 1; }; } ;;
5570 # Check whether --with-ocaml-libdir was given.
5571 if test "${with_ocaml_libdir+set}" = set; then
5572 withval=$with_ocaml_libdir;
5578 auto) with_ocaml_libdir="$withval" ;;
5579 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5580 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5581 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5582 { (exit 1); exit 1; }; } ;;
5586 # Check whether --with-clang-srcdir was given.
5587 if test "${with_clang_srcdir+set}" = set; then
5588 withval=$with_clang_srcdir;
5594 -) clang_src_root="" ;;
5595 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5596 *) clang_src_root="$ac_pwd/$withval" ;;
5598 CLANG_SRC_ROOT=$clang_src_root
5602 # Check whether --with-clang-resource-dir was given.
5603 if test "${with_clang_resource_dir+set}" = set; then
5604 withval=$with_clang_resource_dir;
5610 cat >>confdefs.h <<_ACEOF
5611 #define CLANG_RESOURCE_DIR "$withval"
5616 # Check whether --with-c-include-dirs was given.
5617 if test "${with_c_include_dirs+set}" = set; then
5618 withval=$with_c_include_dirs;
5624 cat >>confdefs.h <<_ACEOF
5625 #define C_INCLUDE_DIRS "$withval"
5629 # Clang normally uses the system c++ headers and libraries. With this option,
5630 # clang will use the ones provided by a gcc installation instead. This option should
5631 # be passed the same value that was used with --prefix when configuring gcc.
5633 # Check whether --with-gcc-toolchain was given.
5634 if test "${with_gcc_toolchain+set}" = set; then
5635 withval=$with_gcc_toolchain;
5641 cat >>confdefs.h <<_ACEOF
5642 #define GCC_INSTALL_PREFIX "$withval"
5647 # Check whether --with-default-sysroot was given.
5648 if test "${with_default_sysroot+set}" = set; then
5649 withval=$with_default_sysroot;
5655 cat >>confdefs.h <<_ACEOF
5656 #define DEFAULT_SYSROOT "$withval"
5661 # Check whether --with-binutils-include was given.
5662 if test "${with_binutils_include+set}" = set; then
5663 withval=$with_binutils_include;
5669 default) WITH_BINUTILS_INCDIR=default ;;
5670 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5671 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5672 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5673 { (exit 1); exit 1; }; } ;;
5675 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5676 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5678 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5679 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5680 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5681 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5682 { (exit 1); exit 1; }; };
5687 # Check whether --with-bug-report-url was given.
5688 if test "${with_bug_report_url+set}" = set; then
5689 withval=$with_bug_report_url;
5691 withval="http://llvm.org/bugs/"
5695 cat >>confdefs.h <<_ACEOF
5696 #define BUG_REPORT_URL "$withval"
5700 # Check whether --enable-terminfo was given.
5701 if test "${enable_terminfo+set}" = set; then
5702 enableval=$enable_terminfo; case "$enableval" in
5703 yes) llvm_cv_enable_terminfo="yes" ;;
5704 no) llvm_cv_enable_terminfo="no" ;;
5705 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5706 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5707 { (exit 1); exit 1; }; } ;;
5710 llvm_cv_enable_terminfo="yes"
5713 case "$llvm_cv_enable_terminfo" in
5714 yes) ENABLE_TERMINFO=1
5716 no) ENABLE_TERMINFO=0
5720 # Check whether --enable-libedit was given.
5721 if test "${enable_libedit+set}" = set; then
5722 enableval=$enable_libedit; case "$enableval" in
5723 yes) llvm_cv_enable_libedit="yes" ;;
5724 no) llvm_cv_enable_libedit="no" ;;
5725 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5726 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5727 { (exit 1); exit 1; }; } ;;
5730 llvm_cv_enable_libedit="yes"
5734 # Check whether --enable-libffi was given.
5735 if test "${enable_libffi+set}" = set; then
5736 enableval=$enable_libffi; case "$enableval" in
5737 yes) llvm_cv_enable_libffi="yes" ;;
5738 no) llvm_cv_enable_libffi="no" ;;
5739 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5740 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5741 { (exit 1); exit 1; }; } ;;
5744 llvm_cv_enable_libffi=no
5749 # Check whether --with-internal-prefix was given.
5750 if test "${with_internal_prefix+set}" = set; then
5751 withval=$with_internal_prefix;
5756 INTERNAL_PREFIX=$withval
5760 { echo "$as_me:$LINENO: checking for GNU make" >&5
5761 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5762 if test "${llvm_cv_gnu_make_command+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 llvm_cv_gnu_make_command=''
5766 for a in "$MAKE" make gmake gnumake ; do
5767 if test -z "$a" ; then continue ; fi ;
5768 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5770 llvm_cv_gnu_make_command=$a ;
5775 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5776 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5777 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5781 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5782 echo "${ECHO_T}\"Not found\"" >&6; };
5786 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5787 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5789 if test "$LN_S" = "ln -s"; then
5790 { echo "$as_me:$LINENO: result: yes" >&5
5791 echo "${ECHO_T}yes" >&6; }
5793 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5794 echo "${ECHO_T}no, using $LN_S" >&6; }
5797 # Extract the first word of "nm", so it can be a program name with args.
5798 set dummy nm; ac_word=$2
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801 if test "${ac_cv_path_NM+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5829 if test -n "$NM"; then
5830 { echo "$as_me:$LINENO: result: $NM" >&5
5831 echo "${ECHO_T}$NM" >&6; }
5833 { echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6; }
5838 # Extract the first word of "cmp", so it can be a program name with args.
5839 set dummy cmp; ac_word=$2
5840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5842 if test "${ac_cv_path_CMP+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5870 if test -n "$CMP"; then
5871 { echo "$as_me:$LINENO: result: $CMP" >&5
5872 echo "${ECHO_T}$CMP" >&6; }
5874 { echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6; }
5879 # Extract the first word of "cp", so it can be a program name with args.
5880 set dummy cp; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_path_CP+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5911 if test -n "$CP"; then
5912 { echo "$as_me:$LINENO: result: $CP" >&5
5913 echo "${ECHO_T}$CP" >&6; }
5915 { echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6; }
5920 # Extract the first word of "date", so it can be a program name with args.
5921 set dummy date; ac_word=$2
5922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924 if test "${ac_cv_path_DATE+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5951 DATE=$ac_cv_path_DATE
5952 if test -n "$DATE"; then
5953 { echo "$as_me:$LINENO: result: $DATE" >&5
5954 echo "${ECHO_T}$DATE" >&6; }
5956 { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5961 # Extract the first word of "find", so it can be a program name with args.
5962 set dummy find; ac_word=$2
5963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965 if test "${ac_cv_path_FIND+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5992 FIND=$ac_cv_path_FIND
5993 if test -n "$FIND"; then
5994 { echo "$as_me:$LINENO: result: $FIND" >&5
5995 echo "${ECHO_T}$FIND" >&6; }
5997 { echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6; }
6002 # Extract the first word of "grep", so it can be a program name with args.
6003 set dummy grep; ac_word=$2
6004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006 if test "${ac_cv_path_GREP+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6021 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6033 GREP=$ac_cv_path_GREP
6034 if test -n "$GREP"; then
6035 { echo "$as_me:$LINENO: result: $GREP" >&5
6036 echo "${ECHO_T}$GREP" >&6; }
6038 { echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6; }
6043 # Extract the first word of "mkdir", so it can be a program name with args.
6044 set dummy mkdir; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_path_MKDIR+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6074 MKDIR=$ac_cv_path_MKDIR
6075 if test -n "$MKDIR"; then
6076 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6077 echo "${ECHO_T}$MKDIR" >&6; }
6079 { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6084 # Extract the first word of "mv", so it can be a program name with args.
6085 set dummy mv; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_path_MV+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6116 if test -n "$MV"; then
6117 { echo "$as_me:$LINENO: result: $MV" >&5
6118 echo "${ECHO_T}$MV" >&6; }
6120 { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6125 if test -n "$ac_tool_prefix"; then
6126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6130 if test "${ac_cv_prog_RANLIB+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 if test -n "$RANLIB"; then
6134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6143 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 RANLIB=$ac_cv_prog_RANLIB
6154 if test -n "$RANLIB"; then
6155 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6156 echo "${ECHO_T}$RANLIB" >&6; }
6158 { echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6; }
6164 if test -z "$ac_cv_prog_RANLIB"; then
6165 ac_ct_RANLIB=$RANLIB
6166 # Extract the first word of "ranlib", so it can be a program name with args.
6167 set dummy ranlib; ac_word=$2
6168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 if test -n "$ac_ct_RANLIB"; then
6174 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_ac_ct_RANLIB="ranlib"
6184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6194 if test -n "$ac_ct_RANLIB"; then
6195 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6196 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6198 { echo "$as_me:$LINENO: result: no" >&5
6199 echo "${ECHO_T}no" >&6; }
6202 if test "x$ac_ct_RANLIB" = x; then
6205 case $cross_compiling:$ac_tool_warned in
6207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6208 whose name does not start with the host triplet. If you think this
6209 configuration is useful to you, please write to autoconf@gnu.org." >&5
6210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6211 whose name does not start with the host triplet. If you think this
6212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6213 ac_tool_warned=yes ;;
6215 RANLIB=$ac_ct_RANLIB
6218 RANLIB="$ac_cv_prog_RANLIB"
6221 if test -n "$ac_tool_prefix"; then
6222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6223 set dummy ${ac_tool_prefix}ar; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_AR+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 if test -n "$AR"; then
6230 ac_cv_prog_AR="$AR" # Let the user override the test.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_AR="${ac_tool_prefix}ar"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 if test -n "$AR"; then
6251 { echo "$as_me:$LINENO: result: $AR" >&5
6252 echo "${ECHO_T}$AR" >&6; }
6254 { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6260 if test -z "$ac_cv_prog_AR"; then
6262 # Extract the first word of "ar", so it can be a program name with args.
6263 set dummy ar; ac_word=$2
6264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 if test -n "$ac_ct_AR"; then
6270 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_ac_ct_AR="ar"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6290 if test -n "$ac_ct_AR"; then
6291 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6292 echo "${ECHO_T}$ac_ct_AR" >&6; }
6294 { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6298 if test "x$ac_ct_AR" = x; then
6301 case $cross_compiling:$ac_tool_warned in
6303 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6304 whose name does not start with the host triplet. If you think this
6305 configuration is useful to you, please write to autoconf@gnu.org." >&5
6306 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6307 whose name does not start with the host triplet. If you think this
6308 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6309 ac_tool_warned=yes ;;
6317 # Extract the first word of "rm", so it can be a program name with args.
6318 set dummy rm; ac_word=$2
6319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6321 if test "${ac_cv_path_RM+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6349 if test -n "$RM"; then
6350 { echo "$as_me:$LINENO: result: $RM" >&5
6351 echo "${ECHO_T}$RM" >&6; }
6353 { echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6; }
6358 # Extract the first word of "sed", so it can be a program name with args.
6359 set dummy sed; ac_word=$2
6360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362 if test "${ac_cv_path_SED+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6390 if test -n "$SED"; then
6391 { echo "$as_me:$LINENO: result: $SED" >&5
6392 echo "${ECHO_T}$SED" >&6; }
6394 { echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6; }
6399 # Extract the first word of "tar", so it can be a program name with args.
6400 set dummy tar; ac_word=$2
6401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6403 if test "${ac_cv_path_TAR+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6431 if test -n "$TAR"; then
6432 { echo "$as_me:$LINENO: result: $TAR" >&5
6433 echo "${ECHO_T}$TAR" >&6; }
6435 { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6440 # Extract the first word of "pwd", so it can be a program name with args.
6441 set dummy pwd; ac_word=$2
6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444 if test "${ac_cv_path_BINPWD+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6471 BINPWD=$ac_cv_path_BINPWD
6472 if test -n "$BINPWD"; then
6473 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6474 echo "${ECHO_T}$BINPWD" >&6; }
6476 { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6482 # Extract the first word of "Graphviz", so it can be a program name with args.
6483 set dummy Graphviz; ac_word=$2
6484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6513 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6514 if test -n "$GRAPHVIZ"; then
6515 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6516 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6518 { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6523 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6525 cat >>confdefs.h <<\_ACEOF
6526 #define HAVE_GRAPHVIZ 1
6529 if test "$llvm_cv_os_type" = "MingW" ; then
6530 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6533 cat >>confdefs.h <<_ACEOF
6534 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6538 # Extract the first word of "dot", so it can be a program name with args.
6539 set dummy dot; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_DOT+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6570 if test -n "$DOT"; then
6571 { echo "$as_me:$LINENO: result: $DOT" >&5
6572 echo "${ECHO_T}$DOT" >&6; }
6574 { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6579 if test "$DOT" != "echo dot" ; then
6581 cat >>confdefs.h <<\_ACEOF
6585 if test "$llvm_cv_os_type" = "MingW" ; then
6586 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6589 cat >>confdefs.h <<_ACEOF
6590 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6594 # Extract the first word of "fdp", so it can be a program name with args.
6595 set dummy fdp; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_path_FDP+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6626 if test -n "$FDP"; then
6627 { echo "$as_me:$LINENO: result: $FDP" >&5
6628 echo "${ECHO_T}$FDP" >&6; }
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6635 if test "$FDP" != "echo fdp" ; then
6637 cat >>confdefs.h <<\_ACEOF
6641 if test "$llvm_cv_os_type" = "MingW" ; then
6642 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6645 cat >>confdefs.h <<_ACEOF
6646 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6650 # Extract the first word of "neato", so it can be a program name with args.
6651 set dummy neato; ac_word=$2
6652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6654 if test "${ac_cv_path_NEATO+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6681 NEATO=$ac_cv_path_NEATO
6682 if test -n "$NEATO"; then
6683 { echo "$as_me:$LINENO: result: $NEATO" >&5
6684 echo "${ECHO_T}$NEATO" >&6; }
6686 { echo "$as_me:$LINENO: result: no" >&5
6687 echo "${ECHO_T}no" >&6; }
6691 if test "$NEATO" != "echo neato" ; then
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_NEATO 1
6697 if test "$llvm_cv_os_type" = "MingW" ; then
6698 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6701 cat >>confdefs.h <<_ACEOF
6702 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6706 # Extract the first word of "twopi", so it can be a program name with args.
6707 set dummy twopi; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_TWOPI+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6737 TWOPI=$ac_cv_path_TWOPI
6738 if test -n "$TWOPI"; then
6739 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6740 echo "${ECHO_T}$TWOPI" >&6; }
6742 { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6747 if test "$TWOPI" != "echo twopi" ; then
6749 cat >>confdefs.h <<\_ACEOF
6750 #define HAVE_TWOPI 1
6753 if test "$llvm_cv_os_type" = "MingW" ; then
6754 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6757 cat >>confdefs.h <<_ACEOF
6758 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6762 # Extract the first word of "circo", so it can be a program name with args.
6763 set dummy circo; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_CIRCO+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6793 CIRCO=$ac_cv_path_CIRCO
6794 if test -n "$CIRCO"; then
6795 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6796 echo "${ECHO_T}$CIRCO" >&6; }
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6803 if test "$CIRCO" != "echo circo" ; then
6805 cat >>confdefs.h <<\_ACEOF
6806 #define HAVE_CIRCO 1
6809 if test "$llvm_cv_os_type" = "MingW" ; then
6810 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6813 cat >>confdefs.h <<_ACEOF
6814 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6818 for ac_prog in gv gsview32
6820 # Extract the first word of "$ac_prog", so it can be a program name with args.
6821 set dummy $ac_prog; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_GV+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 if test -n "$GV"; then
6852 { echo "$as_me:$LINENO: result: $GV" >&5
6853 echo "${ECHO_T}$GV" >&6; }
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6860 test -n "$GV" && break
6862 test -n "$GV" || GV="echo gv"
6864 if test "$GV" != "echo gv" ; then
6866 cat >>confdefs.h <<\_ACEOF
6870 if test "$llvm_cv_os_type" = "MingW" ; then
6871 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6874 cat >>confdefs.h <<_ACEOF
6875 #define LLVM_PATH_GV "$GV${EXEEXT}"
6879 # Extract the first word of "dotty", so it can be a program name with args.
6880 set dummy dotty; ac_word=$2
6881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6883 if test "${ac_cv_path_DOTTY+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6898 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6910 DOTTY=$ac_cv_path_DOTTY
6911 if test -n "$DOTTY"; then
6912 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6913 echo "${ECHO_T}$DOTTY" >&6; }
6915 { echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6; }
6920 if test "$DOTTY" != "echo dotty" ; then
6922 cat >>confdefs.h <<\_ACEOF
6923 #define HAVE_DOTTY 1
6926 if test "$llvm_cv_os_type" = "MingW" ; then
6927 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6930 cat >>confdefs.h <<_ACEOF
6931 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6935 for ac_prog in xdot xdot.py
6937 # Extract the first word of "$ac_prog", so it can be a program name with args.
6938 set dummy $ac_prog; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_XDOT+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 XDOT=$ac_cv_path_XDOT
6968 if test -n "$XDOT"; then
6969 { echo "$as_me:$LINENO: result: $XDOT" >&5
6970 echo "${ECHO_T}$XDOT" >&6; }
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6977 test -n "$XDOT" && break
6979 test -n "$XDOT" || XDOT="echo xdot"
6981 if test "$XDOT" != "echo xdot" ; then
6983 cat >>confdefs.h <<\_ACEOF
6987 if test "$llvm_cv_os_type" = "MingW" ; then
6988 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6991 cat >>confdefs.h <<_ACEOF
6992 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6997 # Find a good install program. We prefer a C program (faster),
6998 # so one script is as good as another. But avoid the broken or
6999 # incompatible versions:
7000 # SysV /etc/install, /usr/sbin/install
7001 # SunOS /usr/etc/install
7002 # IRIX /sbin/install
7004 # AmigaOS /C/install, which installs bootblocks on floppy discs
7005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7008 # OS/2's system install, which has a completely different semantic
7009 # ./install, which can be erroneously created by make from ./install.sh.
7010 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7011 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7012 if test -z "$INSTALL"; then
7013 if test "${ac_cv_path_install+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 # Account for people who put trailing slashes in PATH elements.
7023 ./ | .// | /cC/* | \
7024 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7025 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7028 # OSF1 and SCO ODT 3.0 have their own names for install.
7029 # Don't use installbsd from OSF since it installs stuff as root
7031 for ac_prog in ginstall scoinst install; do
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7034 if test $ac_prog = install &&
7035 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7036 # AIX install. It has an incompatible calling convention.
7038 elif test $ac_prog = install &&
7039 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7040 # program-specific install script used by HP pwplus--don't use.
7043 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7056 if test "${ac_cv_path_install+set}" = set; then
7057 INSTALL=$ac_cv_path_install
7059 # As a last resort, use the slow shell script. Don't cache a
7060 # value for INSTALL within a source directory, because that will
7061 # break other packages using the cache if that directory is
7062 # removed, or if the value is a relative name.
7063 INSTALL=$ac_install_sh
7066 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7067 echo "${ECHO_T}$INSTALL" >&6; }
7069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7070 # It thinks the first close brace ends the variable substitution.
7071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7078 [\\/$]* | ?:[\\/]* ) ;;
7079 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7082 # Extract the first word of "bzip2", so it can be a program name with args.
7083 set dummy bzip2; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_path_BZIP2+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 BZIP2=$ac_cv_path_BZIP2
7113 if test -n "$BZIP2"; then
7114 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7115 echo "${ECHO_T}$BZIP2" >&6; }
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7122 # Extract the first word of "cat", so it can be a program name with args.
7123 set dummy cat; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_CAT+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 if test -n "$CAT"; then
7154 { echo "$as_me:$LINENO: result: $CAT" >&5
7155 echo "${ECHO_T}$CAT" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7162 # Extract the first word of "doxygen", so it can be a program name with args.
7163 set dummy doxygen; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 DOXYGEN=$ac_cv_path_DOXYGEN
7193 if test -n "$DOXYGEN"; then
7194 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7195 echo "${ECHO_T}$DOXYGEN" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7202 # Extract the first word of "groff", so it can be a program name with args.
7203 set dummy groff; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_GROFF+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 GROFF=$ac_cv_path_GROFF
7233 if test -n "$GROFF"; then
7234 { echo "$as_me:$LINENO: result: $GROFF" >&5
7235 echo "${ECHO_T}$GROFF" >&6; }
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7242 # Extract the first word of "gzip", so it can be a program name with args.
7243 set dummy gzip; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 GZIPBIN=$ac_cv_path_GZIPBIN
7273 if test -n "$GZIPBIN"; then
7274 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7275 echo "${ECHO_T}$GZIPBIN" >&6; }
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 # Extract the first word of "pdfroff", so it can be a program name with args.
7283 set dummy pdfroff; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_PDFROFF+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 PDFROFF=$ac_cv_path_PDFROFF
7313 if test -n "$PDFROFF"; then
7314 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7315 echo "${ECHO_T}$PDFROFF" >&6; }
7317 { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7322 # Extract the first word of "zip", so it can be a program name with args.
7323 set dummy zip; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_ZIP+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 if test -n "$ZIP"; then
7354 { echo "$as_me:$LINENO: result: $ZIP" >&5
7355 echo "${ECHO_T}$ZIP" >&6; }
7357 { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7362 for ac_prog in ocamlc
7364 # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_OCAMLC+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 OCAMLC=$ac_cv_path_OCAMLC
7395 if test -n "$OCAMLC"; then
7396 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7397 echo "${ECHO_T}$OCAMLC" >&6; }
7399 { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7404 test -n "$OCAMLC" && break
7407 for ac_prog in ocamlopt
7409 # Extract the first word of "$ac_prog", so it can be a program name with args.
7410 set dummy $ac_prog; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 OCAMLOPT=$ac_cv_path_OCAMLOPT
7440 if test -n "$OCAMLOPT"; then
7441 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7442 echo "${ECHO_T}$OCAMLOPT" >&6; }
7444 { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7449 test -n "$OCAMLOPT" && break
7452 for ac_prog in ocamldep
7454 # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 OCAMLDEP=$ac_cv_path_OCAMLDEP
7485 if test -n "$OCAMLDEP"; then
7486 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7487 echo "${ECHO_T}$OCAMLDEP" >&6; }
7489 { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7494 test -n "$OCAMLDEP" && break
7497 for ac_prog in ocamldoc
7499 # Extract the first word of "$ac_prog", so it can be a program name with args.
7500 set dummy $ac_prog; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 OCAMLDOC=$ac_cv_path_OCAMLDOC
7530 if test -n "$OCAMLDOC"; then
7531 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7532 echo "${ECHO_T}$OCAMLDOC" >&6; }
7534 { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7539 test -n "$OCAMLDOC" && break
7542 for ac_prog in gas as
7544 # Extract the first word of "$ac_prog", so it can be a program name with args.
7545 set dummy $ac_prog; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_GAS+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 if test -n "$GAS"; then
7576 { echo "$as_me:$LINENO: result: $GAS" >&5
7577 echo "${ECHO_T}$GAS" >&6; }
7579 { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7584 test -n "$GAS" && break
7588 { echo "$as_me:$LINENO: checking for linker version" >&5
7589 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7590 if test "${llvm_cv_link_version+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 version_string="$(ld -v 2>&1 | head -1)"
7597 if (echo "$version_string" | grep -q "ld64"); then
7598 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7600 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7604 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7605 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7607 cat >>confdefs.h <<_ACEOF
7608 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7614 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7615 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7616 if test "${llvm_cv_link_use_r+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626 CFLAGS="$CFLAGS -Wl,-R."
7627 cat >conftest.$ac_ext <<_ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_link") 2>conftest.er1
7651 grep -v '^ *+' conftest.er1 >conftest.err
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7657 { (case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_try") 2>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; } &&
7666 { ac_try='test -s conftest$ac_exeext'
7667 { (case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_try") 2>&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 llvm_cv_link_use_r=yes
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 llvm_cv_link_use_r=no
7684 rm -f core conftest.err conftest.$ac_objext \
7685 conftest$ac_exeext conftest.$ac_ext
7688 ac_cpp='$CPP $CPPFLAGS'
7689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7695 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7696 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7697 if test "$llvm_cv_link_use_r" = yes ; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_LINK_R 1
7706 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7707 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7708 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 ac_cpp='$CPP $CPPFLAGS'
7713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718 CFLAGS="$CFLAGS -rdynamic"
7719 cat >conftest.$ac_ext <<_ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (ac_try="$ac_link"
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_link") 2>conftest.er1
7743 grep -v '^ *+' conftest.er1 >conftest.err
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7749 { (case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_try") 2>&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; } &&
7758 { ac_try='test -s conftest$ac_exeext'
7759 { (case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_try") 2>&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 llvm_cv_link_use_export_dynamic=yes
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 llvm_cv_link_use_export_dynamic=no
7776 rm -f core conftest.err conftest.$ac_objext \
7777 conftest$ac_exeext conftest.$ac_ext
7780 ac_cpp='$CPP $CPPFLAGS'
7781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7788 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7789 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7791 cat >>confdefs.h <<\_ACEOF
7792 #define HAVE_LINK_EXPORT_DYNAMIC 1
7798 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7799 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7800 if test "${llvm_cv_link_use_version_script+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811 # The following code is from the autoconf manual,
7812 # "11.13: Limitations of Usual Tools".
7813 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7814 # Use mktemp if possible; otherwise fall back on mkdir,
7815 # with $RANDOM to make collisions less likely.
7819 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7821 test -n "$tmp" && test -d "$tmp"
7823 tmp=$TMPDIR/foo$$-$RANDOM
7824 (umask 077 && mkdir "$tmp")
7827 echo "{" > "$tmp/export.map"
7828 echo " global: main;" >> "$tmp/export.map"
7829 echo " local: *;" >> "$tmp/export.map"
7830 echo "};" >> "$tmp/export.map"
7832 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (ac_try="$ac_link"
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_link") 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7863 { (case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_try") 2>&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; } &&
7872 { ac_try='test -s conftest$ac_exeext'
7873 { (case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_try") 2>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7882 llvm_cv_link_use_version_script=yes
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 llvm_cv_link_use_version_script=no
7890 rm -f core conftest.err conftest.$ac_objext \
7891 conftest$ac_exeext conftest.$ac_ext
7892 rm "$tmp/export.map"
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7904 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7905 if test "$llvm_cv_link_use_version_script" = yes ; then
7906 HAVE_LINK_VERSION_SCRIPT=1
7912 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7913 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7914 if test "${ac_cv_path_GREP+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 # Extract the first word of "grep ggrep" to use in msg output
7918 if test -z "$GREP"; then
7919 set dummy grep ggrep; ac_prog_name=$2
7920 if test "${ac_cv_path_GREP+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 ac_path_GREP_found=false
7924 # Loop through the user's path and test for each of PROGNAME-LIST
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7929 test -z "$as_dir" && as_dir=.
7930 for ac_prog in grep ggrep; do
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7933 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7934 # Check for GNU ac_path_GREP and select it if it is found.
7935 # Check for GNU $ac_path_GREP
7936 case `"$ac_path_GREP" --version 2>&1` in
7938 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7941 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7944 cat "conftest.in" "conftest.in" >"conftest.tmp"
7945 mv "conftest.tmp" "conftest.in"
7946 cp "conftest.in" "conftest.nl"
7947 echo 'GREP' >> "conftest.nl"
7948 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7950 ac_count=`expr $ac_count + 1`
7951 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7952 # Best one so far, save it but keep looking for a better one
7953 ac_cv_path_GREP="$ac_path_GREP"
7954 ac_path_GREP_max=$ac_count
7956 # 10*(2^10) chars as input seems more than enough
7957 test $ac_count -gt 10 && break
7959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7963 $ac_path_GREP_found && break 3
7973 GREP="$ac_cv_path_GREP"
7974 if test -z "$GREP"; then
7975 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7976 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7977 { (exit 1); exit 1; }; }
7981 ac_cv_path_GREP=$GREP
7986 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7987 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7988 GREP="$ac_cv_path_GREP"
7991 { echo "$as_me:$LINENO: checking for egrep" >&5
7992 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7993 if test "${ac_cv_path_EGREP+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7997 then ac_cv_path_EGREP="$GREP -E"
7999 # Extract the first word of "egrep" to use in msg output
8000 if test -z "$EGREP"; then
8001 set dummy egrep; ac_prog_name=$2
8002 if test "${ac_cv_path_EGREP+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 ac_path_EGREP_found=false
8006 # Loop through the user's path and test for each of PROGNAME-LIST
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8011 test -z "$as_dir" && as_dir=.
8012 for ac_prog in egrep; do
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8015 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8016 # Check for GNU ac_path_EGREP and select it if it is found.
8017 # Check for GNU $ac_path_EGREP
8018 case `"$ac_path_EGREP" --version 2>&1` in
8020 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8023 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8026 cat "conftest.in" "conftest.in" >"conftest.tmp"
8027 mv "conftest.tmp" "conftest.in"
8028 cp "conftest.in" "conftest.nl"
8029 echo 'EGREP' >> "conftest.nl"
8030 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8032 ac_count=`expr $ac_count + 1`
8033 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8034 # Best one so far, save it but keep looking for a better one
8035 ac_cv_path_EGREP="$ac_path_EGREP"
8036 ac_path_EGREP_max=$ac_count
8038 # 10*(2^10) chars as input seems more than enough
8039 test $ac_count -gt 10 && break
8041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8045 $ac_path_EGREP_found && break 3
8055 EGREP="$ac_cv_path_EGREP"
8056 if test -z "$EGREP"; then
8057 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8058 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8059 { (exit 1); exit 1; }; }
8063 ac_cv_path_EGREP=$EGREP
8069 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8070 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8071 EGREP="$ac_cv_path_EGREP"
8074 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8075 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8076 if test "${ac_cv_header_stdc+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 cat >conftest.$ac_ext <<_ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8107 grep -v '^ *+' conftest.er1 >conftest.err
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8113 { (case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_try") 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_try") 2>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_cv_header_stdc=yes
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_cv_header_stdc=no
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 if test $ac_cv_header_stdc = yes; then
8143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8144 cat >conftest.$ac_ext <<_ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154 $EGREP "memchr" >/dev/null 2>&1; then
8157 ac_cv_header_stdc=no
8163 if test $ac_cv_header_stdc = yes; then
8164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8175 $EGREP "free" >/dev/null 2>&1; then
8178 ac_cv_header_stdc=no
8184 if test $ac_cv_header_stdc = yes; then
8185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8186 if test "$cross_compiling" = yes; then
8189 cat >conftest.$ac_ext <<_ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8197 #if ((' ' & 0x0FF) == 0x020)
8198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8201 # define ISLOWER(c) \
8202 (('a' <= (c) && (c) <= 'i') \
8203 || ('j' <= (c) && (c) <= 'r') \
8204 || ('s' <= (c) && (c) <= 'z'))
8205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8213 for (i = 0; i < 256; i++)
8214 if (XOR (islower (i), ISLOWER (i))
8215 || toupper (i) != TOUPPER (i))
8220 rm -f conftest$ac_exeext
8221 if { (ac_try="$ac_link"
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_link") 2>&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8231 { (case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_try") 2>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8242 echo "$as_me: program exited with status $ac_status" >&5
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8247 ac_cv_header_stdc=no
8249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8255 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8256 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8257 if test $ac_cv_header_stdc = yes; then
8259 cat >>confdefs.h <<\_ACEOF
8260 #define STDC_HEADERS 1
8265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8276 inttypes.h stdint.h unistd.h
8278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 cat >conftest.$ac_ext <<_ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8290 $ac_includes_default
8292 #include <$ac_header>
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8303 grep -v '^ *+' conftest.er1 >conftest.err
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8309 { (case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_try") 2>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; } &&
8318 { ac_try='test -s conftest.$ac_objext'
8319 { (case "(($ac_try" in
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324 (eval "$ac_try") 2>&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8328 eval "$as_ac_Header=yes"
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 eval "$as_ac_Header=no"
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 ac_res=`eval echo '${'$as_ac_Header'}'`
8339 { echo "$as_me:$LINENO: result: $ac_res" >&5
8340 echo "${ECHO_T}$ac_res" >&6; }
8341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8342 cat >>confdefs.h <<_ACEOF
8343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8352 for ac_header in errno.h
8354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 ac_res=`eval echo '${'$as_ac_Header'}'`
8362 { echo "$as_me:$LINENO: result: $ac_res" >&5
8363 echo "${ECHO_T}$ac_res" >&6; }
8365 # Is the header compilable?
8366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8368 cat >conftest.$ac_ext <<_ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 $ac_includes_default
8375 #include <$ac_header>
8377 rm -f conftest.$ac_objext
8378 if { (ac_try="$ac_compile"
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_compile") 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_try") 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_try") 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_header_compiler=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_header_compiler=no
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8421 echo "${ECHO_T}$ac_header_compiler" >&6; }
8423 # Is the header present?
8424 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8426 cat >conftest.$ac_ext <<_ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 #include <$ac_header>
8434 if { (ac_try="$ac_cpp conftest.$ac_ext"
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8442 grep -v '^ *+' conftest.er1 >conftest.err
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } >/dev/null; then
8447 if test -s conftest.err; then
8448 ac_cpp_err=$ac_c_preproc_warn_flag
8449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8456 if test -z "$ac_cpp_err"; then
8457 ac_header_preproc=yes
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 ac_header_preproc=no
8465 rm -f conftest.err conftest.$ac_ext
8466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8467 echo "${ECHO_T}$ac_header_preproc" >&6; }
8469 # So? What about this header?
8470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8476 ac_header_preproc=yes
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8492 ## ------------------------------------ ##
8493 ## Report this to http://llvm.org/bugs/ ##
8494 ## ------------------------------------ ##
8496 ) | sed "s/^/$as_me: WARNING: /" >&2
8499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 eval "$as_ac_Header=\$ac_header_preproc"
8506 ac_res=`eval echo '${'$as_ac_Header'}'`
8507 { echo "$as_me:$LINENO: result: $ac_res" >&5
8508 echo "${ECHO_T}$ac_res" >&6; }
8511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8512 cat >>confdefs.h <<_ACEOF
8513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8521 case "$llvm_cv_os_type" in
8522 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8523 Darwin) llvm_shlib_ext=.dylib ;;
8524 *) llvm_shlib_ext=.so ;;
8528 cat >>confdefs.h <<_ACEOF
8529 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8533 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8534 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8547 if test "$GCC" != "yes" && test "$ICC" != "yes"
8549 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8550 echo "$as_me: error: gcc|icc required but not found" >&2;}
8551 { (exit 1); exit 1; }; }
8554 if test "$GXX" != "yes" && test "$IXX" != "yes"
8556 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8557 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8558 { (exit 1); exit 1; }; }
8561 if test "$GCC" = "yes"
8563 cat >conftest.$ac_ext <<_ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8571 #if !defined(__GNUC__) || __GNUC__ < 3
8572 #error Unsupported GCC version
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1 >conftest.err
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592 { (case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_try") 2>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_try") 2>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8616 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8617 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8618 { (exit 1); exit 1; }; }
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 if test -z "$llvm_cv_gnu_make_command"
8626 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8627 echo "$as_me: error: GNU Make required but not found" >&2;}
8628 { (exit 1); exit 1; }; }
8631 { echo "$as_me:$LINENO: result: ok" >&5
8632 echo "${ECHO_T}ok" >&6; }
8634 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8635 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8636 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8638 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8640 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8644 NO_MAYBE_UNINITIALIZED=
8645 if test "$GXX" = "yes"
8647 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8649 if test -z "$NO_MAYBE_UNINITIALIZED"
8651 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8655 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8656 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8659 # Check whether --with-python was given.
8660 if test "${with_python+set}" = set; then
8661 withval=$with_python; PYTHON="$withval"
8665 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8666 { echo "$as_me:$LINENO: checking for python" >&5
8667 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8668 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8669 echo "${ECHO_T}user defined: $with_python" >&6; }
8671 if test -n "$PYTHON" ; then
8672 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8673 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8676 # Extract the first word of "python python2 python26", so it can be a program name with args.
8677 set dummy python python2 python26; ac_word=$2
8678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8680 if test "${ac_cv_path_PYTHON+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8695 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8704 echo "${ECHO_T}not found" >&6; }
8705 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8706 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8707 { (exit 1); exit 1; }; }"
8711 PYTHON=$ac_cv_path_PYTHON
8712 if test -n "$PYTHON"; then
8713 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8714 echo "${ECHO_T}$PYTHON" >&6; }
8716 { echo "$as_me:$LINENO: result: no" >&5
8717 echo "${ECHO_T}no" >&6; }
8723 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8724 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8725 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8726 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8727 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8728 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8729 if test "$ac_python_version_major" -gt "2" || \
8730 (test "$ac_python_version_major" -eq "2" && \
8731 test "$ac_python_version_minor" -ge "5") ; then
8732 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8733 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8735 { echo "$as_me:$LINENO: result: not found" >&5
8736 echo "${ECHO_T}not found" >&6; }
8737 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8738 See \`config.log' for more details." >&5
8739 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8740 See \`config.log' for more details." >&2;}
8741 { (exit 1); exit 1; }; }
8746 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8747 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8748 if test "${ac_cv_lib_m_sin+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 ac_check_lib_save_LIBS=$LIBS
8753 cat >conftest.$ac_ext <<_ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8760 /* Override any GCC internal prototype to avoid an error.
8761 Use char because int might match the return type of a GCC
8762 builtin and then its argument prototype would still apply. */
8775 rm -f conftest.$ac_objext conftest$ac_exeext
8776 if { (ac_try="$ac_link"
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_link") 2>conftest.er1
8784 grep -v '^ *+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } &&
8789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8790 { (case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_try") 2>&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try='test -s conftest$ac_exeext'
8800 { (case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_try") 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8817 rm -f core conftest.err conftest.$ac_objext \
8818 conftest$ac_exeext conftest.$ac_ext
8819 LIBS=$ac_check_lib_save_LIBS
8821 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8822 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8823 if test $ac_cv_lib_m_sin = yes; then
8824 cat >>confdefs.h <<_ACEOF
8832 if test "$llvm_cv_os_type" = "MingW" ; then
8834 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8835 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8836 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 ac_check_lib_save_LIBS=$LIBS
8840 LIBS="-limagehlp $LIBS"
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (ac_try="$ac_link"
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_link") 2>conftest.er1
8866 grep -v '^ *+' conftest.er1 >conftest.err
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8872 { (case "(($ac_try" in
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_try") 2>&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; } &&
8881 { ac_try='test -s conftest$ac_exeext'
8882 { (case "(($ac_try" in
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887 (eval "$ac_try") 2>&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_lib_imagehlp_main=yes
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8896 ac_cv_lib_imagehlp_main=no
8899 rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8901 LIBS=$ac_check_lib_save_LIBS
8903 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8904 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8905 if test $ac_cv_lib_imagehlp_main = yes; then
8906 cat >>confdefs.h <<_ACEOF
8907 #define HAVE_LIBIMAGEHLP 1
8910 LIBS="-limagehlp $LIBS"
8915 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8916 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8917 if test "${ac_cv_lib_psapi_main+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 ac_check_lib_save_LIBS=$LIBS
8921 LIBS="-lpsapi $LIBS"
8922 cat >conftest.$ac_ext <<_ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8938 rm -f conftest.$ac_objext conftest$ac_exeext
8939 if { (ac_try="$ac_link"
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945 (eval "$ac_link") 2>conftest.er1
8947 grep -v '^ *+' conftest.er1 >conftest.err
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
8952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8953 { (case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_try") 2>&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest$ac_exeext'
8963 { (case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_try") 2>&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_lib_psapi_main=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_cv_lib_psapi_main=no
8980 rm -f core conftest.err conftest.$ac_objext \
8981 conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8984 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8985 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8986 if test $ac_cv_lib_psapi_main = yes; then
8987 cat >>confdefs.h <<_ACEOF
8988 #define HAVE_LIBPSAPI 1
8991 LIBS="-lpsapi $LIBS"
8996 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8997 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8998 if test "${ac_cv_lib_shell32_main+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 ac_check_lib_save_LIBS=$LIBS
9002 LIBS="-lshell32 $LIBS"
9003 cat >conftest.$ac_ext <<_ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h. */
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9028 grep -v '^ *+' conftest.er1 >conftest.err
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9034 { (case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_try") 2>&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try='test -s conftest$ac_exeext'
9044 { (case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_try") 2>&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 ac_cv_lib_shell32_main=yes
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9058 ac_cv_lib_shell32_main=no
9061 rm -f core conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 LIBS=$ac_check_lib_save_LIBS
9065 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9066 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9067 if test $ac_cv_lib_shell32_main = yes; then
9068 cat >>confdefs.h <<_ACEOF
9069 #define HAVE_LIBSHELL32 1
9072 LIBS="-lshell32 $LIBS"
9078 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9079 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9080 if test "${ac_cv_search_dlopen+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 ac_func_search_save_LIBS=$LIBS
9084 cat >conftest.$ac_ext <<_ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h. */
9091 /* Override any GCC internal prototype to avoid an error.
9092 Use char because int might match the return type of a GCC
9093 builtin and then its argument prototype would still apply. */
9106 for ac_lib in '' dl; do
9107 if test -z "$ac_lib"; then
9108 ac_res="none required"
9111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (ac_try="$ac_link"
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_link") 2>conftest.er1
9122 grep -v '^ *+' conftest.er1 >conftest.err
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9128 { (case "(($ac_try" in
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_try") 2>&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; } &&
9137 { ac_try='test -s conftest$ac_exeext'
9138 { (case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_try") 2>&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_search_dlopen=$ac_res
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9155 rm -f core conftest.err conftest.$ac_objext \
9157 if test "${ac_cv_search_dlopen+set}" = set; then
9161 if test "${ac_cv_search_dlopen+set}" = set; then
9164 ac_cv_search_dlopen=no
9167 LIBS=$ac_func_search_save_LIBS
9169 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9170 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9171 ac_res=$ac_cv_search_dlopen
9172 if test "$ac_res" != no; then
9173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9176 cat >>confdefs.h <<\_ACEOF
9177 #define HAVE_DLOPEN 1
9184 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9185 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9189 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9190 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9191 if test "${ac_cv_search_clock_gettime+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 ac_func_search_save_LIBS=$LIBS
9195 cat >conftest.$ac_ext <<_ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9202 /* Override any GCC internal prototype to avoid an error.
9203 Use char because int might match the return type of a GCC
9204 builtin and then its argument prototype would still apply. */
9208 char clock_gettime ();
9212 return clock_gettime ();
9217 for ac_lib in '' rt; do
9218 if test -z "$ac_lib"; then
9219 ac_res="none required"
9222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (ac_try="$ac_link"
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_link") 2>conftest.er1
9233 grep -v '^ *+' conftest.er1 >conftest.err
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
9238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9239 { (case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_try") 2>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try='test -s conftest$ac_exeext'
9249 { (case "(($ac_try" in
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_try") 2>&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 ac_cv_search_clock_gettime=$ac_res
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9266 rm -f core conftest.err conftest.$ac_objext \
9268 if test "${ac_cv_search_clock_gettime+set}" = set; then
9272 if test "${ac_cv_search_clock_gettime+set}" = set; then
9275 ac_cv_search_clock_gettime=no
9278 LIBS=$ac_func_search_save_LIBS
9280 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9281 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9282 ac_res=$ac_cv_search_clock_gettime
9283 if test "$ac_res" != no; then
9284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9289 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9290 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9291 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9292 if test "${ac_cv_search_setupterm+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 ac_func_search_save_LIBS=$LIBS
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9303 /* Override any GCC internal prototype to avoid an error.
9304 Use char because int might match the return type of a GCC
9305 builtin and then its argument prototype would still apply. */
9313 return setupterm ();
9318 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9319 if test -z "$ac_lib"; then
9320 ac_res="none required"
9323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (ac_try="$ac_link"
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_link") 2>conftest.er1
9334 grep -v '^ *+' conftest.er1 >conftest.err
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } &&
9339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9340 { (case "(($ac_try" in
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_try") 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; } &&
9349 { ac_try='test -s conftest$ac_exeext'
9350 { (case "(($ac_try" in
9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355 (eval "$ac_try") 2>&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 ac_cv_search_setupterm=$ac_res
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9367 rm -f core conftest.err conftest.$ac_objext \
9369 if test "${ac_cv_search_setupterm+set}" = set; then
9373 if test "${ac_cv_search_setupterm+set}" = set; then
9376 ac_cv_search_setupterm=no
9379 LIBS=$ac_func_search_save_LIBS
9381 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9382 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9383 ac_res=$ac_cv_search_setupterm
9384 if test "$ac_res" != no; then
9385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9388 cat >>confdefs.h <<\_ACEOF
9389 #define HAVE_TERMINFO 1
9399 if test "$llvm_cv_enable_libedit" = "yes" ; then
9400 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9401 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9402 if test "${ac_cv_search_el_init+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 ac_func_search_save_LIBS=$LIBS
9406 cat >conftest.$ac_ext <<_ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9413 /* Override any GCC internal prototype to avoid an error.
9414 Use char because int might match the return type of a GCC
9415 builtin and then its argument prototype would still apply. */
9428 for ac_lib in '' edit; do
9429 if test -z "$ac_lib"; then
9430 ac_res="none required"
9433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (ac_try="$ac_link"
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_link") 2>conftest.er1
9444 grep -v '^ *+' conftest.er1 >conftest.err
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9450 { (case "(($ac_try" in
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_try") 2>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (case "(($ac_try" in
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_try") 2>&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 ac_cv_search_el_init=$ac_res
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9477 rm -f core conftest.err conftest.$ac_objext \
9479 if test "${ac_cv_search_el_init+set}" = set; then
9483 if test "${ac_cv_search_el_init+set}" = set; then
9486 ac_cv_search_el_init=no
9489 LIBS=$ac_func_search_save_LIBS
9491 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9492 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9493 ac_res=$ac_cv_search_el_init
9494 if test "$ac_res" != no; then
9495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_LIBEDIT 1
9505 if test "$llvm_cv_enable_libffi" = "yes" ; then
9506 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9507 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9508 if test "${ac_cv_search_ffi_call+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 ac_func_search_save_LIBS=$LIBS
9512 cat >conftest.$ac_ext <<_ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9519 /* Override any GCC internal prototype to avoid an error.
9520 Use char because int might match the return type of a GCC
9521 builtin and then its argument prototype would still apply. */
9534 for ac_lib in '' ffi; do
9535 if test -z "$ac_lib"; then
9536 ac_res="none required"
9539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (ac_try="$ac_link"
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_link") 2>conftest.er1
9550 grep -v '^ *+' conftest.er1 >conftest.err
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9556 { (case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_try") 2>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; } &&
9565 { ac_try='test -s conftest$ac_exeext'
9566 { (case "(($ac_try" in
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_try") 2>&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_search_ffi_call=$ac_res
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9583 rm -f core conftest.err conftest.$ac_objext \
9585 if test "${ac_cv_search_ffi_call+set}" = set; then
9589 if test "${ac_cv_search_ffi_call+set}" = set; then
9592 ac_cv_search_ffi_call=no
9595 LIBS=$ac_func_search_save_LIBS
9597 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9598 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9599 ac_res=$ac_cv_search_ffi_call
9600 if test "$ac_res" != no; then
9601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9603 cat >>confdefs.h <<\_ACEOF
9604 #define HAVE_FFI_CALL 1
9608 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9609 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9610 { (exit 1); exit 1; }; }
9615 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9616 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9617 if test "${ac_cv_search_mallinfo+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 ac_func_search_save_LIBS=$LIBS
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9628 /* Override any GCC internal prototype to avoid an error.
9629 Use char because int might match the return type of a GCC
9630 builtin and then its argument prototype would still apply. */
9643 for ac_lib in '' malloc; do
9644 if test -z "$ac_lib"; then
9645 ac_res="none required"
9648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_link") 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9665 { (case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_try") 2>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest$ac_exeext'
9675 { (case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_try") 2>&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 ac_cv_search_mallinfo=$ac_res
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9692 rm -f core conftest.err conftest.$ac_objext \
9694 if test "${ac_cv_search_mallinfo+set}" = set; then
9698 if test "${ac_cv_search_mallinfo+set}" = set; then
9701 ac_cv_search_mallinfo=no
9704 LIBS=$ac_func_search_save_LIBS
9706 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9707 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9708 ac_res=$ac_cv_search_mallinfo
9709 if test "$ac_res" != no; then
9710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9712 cat >>confdefs.h <<\_ACEOF
9713 #define HAVE_MALLINFO 1
9719 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9721 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9722 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9723 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 ac_check_lib_save_LIBS=$LIBS
9727 LIBS="-lpthread $LIBS"
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9741 char pthread_mutex_init ();
9745 return pthread_mutex_init ();
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9759 grep -v '^ *+' conftest.er1 >conftest.err
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9765 { (case "(($ac_try" in
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_try") 2>&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; } &&
9774 { ac_try='test -s conftest$ac_exeext'
9775 { (case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_try") 2>&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_lib_pthread_pthread_mutex_init=yes
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_cv_lib_pthread_pthread_mutex_init=no
9792 rm -f core conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 LIBS=$ac_check_lib_save_LIBS
9796 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9797 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9798 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9799 cat >>confdefs.h <<_ACEOF
9800 #define HAVE_LIBPTHREAD 1
9803 LIBS="-lpthread $LIBS"
9807 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9808 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9809 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 ac_func_search_save_LIBS=$LIBS
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9826 char pthread_mutex_lock ();
9830 return pthread_mutex_lock ();
9835 for ac_lib in '' pthread; do
9836 if test -z "$ac_lib"; then
9837 ac_res="none required"
9840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_link") 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9857 { (case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_try") 2>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_try") 2>&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 ac_cv_search_pthread_mutex_lock=$ac_res
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9884 rm -f core conftest.err conftest.$ac_objext \
9886 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9890 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9893 ac_cv_search_pthread_mutex_lock=no
9896 LIBS=$ac_func_search_save_LIBS
9898 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9899 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9900 ac_res=$ac_cv_search_pthread_mutex_lock
9901 if test "$ac_res" != no; then
9902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9904 cat >>confdefs.h <<\_ACEOF
9905 #define HAVE_PTHREAD_MUTEX_LOCK 1
9910 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9911 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9912 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 ac_func_search_save_LIBS=$LIBS
9916 cat >conftest.$ac_ext <<_ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9929 char pthread_rwlock_init ();
9933 return pthread_rwlock_init ();
9938 for ac_lib in '' pthread; do
9939 if test -z "$ac_lib"; then
9940 ac_res="none required"
9943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (ac_try="$ac_link"
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_link") 2>conftest.er1
9954 grep -v '^ *+' conftest.er1 >conftest.err
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9960 { (case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_try") 2>&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; } &&
9969 { ac_try='test -s conftest$ac_exeext'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_try") 2>&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_search_pthread_rwlock_init=$ac_res
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9987 rm -f core conftest.err conftest.$ac_objext \
9989 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9993 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9996 ac_cv_search_pthread_rwlock_init=no
9999 LIBS=$ac_func_search_save_LIBS
10001 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10002 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
10003 ac_res=$ac_cv_search_pthread_rwlock_init
10004 if test "$ac_res" != no; then
10005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10007 cat >>confdefs.h <<\_ACEOF
10008 #define HAVE_PTHREAD_RWLOCK_INIT 1
10013 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10014 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10015 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 ac_func_search_save_LIBS=$LIBS
10019 cat >conftest.$ac_ext <<_ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10026 /* Override any GCC internal prototype to avoid an error.
10027 Use char because int might match the return type of a GCC
10028 builtin and then its argument prototype would still apply. */
10032 char pthread_getspecific ();
10036 return pthread_getspecific ();
10041 for ac_lib in '' pthread; do
10042 if test -z "$ac_lib"; then
10043 ac_res="none required"
10046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (ac_try="$ac_link"
10050 case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_link") 2>conftest.er1
10057 grep -v '^ *+' conftest.er1 >conftest.err
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try='test -s conftest$ac_exeext'
10073 { (case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_try") 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 ac_cv_search_pthread_getspecific=$ac_res
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10090 rm -f core conftest.err conftest.$ac_objext \
10092 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10096 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10099 ac_cv_search_pthread_getspecific=no
10101 rm conftest.$ac_ext
10102 LIBS=$ac_func_search_save_LIBS
10104 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10105 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10106 ac_res=$ac_cv_search_pthread_getspecific
10107 if test "$ac_res" != no; then
10108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10110 cat >>confdefs.h <<\_ACEOF
10111 #define HAVE_PTHREAD_GETSPECIFIC 1
10118 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10120 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10121 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10122 if test "${ac_cv_lib_z_compress2+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 ac_check_lib_save_LIBS=$LIBS
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10134 /* Override any GCC internal prototype to avoid an error.
10135 Use char because int might match the return type of a GCC
10136 builtin and then its argument prototype would still apply. */
10144 return compress2 ();
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_link") 2>conftest.er1
10158 grep -v '^ *+' conftest.er1 >conftest.err
10160 cat conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10164 { (case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169 (eval "$ac_try") 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_try") 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_lib_z_compress2=yes
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_cv_lib_z_compress2=no
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10195 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10196 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10197 if test $ac_cv_lib_z_compress2 = yes; then
10198 cat >>confdefs.h <<_ACEOF
10199 #define HAVE_LIBZ 1
10209 # Check whether --with-udis86 was given.
10210 if test "${with_udis86+set}" = set; then
10211 withval=$with_udis86;
10216 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10219 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10220 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10221 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 ac_check_lib_save_LIBS=$LIBS
10225 LIBS="-ludis86 $LIBS"
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10233 /* Override any GCC internal prototype to avoid an error.
10234 Use char because int might match the return type of a GCC
10235 builtin and then its argument prototype would still apply. */
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (ac_try="$ac_link"
10250 case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_link") 2>conftest.er1
10257 grep -v '^ *+' conftest.er1 >conftest.err
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10263 { (case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_try") 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest$ac_exeext'
10273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_lib_udis86_ud_init=yes
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_cv_lib_udis86_ud_init=no
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 LIBS=$ac_check_lib_save_LIBS
10294 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10295 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10296 if test $ac_cv_lib_udis86_ud_init = yes; then
10297 cat >>confdefs.h <<_ACEOF
10298 #define HAVE_LIBUDIS86 1
10301 LIBS="-ludis86 $LIBS"
10305 echo "Error! You need to have libudis86 around."
10317 cat >>confdefs.h <<_ACEOF
10318 #define USE_UDIS86 $USE_UDIS86
10323 # Check whether --with-oprofile was given.
10324 if test "${with_oprofile+set}" = set; then
10325 withval=$with_oprofile;
10329 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10330 no) llvm_cv_oppath=
10333 *) llvm_cv_oppath="${withval}/lib/oprofile"
10334 CPPFLAGS="-I${withval}/include";;
10336 case $llvm_cv_os_type in
10338 if test -n "$llvm_cv_oppath" ; then
10339 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10340 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10341 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10342 if test "${ac_cv_search_bfd_init+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 ac_func_search_save_LIBS=$LIBS
10346 cat >conftest.$ac_ext <<_ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10353 /* Override any GCC internal prototype to avoid an error.
10354 Use char because int might match the return type of a GCC
10355 builtin and then its argument prototype would still apply. */
10363 return bfd_init ();
10368 for ac_lib in '' bfd; do
10369 if test -z "$ac_lib"; then
10370 ac_res="none required"
10373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (ac_try="$ac_link"
10377 case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_link") 2>conftest.er1
10384 grep -v '^ *+' conftest.er1 >conftest.err
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390 { (case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_try") 2>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; } &&
10399 { ac_try='test -s conftest$ac_exeext'
10400 { (case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_try") 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_search_bfd_init=$ac_res
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10417 rm -f core conftest.err conftest.$ac_objext \
10419 if test "${ac_cv_search_bfd_init+set}" = set; then
10423 if test "${ac_cv_search_bfd_init+set}" = set; then
10426 ac_cv_search_bfd_init=no
10428 rm conftest.$ac_ext
10429 LIBS=$ac_func_search_save_LIBS
10431 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10432 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10433 ac_res=$ac_cv_search_bfd_init
10434 if test "$ac_res" != no; then
10435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10439 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10440 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10441 if test "${ac_cv_search_op_open_agent+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 ac_func_search_save_LIBS=$LIBS
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10452 /* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10458 char op_open_agent ();
10462 return op_open_agent ();
10467 for ac_lib in '' opagent; do
10468 if test -z "$ac_lib"; then
10469 ac_res="none required"
10472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (ac_try="$ac_link"
10476 case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_link") 2>conftest.er1
10483 grep -v '^ *+' conftest.er1 >conftest.err
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest$ac_exeext'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 ac_cv_search_op_open_agent=$ac_res
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10516 rm -f core conftest.err conftest.$ac_objext \
10518 if test "${ac_cv_search_op_open_agent+set}" = set; then
10522 if test "${ac_cv_search_op_open_agent+set}" = set; then
10525 ac_cv_search_op_open_agent=no
10527 rm conftest.$ac_ext
10528 LIBS=$ac_func_search_save_LIBS
10530 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10531 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10532 ac_res=$ac_cv_search_op_open_agent
10533 if test "$ac_res" != no; then
10534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10538 echo "Error! You need to have libopagent around."
10543 if test "${ac_cv_header_opagent_h+set}" = set; then
10544 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10545 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10546 if test "${ac_cv_header_opagent_h+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10550 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10552 # Is the header compilable?
10553 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10554 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 $ac_includes_default
10562 #include <opagent.h>
10564 rm -f conftest.$ac_objext
10565 if { (ac_try="$ac_compile"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_compile") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10579 { (case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_try") 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; } &&
10588 { ac_try='test -s conftest.$ac_objext'
10589 { (case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_try") 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 ac_header_compiler=yes
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 ac_header_compiler=no
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608 echo "${ECHO_T}$ac_header_compiler" >&6; }
10610 # Is the header present?
10611 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10612 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 #include <opagent.h>
10621 if { (ac_try="$ac_cpp conftest.$ac_ext"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } >/dev/null; then
10634 if test -s conftest.err; then
10635 ac_cpp_err=$ac_c_preproc_warn_flag
10636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10643 if test -z "$ac_cpp_err"; then
10644 ac_header_preproc=yes
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ac_header_preproc=no
10652 rm -f conftest.err conftest.$ac_ext
10653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10654 echo "${ECHO_T}$ac_header_preproc" >&6; }
10656 # So? What about this header?
10657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10659 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10660 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10662 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10663 ac_header_preproc=yes
10666 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10667 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10669 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10671 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10672 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10673 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10674 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10675 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10677 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10679 ## ------------------------------------ ##
10680 ## Report this to http://llvm.org/bugs/ ##
10681 ## ------------------------------------ ##
10683 ) | sed "s/^/$as_me: WARNING: /" >&2
10686 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10687 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10688 if test "${ac_cv_header_opagent_h+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 ac_cv_header_opagent_h=$ac_header_preproc
10693 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10694 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10697 if test $ac_cv_header_opagent_h = yes; then
10701 echo "Error! You need to have opagent.h around."
10709 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10710 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10711 { (exit 1); exit 1; }; } ;;
10722 cat >>confdefs.h <<_ACEOF
10723 #define LLVM_USE_OPROFILE $USE_OPROFILE
10728 # Check whether --with-intel-jitevents was given.
10729 if test "${with_intel_jitevents+set}" = set; then
10730 withval=$with_intel_jitevents;
10732 yes) USE_INTEL_JITEVENTS=1
10734 no) USE_INTEL_JITEVENTS=0
10736 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10737 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10738 { (exit 1); exit 1; }; };;
10741 case $llvm_cv_os_type in
10742 Linux|Win32|Cygwin|MingW) ;;
10743 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10744 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10745 { (exit 1); exit 1; }; };;
10748 case "$llvm_cv_target_arch" in
10750 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10751 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10752 { (exit 1); exit 1; }; };;
10757 USE_INTEL_JITEVENTS=0
10763 cat >>confdefs.h <<_ACEOF
10764 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10768 for ac_prog in xml2-config
10770 # Extract the first word of "$ac_prog", so it can be a program name with args.
10771 set dummy $ac_prog; ac_word=$2
10772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10774 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 if test -n "$XML2CONFIG"; then
10778 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10784 test -z "$as_dir" && as_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
10786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10787 ac_cv_prog_XML2CONFIG="$ac_prog"
10788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10798 if test -n "$XML2CONFIG"; then
10799 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10800 echo "${ECHO_T}$XML2CONFIG" >&6; }
10802 { echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6; }
10807 test -n "$XML2CONFIG" && break
10811 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10812 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10813 if test "x$XML2CONFIG" = "x"; then
10814 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10815 echo "${ECHO_T}xml2-config not found" >&6; }
10817 LIBXML2_INC=`$XML2CONFIG --cflags`
10818 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10819 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10820 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10821 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10822 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-lxml2 $LIBS"
10827 cat >conftest.$ac_ext <<_ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10834 /* Override any GCC internal prototype to avoid an error.
10835 Use char because int might match the return type of a GCC
10836 builtin and then its argument prototype would still apply. */
10840 char xmlReadFile ();
10844 return xmlReadFile ();
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_link") 2>conftest.er1
10858 grep -v '^ *+' conftest.er1 >conftest.err
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest$ac_exeext'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_lib_xml2_xmlReadFile=yes
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_cv_lib_xml2_xmlReadFile=no
10891 rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_lib_save_LIBS
10895 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10896 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10897 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10899 cat >>confdefs.h <<\_ACEOF
10900 #define CLANG_HAVE_LIBXML 1
10903 LIBXML2_LIBS="-lxml2"
10916 ac_header_dirent=no
10917 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10918 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10919 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10920 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 cat >conftest.$ac_ext <<_ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930 #include <sys/types.h>
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_compile") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_try") 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; } &&
10966 { ac_try='test -s conftest.$ac_objext'
10967 { (case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_try") 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 eval "$as_ac_Header=yes"
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 eval "$as_ac_Header=no"
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 ac_res=`eval echo '${'$as_ac_Header'}'`
10987 { echo "$as_me:$LINENO: result: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10990 cat >>confdefs.h <<_ACEOF
10991 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10994 ac_header_dirent=$ac_hdr; break
10998 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10999 if test $ac_header_dirent = dirent.h; then
11000 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11001 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11002 if test "${ac_cv_search_opendir+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 ac_func_search_save_LIBS=$LIBS
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11013 /* Override any GCC internal prototype to avoid an error.
11014 Use char because int might match the return type of a GCC
11015 builtin and then its argument prototype would still apply. */
11028 for ac_lib in '' dir; do
11029 if test -z "$ac_lib"; then
11030 ac_res="none required"
11033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (ac_try="$ac_link"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_link") 2>conftest.er1
11044 grep -v '^ *+' conftest.er1 >conftest.err
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; } &&
11059 { ac_try='test -s conftest$ac_exeext'
11060 { (case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_try") 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; }; then
11069 ac_cv_search_opendir=$ac_res
11071 echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11077 rm -f core conftest.err conftest.$ac_objext \
11079 if test "${ac_cv_search_opendir+set}" = set; then
11083 if test "${ac_cv_search_opendir+set}" = set; then
11086 ac_cv_search_opendir=no
11088 rm conftest.$ac_ext
11089 LIBS=$ac_func_search_save_LIBS
11091 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11092 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11093 ac_res=$ac_cv_search_opendir
11094 if test "$ac_res" != no; then
11095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11100 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11101 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11102 if test "${ac_cv_search_opendir+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11105 ac_func_search_save_LIBS=$LIBS
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11128 for ac_lib in '' x; do
11129 if test -z "$ac_lib"; then
11130 ac_res="none required"
11133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11135 rm -f conftest.$ac_objext conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_link") 2>conftest.er1
11144 grep -v '^ *+' conftest.er1 >conftest.err
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest$ac_exeext'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 ac_cv_search_opendir=$ac_res
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11177 rm -f core conftest.err conftest.$ac_objext \
11179 if test "${ac_cv_search_opendir+set}" = set; then
11183 if test "${ac_cv_search_opendir+set}" = set; then
11186 ac_cv_search_opendir=no
11188 rm conftest.$ac_ext
11189 LIBS=$ac_func_search_save_LIBS
11191 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11192 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11193 ac_res=$ac_cv_search_opendir
11194 if test "$ac_res" != no; then
11195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11201 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11202 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11203 if test "${ac_cv_header_mmap_anon+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 ac_cpp='$CPP $CPPFLAGS'
11208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11212 cat >conftest.$ac_ext <<_ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 #include <sys/mman.h>
11219 #include <unistd.h>
11224 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11229 rm -f conftest.$ac_objext
11230 if { (ac_try="$ac_compile"
11231 case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_compile") 2>conftest.er1
11238 grep -v '^ *+' conftest.er1 >conftest.err
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11244 { (case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_try") 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; } &&
11253 { ac_try='test -s conftest.$ac_objext'
11254 { (case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_try") 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_header_mmap_anon=yes
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ac_cv_header_mmap_anon=no
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 ac_cpp='$CPP $CPPFLAGS'
11274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11280 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11281 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11282 if test "$ac_cv_header_mmap_anon" = yes; then
11284 cat >>confdefs.h <<\_ACEOF
11285 #define HAVE_MMAP_ANONYMOUS 1
11290 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11291 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11292 if test "${ac_cv_header_stat_broken+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 cat >conftest.$ac_ext <<_ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 #include <sys/types.h>
11302 #include <sys/stat.h>
11304 #if defined S_ISBLK && defined S_IFDIR
11305 # if S_ISBLK (S_IFDIR)
11310 #if defined S_ISBLK && defined S_IFCHR
11311 # if S_ISBLK (S_IFCHR)
11316 #if defined S_ISLNK && defined S_IFREG
11317 # if S_ISLNK (S_IFREG)
11322 #if defined S_ISSOCK && defined S_IFREG
11323 # if S_ISSOCK (S_IFREG)
11329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11330 $EGREP "You lose" >/dev/null 2>&1; then
11331 ac_cv_header_stat_broken=yes
11333 ac_cv_header_stat_broken=no
11338 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11339 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11340 if test $ac_cv_header_stat_broken = yes; then
11342 cat >>confdefs.h <<\_ACEOF
11343 #define STAT_MACROS_BROKEN 1
11348 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11349 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11350 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11353 cat >conftest.$ac_ext <<_ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 #include <sys/types.h>
11360 #include <sys/wait.h>
11361 #ifndef WEXITSTATUS
11362 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11365 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11373 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11378 rm -f conftest.$ac_objext
11379 if { (ac_try="$ac_compile"
11380 case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_compile") 2>conftest.er1
11387 grep -v '^ *+' conftest.er1 >conftest.err
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } &&
11392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11393 { (case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_try") 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; } &&
11402 { ac_try='test -s conftest.$ac_objext'
11403 { (case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_try") 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_cv_header_sys_wait_h=yes
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 ac_cv_header_sys_wait_h=no
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11423 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11424 if test $ac_cv_header_sys_wait_h = yes; then
11426 cat >>confdefs.h <<\_ACEOF
11427 #define HAVE_SYS_WAIT_H 1
11432 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11433 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11434 if test "${ac_cv_header_time+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #include <sys/types.h>
11444 #include <sys/time.h>
11450 if ((struct tm *) 0)
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_compile") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11471 { (case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_try") 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest.$ac_objext'
11481 { (case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_try") 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_cv_header_time=yes
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 ac_cv_header_time=no
11498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11501 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11502 if test $ac_cv_header_time = yes; then
11504 cat >>confdefs.h <<\_ACEOF
11505 #define TIME_WITH_SYS_TIME 1
11512 ac_cpp='$CXXCPP $CPPFLAGS'
11513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11518 ac_cpp='$CXXCPP $CPPFLAGS'
11519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11522 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11523 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11524 if test -z "$CXXCPP"; then
11525 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11528 # Double quotes because CXXCPP needs to be expanded
11529 for CXXCPP in "$CXX -E" "/lib/cpp"
11531 ac_preproc_ok=false
11532 for ac_cxx_preproc_warn_flag in '' yes
11534 # Use a header file that comes with gcc, so configuring glibc
11535 # with a fresh cross-compiler works.
11536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537 # <limits.h> exists even on freestanding compilers.
11538 # On the NeXT, cc -E runs the code through the compiler's parser,
11539 # not just through cpp. "Syntax error" is here to catch this case.
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11547 # include <limits.h>
11549 # include <assert.h>
11553 if { (ac_try="$ac_cpp conftest.$ac_ext"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } >/dev/null; then
11566 if test -s conftest.err; then
11567 ac_cpp_err=$ac_cxx_preproc_warn_flag
11568 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11575 if test -z "$ac_cpp_err"; then
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 # Broken: fails on valid input.
11585 rm -f conftest.err conftest.$ac_ext
11587 # OK, works on sane cases. Now check whether nonexistent headers
11588 # can be detected and how.
11589 cat >conftest.$ac_ext <<_ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595 #include <ac_nonexistent.h>
11597 if { (ac_try="$ac_cpp conftest.$ac_ext"
11598 case "(($ac_try" in
11599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11605 grep -v '^ *+' conftest.er1 >conftest.err
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } >/dev/null; then
11610 if test -s conftest.err; then
11611 ac_cpp_err=$ac_cxx_preproc_warn_flag
11612 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11619 if test -z "$ac_cpp_err"; then
11620 # Broken: success on invalid input.
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 # Passes both tests.
11631 rm -f conftest.err conftest.$ac_ext
11634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11635 rm -f conftest.err conftest.$ac_ext
11636 if $ac_preproc_ok; then
11641 ac_cv_prog_CXXCPP=$CXXCPP
11644 CXXCPP=$ac_cv_prog_CXXCPP
11646 ac_cv_prog_CXXCPP=$CXXCPP
11648 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11649 echo "${ECHO_T}$CXXCPP" >&6; }
11650 ac_preproc_ok=false
11651 for ac_cxx_preproc_warn_flag in '' yes
11653 # Use a header file that comes with gcc, so configuring glibc
11654 # with a fresh cross-compiler works.
11655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11656 # <limits.h> exists even on freestanding compilers.
11657 # On the NeXT, cc -E runs the code through the compiler's parser,
11658 # not just through cpp. "Syntax error" is here to catch this case.
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11666 # include <limits.h>
11668 # include <assert.h>
11672 if { (ac_try="$ac_cpp conftest.$ac_ext"
11673 case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11680 grep -v '^ *+' conftest.er1 >conftest.err
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } >/dev/null; then
11685 if test -s conftest.err; then
11686 ac_cpp_err=$ac_cxx_preproc_warn_flag
11687 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11694 if test -z "$ac_cpp_err"; then
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 # Broken: fails on valid input.
11704 rm -f conftest.err conftest.$ac_ext
11706 # OK, works on sane cases. Now check whether nonexistent headers
11707 # can be detected and how.
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 #include <ac_nonexistent.h>
11716 if { (ac_try="$ac_cpp conftest.$ac_ext"
11717 case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11724 grep -v '^ *+' conftest.er1 >conftest.err
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } >/dev/null; then
11729 if test -s conftest.err; then
11730 ac_cpp_err=$ac_cxx_preproc_warn_flag
11731 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11738 if test -z "$ac_cpp_err"; then
11739 # Broken: success on invalid input.
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 # Passes both tests.
11750 rm -f conftest.err conftest.$ac_ext
11753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11754 rm -f conftest.err conftest.$ac_ext
11755 if $ac_preproc_ok; then
11758 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11759 See \`config.log' for more details." >&5
11760 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11761 See \`config.log' for more details." >&2;}
11762 { (exit 1); exit 1; }; }
11766 ac_cpp='$CXXCPP $CPPFLAGS'
11767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11773 for ac_header in cxxabi.h
11775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 ac_res=`eval echo '${'$as_ac_Header'}'`
11783 { echo "$as_me:$LINENO: result: $ac_res" >&5
11784 echo "${ECHO_T}$ac_res" >&6; }
11786 # Is the header compilable?
11787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11789 cat >conftest.$ac_ext <<_ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11795 $ac_includes_default
11796 #include <$ac_header>
11798 rm -f conftest.$ac_objext
11799 if { (ac_try="$ac_compile"
11800 case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_compile") 2>conftest.er1
11807 grep -v '^ *+' conftest.er1 >conftest.err
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try='test -s conftest.$ac_objext'
11823 { (case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_try") 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_header_compiler=yes
11834 echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11837 ac_header_compiler=no
11840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11842 echo "${ECHO_T}$ac_header_compiler" >&6; }
11844 # Is the header present?
11845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11847 cat >conftest.$ac_ext <<_ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11853 #include <$ac_header>
11855 if { (ac_try="$ac_cpp conftest.$ac_ext"
11856 case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11863 grep -v '^ *+' conftest.er1 >conftest.err
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } >/dev/null; then
11868 if test -s conftest.err; then
11869 ac_cpp_err=$ac_cxx_preproc_warn_flag
11870 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11877 if test -z "$ac_cpp_err"; then
11878 ac_header_preproc=yes
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 ac_header_preproc=no
11886 rm -f conftest.err conftest.$ac_ext
11887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11888 echo "${ECHO_T}$ac_header_preproc" >&6; }
11890 # So? What about this header?
11891 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11897 ac_header_preproc=yes
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11913 ## ------------------------------------ ##
11914 ## Report this to http://llvm.org/bugs/ ##
11915 ## ------------------------------------ ##
11917 ) | sed "s/^/$as_me: WARNING: /" >&2
11920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 eval "$as_ac_Header=\$ac_header_preproc"
11927 ac_res=`eval echo '${'$as_ac_Header'}'`
11928 { echo "$as_me:$LINENO: result: $ac_res" >&5
11929 echo "${ECHO_T}$ac_res" >&6; }
11932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11933 cat >>confdefs.h <<_ACEOF
11934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11942 ac_cpp='$CPP $CPPFLAGS'
11943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11952 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 ac_res=`eval echo '${'$as_ac_Header'}'`
11962 { echo "$as_me:$LINENO: result: $ac_res" >&5
11963 echo "${ECHO_T}$ac_res" >&6; }
11965 # Is the header compilable?
11966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11968 cat >conftest.$ac_ext <<_ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974 $ac_includes_default
11975 #include <$ac_header>
11977 rm -f conftest.$ac_objext
11978 if { (ac_try="$ac_compile"
11979 case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_compile") 2>conftest.er1
11986 grep -v '^ *+' conftest.er1 >conftest.err
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11992 { (case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_try") 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest.$ac_objext'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_header_compiler=yes
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ac_header_compiler=no
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12021 echo "${ECHO_T}$ac_header_compiler" >&6; }
12023 # Is the header present?
12024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 #include <$ac_header>
12034 if { (ac_try="$ac_cpp conftest.$ac_ext"
12035 case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12042 grep -v '^ *+' conftest.er1 >conftest.err
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } >/dev/null; then
12047 if test -s conftest.err; then
12048 ac_cpp_err=$ac_c_preproc_warn_flag
12049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12056 if test -z "$ac_cpp_err"; then
12057 ac_header_preproc=yes
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 ac_header_preproc=no
12065 rm -f conftest.err conftest.$ac_ext
12066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12067 echo "${ECHO_T}$ac_header_preproc" >&6; }
12069 # So? What about this header?
12070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12076 ac_header_preproc=yes
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12092 ## ------------------------------------ ##
12093 ## Report this to http://llvm.org/bugs/ ##
12094 ## ------------------------------------ ##
12096 ) | sed "s/^/$as_me: WARNING: /" >&2
12099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 eval "$as_ac_Header=\$ac_header_preproc"
12106 ac_res=`eval echo '${'$as_ac_Header'}'`
12107 { echo "$as_me:$LINENO: result: $ac_res" >&5
12108 echo "${ECHO_T}$ac_res" >&6; }
12111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12126 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 ac_res=`eval echo '${'$as_ac_Header'}'`
12136 { echo "$as_me:$LINENO: result: $ac_res" >&5
12137 echo "${ECHO_T}$ac_res" >&6; }
12139 # Is the header compilable?
12140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12142 cat >conftest.$ac_ext <<_ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148 $ac_includes_default
12149 #include <$ac_header>
12151 rm -f conftest.$ac_objext
12152 if { (ac_try="$ac_compile"
12153 case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_compile") 2>conftest.er1
12160 grep -v '^ *+' conftest.er1 >conftest.err
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest.$ac_objext'
12176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; }; then
12185 ac_header_compiler=yes
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_header_compiler=no
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12195 echo "${ECHO_T}$ac_header_compiler" >&6; }
12197 # Is the header present?
12198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12200 cat >conftest.$ac_ext <<_ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 #include <$ac_header>
12208 if { (ac_try="$ac_cpp conftest.$ac_ext"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12216 grep -v '^ *+' conftest.er1 >conftest.err
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } >/dev/null; then
12221 if test -s conftest.err; then
12222 ac_cpp_err=$ac_c_preproc_warn_flag
12223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12230 if test -z "$ac_cpp_err"; then
12231 ac_header_preproc=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_header_preproc=no
12239 rm -f conftest.err conftest.$ac_ext
12240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12241 echo "${ECHO_T}$ac_header_preproc" >&6; }
12243 # So? What about this header?
12244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12250 ac_header_preproc=yes
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12266 ## ------------------------------------ ##
12267 ## Report this to http://llvm.org/bugs/ ##
12268 ## ------------------------------------ ##
12270 ) | sed "s/^/$as_me: WARNING: /" >&2
12273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 eval "$as_ac_Header=\$ac_header_preproc"
12280 ac_res=`eval echo '${'$as_ac_Header'}'`
12281 { echo "$as_me:$LINENO: result: $ac_res" >&5
12282 echo "${ECHO_T}$ac_res" >&6; }
12285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12286 cat >>confdefs.h <<_ACEOF
12287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12295 for ac_header in utime.h
12297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 ac_res=`eval echo '${'$as_ac_Header'}'`
12305 { echo "$as_me:$LINENO: result: $ac_res" >&5
12306 echo "${ECHO_T}$ac_res" >&6; }
12308 # Is the header compilable?
12309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 $ac_includes_default
12318 #include <$ac_header>
12320 rm -f conftest.$ac_objext
12321 if { (ac_try="$ac_compile"
12322 case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_compile") 2>conftest.er1
12329 grep -v '^ *+' conftest.er1 >conftest.err
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest.$ac_objext'
12345 { (case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_try") 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_header_compiler=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_header_compiler=no
12362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12364 echo "${ECHO_T}$ac_header_compiler" >&6; }
12366 # Is the header present?
12367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12375 #include <$ac_header>
12377 if { (ac_try="$ac_cpp conftest.$ac_ext"
12378 case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12385 grep -v '^ *+' conftest.er1 >conftest.err
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } >/dev/null; then
12390 if test -s conftest.err; then
12391 ac_cpp_err=$ac_c_preproc_warn_flag
12392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12399 if test -z "$ac_cpp_err"; then
12400 ac_header_preproc=yes
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12405 ac_header_preproc=no
12408 rm -f conftest.err conftest.$ac_ext
12409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12410 echo "${ECHO_T}$ac_header_preproc" >&6; }
12412 # So? What about this header?
12413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12419 ac_header_preproc=yes
12422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12435 ## ------------------------------------ ##
12436 ## Report this to http://llvm.org/bugs/ ##
12437 ## ------------------------------------ ##
12439 ) | sed "s/^/$as_me: WARNING: /" >&2
12442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 eval "$as_ac_Header=\$ac_header_preproc"
12449 ac_res=`eval echo '${'$as_ac_Header'}'`
12450 { echo "$as_me:$LINENO: result: $ac_res" >&5
12451 echo "${ECHO_T}$ac_res" >&6; }
12454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12455 cat >>confdefs.h <<_ACEOF
12456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12468 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 ac_res=`eval echo '${'$as_ac_Header'}'`
12478 { echo "$as_me:$LINENO: result: $ac_res" >&5
12479 echo "${ECHO_T}$ac_res" >&6; }
12481 # Is the header compilable?
12482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 $ac_includes_default
12491 #include <$ac_header>
12493 rm -f conftest.$ac_objext
12494 if { (ac_try="$ac_compile"
12495 case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_compile") 2>conftest.er1
12502 grep -v '^ *+' conftest.er1 >conftest.err
12504 cat conftest.err >&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } &&
12507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12508 { (case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_try") 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; } &&
12517 { ac_try='test -s conftest.$ac_objext'
12518 { (case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_try") 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 ac_header_compiler=yes
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 ac_header_compiler=no
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12537 echo "${ECHO_T}$ac_header_compiler" >&6; }
12539 # Is the header present?
12540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12542 cat >conftest.$ac_ext <<_ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 #include <$ac_header>
12550 if { (ac_try="$ac_cpp conftest.$ac_ext"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } >/dev/null; then
12563 if test -s conftest.err; then
12564 ac_cpp_err=$ac_c_preproc_warn_flag
12565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12572 if test -z "$ac_cpp_err"; then
12573 ac_header_preproc=yes
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12578 ac_header_preproc=no
12581 rm -f conftest.err conftest.$ac_ext
12582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12583 echo "${ECHO_T}$ac_header_preproc" >&6; }
12585 # So? What about this header?
12586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12592 ac_header_preproc=yes
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12608 ## ------------------------------------ ##
12609 ## Report this to http://llvm.org/bugs/ ##
12610 ## ------------------------------------ ##
12612 ) | sed "s/^/$as_me: WARNING: /" >&2
12615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 eval "$as_ac_Header=\$ac_header_preproc"
12622 ac_res=`eval echo '${'$as_ac_Header'}'`
12623 { echo "$as_me:$LINENO: result: $ac_res" >&5
12624 echo "${ECHO_T}$ac_res" >&6; }
12627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12628 cat >>confdefs.h <<_ACEOF
12629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12639 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 ac_res=`eval echo '${'$as_ac_Header'}'`
12649 { echo "$as_me:$LINENO: result: $ac_res" >&5
12650 echo "${ECHO_T}$ac_res" >&6; }
12652 # Is the header compilable?
12653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12655 cat >conftest.$ac_ext <<_ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12661 $ac_includes_default
12662 #include <$ac_header>
12664 rm -f conftest.$ac_objext
12665 if { (ac_try="$ac_compile"
12666 case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_compile") 2>conftest.er1
12673 grep -v '^ *+' conftest.er1 >conftest.err
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12679 { (case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_try") 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try='test -s conftest.$ac_objext'
12689 { (case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_try") 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_header_compiler=yes
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_header_compiler=no
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12708 echo "${ECHO_T}$ac_header_compiler" >&6; }
12710 # Is the header present?
12711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12713 cat >conftest.$ac_ext <<_ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12719 #include <$ac_header>
12721 if { (ac_try="$ac_cpp conftest.$ac_ext"
12722 case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12729 grep -v '^ *+' conftest.er1 >conftest.err
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } >/dev/null; then
12734 if test -s conftest.err; then
12735 ac_cpp_err=$ac_c_preproc_warn_flag
12736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12743 if test -z "$ac_cpp_err"; then
12744 ac_header_preproc=yes
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_header_preproc=no
12752 rm -f conftest.err conftest.$ac_ext
12753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12754 echo "${ECHO_T}$ac_header_preproc" >&6; }
12756 # So? What about this header?
12757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12763 ac_header_preproc=yes
12766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12779 ## ------------------------------------ ##
12780 ## Report this to http://llvm.org/bugs/ ##
12781 ## ------------------------------------ ##
12783 ) | sed "s/^/$as_me: WARNING: /" >&2
12786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 eval "$as_ac_Header=\$ac_header_preproc"
12793 ac_res=`eval echo '${'$as_ac_Header'}'`
12794 { echo "$as_me:$LINENO: result: $ac_res" >&5
12795 echo "${ECHO_T}$ac_res" >&6; }
12798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12799 cat >>confdefs.h <<_ACEOF
12800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12808 for ac_header in valgrind/valgrind.h
12810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 ac_res=`eval echo '${'$as_ac_Header'}'`
12818 { echo "$as_me:$LINENO: result: $ac_res" >&5
12819 echo "${ECHO_T}$ac_res" >&6; }
12821 # Is the header compilable?
12822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12824 cat >conftest.$ac_ext <<_ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 $ac_includes_default
12831 #include <$ac_header>
12833 rm -f conftest.$ac_objext
12834 if { (ac_try="$ac_compile"
12835 case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_compile") 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12867 ac_header_compiler=yes
12869 echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 ac_header_compiler=no
12875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12877 echo "${ECHO_T}$ac_header_compiler" >&6; }
12879 # Is the header present?
12880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12882 cat >conftest.$ac_ext <<_ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 #include <$ac_header>
12890 if { (ac_try="$ac_cpp conftest.$ac_ext"
12891 case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12898 grep -v '^ *+' conftest.er1 >conftest.err
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } >/dev/null; then
12903 if test -s conftest.err; then
12904 ac_cpp_err=$ac_c_preproc_warn_flag
12905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12912 if test -z "$ac_cpp_err"; then
12913 ac_header_preproc=yes
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 ac_header_preproc=no
12921 rm -f conftest.err conftest.$ac_ext
12922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12923 echo "${ECHO_T}$ac_header_preproc" >&6; }
12925 # So? What about this header?
12926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12932 ac_header_preproc=yes
12935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12948 ## ------------------------------------ ##
12949 ## Report this to http://llvm.org/bugs/ ##
12950 ## ------------------------------------ ##
12952 ) | sed "s/^/$as_me: WARNING: /" >&2
12955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 eval "$as_ac_Header=\$ac_header_preproc"
12962 ac_res=`eval echo '${'$as_ac_Header'}'`
12963 { echo "$as_me:$LINENO: result: $ac_res" >&5
12964 echo "${ECHO_T}$ac_res" >&6; }
12967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12968 cat >>confdefs.h <<_ACEOF
12969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12977 for ac_header in fenv.h
12979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 ac_res=`eval echo '${'$as_ac_Header'}'`
12987 { echo "$as_me:$LINENO: result: $ac_res" >&5
12988 echo "${ECHO_T}$ac_res" >&6; }
12990 # Is the header compilable?
12991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12993 cat >conftest.$ac_ext <<_ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
12999 $ac_includes_default
13000 #include <$ac_header>
13002 rm -f conftest.$ac_objext
13003 if { (ac_try="$ac_compile"
13004 case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_compile") 2>conftest.er1
13011 grep -v '^ *+' conftest.er1 >conftest.err
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13017 { (case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_try") 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest.$ac_objext'
13027 { (case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_try") 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_header_compiler=yes
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 ac_header_compiler=no
13044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13046 echo "${ECHO_T}$ac_header_compiler" >&6; }
13048 # Is the header present?
13049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13051 cat >conftest.$ac_ext <<_ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13057 #include <$ac_header>
13059 if { (ac_try="$ac_cpp conftest.$ac_ext"
13060 case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13067 grep -v '^ *+' conftest.er1 >conftest.err
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } >/dev/null; then
13072 if test -s conftest.err; then
13073 ac_cpp_err=$ac_c_preproc_warn_flag
13074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13081 if test -z "$ac_cpp_err"; then
13082 ac_header_preproc=yes
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13087 ac_header_preproc=no
13090 rm -f conftest.err conftest.$ac_ext
13091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13092 echo "${ECHO_T}$ac_header_preproc" >&6; }
13094 # So? What about this header?
13095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13101 ac_header_preproc=yes
13104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13117 ## ------------------------------------ ##
13118 ## Report this to http://llvm.org/bugs/ ##
13119 ## ------------------------------------ ##
13121 ) | sed "s/^/$as_me: WARNING: /" >&2
13124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
13129 eval "$as_ac_Header=\$ac_header_preproc"
13131 ac_res=`eval echo '${'$as_ac_Header'}'`
13132 { echo "$as_me:$LINENO: result: $ac_res" >&5
13133 echo "${ECHO_T}$ac_res" >&6; }
13136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13137 cat >>confdefs.h <<_ACEOF
13138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13145 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13146 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13147 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13161 #ifndef FE_ALL_EXCEPT
13162 char *p = (char *) FE_ALL_EXCEPT;
13170 rm -f conftest.$ac_objext
13171 if { (ac_try="$ac_compile"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_compile") 2>conftest.er1
13179 grep -v '^ *+' conftest.er1 >conftest.err
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } &&
13184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest.$ac_objext'
13195 { (case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_try") 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_cv_have_decl_FE_ALL_EXCEPT=yes
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 ac_cv_have_decl_FE_ALL_EXCEPT=no
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13215 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13216 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13218 cat >>confdefs.h <<_ACEOF
13219 #define HAVE_DECL_FE_ALL_EXCEPT 1
13224 cat >>confdefs.h <<_ACEOF
13225 #define HAVE_DECL_FE_ALL_EXCEPT 0
13230 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13231 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13232 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 cat >conftest.$ac_ext <<_ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13247 char *p = (char *) FE_INEXACT;
13255 rm -f conftest.$ac_objext
13256 if { (ac_try="$ac_compile"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_compile") 2>conftest.er1
13264 grep -v '^ *+' conftest.er1 >conftest.err
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13270 { (case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_try") 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest.$ac_objext'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_have_decl_FE_INEXACT=yes
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 ac_cv_have_decl_FE_INEXACT=no
13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13300 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13301 if test $ac_cv_have_decl_FE_INEXACT = yes; then
13303 cat >>confdefs.h <<_ACEOF
13304 #define HAVE_DECL_FE_INEXACT 1
13309 cat >>confdefs.h <<_ACEOF
13310 #define HAVE_DECL_FE_INEXACT 0
13317 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13319 for ac_header in pthread.h
13321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 ac_res=`eval echo '${'$as_ac_Header'}'`
13329 { echo "$as_me:$LINENO: result: $ac_res" >&5
13330 echo "${ECHO_T}$ac_res" >&6; }
13332 # Is the header compilable?
13333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13335 cat >conftest.$ac_ext <<_ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 $ac_includes_default
13342 #include <$ac_header>
13344 rm -f conftest.$ac_objext
13345 if { (ac_try="$ac_compile"
13346 case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_compile") 2>conftest.er1
13353 grep -v '^ *+' conftest.er1 >conftest.err
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
13358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13359 { (case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_try") 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest.$ac_objext'
13369 { (case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_try") 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_header_compiler=yes
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 ac_header_compiler=no
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13388 echo "${ECHO_T}$ac_header_compiler" >&6; }
13390 # Is the header present?
13391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 #include <$ac_header>
13401 if { (ac_try="$ac_cpp conftest.$ac_ext"
13402 case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13409 grep -v '^ *+' conftest.er1 >conftest.err
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } >/dev/null; then
13414 if test -s conftest.err; then
13415 ac_cpp_err=$ac_c_preproc_warn_flag
13416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13423 if test -z "$ac_cpp_err"; then
13424 ac_header_preproc=yes
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ac_header_preproc=no
13432 rm -f conftest.err conftest.$ac_ext
13433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13434 echo "${ECHO_T}$ac_header_preproc" >&6; }
13436 # So? What about this header?
13437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13443 ac_header_preproc=yes
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13459 ## ------------------------------------ ##
13460 ## Report this to http://llvm.org/bugs/ ##
13461 ## ------------------------------------ ##
13463 ) | sed "s/^/$as_me: WARNING: /" >&2
13466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 eval "$as_ac_Header=\$ac_header_preproc"
13473 ac_res=`eval echo '${'$as_ac_Header'}'`
13474 { echo "$as_me:$LINENO: result: $ac_res" >&5
13475 echo "${ECHO_T}$ac_res" >&6; }
13478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13479 cat >>confdefs.h <<_ACEOF
13480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13495 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13497 for ac_header in zlib.h
13499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 ac_res=`eval echo '${'$as_ac_Header'}'`
13507 { echo "$as_me:$LINENO: result: $ac_res" >&5
13508 echo "${ECHO_T}$ac_res" >&6; }
13510 # Is the header compilable?
13511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13513 cat >conftest.$ac_ext <<_ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 $ac_includes_default
13520 #include <$ac_header>
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_header_compiler=yes
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13561 ac_header_compiler=no
13564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13566 echo "${ECHO_T}$ac_header_compiler" >&6; }
13568 # Is the header present?
13569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13571 cat >conftest.$ac_ext <<_ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 #include <$ac_header>
13579 if { (ac_try="$ac_cpp conftest.$ac_ext"
13580 case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13587 grep -v '^ *+' conftest.er1 >conftest.err
13589 cat conftest.err >&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } >/dev/null; then
13592 if test -s conftest.err; then
13593 ac_cpp_err=$ac_c_preproc_warn_flag
13594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13601 if test -z "$ac_cpp_err"; then
13602 ac_header_preproc=yes
13604 echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13607 ac_header_preproc=no
13610 rm -f conftest.err conftest.$ac_ext
13611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13612 echo "${ECHO_T}$ac_header_preproc" >&6; }
13614 # So? What about this header?
13615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13621 ac_header_preproc=yes
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13637 ## ------------------------------------ ##
13638 ## Report this to http://llvm.org/bugs/ ##
13639 ## ------------------------------------ ##
13641 ) | sed "s/^/$as_me: WARNING: /" >&2
13644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 eval "$as_ac_Header=\$ac_header_preproc"
13651 ac_res=`eval echo '${'$as_ac_Header'}'`
13652 { echo "$as_me:$LINENO: result: $ac_res" >&5
13653 echo "${ECHO_T}$ac_res" >&6; }
13656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13657 cat >>confdefs.h <<_ACEOF
13658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13674 if test "$llvm_cv_enable_libffi" = "yes" ; then
13677 for ac_header in ffi.h ffi/ffi.h
13679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 ac_res=`eval echo '${'$as_ac_Header'}'`
13687 { echo "$as_me:$LINENO: result: $ac_res" >&5
13688 echo "${ECHO_T}$ac_res" >&6; }
13690 # Is the header compilable?
13691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13693 cat >conftest.$ac_ext <<_ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 $ac_includes_default
13700 #include <$ac_header>
13702 rm -f conftest.$ac_objext
13703 if { (ac_try="$ac_compile"
13704 case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_compile") 2>conftest.er1
13711 grep -v '^ *+' conftest.er1 >conftest.err
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest.$ac_objext'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_header_compiler=yes
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 ac_header_compiler=no
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13746 echo "${ECHO_T}$ac_header_compiler" >&6; }
13748 # Is the header present?
13749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13751 cat >conftest.$ac_ext <<_ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13757 #include <$ac_header>
13759 if { (ac_try="$ac_cpp conftest.$ac_ext"
13760 case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13767 grep -v '^ *+' conftest.er1 >conftest.err
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } >/dev/null; then
13772 if test -s conftest.err; then
13773 ac_cpp_err=$ac_c_preproc_warn_flag
13774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13781 if test -z "$ac_cpp_err"; then
13782 ac_header_preproc=yes
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 ac_header_preproc=no
13790 rm -f conftest.err conftest.$ac_ext
13791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13792 echo "${ECHO_T}$ac_header_preproc" >&6; }
13794 # So? What about this header?
13795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13801 ac_header_preproc=yes
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13817 ## ------------------------------------ ##
13818 ## Report this to http://llvm.org/bugs/ ##
13819 ## ------------------------------------ ##
13821 ) | sed "s/^/$as_me: WARNING: /" >&2
13824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 eval "$as_ac_Header=\$ac_header_preproc"
13831 ac_res=`eval echo '${'$as_ac_Header'}'`
13832 { echo "$as_me:$LINENO: result: $ac_res" >&5
13833 echo "${ECHO_T}$ac_res" >&6; }
13836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13837 cat >>confdefs.h <<_ACEOF
13838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13848 for ac_header in CrashReporterClient.h
13850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 ac_res=`eval echo '${'$as_ac_Header'}'`
13858 { echo "$as_me:$LINENO: result: $ac_res" >&5
13859 echo "${ECHO_T}$ac_res" >&6; }
13861 # Is the header compilable?
13862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 $ac_includes_default
13871 #include <$ac_header>
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_compile") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13888 { (case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_try") 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; } &&
13897 { ac_try='test -s conftest.$ac_objext'
13898 { (case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_try") 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_header_compiler=yes
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 ac_header_compiler=no
13915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13917 echo "${ECHO_T}$ac_header_compiler" >&6; }
13919 # Is the header present?
13920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13922 cat >conftest.$ac_ext <<_ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 #include <$ac_header>
13930 if { (ac_try="$ac_cpp conftest.$ac_ext"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } >/dev/null; then
13943 if test -s conftest.err; then
13944 ac_cpp_err=$ac_c_preproc_warn_flag
13945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13952 if test -z "$ac_cpp_err"; then
13953 ac_header_preproc=yes
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13958 ac_header_preproc=no
13961 rm -f conftest.err conftest.$ac_ext
13962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13963 echo "${ECHO_T}$ac_header_preproc" >&6; }
13965 # So? What about this header?
13966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13972 ac_header_preproc=yes
13975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13988 ## ------------------------------------ ##
13989 ## Report this to http://llvm.org/bugs/ ##
13990 ## ------------------------------------ ##
13992 ) | sed "s/^/$as_me: WARNING: /" >&2
13995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 eval "$as_ac_Header=\$ac_header_preproc"
14002 ac_res=`eval echo '${'$as_ac_Header'}'`
14003 { echo "$as_me:$LINENO: result: $ac_res" >&5
14004 echo "${ECHO_T}$ac_res" >&6; }
14007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14008 cat >>confdefs.h <<_ACEOF
14009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14017 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14018 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14019 cat >conftest.$ac_ext <<_ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14027 extern const char *__crashreporter_info__;
14029 __crashreporter_info__ = "test";
14035 rm -f conftest.$ac_objext conftest$ac_exeext
14036 if { (ac_try="$ac_link"
14037 case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_link") 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14050 { (case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055 (eval "$ac_try") 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest$ac_exeext'
14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_try") 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14070 { echo "$as_me:$LINENO: result: yes" >&5
14071 echo "${ECHO_T}yes" >&6; }
14073 cat >>confdefs.h <<\_ACEOF
14074 #define HAVE_CRASHREPORTER_INFO 1
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14083 { echo "$as_me:$LINENO: result: no" >&5
14084 echo "${ECHO_T}no" >&6; }
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_CRASHREPORTER_INFO 0
14093 rm -f core conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14098 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14099 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14100 if test "${ac_cv_huge_val_sanity+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 ac_cpp='$CXXCPP $CPPFLAGS'
14106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14110 ac_save_CXXFLAGS=$CXXFLAGS
14111 CXXFLAGS="$CXXFLAGS -pedantic"
14112 if test "$cross_compiling" = yes; then
14113 ac_cv_huge_val_sanity=yes
14115 cat >conftest.$ac_ext <<_ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14125 double x = HUGE_VAL; return x != x;
14130 rm -f conftest$ac_exeext
14131 if { (ac_try="$ac_link"
14132 case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_link") 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14141 { (case "(($ac_try" in
14142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143 *) ac_try_echo=$ac_try;;
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146 (eval "$ac_try") 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_huge_val_sanity=yes
14152 echo "$as_me: program exited with status $ac_status" >&5
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14156 ( exit $ac_status )
14157 ac_cv_huge_val_sanity=no
14159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14163 CXXFLAGS=$ac_save_CXXFLAGS
14165 ac_cpp='$CPP $CPPFLAGS'
14166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14172 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14173 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14174 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14177 { echo "$as_me:$LINENO: checking for pid_t" >&5
14178 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14179 if test "${ac_cv_type_pid_t+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 cat >conftest.$ac_ext <<_ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14188 $ac_includes_default
14189 typedef pid_t ac__type_new_;
14193 if ((ac__type_new_ *) 0)
14195 if (sizeof (ac__type_new_))
14201 rm -f conftest.$ac_objext
14202 if { (ac_try="$ac_compile"
14203 case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_compile") 2>conftest.er1
14210 grep -v '^ *+' conftest.er1 >conftest.err
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14216 { (case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_try") 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; } &&
14225 { ac_try='test -s conftest.$ac_objext'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_type_pid_t=yes
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_cv_type_pid_t=no
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14245 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14246 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14247 if test $ac_cv_type_pid_t = yes; then
14251 cat >>confdefs.h <<_ACEOF
14257 { echo "$as_me:$LINENO: checking for size_t" >&5
14258 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14259 if test "${ac_cv_type_size_t+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 cat >conftest.$ac_ext <<_ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 $ac_includes_default
14269 typedef size_t ac__type_new_;
14273 if ((ac__type_new_ *) 0)
14275 if (sizeof (ac__type_new_))
14281 rm -f conftest.$ac_objext
14282 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14290 grep -v '^ *+' conftest.er1 >conftest.err
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } &&
14295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14296 { (case "(($ac_try" in
14297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301 (eval "$ac_try") 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; } &&
14305 { ac_try='test -s conftest.$ac_objext'
14306 { (case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_try") 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; }; then
14315 ac_cv_type_size_t=yes
14317 echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14320 ac_cv_type_size_t=no
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14326 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14327 if test $ac_cv_type_size_t = yes; then
14331 cat >>confdefs.h <<_ACEOF
14332 #define size_t unsigned int
14338 cat >>confdefs.h <<_ACEOF
14339 #define RETSIGTYPE void
14342 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14343 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14344 if test "${ac_cv_struct_tm+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 #include <sys/types.h>
14359 struct tm *tp; tp->tm_sec;
14364 rm -f conftest.$ac_objext
14365 if { (ac_try="$ac_compile"
14366 case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_compile") 2>conftest.er1
14373 grep -v '^ *+' conftest.er1 >conftest.err
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14379 { (case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_try") 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_try") 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_struct_tm=time.h
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_cv_struct_tm=sys/time.h
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14409 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14410 if test $ac_cv_struct_tm = sys/time.h; then
14412 cat >>confdefs.h <<\_ACEOF
14413 #define TM_IN_SYS_TIME 1
14418 { echo "$as_me:$LINENO: checking for int64_t" >&5
14419 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14420 if test "${ac_cv_type_int64_t+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 cat >conftest.$ac_ext <<_ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 $ac_includes_default
14430 typedef int64_t ac__type_new_;
14434 if ((ac__type_new_ *) 0)
14436 if (sizeof (ac__type_new_))
14442 rm -f conftest.$ac_objext
14443 if { (ac_try="$ac_compile"
14444 case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_compile") 2>conftest.er1
14451 grep -v '^ *+' conftest.er1 >conftest.err
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } &&
14456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
14467 { (case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_try") 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_cv_type_int64_t=yes
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_cv_type_int64_t=no
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14487 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14488 if test $ac_cv_type_int64_t = yes; then
14490 cat >>confdefs.h <<_ACEOF
14491 #define HAVE_INT64_T 1
14496 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14497 echo "$as_me: error: Type int64_t required but not found" >&2;}
14498 { (exit 1); exit 1; }; }
14501 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14502 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14503 if test "${ac_cv_type_uint64_t+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 cat >conftest.$ac_ext <<_ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 $ac_includes_default
14513 typedef uint64_t ac__type_new_;
14517 if ((ac__type_new_ *) 0)
14519 if (sizeof (ac__type_new_))
14525 rm -f conftest.$ac_objext
14526 if { (ac_try="$ac_compile"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_compile") 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14540 { (case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_try") 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_try") 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_cv_type_uint64_t=yes
14561 echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14564 ac_cv_type_uint64_t=no
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14570 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14571 if test $ac_cv_type_uint64_t = yes; then
14573 cat >>confdefs.h <<_ACEOF
14574 #define HAVE_UINT64_T 1
14579 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14580 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14581 if test "${ac_cv_type_u_int64_t+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 $ac_includes_default
14591 typedef u_int64_t ac__type_new_;
14595 if ((ac__type_new_ *) 0)
14597 if (sizeof (ac__type_new_))
14603 rm -f conftest.$ac_objext
14604 if { (ac_try="$ac_compile"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_compile") 2>conftest.er1
14612 grep -v '^ *+' conftest.er1 >conftest.err
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14618 { (case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_try") 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; } &&
14627 { ac_try='test -s conftest.$ac_objext'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_cv_type_u_int64_t=yes
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 ac_cv_type_u_int64_t=no
14645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14647 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14648 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14649 if test $ac_cv_type_u_int64_t = yes; then
14651 cat >>confdefs.h <<_ACEOF
14652 #define HAVE_U_INT64_T 1
14657 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14658 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14659 { (exit 1); exit 1; }; }
14673 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 cat >conftest.$ac_ext <<_ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14689 #define $ac_func innocuous_$ac_func
14691 /* System header to define __stub macros and hopefully few prototypes,
14692 which can conflict with char $ac_func (); below.
14693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14694 <limits.h> exists even on freestanding compilers. */
14697 # include <limits.h>
14699 # include <assert.h>
14704 /* Override any GCC internal prototype to avoid an error.
14705 Use char because int might match the return type of a GCC
14706 builtin and then its argument prototype would still apply. */
14711 /* The GNU C library defines this for functions which it implements
14712 to always fail with ENOSYS. Some functions are actually named
14713 something starting with __ and the normal name is an alias. */
14714 #if defined __stub_$ac_func || defined __stub___$ac_func
14721 return $ac_func ();
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (ac_try="$ac_link"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_link") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
14740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14741 { (case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_try") 2>&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; } &&
14750 { ac_try='test -s conftest$ac_exeext'
14751 { (case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_try") 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }; then
14760 eval "$as_ac_var=yes"
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 eval "$as_ac_var=no"
14768 rm -f core conftest.err conftest.$ac_objext \
14769 conftest$ac_exeext conftest.$ac_ext
14771 ac_res=`eval echo '${'$as_ac_var'}'`
14772 { echo "$as_me:$LINENO: result: $ac_res" >&5
14773 echo "${ECHO_T}$ac_res" >&6; }
14774 if test `eval echo '${'$as_ac_var'}'` = yes; then
14775 cat >>confdefs.h <<_ACEOF
14776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14786 for ac_func in powf fmodf strtof round
14788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 cat >conftest.$ac_ext <<_ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14802 #define $ac_func innocuous_$ac_func
14804 /* System header to define __stub macros and hopefully few prototypes,
14805 which can conflict with char $ac_func (); below.
14806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14807 <limits.h> exists even on freestanding compilers. */
14810 # include <limits.h>
14812 # include <assert.h>
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14824 /* The GNU C library defines this for functions which it implements
14825 to always fail with ENOSYS. Some functions are actually named
14826 something starting with __ and the normal name is an alias. */
14827 #if defined __stub_$ac_func || defined __stub___$ac_func
14834 return $ac_func ();
14839 rm -f conftest.$ac_objext conftest$ac_exeext
14840 if { (ac_try="$ac_link"
14841 case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_link") 2>conftest.er1
14848 grep -v '^ *+' conftest.er1 >conftest.err
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14854 { (case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_try") 2>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; } &&
14863 { ac_try='test -s conftest$ac_exeext'
14864 { (case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_try") 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 eval "$as_ac_var=yes"
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14878 eval "$as_ac_var=no"
14881 rm -f core conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14884 ac_res=`eval echo '${'$as_ac_var'}'`
14885 { echo "$as_me:$LINENO: result: $ac_res" >&5
14886 echo "${ECHO_T}$ac_res" >&6; }
14887 if test `eval echo '${'$as_ac_var'}'` = yes; then
14888 cat >>confdefs.h <<_ACEOF
14889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14900 for ac_func in log log2 log10 exp exp2
14902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 cat >conftest.$ac_ext <<_ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14916 #define $ac_func innocuous_$ac_func
14918 /* System header to define __stub macros and hopefully few prototypes,
14919 which can conflict with char $ac_func (); below.
14920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14921 <limits.h> exists even on freestanding compilers. */
14924 # include <limits.h>
14926 # include <assert.h>
14931 /* Override any GCC internal prototype to avoid an error.
14932 Use char because int might match the return type of a GCC
14933 builtin and then its argument prototype would still apply. */
14938 /* The GNU C library defines this for functions which it implements
14939 to always fail with ENOSYS. Some functions are actually named
14940 something starting with __ and the normal name is an alias. */
14941 #if defined __stub_$ac_func || defined __stub___$ac_func
14948 return $ac_func ();
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (ac_try="$ac_link"
14955 case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_link") 2>conftest.er1
14962 grep -v '^ *+' conftest.er1 >conftest.err
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
14967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14968 { (case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_try") 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } &&
14977 { ac_try='test -s conftest$ac_exeext'
14978 { (case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_try") 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 eval "$as_ac_var=yes"
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 eval "$as_ac_var=no"
14995 rm -f core conftest.err conftest.$ac_objext \
14996 conftest$ac_exeext conftest.$ac_ext
14998 ac_res=`eval echo '${'$as_ac_var'}'`
14999 { echo "$as_me:$LINENO: result: $ac_res" >&5
15000 echo "${ECHO_T}$ac_res" >&6; }
15001 if test `eval echo '${'$as_ac_var'}'` = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15014 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15030 #define $ac_func innocuous_$ac_func
15032 /* System header to define __stub macros and hopefully few prototypes,
15033 which can conflict with char $ac_func (); below.
15034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15035 <limits.h> exists even on freestanding compilers. */
15038 # include <limits.h>
15040 # include <assert.h>
15045 /* Override any GCC internal prototype to avoid an error.
15046 Use char because int might match the return type of a GCC
15047 builtin and then its argument prototype would still apply. */
15052 /* The GNU C library defines this for functions which it implements
15053 to always fail with ENOSYS. Some functions are actually named
15054 something starting with __ and the normal name is an alias. */
15055 #if defined __stub_$ac_func || defined __stub___$ac_func
15062 return $ac_func ();
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15082 { (case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_try") 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest$ac_exeext'
15092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15101 eval "$as_ac_var=yes"
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 eval "$as_ac_var=no"
15109 rm -f core conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
15112 ac_res=`eval echo '${'$as_ac_var'}'`
15113 { echo "$as_me:$LINENO: result: $ac_res" >&5
15114 echo "${ECHO_T}$ac_res" >&6; }
15115 if test `eval echo '${'$as_ac_var'}'` = yes; then
15116 cat >>confdefs.h <<_ACEOF
15117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15126 for ac_func in isatty mkdtemp mkstemp
15128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 cat >conftest.$ac_ext <<_ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15142 #define $ac_func innocuous_$ac_func
15144 /* System header to define __stub macros and hopefully few prototypes,
15145 which can conflict with char $ac_func (); below.
15146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15147 <limits.h> exists even on freestanding compilers. */
15150 # include <limits.h>
15152 # include <assert.h>
15157 /* Override any GCC internal prototype to avoid an error.
15158 Use char because int might match the return type of a GCC
15159 builtin and then its argument prototype would still apply. */
15164 /* The GNU C library defines this for functions which it implements
15165 to always fail with ENOSYS. Some functions are actually named
15166 something starting with __ and the normal name is an alias. */
15167 #if defined __stub_$ac_func || defined __stub___$ac_func
15174 return $ac_func ();
15179 rm -f conftest.$ac_objext conftest$ac_exeext
15180 if { (ac_try="$ac_link"
15181 case "(($ac_try" in
15182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183 *) ac_try_echo=$ac_try;;
15185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186 (eval "$ac_link") 2>conftest.er1
15188 grep -v '^ *+' conftest.er1 >conftest.err
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } &&
15193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15194 { (case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_try") 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; } &&
15203 { ac_try='test -s conftest$ac_exeext'
15204 { (case "(($ac_try" in
15205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206 *) ac_try_echo=$ac_try;;
15208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209 (eval "$ac_try") 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 eval "$as_ac_var=yes"
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15218 eval "$as_ac_var=no"
15221 rm -f core conftest.err conftest.$ac_objext \
15222 conftest$ac_exeext conftest.$ac_ext
15224 ac_res=`eval echo '${'$as_ac_var'}'`
15225 { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15227 if test `eval echo '${'$as_ac_var'}'` = yes; then
15228 cat >>confdefs.h <<_ACEOF
15229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15241 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 cat >conftest.$ac_ext <<_ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15257 #define $ac_func innocuous_$ac_func
15259 /* System header to define __stub macros and hopefully few prototypes,
15260 which can conflict with char $ac_func (); below.
15261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15262 <limits.h> exists even on freestanding compilers. */
15265 # include <limits.h>
15267 # include <assert.h>
15272 /* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15279 /* The GNU C library defines this for functions which it implements
15280 to always fail with ENOSYS. Some functions are actually named
15281 something starting with __ and the normal name is an alias. */
15282 #if defined __stub_$ac_func || defined __stub___$ac_func
15289 return $ac_func ();
15294 rm -f conftest.$ac_objext conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_link") 2>conftest.er1
15303 grep -v '^ *+' conftest.er1 >conftest.err
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15309 { (case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_try") 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest$ac_exeext'
15319 { (case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_try") 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 eval "$as_ac_var=yes"
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 eval "$as_ac_var=no"
15336 rm -f core conftest.err conftest.$ac_objext \
15337 conftest$ac_exeext conftest.$ac_ext
15339 ac_res=`eval echo '${'$as_ac_var'}'`
15340 { echo "$as_me:$LINENO: result: $ac_res" >&5
15341 echo "${ECHO_T}$ac_res" >&6; }
15342 if test `eval echo '${'$as_ac_var'}'` = yes; then
15343 cat >>confdefs.h <<_ACEOF
15344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15353 for ac_func in strerror strerror_r setenv
15355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15369 #define $ac_func innocuous_$ac_func
15371 /* System header to define __stub macros and hopefully few prototypes,
15372 which can conflict with char $ac_func (); below.
15373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15374 <limits.h> exists even on freestanding compilers. */
15377 # include <limits.h>
15379 # include <assert.h>
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15391 /* The GNU C library defines this for functions which it implements
15392 to always fail with ENOSYS. Some functions are actually named
15393 something starting with __ and the normal name is an alias. */
15394 #if defined __stub_$ac_func || defined __stub___$ac_func
15401 return $ac_func ();
15406 rm -f conftest.$ac_objext conftest$ac_exeext
15407 if { (ac_try="$ac_link"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_link") 2>conftest.er1
15415 grep -v '^ *+' conftest.er1 >conftest.err
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421 { (case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_try") 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest$ac_exeext'
15431 { (case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_try") 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 eval "$as_ac_var=yes"
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 eval "$as_ac_var=no"
15448 rm -f core conftest.err conftest.$ac_objext \
15449 conftest$ac_exeext conftest.$ac_ext
15451 ac_res=`eval echo '${'$as_ac_var'}'`
15452 { echo "$as_me:$LINENO: result: $ac_res" >&5
15453 echo "${ECHO_T}$ac_res" >&6; }
15454 if test `eval echo '${'$as_ac_var'}'` = yes; then
15455 cat >>confdefs.h <<_ACEOF
15456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15466 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 cat >conftest.$ac_ext <<_ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15482 #define $ac_func innocuous_$ac_func
15484 /* System header to define __stub macros and hopefully few prototypes,
15485 which can conflict with char $ac_func (); below.
15486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15487 <limits.h> exists even on freestanding compilers. */
15490 # include <limits.h>
15492 # include <assert.h>
15497 /* Override any GCC internal prototype to avoid an error.
15498 Use char because int might match the return type of a GCC
15499 builtin and then its argument prototype would still apply. */
15504 /* The GNU C library defines this for functions which it implements
15505 to always fail with ENOSYS. Some functions are actually named
15506 something starting with __ and the normal name is an alias. */
15507 #if defined __stub_$ac_func || defined __stub___$ac_func
15514 return $ac_func ();
15519 rm -f conftest.$ac_objext conftest$ac_exeext
15520 if { (ac_try="$ac_link"
15521 case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_link") 2>conftest.er1
15528 grep -v '^ *+' conftest.er1 >conftest.err
15530 cat conftest.err >&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
15533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15534 { (case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_try") 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest$ac_exeext'
15544 { (case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_try") 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 eval "$as_ac_var=yes"
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 eval "$as_ac_var=no"
15561 rm -f core conftest.err conftest.$ac_objext \
15562 conftest$ac_exeext conftest.$ac_ext
15564 ac_res=`eval echo '${'$as_ac_var'}'`
15565 { echo "$as_me:$LINENO: result: $ac_res" >&5
15566 echo "${ECHO_T}$ac_res" >&6; }
15567 if test `eval echo '${'$as_ac_var'}'` = yes; then
15568 cat >>confdefs.h <<_ACEOF
15569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15580 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 cat >conftest.$ac_ext <<_ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15596 #define $ac_func innocuous_$ac_func
15598 /* System header to define __stub macros and hopefully few prototypes,
15599 which can conflict with char $ac_func (); below.
15600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15601 <limits.h> exists even on freestanding compilers. */
15604 # include <limits.h>
15606 # include <assert.h>
15611 /* Override any GCC internal prototype to avoid an error.
15612 Use char because int might match the return type of a GCC
15613 builtin and then its argument prototype would still apply. */
15618 /* The GNU C library defines this for functions which it implements
15619 to always fail with ENOSYS. Some functions are actually named
15620 something starting with __ and the normal name is an alias. */
15621 #if defined __stub_$ac_func || defined __stub___$ac_func
15628 return $ac_func ();
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (ac_try="$ac_link"
15635 case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_link") 2>conftest.er1
15642 grep -v '^ *+' conftest.er1 >conftest.err
15644 cat conftest.err >&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } &&
15647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15648 { (case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_try") 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest$ac_exeext'
15658 { (case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_try") 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 eval "$as_ac_var=yes"
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 eval "$as_ac_var=no"
15675 rm -f core conftest.err conftest.$ac_objext \
15676 conftest$ac_exeext conftest.$ac_ext
15678 ac_res=`eval echo '${'$as_ac_var'}'`
15679 { echo "$as_me:$LINENO: result: $ac_res" >&5
15680 echo "${ECHO_T}$ac_res" >&6; }
15681 if test `eval echo '${'$as_ac_var'}'` = yes; then
15682 cat >>confdefs.h <<_ACEOF
15683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15691 for ac_func in futimes futimens
15693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 cat >conftest.$ac_ext <<_ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15707 #define $ac_func innocuous_$ac_func
15709 /* System header to define __stub macros and hopefully few prototypes,
15710 which can conflict with char $ac_func (); below.
15711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15712 <limits.h> exists even on freestanding compilers. */
15715 # include <limits.h>
15717 # include <assert.h>
15722 /* Override any GCC internal prototype to avoid an error.
15723 Use char because int might match the return type of a GCC
15724 builtin and then its argument prototype would still apply. */
15729 /* The GNU C library defines this for functions which it implements
15730 to always fail with ENOSYS. Some functions are actually named
15731 something starting with __ and the normal name is an alias. */
15732 #if defined __stub_$ac_func || defined __stub___$ac_func
15739 return $ac_func ();
15744 rm -f conftest.$ac_objext conftest$ac_exeext
15745 if { (ac_try="$ac_link"
15746 case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_link") 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15759 { (case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_try") 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try='test -s conftest$ac_exeext'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 eval "$as_ac_var=yes"
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 eval "$as_ac_var=no"
15786 rm -f core conftest.err conftest.$ac_objext \
15787 conftest$ac_exeext conftest.$ac_ext
15789 ac_res=`eval echo '${'$as_ac_var'}'`
15790 { echo "$as_me:$LINENO: result: $ac_res" >&5
15791 echo "${ECHO_T}$ac_res" >&6; }
15792 if test `eval echo '${'$as_ac_var'}'` = yes; then
15793 cat >>confdefs.h <<_ACEOF
15794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15800 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15801 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15802 if test "${llvm_cv_c_printf_a+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15806 ac_cpp='$CPP $CPPFLAGS'
15807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15811 if test "$cross_compiling" = yes; then
15812 llvmac_cv_c_printf_a=no
15814 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15823 #include <stdlib.h>
15829 volatile double A, B;
15833 sprintf(Buffer, "%a", A);
15837 if (A != 0x1.999999999999ap-4)
15844 rm -f conftest$ac_exeext
15845 if { (ac_try="$ac_link"
15846 case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_link") 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15855 { (case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_try") 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 llvm_cv_c_printf_a=yes
15866 echo "$as_me: program exited with status $ac_status" >&5
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ( exit $ac_status )
15871 llvmac_cv_c_printf_a=no
15873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15878 ac_cpp='$CPP $CPPFLAGS'
15879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15884 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15885 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15886 if test "$llvm_cv_c_printf_a" = "yes"; then
15888 cat >>confdefs.h <<\_ACEOF
15889 #define HAVE_PRINTF_A 1
15896 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15897 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15898 if test "${ac_cv_func_rand48+set}" = set; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 ac_cpp='$CXXCPP $CPPFLAGS'
15904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 #include <stdlib.h>
15918 srand48(0);lrand48();drand48();
15923 rm -f conftest.$ac_objext
15924 if { (ac_try="$ac_compile"
15925 case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930 (eval "$ac_compile") 2>conftest.er1
15932 grep -v '^ *+' conftest.er1 >conftest.err
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } &&
15937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15938 { (case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_try") 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try='test -s conftest.$ac_objext'
15948 { (case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_try") 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15957 ac_cv_func_rand48=yes
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 ac_cv_func_rand48=no
15965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967 ac_cpp='$CPP $CPPFLAGS'
15968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15974 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15975 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15977 if test "$ac_cv_func_rand48" = "yes" ; then
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_RAND48 1
15986 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15987 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15988 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15991 cat >conftest.$ac_ext <<_ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
15997 $ac_includes_default
16002 char *p = (char *) arc4random;
16010 rm -f conftest.$ac_objext
16011 if { (ac_try="$ac_compile"
16012 case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_compile") 2>conftest.er1
16019 grep -v '^ *+' conftest.er1 >conftest.err
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } &&
16024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16025 { (case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_try") 2>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
16035 { (case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_try") 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_cv_have_decl_arc4random=yes
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16049 ac_cv_have_decl_arc4random=no
16052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16055 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16056 if test $ac_cv_have_decl_arc4random = yes; then
16058 cat >>confdefs.h <<_ACEOF
16059 #define HAVE_DECL_ARC4RANDOM 1
16064 cat >>confdefs.h <<_ACEOF
16065 #define HAVE_DECL_ARC4RANDOM 0
16073 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16074 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16075 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 $ac_includes_default
16089 char *p = (char *) strerror_s;
16097 rm -f conftest.$ac_objext
16098 if { (ac_try="$ac_compile"
16099 case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_compile") 2>conftest.er1
16106 grep -v '^ *+' conftest.er1 >conftest.err
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16112 { (case "(($ac_try" in
16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114 *) ac_try_echo=$ac_try;;
16116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117 (eval "$ac_try") 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; } &&
16121 { ac_try='test -s conftest.$ac_objext'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
16131 ac_cv_have_decl_strerror_s=yes
16133 echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16136 ac_cv_have_decl_strerror_s=no
16139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16142 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16143 if test $ac_cv_have_decl_strerror_s = yes; then
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_DECL_STRERROR_S 1
16151 cat >>confdefs.h <<_ACEOF
16152 #define HAVE_DECL_STRERROR_S 0
16160 if test "$llvm_cv_os_type" = "MingW" ; then
16161 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16162 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16163 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 ac_check_lib_save_LIBS=$LIBS
16168 cat >conftest.$ac_ext <<_ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16175 /* Override any GCC internal prototype to avoid an error.
16176 Use char because int might match the return type of a GCC
16177 builtin and then its argument prototype would still apply. */
16190 rm -f conftest.$ac_objext conftest$ac_exeext
16191 if { (ac_try="$ac_link"
16192 case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_link") 2>conftest.er1
16199 grep -v '^ *+' conftest.er1 >conftest.err
16201 cat conftest.err >&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
16204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16205 { (case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_try") 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; } &&
16214 { ac_try='test -s conftest$ac_exeext'
16215 { (case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_try") 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ac_cv_lib_gcc__alloca=yes
16226 echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16229 ac_cv_lib_gcc__alloca=no
16232 rm -f core conftest.err conftest.$ac_objext \
16233 conftest$ac_exeext conftest.$ac_ext
16234 LIBS=$ac_check_lib_save_LIBS
16236 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16237 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16238 if test $ac_cv_lib_gcc__alloca = yes; then
16240 cat >>confdefs.h <<\_ACEOF
16241 #define HAVE__ALLOCA 1
16246 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16247 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16248 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 ac_check_lib_save_LIBS=$LIBS
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16260 /* Override any GCC internal prototype to avoid an error.
16261 Use char because int might match the return type of a GCC
16262 builtin and then its argument prototype would still apply. */
16270 return __alloca ();
16275 rm -f conftest.$ac_objext conftest$ac_exeext
16276 if { (ac_try="$ac_link"
16277 case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_link") 2>conftest.er1
16284 grep -v '^ *+' conftest.er1 >conftest.err
16286 cat conftest.err >&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
16289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16290 { (case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_try") 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try='test -s conftest$ac_exeext'
16300 { (case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_try") 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 ac_cv_lib_gcc___alloca=yes
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16314 ac_cv_lib_gcc___alloca=no
16317 rm -f core conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16319 LIBS=$ac_check_lib_save_LIBS
16321 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16322 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16323 if test $ac_cv_lib_gcc___alloca = yes; then
16325 cat >>confdefs.h <<\_ACEOF
16326 #define HAVE___ALLOCA 1
16331 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16332 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16333 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 ac_check_lib_save_LIBS=$LIBS
16338 cat >conftest.$ac_ext <<_ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16345 /* Override any GCC internal prototype to avoid an error.
16346 Use char because int might match the return type of a GCC
16347 builtin and then its argument prototype would still apply. */
16355 return __chkstk ();
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (ac_try="$ac_link"
16362 case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_link") 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
16374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16375 { (case "(($ac_try" in
16376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377 *) ac_try_echo=$ac_try;;
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380 (eval "$ac_try") 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; } &&
16384 { ac_try='test -s conftest$ac_exeext'
16385 { (case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_try") 2>&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; }; then
16394 ac_cv_lib_gcc___chkstk=yes
16396 echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16399 ac_cv_lib_gcc___chkstk=no
16402 rm -f core conftest.err conftest.$ac_objext \
16403 conftest$ac_exeext conftest.$ac_ext
16404 LIBS=$ac_check_lib_save_LIBS
16406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16407 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16408 if test $ac_cv_lib_gcc___chkstk = yes; then
16410 cat >>confdefs.h <<\_ACEOF
16411 #define HAVE___CHKSTK 1
16416 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16417 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16418 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 ac_check_lib_save_LIBS=$LIBS
16423 cat >conftest.$ac_ext <<_ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16430 /* Override any GCC internal prototype to avoid an error.
16431 Use char because int might match the return type of a GCC
16432 builtin and then its argument prototype would still apply. */
16440 return ___chkstk ();
16445 rm -f conftest.$ac_objext conftest$ac_exeext
16446 if { (ac_try="$ac_link"
16447 case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_link") 2>conftest.er1
16454 grep -v '^ *+' conftest.er1 >conftest.err
16456 cat conftest.err >&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } &&
16459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16460 { (case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_try") 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; } &&
16469 { ac_try='test -s conftest$ac_exeext'
16470 { (case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475 (eval "$ac_try") 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; }; then
16479 ac_cv_lib_gcc____chkstk=yes
16481 echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16484 ac_cv_lib_gcc____chkstk=no
16487 rm -f core conftest.err conftest.$ac_objext \
16488 conftest$ac_exeext conftest.$ac_ext
16489 LIBS=$ac_check_lib_save_LIBS
16491 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16492 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16493 if test $ac_cv_lib_gcc____chkstk = yes; then
16495 cat >>confdefs.h <<\_ACEOF
16496 #define HAVE____CHKSTK 1
16502 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16503 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16504 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 ac_check_lib_save_LIBS=$LIBS
16509 cat >conftest.$ac_ext <<_ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h. */
16516 /* Override any GCC internal prototype to avoid an error.
16517 Use char because int might match the return type of a GCC
16518 builtin and then its argument prototype would still apply. */
16526 return __ashldi3 ();
16531 rm -f conftest.$ac_objext conftest$ac_exeext
16532 if { (ac_try="$ac_link"
16533 case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_link") 2>conftest.er1
16540 grep -v '^ *+' conftest.er1 >conftest.err
16542 cat conftest.err >&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } &&
16545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest$ac_exeext'
16556 { (case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_try") 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_lib_gcc___ashldi3=yes
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ac_cv_lib_gcc___ashldi3=no
16573 rm -f core conftest.err conftest.$ac_objext \
16574 conftest$ac_exeext conftest.$ac_ext
16575 LIBS=$ac_check_lib_save_LIBS
16577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16578 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16579 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16581 cat >>confdefs.h <<\_ACEOF
16582 #define HAVE___ASHLDI3 1
16587 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16588 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16589 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 ac_check_lib_save_LIBS=$LIBS
16594 cat >conftest.$ac_ext <<_ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16601 /* Override any GCC internal prototype to avoid an error.
16602 Use char because int might match the return type of a GCC
16603 builtin and then its argument prototype would still apply. */
16611 return __ashrdi3 ();
16616 rm -f conftest.$ac_objext conftest$ac_exeext
16617 if { (ac_try="$ac_link"
16618 case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_link") 2>conftest.er1
16625 grep -v '^ *+' conftest.er1 >conftest.err
16627 cat conftest.err >&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } &&
16630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16631 { (case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_try") 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; } &&
16640 { ac_try='test -s conftest$ac_exeext'
16641 { (case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_try") 2>&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; }; then
16650 ac_cv_lib_gcc___ashrdi3=yes
16652 echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16655 ac_cv_lib_gcc___ashrdi3=no
16658 rm -f core conftest.err conftest.$ac_objext \
16659 conftest$ac_exeext conftest.$ac_ext
16660 LIBS=$ac_check_lib_save_LIBS
16662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16663 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16664 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16666 cat >>confdefs.h <<\_ACEOF
16667 #define HAVE___ASHRDI3 1
16672 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16673 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16674 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 ac_check_lib_save_LIBS=$LIBS
16679 cat >conftest.$ac_ext <<_ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16686 /* Override any GCC internal prototype to avoid an error.
16687 Use char because int might match the return type of a GCC
16688 builtin and then its argument prototype would still apply. */
16696 return __divdi3 ();
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (ac_try="$ac_link"
16703 case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_link") 2>conftest.er1
16710 grep -v '^ *+' conftest.er1 >conftest.err
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest$ac_exeext'
16726 { (case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_try") 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_cv_lib_gcc___divdi3=yes
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_cv_lib_gcc___divdi3=no
16743 rm -f core conftest.err conftest.$ac_objext \
16744 conftest$ac_exeext conftest.$ac_ext
16745 LIBS=$ac_check_lib_save_LIBS
16747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16748 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16749 if test $ac_cv_lib_gcc___divdi3 = yes; then
16751 cat >>confdefs.h <<\_ACEOF
16752 #define HAVE___DIVDI3 1
16757 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16758 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16759 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 ac_check_lib_save_LIBS=$LIBS
16764 cat >conftest.$ac_ext <<_ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16771 /* Override any GCC internal prototype to avoid an error.
16772 Use char because int might match the return type of a GCC
16773 builtin and then its argument prototype would still apply. */
16781 return __fixdfdi ();
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (ac_try="$ac_link"
16788 case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793 (eval "$ac_link") 2>conftest.er1
16795 grep -v '^ *+' conftest.er1 >conftest.err
16797 cat conftest.err >&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } &&
16800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16801 { (case "(($ac_try" in
16802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806 (eval "$ac_try") 2>&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; } &&
16810 { ac_try='test -s conftest$ac_exeext'
16811 { (case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_try") 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 ac_cv_lib_gcc___fixdfdi=yes
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 ac_cv_lib_gcc___fixdfdi=no
16828 rm -f core conftest.err conftest.$ac_objext \
16829 conftest$ac_exeext conftest.$ac_ext
16830 LIBS=$ac_check_lib_save_LIBS
16832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16833 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16834 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16836 cat >>confdefs.h <<\_ACEOF
16837 #define HAVE___FIXDFDI 1
16842 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16843 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16844 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 ac_check_lib_save_LIBS=$LIBS
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16856 /* Override any GCC internal prototype to avoid an error.
16857 Use char because int might match the return type of a GCC
16858 builtin and then its argument prototype would still apply. */
16866 return __fixsfdi ();
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (ac_try="$ac_link"
16873 case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_link") 2>conftest.er1
16880 grep -v '^ *+' conftest.er1 >conftest.err
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } &&
16885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16886 { (case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_try") 2>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; } &&
16895 { ac_try='test -s conftest$ac_exeext'
16896 { (case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_try") 2>&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; }; then
16905 ac_cv_lib_gcc___fixsfdi=yes
16907 echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16910 ac_cv_lib_gcc___fixsfdi=no
16913 rm -f core conftest.err conftest.$ac_objext \
16914 conftest$ac_exeext conftest.$ac_ext
16915 LIBS=$ac_check_lib_save_LIBS
16917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16918 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16919 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16921 cat >>confdefs.h <<\_ACEOF
16922 #define HAVE___FIXSFDI 1
16927 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16928 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16929 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 ac_check_lib_save_LIBS=$LIBS
16934 cat >conftest.$ac_ext <<_ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16941 /* Override any GCC internal prototype to avoid an error.
16942 Use char because int might match the return type of a GCC
16943 builtin and then its argument prototype would still apply. */
16947 char __floatdidf ();
16951 return __floatdidf ();
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (ac_try="$ac_link"
16958 case "(($ac_try" in
16959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960 *) ac_try_echo=$ac_try;;
16962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16963 (eval "$ac_link") 2>conftest.er1
16965 grep -v '^ *+' conftest.er1 >conftest.err
16967 cat conftest.err >&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_try") 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_cv_lib_gcc___floatdidf=yes
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 ac_cv_lib_gcc___floatdidf=no
16998 rm -f core conftest.err conftest.$ac_objext \
16999 conftest$ac_exeext conftest.$ac_ext
17000 LIBS=$ac_check_lib_save_LIBS
17002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17003 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17004 if test $ac_cv_lib_gcc___floatdidf = yes; then
17006 cat >>confdefs.h <<\_ACEOF
17007 #define HAVE___FLOATDIDF 1
17012 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17013 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17014 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 ac_check_lib_save_LIBS=$LIBS
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17026 /* Override any GCC internal prototype to avoid an error.
17027 Use char because int might match the return type of a GCC
17028 builtin and then its argument prototype would still apply. */
17036 return __lshrdi3 ();
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (ac_try="$ac_link"
17043 case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_link") 2>conftest.er1
17050 grep -v '^ *+' conftest.er1 >conftest.err
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
17055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest$ac_exeext'
17066 { (case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_try") 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 ac_cv_lib_gcc___lshrdi3=yes
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 ac_cv_lib_gcc___lshrdi3=no
17083 rm -f core conftest.err conftest.$ac_objext \
17084 conftest$ac_exeext conftest.$ac_ext
17085 LIBS=$ac_check_lib_save_LIBS
17087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17088 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17089 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17091 cat >>confdefs.h <<\_ACEOF
17092 #define HAVE___LSHRDI3 1
17097 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17098 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17099 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 ac_check_lib_save_LIBS=$LIBS
17104 cat >conftest.$ac_ext <<_ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17111 /* Override any GCC internal prototype to avoid an error.
17112 Use char because int might match the return type of a GCC
17113 builtin and then its argument prototype would still apply. */
17121 return __moddi3 ();
17126 rm -f conftest.$ac_objext conftest$ac_exeext
17127 if { (ac_try="$ac_link"
17128 case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_link") 2>conftest.er1
17135 grep -v '^ *+' conftest.er1 >conftest.err
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17141 { (case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_try") 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest$ac_exeext'
17151 { (case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_try") 2>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; }; then
17160 ac_cv_lib_gcc___moddi3=yes
17162 echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17165 ac_cv_lib_gcc___moddi3=no
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17170 LIBS=$ac_check_lib_save_LIBS
17172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17173 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17174 if test $ac_cv_lib_gcc___moddi3 = yes; then
17176 cat >>confdefs.h <<\_ACEOF
17177 #define HAVE___MODDI3 1
17182 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17183 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17184 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 ac_check_lib_save_LIBS=$LIBS
17189 cat >conftest.$ac_ext <<_ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17196 /* Override any GCC internal prototype to avoid an error.
17197 Use char because int might match the return type of a GCC
17198 builtin and then its argument prototype would still apply. */
17206 return __udivdi3 ();
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (ac_try="$ac_link"
17213 case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_link") 2>conftest.er1
17220 grep -v '^ *+' conftest.er1 >conftest.err
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226 { (case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_try") 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest$ac_exeext'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ac_cv_lib_gcc___udivdi3=yes
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 ac_cv_lib_gcc___udivdi3=no
17253 rm -f core conftest.err conftest.$ac_objext \
17254 conftest$ac_exeext conftest.$ac_ext
17255 LIBS=$ac_check_lib_save_LIBS
17257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17258 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17259 if test $ac_cv_lib_gcc___udivdi3 = yes; then
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE___UDIVDI3 1
17267 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17268 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17269 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 ac_check_lib_save_LIBS=$LIBS
17274 cat >conftest.$ac_ext <<_ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17281 /* Override any GCC internal prototype to avoid an error.
17282 Use char because int might match the return type of a GCC
17283 builtin and then its argument prototype would still apply. */
17291 return __umoddi3 ();
17296 rm -f conftest.$ac_objext conftest$ac_exeext
17297 if { (ac_try="$ac_link"
17298 case "(($ac_try" in
17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_link") 2>conftest.er1
17305 grep -v '^ *+' conftest.er1 >conftest.err
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } &&
17310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17311 { (case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_try") 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; } &&
17320 { ac_try='test -s conftest$ac_exeext'
17321 { (case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_try") 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_cv_lib_gcc___umoddi3=yes
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_cv_lib_gcc___umoddi3=no
17338 rm -f core conftest.err conftest.$ac_objext \
17339 conftest$ac_exeext conftest.$ac_ext
17340 LIBS=$ac_check_lib_save_LIBS
17342 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17343 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17344 if test $ac_cv_lib_gcc___umoddi3 = yes; then
17346 cat >>confdefs.h <<\_ACEOF
17347 #define HAVE___UMODDI3 1
17353 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17354 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17355 if test "${ac_cv_lib_gcc___main+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 ac_check_lib_save_LIBS=$LIBS
17360 cat >conftest.$ac_ext <<_ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17367 /* Override any GCC internal prototype to avoid an error.
17368 Use char because int might match the return type of a GCC
17369 builtin and then its argument prototype would still apply. */
17382 rm -f conftest.$ac_objext conftest$ac_exeext
17383 if { (ac_try="$ac_link"
17384 case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_link") 2>conftest.er1
17391 grep -v '^ *+' conftest.er1 >conftest.err
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try='test -s conftest$ac_exeext'
17407 { (case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_try") 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_cv_lib_gcc___main=yes
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_cv_lib_gcc___main=no
17424 rm -f core conftest.err conftest.$ac_objext \
17425 conftest$ac_exeext conftest.$ac_ext
17426 LIBS=$ac_check_lib_save_LIBS
17428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17429 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17430 if test $ac_cv_lib_gcc___main = yes; then
17432 cat >>confdefs.h <<\_ACEOF
17433 #define HAVE___MAIN 1
17438 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17439 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17440 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 ac_check_lib_save_LIBS=$LIBS
17445 cat >conftest.$ac_ext <<_ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17452 /* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17462 return __cmpdi2 ();
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (ac_try="$ac_link"
17469 case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_link") 2>conftest.er1
17476 grep -v '^ *+' conftest.er1 >conftest.err
17478 cat conftest.err >&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try='test -s conftest$ac_exeext'
17492 { (case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_try") 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; }; then
17501 ac_cv_lib_gcc___cmpdi2=yes
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 ac_cv_lib_gcc___cmpdi2=no
17509 rm -f core conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17511 LIBS=$ac_check_lib_save_LIBS
17513 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17514 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17515 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17517 cat >>confdefs.h <<\_ACEOF
17518 #define HAVE___CMPDI2 1
17525 if test "$llvm_cv_os_type" = "MingW" ; then
17526 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17527 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17528 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17536 #include <windows.h>
17537 #include <imagehlp.h>
17538 extern void foo(PENUMLOADED_MODULES_CALLBACK);
17539 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17543 rm -f conftest.$ac_objext
17544 if { (ac_try="$ac_compile"
17545 case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_compile") 2>conftest.er1
17552 grep -v '^ *+' conftest.er1 >conftest.err
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17558 { (case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_try") 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest.$ac_objext'
17568 { (case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_try") 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17578 { echo "$as_me:$LINENO: result: yes" >&5
17579 echo "${ECHO_T}yes" >&6; }
17580 llvm_cv_win32_elmcb_pcstr="PCSTR"
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17587 { echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6; }
17589 llvm_cv_win32_elmcb_pcstr="PSTR"
17593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595 cat >>confdefs.h <<_ACEOF
17596 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17603 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17604 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17605 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17606 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 ac_cpp='$CXXCPP $CPPFLAGS'
17611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17615 cat >conftest.$ac_ext <<_ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17630 rm -f conftest.$ac_objext
17631 if { (ac_try="$ac_compile"
17632 case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_compile") 2>conftest.er1
17639 grep -v '^ *+' conftest.er1 >conftest.err
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } &&
17644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17645 { (case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_try") 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest.$ac_objext'
17655 { (case "(($ac_try" in
17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657 *) ac_try_echo=$ac_try;;
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660 (eval "$ac_try") 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_cv_func_isnan_in_math_h=yes
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 ac_cv_func_isnan_in_math_h=no
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674 ac_cpp='$CPP $CPPFLAGS'
17675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17681 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17682 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17685 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17687 cat >>confdefs.h <<\_ACEOF
17688 #define HAVE_ISNAN_IN_MATH_H 1
17694 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17695 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17696 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 ac_cpp='$CXXCPP $CPPFLAGS'
17702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17721 rm -f conftest.$ac_objext
17722 if { (ac_try="$ac_compile"
17723 case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_compile") 2>conftest.er1
17730 grep -v '^ *+' conftest.er1 >conftest.err
17732 cat conftest.err >&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); } &&
17735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; } &&
17745 { ac_try='test -s conftest.$ac_objext'
17746 { (case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_try") 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 ac_cv_func_isnan_in_cmath=yes
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 ac_cv_func_isnan_in_cmath=no
17763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765 ac_cpp='$CPP $CPPFLAGS'
17766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17772 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17773 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17775 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17777 cat >>confdefs.h <<\_ACEOF
17778 #define HAVE_ISNAN_IN_CMATH 1
17784 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17785 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17786 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 ac_cpp='$CXXCPP $CPPFLAGS'
17792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17806 float f; std::isnan(f);
17811 rm -f conftest.$ac_objext
17812 if { (ac_try="$ac_compile"
17813 case "(($ac_try" in
17814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815 *) ac_try_echo=$ac_try;;
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818 (eval "$ac_compile") 2>conftest.er1
17820 grep -v '^ *+' conftest.er1 >conftest.err
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17826 { (case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_try") 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_try") 2>&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 ac_cv_func_std_isnan_in_cmath=yes
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17850 ac_cv_func_std_isnan_in_cmath=no
17853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855 ac_cpp='$CPP $CPPFLAGS'
17856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17862 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17863 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17865 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17867 cat >>confdefs.h <<\_ACEOF
17868 #define HAVE_STD_ISNAN_IN_CMATH 1
17876 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17877 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17878 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 ac_cpp='$CXXCPP $CPPFLAGS'
17884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17888 cat >conftest.$ac_ext <<_ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h. */
17903 rm -f conftest.$ac_objext
17904 if { (ac_try="$ac_compile"
17905 case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_compile") 2>conftest.er1
17912 grep -v '^ *+' conftest.er1 >conftest.err
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17918 { (case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_try") 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; } &&
17927 { ac_try='test -s conftest.$ac_objext'
17928 { (case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_try") 2>&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 ac_cv_func_isinf_in_math_h=yes
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17942 ac_cv_func_isinf_in_math_h=no
17945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17947 ac_cpp='$CPP $CPPFLAGS'
17948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17954 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17955 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17957 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17959 cat >>confdefs.h <<\_ACEOF
17960 #define HAVE_ISINF_IN_MATH_H 1
17966 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17967 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17968 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 ac_cpp='$CXXCPP $CPPFLAGS'
17974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17993 rm -f conftest.$ac_objext
17994 if { (ac_try="$ac_compile"
17995 case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_compile") 2>conftest.er1
18002 grep -v '^ *+' conftest.er1 >conftest.err
18004 cat conftest.err >&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest.$ac_objext'
18018 { (case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_try") 2>&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; }; then
18027 ac_cv_func_isinf_in_cmath=yes
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_cv_func_isinf_in_cmath=no
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18037 ac_cpp='$CPP $CPPFLAGS'
18038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18044 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18045 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18047 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18049 cat >>confdefs.h <<\_ACEOF
18050 #define HAVE_ISINF_IN_CMATH 1
18056 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18057 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18058 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 ac_cpp='$CXXCPP $CPPFLAGS'
18064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18068 cat >conftest.$ac_ext <<_ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18078 float f; std::isinf(f);
18083 rm -f conftest.$ac_objext
18084 if { (ac_try="$ac_compile"
18085 case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_compile") 2>conftest.er1
18092 grep -v '^ *+' conftest.er1 >conftest.err
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
18097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18098 { (case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_try") 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try='test -s conftest.$ac_objext'
18108 { (case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_try") 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_cv_func_std_isinf_in_cmath=yes
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18122 ac_cv_func_std_isinf_in_cmath=no
18125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18127 ac_cpp='$CPP $CPPFLAGS'
18128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18134 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18135 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18137 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18139 cat >>confdefs.h <<\_ACEOF
18140 #define HAVE_STD_ISINF_IN_CMATH 1
18146 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18147 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18148 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 ac_cpp='$CXXCPP $CPPFLAGS'
18154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 #include <ieeefp.h>
18168 float f; finite(f);
18173 rm -f conftest.$ac_objext
18174 if { (ac_try="$ac_compile"
18175 case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_compile") 2>conftest.er1
18182 grep -v '^ *+' conftest.er1 >conftest.err
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18188 { (case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_try") 2>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; } &&
18197 { ac_try='test -s conftest.$ac_objext'
18198 { (case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_try") 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 ac_cv_func_finite_in_ieeefp_h=yes
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 ac_cv_func_finite_in_ieeefp_h=no
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217 ac_cpp='$CPP $CPPFLAGS'
18218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18224 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18225 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18227 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_FINITE_IN_IEEEFP_H 1
18237 if test "$llvm_cv_platform_type" = "Unix" ; then
18240 for ac_header in stdlib.h unistd.h
18242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 ac_res=`eval echo '${'$as_ac_Header'}'`
18250 { echo "$as_me:$LINENO: result: $ac_res" >&5
18251 echo "${ECHO_T}$ac_res" >&6; }
18253 # Is the header compilable?
18254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18256 cat >conftest.$ac_ext <<_ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18262 $ac_includes_default
18263 #include <$ac_header>
18265 rm -f conftest.$ac_objext
18266 if { (ac_try="$ac_compile"
18267 case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_compile") 2>conftest.er1
18274 grep -v '^ *+' conftest.er1 >conftest.err
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18280 { (case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_try") 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest.$ac_objext'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_header_compiler=yes
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_header_compiler=no
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18309 echo "${ECHO_T}$ac_header_compiler" >&6; }
18311 # Is the header present?
18312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18314 cat >conftest.$ac_ext <<_ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18320 #include <$ac_header>
18322 if { (ac_try="$ac_cpp conftest.$ac_ext"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18330 grep -v '^ *+' conftest.er1 >conftest.err
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } >/dev/null; then
18335 if test -s conftest.err; then
18336 ac_cpp_err=$ac_c_preproc_warn_flag
18337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18344 if test -z "$ac_cpp_err"; then
18345 ac_header_preproc=yes
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 ac_header_preproc=no
18353 rm -f conftest.err conftest.$ac_ext
18354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18355 echo "${ECHO_T}$ac_header_preproc" >&6; }
18357 # So? What about this header?
18358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18364 ac_header_preproc=yes
18367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18380 ## ------------------------------------ ##
18381 ## Report this to http://llvm.org/bugs/ ##
18382 ## ------------------------------------ ##
18384 ) | sed "s/^/$as_me: WARNING: /" >&2
18387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 eval "$as_ac_Header=\$ac_header_preproc"
18394 ac_res=`eval echo '${'$as_ac_Header'}'`
18395 { echo "$as_me:$LINENO: result: $ac_res" >&5
18396 echo "${ECHO_T}$ac_res" >&6; }
18399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18400 cat >>confdefs.h <<_ACEOF
18401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18409 for ac_func in getpagesize
18411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18417 cat >conftest.$ac_ext <<_ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18425 #define $ac_func innocuous_$ac_func
18427 /* System header to define __stub macros and hopefully few prototypes,
18428 which can conflict with char $ac_func (); below.
18429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18430 <limits.h> exists even on freestanding compilers. */
18433 # include <limits.h>
18435 # include <assert.h>
18440 /* Override any GCC internal prototype to avoid an error.
18441 Use char because int might match the return type of a GCC
18442 builtin and then its argument prototype would still apply. */
18447 /* The GNU C library defines this for functions which it implements
18448 to always fail with ENOSYS. Some functions are actually named
18449 something starting with __ and the normal name is an alias. */
18450 #if defined __stub_$ac_func || defined __stub___$ac_func
18457 return $ac_func ();
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (ac_try="$ac_link"
18464 case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_link") 2>conftest.er1
18471 grep -v '^ *+' conftest.er1 >conftest.err
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } &&
18476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18477 { (case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_try") 2>&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; } &&
18486 { ac_try='test -s conftest$ac_exeext'
18487 { (case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_try") 2>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18496 eval "$as_ac_var=yes"
18498 echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18501 eval "$as_ac_var=no"
18504 rm -f core conftest.err conftest.$ac_objext \
18505 conftest$ac_exeext conftest.$ac_ext
18507 ac_res=`eval echo '${'$as_ac_var'}'`
18508 { echo "$as_me:$LINENO: result: $ac_res" >&5
18509 echo "${ECHO_T}$ac_res" >&6; }
18510 if test `eval echo '${'$as_ac_var'}'` = yes; then
18511 cat >>confdefs.h <<_ACEOF
18512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18518 { echo "$as_me:$LINENO: checking for working mmap" >&5
18519 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18520 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 if test "$cross_compiling" = yes; then
18524 ac_cv_func_mmap_fixed_mapped=no
18526 cat >conftest.$ac_ext <<_ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18532 $ac_includes_default
18533 /* malloc might have been renamed as rpl_malloc. */
18536 /* Thanks to Mike Haertel and Jim Avera for this test.
18537 Here is a matrix of mmap possibilities:
18538 mmap private not fixed
18539 mmap private fixed at somewhere currently unmapped
18540 mmap private fixed at somewhere already mapped
18541 mmap shared not fixed
18542 mmap shared fixed at somewhere currently unmapped
18543 mmap shared fixed at somewhere already mapped
18544 For private mappings, we should verify that changes cannot be read()
18545 back from the file, nor mmap's back from the file at a different
18546 address. (There have been systems where private was not correctly
18547 implemented like the infamous i386 svr4.0, and systems where the
18548 VM page cache was not coherent with the file system buffer cache
18549 like early versions of FreeBSD and possibly contemporary NetBSD.)
18550 For shared mappings, we should conversely verify that changes get
18551 propagated back to all the places they're supposed to be.
18553 Grep wants private fixed already mapped.
18554 The main things grep needs to know about mmap are:
18555 * does it exist and is it safe to write into the mmap'd area
18556 * how to use it (BSD variants) */
18559 #include <sys/mman.h>
18561 #if !STDC_HEADERS && !HAVE_STDLIB_H
18565 /* This mess was copied from the GNU getpagesize.h. */
18566 #if !HAVE_GETPAGESIZE
18567 /* Assume that all systems that can run configure have sys/param.h. */
18568 # if !HAVE_SYS_PARAM_H
18569 # define HAVE_SYS_PARAM_H 1
18572 # ifdef _SC_PAGESIZE
18573 # define getpagesize() sysconf(_SC_PAGESIZE)
18574 # else /* no _SC_PAGESIZE */
18575 # if HAVE_SYS_PARAM_H
18576 # include <sys/param.h>
18577 # ifdef EXEC_PAGESIZE
18578 # define getpagesize() EXEC_PAGESIZE
18579 # else /* no EXEC_PAGESIZE */
18581 # define getpagesize() NBPG * CLSIZE
18584 # endif /* no CLSIZE */
18585 # else /* no NBPG */
18587 # define getpagesize() NBPC
18588 # else /* no NBPC */
18590 # define getpagesize() PAGESIZE
18591 # endif /* PAGESIZE */
18592 # endif /* no NBPC */
18593 # endif /* no NBPG */
18594 # endif /* no EXEC_PAGESIZE */
18595 # else /* no HAVE_SYS_PARAM_H */
18596 # define getpagesize() 8192 /* punt totally */
18597 # endif /* no HAVE_SYS_PARAM_H */
18598 # endif /* no _SC_PAGESIZE */
18600 #endif /* no HAVE_GETPAGESIZE */
18605 char *data, *data2, *data3;
18609 pagesize = getpagesize ();
18611 /* First, make a file with some known garbage in it. */
18612 data = (char *) malloc (pagesize);
18615 for (i = 0; i < pagesize; ++i)
18616 *(data + i) = rand ();
18618 fd = creat ("conftest.mmap", 0600);
18621 if (write (fd, data, pagesize) != pagesize)
18625 /* Next, try to mmap the file at a fixed address which already has
18626 something else allocated at it. If we can, also make sure that
18627 we see the same garbage. */
18628 fd = open ("conftest.mmap", O_RDWR);
18631 data2 = (char *) malloc (2 * pagesize);
18634 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18635 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18636 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18638 for (i = 0; i < pagesize; ++i)
18639 if (*(data + i) != *(data2 + i))
18642 /* Finally, make sure that changes to the mapped area do not
18643 percolate back to the file as seen by read(). (This is a bug on
18644 some variants of i386 svr4.0.) */
18645 for (i = 0; i < pagesize; ++i)
18646 *(data2 + i) = *(data2 + i) + 1;
18647 data3 = (char *) malloc (pagesize);
18650 if (read (fd, data3, pagesize) != pagesize)
18652 for (i = 0; i < pagesize; ++i)
18653 if (*(data + i) != *(data3 + i))
18659 rm -f conftest$ac_exeext
18660 if { (ac_try="$ac_link"
18661 case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_link") 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18670 { (case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_try") 2>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 ac_cv_func_mmap_fixed_mapped=yes
18681 echo "$as_me: program exited with status $ac_status" >&5
18682 echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18685 ( exit $ac_status )
18686 ac_cv_func_mmap_fixed_mapped=no
18688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18693 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18694 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18695 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE_MMAP 1
18702 rm -f conftest.mmap
18704 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18705 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18706 if test "${ac_cv_func_mmap_file+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18710 ac_cpp='$CPP $CPPFLAGS'
18711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18715 if test "$cross_compiling" = yes; then
18716 ac_cv_func_mmap_file=no
18718 cat >conftest.$ac_ext <<_ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18726 #include <sys/types.h>
18727 #include <sys/mman.h>
18735 fd = creat ("foo",0777);
18736 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18738 return (fd != (int) MAP_FAILED);
18743 rm -f conftest$ac_exeext
18744 if { (ac_try="$ac_link"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_link") 2>&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18754 { (case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759 (eval "$ac_try") 2>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; }; then
18763 ac_cv_func_mmap_file=yes
18765 echo "$as_me: program exited with status $ac_status" >&5
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18769 ( exit $ac_status )
18770 ac_cv_func_mmap_file=no
18772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18777 ac_cpp='$CPP $CPPFLAGS'
18778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18784 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18785 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18786 if test "$ac_cv_func_mmap_file" = yes; then
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE_MMAP_FILE
18796 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18797 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18798 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 if test "$llvm_cv_os_type" = "Interix" ; then
18802 ac_cv_need_dev_zero_for_mmap=yes
18804 ac_cv_need_dev_zero_for_mmap=no
18808 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18809 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18810 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18812 cat >>confdefs.h <<\_ACEOF
18813 #define NEED_DEV_ZERO_FOR_MMAP 1
18818 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18820 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18821 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18823 if test "$ac_cv_func_mmap_file" = "no"
18825 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18826 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18830 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18831 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18833 ac_cpp='$CXXCPP $CPPFLAGS'
18834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18838 cat >conftest.$ac_ext <<_ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18847 volatile unsigned long val = 1;
18848 __sync_synchronize();
18849 __sync_val_compare_and_swap(&val, 1, 0);
18850 __sync_add_and_fetch(&val, 1);
18851 __sync_sub_and_fetch(&val, 1);
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (ac_try="$ac_link"
18859 case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_link") 2>conftest.er1
18866 grep -v '^ *+' conftest.er1 >conftest.err
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } &&
18871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest$ac_exeext'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18892 { echo "$as_me:$LINENO: result: yes" >&5
18893 echo "${ECHO_T}yes" >&6; }
18895 cat >>confdefs.h <<\_ACEOF
18896 #define LLVM_HAS_ATOMICS 1
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18905 { echo "$as_me:$LINENO: result: no" >&5
18906 echo "${ECHO_T}no" >&6; }
18908 cat >>confdefs.h <<\_ACEOF
18909 #define LLVM_HAS_ATOMICS 0
18912 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18913 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18917 rm -f core conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18920 ac_cpp='$CPP $CPPFLAGS'
18921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18927 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18928 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18929 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18930 if test "${llvm_cv_linux_mixed+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 ac_cpp='$CPP $CPPFLAGS'
18935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18946 error: Not x86-64 even if uname says so!
18957 rm -f conftest.$ac_objext
18958 if { (ac_try="$ac_compile"
18959 case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18964 (eval "$ac_compile") 2>conftest.er1
18966 grep -v '^ *+' conftest.er1 >conftest.err
18968 cat conftest.err >&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
18971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18972 { (case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_try") 2>&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try='test -s conftest.$ac_objext'
18982 { (case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_try") 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; }; then
18991 llvm_cv_linux_mixed=no
18993 echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 llvm_cv_linux_mixed=yes
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 ac_cpp='$CPP $CPPFLAGS'
19002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19008 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19009 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19011 if test "$llvm_cv_linux_mixed" = "yes"; then
19012 llvm_cv_target_arch="x86"
19018 for ac_func in __dso_handle
19020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 cat >conftest.$ac_ext <<_ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19034 #define $ac_func innocuous_$ac_func
19036 /* System header to define __stub macros and hopefully few prototypes,
19037 which can conflict with char $ac_func (); below.
19038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19039 <limits.h> exists even on freestanding compilers. */
19042 # include <limits.h>
19044 # include <assert.h>
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19056 /* The GNU C library defines this for functions which it implements
19057 to always fail with ENOSYS. Some functions are actually named
19058 something starting with __ and the normal name is an alias. */
19059 #if defined __stub_$ac_func || defined __stub___$ac_func
19066 return $ac_func ();
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (ac_try="$ac_link"
19073 case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_link") 2>conftest.er1
19080 grep -v '^ *+' conftest.er1 >conftest.err
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
19085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19086 { (case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_try") 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try='test -s conftest$ac_exeext'
19096 { (case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_try") 2>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 eval "$as_ac_var=yes"
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 eval "$as_ac_var=no"
19113 rm -f core conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
19116 ac_res=`eval echo '${'$as_ac_var'}'`
19117 { echo "$as_me:$LINENO: result: $ac_res" >&5
19118 echo "${ECHO_T}$ac_res" >&6; }
19119 if test `eval echo '${'$as_ac_var'}'` = yes; then
19120 cat >>confdefs.h <<_ACEOF
19121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19128 SHLIBEXT=$llvm_shlib_ext
19131 if test "${prefix}" = "NONE" ; then
19132 prefix="/usr/local"
19134 eval LLVM_PREFIX="${prefix}";
19135 eval LLVM_BINDIR="${prefix}/bin";
19136 eval LLVM_DATADIR="${prefix}/share/llvm";
19137 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19138 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19139 eval LLVM_INCLUDEDIR="${prefix}/include";
19140 eval LLVM_INFODIR="${prefix}/info";
19141 eval LLVM_MANDIR="${prefix}/man";
19142 LLVM_CONFIGTIME=`date`
19153 if test "${ENABLE_TIMESTAMPS}" = "0"; then
19154 LLVM_CONFIGTIME="(timestamp not enabled)"
19158 cat >>confdefs.h <<_ACEOF
19159 #define LLVM_PREFIX "$LLVM_PREFIX"
19163 cat >>confdefs.h <<_ACEOF
19164 #define LLVM_BINDIR "$LLVM_BINDIR"
19168 cat >>confdefs.h <<_ACEOF
19169 #define LLVM_DATADIR "$LLVM_DATADIR"
19173 cat >>confdefs.h <<_ACEOF
19174 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19178 cat >>confdefs.h <<_ACEOF
19179 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19183 cat >>confdefs.h <<_ACEOF
19184 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19188 cat >>confdefs.h <<_ACEOF
19189 #define LLVM_INFODIR "$LLVM_INFODIR"
19193 cat >>confdefs.h <<_ACEOF
19194 #define LLVM_MANDIR "$LLVM_MANDIR"
19198 cat >>confdefs.h <<_ACEOF
19199 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19203 cat >>confdefs.h <<_ACEOF
19204 #define LLVM_HOST_TRIPLE "$host"
19208 cat >>confdefs.h <<_ACEOF
19209 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19213 if test "$BINDINGS_TO_BUILD" = auto ; then
19214 BINDINGS_TO_BUILD=""
19215 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19216 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19219 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19225 binding_prereqs_failed=0
19226 for a_binding in $BINDINGS_TO_BUILD ; do
19227 case "$a_binding" in
19229 if test "x$OCAMLC" = x ; then
19230 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19231 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19232 binding_prereqs_failed=1
19234 if test "x$OCAMLDEP" = x ; then
19235 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19236 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19237 binding_prereqs_failed=1
19239 if test "x$OCAMLOPT" = x ; then
19240 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19241 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19243 if test "x$with_ocaml_libdir" != xauto ; then
19244 OCAML_LIBDIR=$with_ocaml_libdir
19247 ocaml_stdlib="`"$OCAMLC" -where`"
19248 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19250 # ocaml stdlib is beneath our prefix; use stdlib
19251 OCAML_LIBDIR=$ocaml_stdlib
19254 # ocaml stdlib is outside our prefix; use libdir/ocaml
19255 OCAML_LIBDIR=${prefix}/lib/ocaml
19262 if test "$binding_prereqs_failed" = 1 ; then
19263 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19264 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19265 { (exit 1); exit 1; }; }
19268 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19269 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19270 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19274 ac_cpp='$CXXCPP $CPPFLAGS'
19275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19279 oldcxxflags="$CXXFLAGS"
19280 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19281 cat >conftest.$ac_ext <<_ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 template <typename T> struct X { void __attribute__((noinline)) f() {} };
19296 rm -f conftest.$ac_objext
19297 if { (ac_try="$ac_compile"
19298 case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_compile") 2>conftest.er1
19305 grep -v '^ *+' conftest.er1 >conftest.err
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19311 { (case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_try") 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try='test -s conftest.$ac_objext'
19321 { (case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_try") 2>&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
19330 llvm_cv_cxx_visibility_inlines_hidden=yes
19332 echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19335 llvm_cv_cxx_visibility_inlines_hidden=no
19338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19339 CXXFLAGS="$oldcxxflags"
19341 ac_cpp='$CPP $CPPFLAGS'
19342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19348 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19349 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19350 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19351 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19354 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19359 if test "$llvm_cv_link_use_r" = "yes" ; then
19366 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19367 RDYNAMIC="-rdynamic"
19374 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19381 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19383 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19385 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19387 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19389 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19392 ac_config_files="$ac_config_files Makefile.config"
19395 ac_config_files="$ac_config_files llvm.spec"
19398 ac_config_files="$ac_config_files docs/doxygen.cfg"
19401 if test "${clang_src_root}" = ""; then
19402 clang_src_root="$srcdir/tools/clang"
19404 if test -f ${clang_src_root}/README.txt; then
19405 configh="include/clang/Config/config.h"
19406 doxy="docs/doxygen.cfg"
19407 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19409 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19413 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19416 test "x$program_prefix" = "xNONE" && program_prefix=""
19420 ac_config_commands="$ac_config_commands setup"
19422 ac_config_commands="$ac_config_commands Makefile"
19425 ac_config_commands="$ac_config_commands Makefile.common"
19428 ac_config_commands="$ac_config_commands examples/Makefile"
19431 ac_config_commands="$ac_config_commands lib/Makefile"
19434 ac_config_commands="$ac_config_commands test/Makefile"
19437 ac_config_commands="$ac_config_commands test/Makefile.tests"
19440 ac_config_commands="$ac_config_commands unittests/Makefile"
19443 ac_config_commands="$ac_config_commands tools/Makefile"
19446 ac_config_commands="$ac_config_commands utils/Makefile"
19449 ac_config_commands="$ac_config_commands projects/Makefile"
19452 ac_config_commands="$ac_config_commands bindings/Makefile"
19455 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19459 cat >confcache <<\_ACEOF
19460 # This file is a shell script that caches the results of configure
19461 # tests run on this system so they can be shared between configure
19462 # scripts and configure runs, see configure's option --config-cache.
19463 # It is not useful on other systems. If it contains results you don't
19464 # want to keep, you may remove or edit it.
19466 # config.status only pays attention to the cache file if you give it
19467 # the --recheck option to rerun configure.
19469 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19471 # following values.
19475 # The following way of writing the cache mishandles newlines in values,
19476 # but we know of no workaround that is simple, portable, and efficient.
19477 # So, we kill variables containing newlines.
19478 # Ultrix sh set writes to stderr and can't be redirected directly,
19479 # and sets the high bit in the cache file unless we assign to the vars.
19481 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19482 eval ac_val=\$$ac_var
19486 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19487 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19490 _ | IFS | as_nl) ;; #(
19491 *) $as_unset $ac_var ;;
19497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19498 *${as_nl}ac_space=\ *)
19499 # `set' does not quote correctly, so add quotes (double-quote
19500 # substitution turns \\\\ into \\, and sed turns \\ into \).
19503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19506 # `set' quotes correctly as required by POSIX, so do not add quotes.
19507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19521 if test -w "$cache_file"; then
19522 test "x$cache_file" != "x/dev/null" &&
19523 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19524 echo "$as_me: updating cache $cache_file" >&6;}
19525 cat confcache >$cache_file
19527 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19528 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19534 # Let make expand exec_prefix.
19535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19537 DEFS=-DHAVE_CONFIG_H
19541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19542 # 1. Remove the extension, and $U if already installed.
19543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19544 ac_i=`echo "$ac_i" | sed "$ac_script"`
19545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19546 # will be set to the directory where LIBOBJS objects are built.
19547 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19548 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19550 LIBOBJS=$ac_libobjs
19552 LTLIBOBJS=$ac_ltlibobjs
19556 : ${CONFIG_STATUS=./config.status}
19557 ac_clean_files_save=$ac_clean_files
19558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19559 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19560 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19561 cat >$CONFIG_STATUS <<_ACEOF
19563 # Generated by $as_me.
19564 # Run this file to recreate the current configuration.
19565 # Compiler output produced by configure, useful for debugging
19566 # configure, is in config.log if it exists.
19569 ac_cs_recheck=false
19571 SHELL=\${CONFIG_SHELL-$SHELL}
19574 cat >>$CONFIG_STATUS <<\_ACEOF
19575 ## --------------------- ##
19576 ## M4sh Initialization. ##
19577 ## --------------------- ##
19579 # Be Bourne compatible
19580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19583 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19584 # is contrary to our usage. Disable this feature.
19585 alias -g '${1+"$@"}'='"$@"'
19586 setopt NO_GLOB_SUBST
19588 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19590 BIN_SH=xpg4; export BIN_SH # for Tru64
19591 DUALCASE=1; export DUALCASE # for MKS sh
19595 # Avoid depending upon Character Ranges.
19596 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19597 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19598 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19599 as_cr_digits='0123456789'
19600 as_cr_alnum=$as_cr_Letters$as_cr_digits
19602 # The user is always right.
19603 if test "${PATH_SEPARATOR+set}" != set; then
19604 echo "#! /bin/sh" >conf$$.sh
19605 echo "exit 0" >>conf$$.sh
19607 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19615 # Support unset when possible.
19616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19624 # We need space, tab and new line, in precisely that order. Quoting is
19625 # there to prevent editors from complaining about space-tab.
19626 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19627 # splitting by setting IFS to empty value.)
19632 # Find who we are. Look in the path if we contain no directory separator.
19634 *[\\/]* ) as_myself=$0 ;;
19635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19636 for as_dir in $PATH
19639 test -z "$as_dir" && as_dir=.
19640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19646 # We did not find ourselves, most probably we were run as `sh COMMAND'
19647 # in which case we are not to be found in the path.
19648 if test "x$as_myself" = x; then
19651 if test ! -f "$as_myself"; then
19652 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19653 { (exit 1); exit 1; }
19656 # Work around bugs in pre-3.0 UWIN ksh.
19657 for as_var in ENV MAIL MAILPATH
19658 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19666 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19667 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19668 LC_TELEPHONE LC_TIME
19670 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19671 eval $as_var=C; export $as_var
19673 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19677 # Required to use basename.
19678 if expr a : '\(a\)' >/dev/null 2>&1 &&
19679 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19685 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19686 as_basename=basename
19692 # Name of the executable.
19693 as_me=`$as_basename -- "$0" ||
19694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19695 X"$0" : 'X\(//\)$' \| \
19696 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19698 sed '/^.*\/\([^/][^/]*\)\/*$/{
19717 as_lineno_1=$LINENO
19718 as_lineno_2=$LINENO
19719 test "x$as_lineno_1" != "x$as_lineno_2" &&
19720 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19722 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19723 # uniformly replaced by the line number. The first 'sed' inserts a
19724 # line-number line after each line using $LINENO; the second 'sed'
19725 # does the real work. The second script uses 'N' to pair each
19726 # line-number line with the line containing $LINENO, and appends
19727 # trailing '-' during substitution so that $LINENO is not a special
19728 # case at line end.
19729 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19730 # scripts with optimization help from Paolo Bonzini. Blame Lee
19731 # E. McMahon (1931-1989) for sed's syntax. :-)
19743 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19746 ' >$as_me.lineno &&
19747 chmod +x "$as_me.lineno" ||
19748 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19749 { (exit 1); exit 1; }; }
19751 # Don't try to exec as it changes $[0], causing all sort of problems
19752 # (the dirname of $[0] is not the place where we might find the
19753 # original and so on. Autoconf is especially sensitive to this).
19754 . "./$as_me.lineno"
19755 # Exit status is that of the last command.
19760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19766 ECHO_C= ECHO_N= ECHO_T=
19767 case `echo -n x` in
19769 case `echo 'x\c'` in
19770 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19777 if expr a : '\(a\)' >/dev/null 2>&1 &&
19778 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19784 rm -f conf$$ conf$$.exe conf$$.file
19785 if test -d conf$$.dir; then
19786 rm -f conf$$.dir/conf$$.file
19792 if ln -s conf$$.file conf$$ 2>/dev/null; then
19794 # ... but there are two gotchas:
19795 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19796 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19797 # In both cases, we have to default to `cp -p'.
19798 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19800 elif ln conf$$.file conf$$ 2>/dev/null; then
19805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19806 rmdir conf$$.dir 2>/dev/null
19808 if mkdir -p . 2>/dev/null; then
19811 test -d ./-p && rmdir ./-p
19815 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19816 # systems may use methods other than mode bits to determine executability.
19817 cat >conf$$.file <<_ASEOF
19821 chmod +x conf$$.file
19822 if test -x conf$$.file >/dev/null 2>&1; then
19823 as_executable_p="test -x"
19829 # Sed expression to map a string onto a valid CPP name.
19830 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19832 # Sed expression to map a string onto a valid variable name.
19833 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19838 # Save the log message, to keep $[0] and so on meaningful, and to
19839 # report actual input values of CONFIG_FILES etc. instead of their
19840 # values after options handling.
19842 This file was extended by LLVM $as_me 3.5.0svn, which was
19843 generated by GNU Autoconf 2.60. Invocation command line was
19845 CONFIG_FILES = $CONFIG_FILES
19846 CONFIG_HEADERS = $CONFIG_HEADERS
19847 CONFIG_LINKS = $CONFIG_LINKS
19848 CONFIG_COMMANDS = $CONFIG_COMMANDS
19851 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19856 cat >>$CONFIG_STATUS <<_ACEOF
19857 # Files that config.status was made for.
19858 config_files="$ac_config_files"
19859 config_headers="$ac_config_headers"
19860 config_commands="$ac_config_commands"
19864 cat >>$CONFIG_STATUS <<\_ACEOF
19866 \`$as_me' instantiates files from templates according to the
19867 current configuration.
19869 Usage: $0 [OPTIONS] [FILE]...
19871 -h, --help print this help, then exit
19872 -V, --version print version number, then exit
19873 -q, --quiet do not print progress messages
19874 -d, --debug don't remove temporary files
19875 --recheck update $as_me by reconfiguring in the same conditions
19876 --file=FILE[:TEMPLATE]
19877 instantiate the configuration file FILE
19878 --header=FILE[:TEMPLATE]
19879 instantiate the configuration header FILE
19881 Configuration files:
19884 Configuration headers:
19887 Configuration commands:
19890 Report bugs to <bug-autoconf@gnu.org>."
19893 cat >>$CONFIG_STATUS <<_ACEOF
19895 LLVM config.status 3.5.0svn
19896 configured by $0, generated by GNU Autoconf 2.60,
19897 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19899 Copyright (C) 2006 Free Software Foundation, Inc.
19900 This config.status script is free software; the Free Software Foundation
19901 gives unlimited permission to copy, distribute and modify it."
19908 cat >>$CONFIG_STATUS <<\_ACEOF
19909 # If no file are specified by the user, then we need to provide default
19910 # value. By we need to know if files were specified by the user.
19916 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19917 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19928 # Handling of the options.
19929 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19931 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19932 echo "$ac_cs_version"; exit ;;
19933 --debug | --debu | --deb | --de | --d | -d )
19935 --file | --fil | --fi | --f )
19937 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19938 ac_need_defaults=false;;
19939 --header | --heade | --head | --hea )
19941 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19942 ac_need_defaults=false;;
19944 # Conflict between --help and --header
19945 { echo "$as_me: error: ambiguous option: $1
19946 Try \`$0 --help' for more information." >&2
19947 { (exit 1); exit 1; }; };;
19948 --help | --hel | -h )
19949 echo "$ac_cs_usage"; exit ;;
19950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19954 # This is an error.
19955 -*) { echo "$as_me: error: unrecognized option: $1
19956 Try \`$0 --help' for more information." >&2
19957 { (exit 1); exit 1; }; } ;;
19959 *) ac_config_targets="$ac_config_targets $1"
19960 ac_need_defaults=false ;;
19966 ac_configure_extra_args=
19968 if $ac_cs_silent; then
19970 ac_configure_extra_args="$ac_configure_extra_args --silent"
19974 cat >>$CONFIG_STATUS <<_ACEOF
19975 if \$ac_cs_recheck; then
19976 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19977 CONFIG_SHELL=$SHELL
19978 export CONFIG_SHELL
19979 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19983 cat >>$CONFIG_STATUS <<\_ACEOF
19987 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19988 ## Running $as_me. ##
19994 cat >>$CONFIG_STATUS <<_ACEOF
19998 llvm_src="${srcdir}"
20002 cat >>$CONFIG_STATUS <<\_ACEOF
20004 # Handling of arguments.
20005 for ac_config_target in $ac_config_targets
20007 case $ac_config_target in
20008 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20009 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20010 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20011 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20012 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20013 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20014 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20015 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20016 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20017 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20018 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20019 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20020 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20021 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20022 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20023 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20024 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20025 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20026 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20027 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20028 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20029 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20030 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20031 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20032 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20033 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20035 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20037 { (exit 1); exit 1; }; };;
20042 # If the user did not use the arguments to specify the items to instantiate,
20043 # then the envvar interface is used. Set only those that are not.
20044 # We use the long form for the default assignment because of an extremely
20045 # bizarre bug on SunOS 4.1.3.
20046 if $ac_need_defaults; then
20047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20052 # Have a temporary directory for convenience. Make it in the build tree
20053 # simply because there is no reason against having it here, and in addition,
20054 # creating and moving files from /tmp can sometimes cause problems.
20055 # Hook for its removal unless debugging.
20056 # Note that there is a small window in which the directory will not be cleaned:
20057 # after its creation but before its name has been assigned to `$tmp'.
20061 trap 'exit_status=$?
20062 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20064 trap '{ (exit 1); exit 1; }' 1 2 13 15
20066 # Create a (secure) tmp directory for tmp files.
20069 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20070 test -n "$tmp" && test -d "$tmp"
20073 tmp=./conf$$-$RANDOM
20074 (umask 077 && mkdir "$tmp")
20077 echo "$me: cannot create a temporary directory in ." >&2
20078 { (exit 1); exit 1; }
20082 # Set up the sed scripts for CONFIG_FILES section.
20085 # No need to generate the scripts if there are no CONFIG_FILES.
20086 # This happens for instance when ./config.status config.h
20087 if test -n "$CONFIG_FILES"; then
20094 for ac_last_try in false false false false false :; do
20095 cat >conf$$subs.sed <<_ACEOF
20096 SHELL!$SHELL$ac_delim
20097 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20098 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20099 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20100 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20101 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20102 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20103 exec_prefix!$exec_prefix$ac_delim
20104 prefix!$prefix$ac_delim
20105 program_transform_name!$program_transform_name$ac_delim
20106 bindir!$bindir$ac_delim
20107 sbindir!$sbindir$ac_delim
20108 libexecdir!$libexecdir$ac_delim
20109 datarootdir!$datarootdir$ac_delim
20110 datadir!$datadir$ac_delim
20111 sysconfdir!$sysconfdir$ac_delim
20112 sharedstatedir!$sharedstatedir$ac_delim
20113 localstatedir!$localstatedir$ac_delim
20114 includedir!$includedir$ac_delim
20115 oldincludedir!$oldincludedir$ac_delim
20116 docdir!$docdir$ac_delim
20117 infodir!$infodir$ac_delim
20118 htmldir!$htmldir$ac_delim
20119 dvidir!$dvidir$ac_delim
20120 pdfdir!$pdfdir$ac_delim
20121 psdir!$psdir$ac_delim
20122 libdir!$libdir$ac_delim
20123 localedir!$localedir$ac_delim
20124 mandir!$mandir$ac_delim
20125 DEFS!$DEFS$ac_delim
20126 ECHO_C!$ECHO_C$ac_delim
20127 ECHO_N!$ECHO_N$ac_delim
20128 ECHO_T!$ECHO_T$ac_delim
20129 LIBS!$LIBS$ac_delim
20130 build_alias!$build_alias$ac_delim
20131 host_alias!$host_alias$ac_delim
20132 target_alias!$target_alias$ac_delim
20133 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20134 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20135 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20136 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
20137 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20139 CFLAGS!$CFLAGS$ac_delim
20140 LDFLAGS!$LDFLAGS$ac_delim
20141 CPPFLAGS!$CPPFLAGS$ac_delim
20142 ac_ct_CC!$ac_ct_CC$ac_delim
20143 EXEEXT!$EXEEXT$ac_delim
20144 OBJEXT!$OBJEXT$ac_delim
20146 CXXFLAGS!$CXXFLAGS$ac_delim
20147 ac_ct_CXX!$ac_ct_CXX$ac_delim
20149 subdirs!$subdirs$ac_delim
20150 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20151 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20152 build!$build$ac_delim
20153 build_cpu!$build_cpu$ac_delim
20154 build_vendor!$build_vendor$ac_delim
20155 build_os!$build_os$ac_delim
20156 host!$host$ac_delim
20157 host_cpu!$host_cpu$ac_delim
20158 host_vendor!$host_vendor$ac_delim
20159 host_os!$host_os$ac_delim
20160 target!$target$ac_delim
20161 target_cpu!$target_cpu$ac_delim
20162 target_vendor!$target_vendor$ac_delim
20163 target_os!$target_os$ac_delim
20165 HOST_OS!$HOST_OS$ac_delim
20166 TARGET_OS!$TARGET_OS$ac_delim
20167 LINKALL!$LINKALL$ac_delim
20168 NOLINKALL!$NOLINKALL$ac_delim
20169 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20170 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20171 ARCH!$ARCH$ac_delim
20172 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20173 HOST_ARCH!$HOST_ARCH$ac_delim
20174 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20175 BUILD_CC!$BUILD_CC$ac_delim
20176 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20177 BUILD_CXX!$BUILD_CXX$ac_delim
20178 CVSBUILD!$CVSBUILD$ac_delim
20179 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20180 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
20181 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20182 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20183 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20184 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20185 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20186 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20187 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20188 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20189 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20190 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20191 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20192 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20195 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20197 elif $ac_last_try; then
20198 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20199 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20200 { (exit 1); exit 1; }; }
20202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20206 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20207 if test -n "$ac_eof"; then
20208 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20209 ac_eof=`expr $ac_eof + 1`
20212 cat >>$CONFIG_STATUS <<_ACEOF
20213 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20217 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20218 s/^/s,@/; s/!/@,|#_!!_#|/
20221 s/'"$ac_delim"'$/,g/; t
20223 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20224 ' >>$CONFIG_STATUS <conf$$subs.sed
20225 rm -f conf$$subs.sed
20226 cat >>$CONFIG_STATUS <<_ACEOF
20232 for ac_last_try in false false false false false :; do
20233 cat >conf$$subs.sed <<_ACEOF
20234 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20236 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20237 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20238 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20239 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20240 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20241 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20242 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20243 ENABLE_PIC!$ENABLE_PIC$ac_delim
20244 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20245 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20246 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20247 ALL_TARGETS!$ALL_TARGETS$ac_delim
20248 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20249 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20250 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20251 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20252 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20253 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20254 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20255 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20256 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20257 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20258 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20259 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20260 ifGNUmake!$ifGNUmake$ac_delim
20261 LN_S!$LN_S$ac_delim
20265 DATE!$DATE$ac_delim
20266 FIND!$FIND$ac_delim
20267 GREP!$GREP$ac_delim
20268 MKDIR!$MKDIR$ac_delim
20270 RANLIB!$RANLIB$ac_delim
20275 BINPWD!$BINPWD$ac_delim
20276 GRAPHVIZ!$GRAPHVIZ$ac_delim
20279 NEATO!$NEATO$ac_delim
20280 TWOPI!$TWOPI$ac_delim
20281 CIRCO!$CIRCO$ac_delim
20283 DOTTY!$DOTTY$ac_delim
20284 XDOT!$XDOT$ac_delim
20285 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20286 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20287 INSTALL_DATA!$INSTALL_DATA$ac_delim
20288 BZIP2!$BZIP2$ac_delim
20290 DOXYGEN!$DOXYGEN$ac_delim
20291 GROFF!$GROFF$ac_delim
20292 GZIPBIN!$GZIPBIN$ac_delim
20293 PDFROFF!$PDFROFF$ac_delim
20295 OCAMLC!$OCAMLC$ac_delim
20296 OCAMLOPT!$OCAMLOPT$ac_delim
20297 OCAMLDEP!$OCAMLDEP$ac_delim
20298 OCAMLDOC!$OCAMLDOC$ac_delim
20300 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20301 EGREP!$EGREP$ac_delim
20302 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20303 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20304 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20305 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20306 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20307 PYTHON!$PYTHON$ac_delim
20308 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20309 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20310 USE_UDIS86!$USE_UDIS86$ac_delim
20311 USE_OPROFILE!$USE_OPROFILE$ac_delim
20312 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20313 XML2CONFIG!$XML2CONFIG$ac_delim
20314 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20315 LIBXML2_INC!$LIBXML2_INC$ac_delim
20316 CXXCPP!$CXXCPP$ac_delim
20317 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20318 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20319 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20320 MMAP_FILE!$MMAP_FILE$ac_delim
20321 SHLIBEXT!$SHLIBEXT$ac_delim
20322 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20323 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20324 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20325 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20326 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20327 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20328 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20329 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20330 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20333 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20335 elif $ac_last_try; then
20336 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20337 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20338 { (exit 1); exit 1; }; }
20340 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20344 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20345 if test -n "$ac_eof"; then
20346 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20347 ac_eof=`expr $ac_eof + 1`
20350 cat >>$CONFIG_STATUS <<_ACEOF
20351 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20355 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20356 s/^/s,@/; s/!/@,|#_!!_#|/
20359 s/'"$ac_delim"'$/,g/; t
20361 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20362 ' >>$CONFIG_STATUS <conf$$subs.sed
20363 rm -f conf$$subs.sed
20364 cat >>$CONFIG_STATUS <<_ACEOF
20370 for ac_last_try in false false false false false :; do
20371 cat >conf$$subs.sed <<_ACEOF
20372 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20373 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20374 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20375 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20376 RPATH!$RPATH$ac_delim
20377 RDYNAMIC!$RDYNAMIC$ac_delim
20378 program_prefix!$program_prefix$ac_delim
20379 LIBOBJS!$LIBOBJS$ac_delim
20380 LTLIBOBJS!$LTLIBOBJS$ac_delim
20383 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
20385 elif $ac_last_try; then
20386 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20387 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20388 { (exit 1); exit 1; }; }
20390 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20394 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20395 if test -n "$ac_eof"; then
20396 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20397 ac_eof=`expr $ac_eof + 1`
20400 cat >>$CONFIG_STATUS <<_ACEOF
20401 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20405 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20406 s/^/s,@/; s/!/@,|#_!!_#|/
20409 s/'"$ac_delim"'$/,g/; t
20411 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20412 ' >>$CONFIG_STATUS <conf$$subs.sed
20413 rm -f conf$$subs.sed
20414 cat >>$CONFIG_STATUS <<_ACEOF
20421 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20422 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20423 # trailing colons and then remove the whole line if VPATH becomes empty
20424 # (actually we leave an empty line to preserve line numbers).
20425 if test "x$srcdir" = x.; then
20426 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20427 s/:*\$(srcdir):*/:/
20428 s/:*\${srcdir}:*/:/
20430 s/^\([^=]*=[ ]*\):*/\1/
20436 cat >>$CONFIG_STATUS <<\_ACEOF
20437 fi # test -n "$CONFIG_FILES"
20440 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20443 :[FHLC]) ac_mode=$ac_tag; continue;;
20445 case $ac_mode$ac_tag in
20447 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20448 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20449 { (exit 1); exit 1; }; };;
20450 :[FH]-) ac_tag=-:-;;
20451 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20468 -) ac_f="$tmp/stdin";;
20469 *) # Look for the file first in the build tree, then in the source tree
20470 # (if the path is not absolute). The absolute path cannot be DOS-style,
20471 # because $ac_f cannot contain `:'.
20475 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20477 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20478 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20479 { (exit 1); exit 1; }; };;
20481 ac_file_inputs="$ac_file_inputs $ac_f"
20484 # Let's still pretend it is `configure' which instantiates (i.e., don't
20485 # use $as_me), people would be surprised to read:
20486 # /* config.h. Generated by config.status. */
20487 configure_input="Generated from "`IFS=:
20488 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20489 if test x"$ac_file" != x-; then
20490 configure_input="$ac_file. $configure_input"
20491 { echo "$as_me:$LINENO: creating $ac_file" >&5
20492 echo "$as_me: creating $ac_file" >&6;}
20496 *:-:* | *:-) cat >"$tmp/stdin";;
20501 ac_dir=`$as_dirname -- "$ac_file" ||
20502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20503 X"$ac_file" : 'X\(//\)[^/]' \| \
20504 X"$ac_file" : 'X\(//\)$' \| \
20505 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20511 /^X\(\/\/\)[^/].*/{
20526 -*) as_dir=./$as_dir;;
20528 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20532 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20533 *) as_qdir=$as_dir;;
20535 as_dirs="'$as_qdir' $as_dirs"
20536 as_dir=`$as_dirname -- "$as_dir" ||
20537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20538 X"$as_dir" : 'X\(//\)[^/]' \| \
20539 X"$as_dir" : 'X\(//\)$' \| \
20540 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20546 /^X\(\/\/\)[^/].*/{
20559 test -d "$as_dir" && break
20561 test -z "$as_dirs" || eval "mkdir $as_dirs"
20562 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20563 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20564 { (exit 1); exit 1; }; }; }
20568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20570 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20571 # A ".." for each directory in $ac_dir_suffix.
20572 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20573 case $ac_top_builddir_sub in
20574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20578 ac_abs_top_builddir=$ac_pwd
20579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20580 # for backward compatibility:
20581 ac_top_builddir=$ac_top_build_prefix
20584 .) # We are building in place.
20586 ac_top_srcdir=$ac_top_builddir_sub
20587 ac_abs_top_srcdir=$ac_pwd ;;
20588 [\\/]* | ?:[\\/]* ) # Absolute name.
20589 ac_srcdir=$srcdir$ac_dir_suffix;
20590 ac_top_srcdir=$srcdir
20591 ac_abs_top_srcdir=$srcdir ;;
20592 *) # Relative name.
20593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20594 ac_top_srcdir=$ac_top_build_prefix$srcdir
20595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20607 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20608 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20612 cat >>$CONFIG_STATUS <<\_ACEOF
20613 # If the template does not know about datarootdir, expand it.
20614 # FIXME: This hack should be removed a few years after 2.60.
20615 ac_datarootdir_hack=; ac_datarootdir_seen=
20617 case `sed -n '/datarootdir/ {
20626 ' $ac_file_inputs` in
20627 *datarootdir*) ac_datarootdir_seen=yes;;
20628 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20629 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20630 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20632 cat >>$CONFIG_STATUS <<_ACEOF
20633 ac_datarootdir_hack='
20634 s&@datadir@&$datadir&g
20635 s&@docdir@&$docdir&g
20636 s&@infodir@&$infodir&g
20637 s&@localedir@&$localedir&g
20638 s&@mandir@&$mandir&g
20639 s&\\\${datarootdir}&$datarootdir&g' ;;
20643 # Neutralize VPATH when `$srcdir' = `.'.
20644 # Shell code in configure.ac might set extrasub.
20645 # FIXME: do we really want to maintain this feature?
20646 cat >>$CONFIG_STATUS <<_ACEOF
20650 cat >>$CONFIG_STATUS <<\_ACEOF
20652 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20653 s&@configure_input@&$configure_input&;t t
20654 s&@top_builddir@&$ac_top_builddir_sub&;t t
20655 s&@srcdir@&$ac_srcdir&;t t
20656 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20657 s&@top_srcdir@&$ac_top_srcdir&;t t
20658 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20659 s&@builddir@&$ac_builddir&;t t
20660 s&@abs_builddir@&$ac_abs_builddir&;t t
20661 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20662 s&@INSTALL@&$ac_INSTALL&;t t
20663 $ac_datarootdir_hack
20664 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20666 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20667 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20668 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20669 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20670 which seems to be undefined. Please make sure it is defined." >&5
20671 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20672 which seems to be undefined. Please make sure it is defined." >&2;}
20676 -) cat "$tmp/out"; rm -f "$tmp/out";;
20677 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20686 # Transform confdefs.h into a sed script `conftest.defines', that
20687 # substitutes the proper values into config.h.in to produce config.h.
20688 rm -f conftest.defines conftest.tail
20689 # First, append a space to every undef/define line, to ease matching.
20690 echo 's/$/ /' >conftest.defines
20691 # Then, protect against being on the right side of a sed subst, or in
20692 # an unquoted here document, in config.status. If some macros were
20693 # called several times there might be several #defines for the same
20694 # symbol, which is useless. But do not sort them, since the last
20695 # AC_DEFINE must be honored.
20696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20697 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20698 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20699 # PARAMS is the parameter list in the macro definition--in most cases, it's
20700 # just an empty string.
20701 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20702 ac_dB='\\)[ (].*,\\1define\\2'
20710 s/^[ ]*#[ ]*define[ ][ ]*//
20715 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20716 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20717 ' >>conftest.defines
20719 # Remove the space that was appended to ease matching.
20720 # Then replace #undef with comments. This is necessary, for
20721 # example, in the case of _POSIX_SOURCE, which is predefined and required
20722 # on some systems where configure will not decide to define it.
20723 # (The regexp can be short, since the line contains either #define or #undef.)
20725 s,^[ #]*u.*,/* & */,' >>conftest.defines
20727 # Break up conftest.defines:
20728 ac_max_sed_lines=50
20730 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20731 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20732 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20734 ac_in='$ac_file_inputs'
20735 ac_out='"$tmp/out1"'
20736 ac_nxt='"$tmp/out2"'
20740 # Write a here document:
20741 cat >>$CONFIG_STATUS <<_ACEOF
20742 # First, check the format of the line:
20743 cat >"\$tmp/defines.sed" <<\\CEOF
20744 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20745 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20749 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20751 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20752 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20753 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20754 grep . conftest.tail >/dev/null || break
20755 rm -f conftest.defines
20756 mv conftest.tail conftest.defines
20758 rm -f conftest.defines conftest.tail
20760 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20761 cat >>$CONFIG_STATUS <<\_ACEOF
20762 if test x"$ac_file" != x-; then
20763 echo "/* $configure_input */" >"$tmp/config.h"
20764 cat "$ac_result" >>"$tmp/config.h"
20765 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20766 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20767 echo "$as_me: $ac_file is unchanged" >&6;}
20770 mv "$tmp/config.h" $ac_file
20773 echo "/* $configure_input */"
20779 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20780 echo "$as_me: executing $ac_file commands" >&6;}
20785 case $ac_file$ac_mode in
20786 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20787 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20788 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20789 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20790 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20791 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20792 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20793 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20794 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20795 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20796 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20797 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20798 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20799 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20800 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20801 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20802 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20803 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20804 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20805 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20806 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20807 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20808 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20809 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20815 { (exit 0); exit 0; }
20817 chmod +x $CONFIG_STATUS
20818 ac_clean_files=$ac_clean_files_save
20821 # configure is writing to config.log, and then calls config.status.
20822 # config.status does its own redirection, appending to config.log.
20823 # Unfortunately, on DOS this fails, as config.log is still kept open
20824 # by configure, so config.status won't be able to write to it; its
20825 # output is simply discarded. So we exec the FD to /dev/null,
20826 # effectively closing config.log, so it can be properly (re)opened and
20827 # appended to by config.status. When coming back to configure, we
20828 # need to make the FD available again.
20829 if test "$no_create" != yes; then
20831 ac_config_status_args=
20832 test "$silent" = yes &&
20833 ac_config_status_args="$ac_config_status_args --quiet"
20835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20838 # would make configure fail if this is the last instruction.
20839 $ac_cs_success || { (exit 1); exit 1; }
20843 # CONFIG_SUBDIRS section.
20845 if test "$no_recursion" != yes; then
20847 # Remove --cache-file and --srcdir arguments so they do not pile up.
20848 ac_sub_configure_args=
20850 eval "set x $ac_configure_args"
20854 if test -n "$ac_prev"; then
20859 -cache-file | --cache-file | --cache-fil | --cache-fi \
20860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20861 ac_prev=cache_file ;;
20862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20866 --config-cache | -C)
20868 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20870 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20872 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20874 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20878 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20880 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20884 # Always prepend --prefix to ensure using the same prefix
20885 # in subdir configurations.
20886 ac_arg="--prefix=$prefix"
20888 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20890 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20893 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20895 # Do not complain, so a configure script can configure whichever
20896 # parts of a large source tree are present.
20897 test -d "$srcdir/$ac_dir" || continue
20899 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20900 echo "$as_me:$LINENO: $ac_msg" >&5
20904 -*) as_dir=./$as_dir;;
20906 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20910 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20911 *) as_qdir=$as_dir;;
20913 as_dirs="'$as_qdir' $as_dirs"
20914 as_dir=`$as_dirname -- "$as_dir" ||
20915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20916 X"$as_dir" : 'X\(//\)[^/]' \| \
20917 X"$as_dir" : 'X\(//\)$' \| \
20918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20924 /^X\(\/\/\)[^/].*/{
20937 test -d "$as_dir" && break
20939 test -z "$as_dirs" || eval "mkdir $as_dirs"
20940 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20941 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20942 { (exit 1); exit 1; }; }; }
20946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20948 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20949 # A ".." for each directory in $ac_dir_suffix.
20950 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20951 case $ac_top_builddir_sub in
20952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20956 ac_abs_top_builddir=$ac_pwd
20957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20958 # for backward compatibility:
20959 ac_top_builddir=$ac_top_build_prefix
20962 .) # We are building in place.
20964 ac_top_srcdir=$ac_top_builddir_sub
20965 ac_abs_top_srcdir=$ac_pwd ;;
20966 [\\/]* | ?:[\\/]* ) # Absolute name.
20967 ac_srcdir=$srcdir$ac_dir_suffix;
20968 ac_top_srcdir=$srcdir
20969 ac_abs_top_srcdir=$srcdir ;;
20970 *) # Relative name.
20971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20972 ac_top_srcdir=$ac_top_build_prefix$srcdir
20973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20980 # Check for guested configure; otherwise get Cygnus style configure.
20981 if test -f "$ac_srcdir/configure.gnu"; then
20982 ac_sub_configure=$ac_srcdir/configure.gnu
20983 elif test -f "$ac_srcdir/configure"; then
20984 ac_sub_configure=$ac_srcdir/configure
20985 elif test -f "$ac_srcdir/configure.in"; then
20986 # This should be Cygnus configure.
20987 ac_sub_configure=$ac_aux_dir/configure
20989 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20990 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20994 # The recursion is here.
20995 if test -n "$ac_sub_configure"; then
20996 # Make the cache file name correct relative to the subdirectory.
20997 case $cache_file in
20998 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20999 *) # Relative name.
21000 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21003 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21004 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21005 # The eval makes quoting arguments work.
21006 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21007 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21008 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21009 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21010 { (exit 1); exit 1; }; }