2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
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.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
691 ENABLE_EXPENSIVE_CHECKS
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
760 NO_MISSING_FIELD_INITIALIZERS
761 COVERED_SWITCH_DEFAULT
781 ENABLE_VISIBILITY_INLINES_HIDDEN
787 ac_precious_vars='build_alias
798 ac_subdirs_all='tools/polly'
800 # Initialize some variables set by options.
802 ac_init_version=false
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
812 program_transform_name=s,x,x,
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
858 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 # Accept the important Cygnus configure options, so we can diagnose typos.
864 case $ac_dashdash$ac_option in
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
886 cache_file=config.cache ;;
888 -datadir | --datadir | --datadi | --datad)
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
900 -disable-* | --disable-*)
901 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
904 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905 { (exit 1); exit 1; }; }
906 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
907 eval enable_$ac_feature=no ;;
909 -docdir | --docdir | --docdi | --doc | --do)
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 -enable-* | --enable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=\$ac_optarg ;;
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
941 -help | --help | --hel | --he | -h)
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 htmldir=$ac_optarg ;;
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
971 -libdir | --libdir | --libdi | --libd)
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
983 -localedir | --localedir | --localedi | --localed | --locale)
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1062 -psdir | --psdir | --psdi | --psd | --ps)
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 sbindir=$ac_optarg ;;
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 sharedstatedir=$ac_optarg ;;
1088 -site | --site | --sit)
1090 -site=* | --site=* | --sit=*)
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1117 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid package name: $ac_package" >&2
1121 { (exit 1); exit 1; }; }
1122 ac_package=`echo $ac_package| sed 's/-/_/g'`
1123 eval with_$ac_package=\$ac_optarg ;;
1125 -without-* | --without-*)
1126 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1129 { echo "$as_me: error: invalid package name: $ac_package" >&2
1130 { (exit 1); exit 1; }; }
1131 ac_package=`echo $ac_package | sed 's/-/_/g'`
1132 eval with_$ac_package=no ;;
1135 # Obsolete; use --with-x.
1138 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139 | --x-incl | --x-inc | --x-in | --x-i)
1140 ac_prev=x_includes ;;
1141 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143 x_includes=$ac_optarg ;;
1145 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147 ac_prev=x_libraries ;;
1148 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150 x_libraries=$ac_optarg ;;
1152 -*) { echo "$as_me: error: unrecognized option: $ac_option
1153 Try \`$0 --help' for more information." >&2
1154 { (exit 1); exit 1; }; }
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1162 { (exit 1); exit 1; }; }
1163 eval $ac_envvar=\$ac_optarg
1164 export $ac_envvar ;;
1167 # FIXME: should be removed in autoconf 3.0.
1168 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 if test -n "$ac_prev"; then
1178 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179 { echo "$as_me: error: missing argument to $ac_option" >&2
1180 { (exit 1); exit 1; }; }
1183 # Be sure to have absolute directory names.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1189 eval ac_val=\$$ac_var
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1195 { (exit 1); exit 1; }; }
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1203 target=$target_alias
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207 if test "x$build_alias" = x; then
1208 cross_compiling=maybe
1209 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1210 If a cross compiler is detected then cross compile mode will be used." >&2
1211 elif test "x$build_alias" != "x$host_alias"; then
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219 test "$silent" = yes && exec 6>/dev/null
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225 { echo "$as_me: error: Working directory cannot be determined" >&2
1226 { (exit 1); exit 1; }; }
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 { echo "$as_me: error: pwd does not report name of working directory" >&2
1229 { (exit 1); exit 1; }; }
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$0" ||
1237 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$0" : 'X\(//\)[^/]' \| \
1239 X"$0" : 'X\(//\)$' \| \
1240 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1264 ac_srcdir_defaulted=no
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1269 { (exit 1); exit 1; }; }
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1274 { (exit 1); exit 1; }; }
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 for ac_var in $ac_precious_vars; do
1287 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_env_${ac_var}_value=\$${ac_var}
1289 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 # Report the --help message.
1296 if test "$ac_init_help" = "long"; then
1297 # Omit some internal or obsolete options to make the list less imposing.
1298 # This message is too long to be a string in the A/UX 3.1 sh.
1300 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE. See below for descriptions of some of the useful variables.
1307 Defaults for the options are specified in brackets.
1310 -h, --help display this help and exit
1311 --help=short display options specific to this package
1312 --help=recursive display the short help of all the included packages
1313 -V, --version display version information and exit
1314 -q, --quiet, --silent do not print \`checking...' messages
1315 --cache-file=FILE cache test results in FILE [disabled]
1316 -C, --config-cache alias for \`--cache-file=config.cache'
1317 -n, --no-create do not create output files
1318 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1320 Installation directories:
1321 --prefix=PREFIX install architecture-independent files in PREFIX
1322 [$ac_default_prefix]
1323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1331 For better control, use the options below.
1333 Fine tuning of the installation directories:
1334 --bindir=DIR user executables [EPREFIX/bin]
1335 --sbindir=DIR system admin executables [EPREFIX/sbin]
1336 --libexecdir=DIR program executables [EPREFIX/libexec]
1337 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1338 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1339 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1340 --libdir=DIR object code libraries [EPREFIX/lib]
1341 --includedir=DIR C header files [PREFIX/include]
1342 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1343 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1344 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1345 --infodir=DIR info documentation [DATAROOTDIR/info]
1346 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1347 --mandir=DIR man documentation [DATAROOTDIR/man]
1348 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1360 --target=TARGET configure for building compilers for TARGET [HOST]
1364 if test -n "$ac_init_help"; then
1365 case $ac_init_help in
1366 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --enable-polly Use polly if available (default is YES)
1374 --enable-libcpp Use libc++ if available (default is NO)
1375 --enable-cxx11 Use c++11 if available (default is NO)
1376 --enable-optimized Compile with optimizations enabled (default is NO)
1377 --enable-profiling Compile with profiling enabled (default is NO)
1378 --enable-assertions Compile with assertion checks enabled (default is
1380 --enable-werror Compile with -Werror enabled (default is NO)
1381 --enable-expensive-checks
1382 Compile with expensive debug checks enabled (default
1384 --enable-debug-runtime Build runtime libs with debug symbols (default is
1386 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1387 optimization is on and YES if it's off)
1388 --enable-jit Enable Just In Time Compiling (default is YES)
1389 --enable-docs Build documents (default is YES)
1390 --enable-doxygen Build doxygen documentation (default is NO)
1391 --enable-threads Use threads if available (default is YES)
1392 --enable-pthreads Use pthreads if available (default is YES)
1393 --enable-zlib Use zlib for compression/decompression if available
1395 --enable-pic Build LLVM with Position Independent Code (default
1397 --enable-shared Build a shared library and link tools against it
1399 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1400 Win32 DLL (default is YES)
1401 --enable-timestamps Enable embedding timestamp information in build
1403 --enable-targets Build specific host targets: all or
1404 target1,target2,... Valid targets are: host, x86,
1405 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1406 xcore, msp430, nvptx, systemz, r600, and cpp
1408 --enable-bindings Build specific language bindings:
1409 all,auto,none,{binding-name} (default=auto)
1410 --enable-terminfo Query the terminfo database if available (default is
1412 --enable-libffi Check for the presence of libffi (default is NO)
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-llvmsrc Location of LLVM Source Code
1418 --with-llvmobj Location of LLVM Object Code
1419 --with-optimize-option Select the compiler options to use for optimized
1421 --with-extra-options Specify additional options to compile LLVM with
1422 --with-extra-ld-options Specify additional options to link LLVM with
1423 --with-ocaml-libdir Specify install location for ocaml bindings (default
1425 --with-clang-resource-dir
1426 Relative directory from the Clang binary for
1428 --with-c-include-dirs Colon separated list of directories clang will
1430 --with-gcc-toolchain Directory where gcc is installed.
1431 --with-binutils-include Specify path to binutils/include/ containing
1432 plugin-api.h file for gold plugin.
1433 --with-bug-report-url Specify the URL where bug reports should be
1434 submitted (default=http://llvm.org/bugs/)
1435 --with-tclinclude directory where tcl headers are
1436 --with-udis86=<path> Use udis86 external x86 disassembler library
1437 --with-oprofile=<prefix>
1438 Tell OProfile >= 0.9.4 how to symbolize JIT output
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 CXX C++ compiler command
1448 CXXFLAGS C++ compiler flags
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1454 Report bugs to <bugs@yourdomain>.
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" || continue
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1482 .) # We are building in place.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1506 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1515 [SAMPLE] configure [x.xx]
1516 generated by GNU Autoconf 2.60
1518 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1519 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1525 cat >config.log <<_ACEOF
1526 This file contains any messages produced by compilers while
1527 running configure, to aid debugging if configure makes a mistake.
1529 It was created by [SAMPLE] $as_me [x.xx], which was
1530 generated by GNU Autoconf 2.60. Invocation command line was
1542 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1543 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1544 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1545 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1546 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1549 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1551 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1552 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1553 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1554 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1555 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1556 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1557 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 echo "PATH: $as_dir"
1582 # Keep a trace of the command line.
1583 # Strip out --no-create and --no-recursion so they do not pile up.
1584 # Strip out --silent because we don't want to record it for future runs.
1585 # Also quote any args containing shell meta-characters.
1586 # Make two passes to allow for proper duplicate-argument suppression.
1590 ac_must_keep_next=false
1596 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1598 | -silent | --silent | --silen | --sile | --sil)
1601 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1604 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1607 if test $ac_must_keep_next = true; then
1608 ac_must_keep_next=false # Got value, back to normal.
1611 *=* | --config-cache | -C | -disable-* | --disable-* \
1612 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1613 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1614 | -with-* | --with-* | -without-* | --without-* | --x)
1615 case "$ac_configure_args0 " in
1616 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1619 -* ) ac_must_keep_next=true ;;
1622 ac_configure_args="$ac_configure_args '$ac_arg'"
1627 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1628 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630 # When interrupted or exit'd, cleanup temporary files, and complete
1631 # config.log. We remove comments because anyway the quotes in there
1632 # would cause problems or look ugly.
1633 # WARNING: Use '\'' to represent an apostrophe within the trap.
1634 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1635 trap 'exit_status=$?
1636 # Save into config.log some information that might help in debugging.
1641 ## ---------------- ##
1642 ## Cache variables. ##
1643 ## ---------------- ##
1646 # The following way of writing the cache mishandles newlines in values,
1648 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1649 eval ac_val=\$$ac_var
1653 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1654 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1657 _ | IFS | as_nl) ;; #(
1658 *) $as_unset $ac_var ;;
1663 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1664 *${as_nl}ac_space=\ *)
1666 "s/'\''/'\''\\\\'\'''\''/g;
1667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1670 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1678 ## ----------------- ##
1679 ## Output variables. ##
1680 ## ----------------- ##
1683 for ac_var in $ac_subst_vars
1685 eval ac_val=\$$ac_var
1687 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 echo "$ac_var='\''$ac_val'\''"
1693 if test -n "$ac_subst_files"; then
1695 ## ------------------- ##
1696 ## File substitutions. ##
1697 ## ------------------- ##
1700 for ac_var in $ac_subst_files
1702 eval ac_val=\$$ac_var
1704 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706 echo "$ac_var='\''$ac_val'\''"
1711 if test -s confdefs.h; then
1721 test "$ac_signal" != 0 &&
1722 echo "$as_me: caught signal $ac_signal"
1723 echo "$as_me: exit $exit_status"
1725 rm -f core *.core core.conftest.* &&
1726 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1729 for ac_signal in 1 2 13 15; do
1730 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1734 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1735 rm -f -r conftest* confdefs.h
1737 # Predefined preprocessor variables.
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_NAME "$PACKAGE_NAME"
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_STRING "$PACKAGE_STRING"
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1764 # Let the site file select an alternate cache file if it wants to.
1765 # Prefer explicitly selected file to automatically selected ones.
1766 if test -n "$CONFIG_SITE"; then
1767 set x "$CONFIG_SITE"
1768 elif test "x$prefix" != xNONE; then
1769 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1771 set x "$ac_default_prefix/share/config.site" \
1772 "$ac_default_prefix/etc/config.site"
1777 if test -r "$ac_site_file"; then
1778 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1779 echo "$as_me: loading site script $ac_site_file" >&6;}
1780 sed 's/^/| /' "$ac_site_file" >&5
1785 if test -r "$cache_file"; then
1786 # Some versions of bash will fail to source /dev/null (special
1787 # files actually), so we avoid doing that.
1788 if test -f "$cache_file"; then
1789 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1790 echo "$as_me: loading cache $cache_file" >&6;}
1792 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1793 *) . "./$cache_file";;
1797 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1798 echo "$as_me: creating cache $cache_file" >&6;}
1802 # Check that the precious variables saved in the cache have kept the same
1804 ac_cache_corrupted=false
1805 for ac_var in $ac_precious_vars; do
1806 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1807 eval ac_new_set=\$ac_env_${ac_var}_set
1808 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1809 eval ac_new_val=\$ac_env_${ac_var}_value
1810 case $ac_old_set,$ac_new_set in
1812 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1813 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1814 ac_cache_corrupted=: ;;
1816 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1817 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1818 ac_cache_corrupted=: ;;
1821 if test "x$ac_old_val" != "x$ac_new_val"; then
1822 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1823 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1824 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1825 echo "$as_me: former value: $ac_old_val" >&2;}
1826 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1827 echo "$as_me: current value: $ac_new_val" >&2;}
1828 ac_cache_corrupted=:
1831 # Pass precious variables to config.status.
1832 if test "$ac_new_set" = set; then
1834 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1835 *) ac_arg=$ac_var=$ac_new_val ;;
1837 case " $ac_configure_args " in
1838 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1839 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1843 if $ac_cache_corrupted; then
1844 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1848 { (exit 1); exit 1; }; }
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1883 LLVM_SRC_ROOT="../.."
1884 LLVM_OBJ_ROOT="../.."
1886 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1887 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1890 # Check whether --with-llvmsrc was given.
1891 if test "${with_llvmsrc+set}" = set; then
1892 withval=$with_llvmsrc; llvm_src="$withval"
1894 llvm_src="$LLVM_ABS_SRC_ROOT"
1900 # Check whether --with-llvmobj was given.
1901 if test "${with_llvmobj+set}" = set; then
1902 withval=$with_llvmobj; llvm_obj="$withval"
1904 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1909 ac_config_commands="$ac_config_commands setup"
1913 { echo "$as_me:$LINENO: checking llvm-config" >&5
1914 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1915 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1916 if ! test -f "$llvm_config_path" ; then
1917 llvm_config_path="no"
1919 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1920 echo "${ECHO_T}$llvm_config_path" >&6; }
1922 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1923 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1924 if test "$llvm_config_path" != no ; then
1925 llvm_package_version=`$llvm_config_path --version`
1927 llvm_package_version="unknown";
1929 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1930 echo "${ECHO_T}$llvm_package_version" >&6; }
1931 LLVM_VERSION=$llvm_package_version
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938 if test -f "$ac_dir/install-sh"; then
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 elif test -f "$ac_dir/install.sh"; then
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 elif test -f "$ac_dir/shtool"; then
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975 for ac_prog in clang llvm-gcc gcc
1977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test -n "$CC"; then
2006 { echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6; }
2009 { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2014 test -n "$CC" && break
2017 if test -z "$CC"; then
2019 for ac_prog in clang llvm-gcc gcc
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $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_ac_ct_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 if test -n "$ac_ct_CC"; then
2029 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049 if test -n "$ac_ct_CC"; then
2050 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051 echo "${ECHO_T}$ac_ct_CC" >&6; }
2053 { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2058 test -n "$ac_ct_CC" && break
2061 if test "x$ac_ct_CC" = x; then
2064 case $cross_compiling:$ac_tool_warned in
2066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet. If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&5
2069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet. If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2072 ac_tool_warned=yes ;;
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
2085 # Provide some information about the compiler.
2086 echo "$as_me:$LINENO: checking for C compiler version" >&5
2087 ac_compiler=`set X $ac_compile; echo $2`
2088 { (ac_try="$ac_compiler --version >&5"
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler --version >&5") 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098 { (ac_try="$ac_compiler -v >&5"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -v >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (ac_try="$ac_compiler -V >&5"
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -V >&5") 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2119 cat >conftest.$ac_ext <<_ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h. */
2134 ac_clean_files_save=$ac_clean_files
2135 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2136 # Try to create an executable without -o first, disregard a.out.
2137 # It will help us diagnose broken compilers, and finding out an intuition
2139 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 # List of possible output files, starting from the most likely.
2144 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145 # only as a last resort. b.out is created by i960 compilers.
2146 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148 # The IRIX 6 linker writes into existing files which may not be
2149 # executable, retaining their permissions. Remove them first so a
2150 # subsequent execution test works.
2152 for ac_file in $ac_files
2155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2161 if { (ac_try="$ac_link_default"
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167 (eval "$ac_link_default") 2>&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; then
2171 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2174 # so that the user can short-circuit this test for compilers unknown to
2176 for ac_file in $ac_files
2178 test -f "$ac_file" || continue
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2183 # We found the default executable, but exeext='' is most
2187 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 # We set ac_cv_exeext here because the later test for it is not
2192 # safe: cross compilers may not add the suffix if given an `-o'
2193 # argument, so we may need to know it at that point already.
2194 # Even if this section looks crufty: it has the advantage of
2201 test "$ac_cv_exeext" = no && ac_cv_exeext=
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211 { (exit 77); exit 77; }; }
2214 ac_exeext=$ac_cv_exeext
2215 { echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6; }
2218 # Check that the compiler produces executables we can run. If not, either
2219 # the compiler is broken, or we cross compile.
2220 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225 if { ac_try='./$ac_file'
2226 { (case "(($ac_try" in
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231 (eval "$ac_try") 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 if test "$cross_compiling" = maybe; then
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2250 { echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6; }
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check that the compiler produces executables we can run. If not, either
2256 # the compiler is broken, or we cross compile.
2257 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6; }
2262 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264 if { (ac_try="$ac_link"
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270 (eval "$ac_link") 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2276 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 for ac_file in conftest.exe conftest conftest.*; do
2279 test -f "$ac_file" || continue
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest$ac_cv_exeext
2296 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2302 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304 if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.$ac_ext <<_ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2322 rm -f conftest.o conftest.obj
2323 if { (ac_try="$ac_compile"
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_compile") 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 for ac_file in conftest.o conftest.obj conftest.*; do
2334 test -f "$ac_file" || continue;
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6; }
2356 OBJEXT=$ac_cv_objext
2358 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.$ac_ext <<_ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2381 rm -f conftest.$ac_objext
2382 if { (ac_try="$ac_compile"
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388 (eval "$ac_compile") 2>conftest.er1
2390 grep -v '^ *+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2427 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429 GCC=`test $ac_compiler_gnu = yes && echo yes`
2430 ac_test_CFLAGS=${CFLAGS+set}
2431 ac_save_CFLAGS=$CFLAGS
2432 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 ac_save_c_werror_flag=$ac_c_werror_flag
2438 ac_c_werror_flag=yes
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compile") 2>conftest.er1
2465 grep -v '^ *+' conftest.er1 >conftest.err
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2496 cat >conftest.$ac_ext <<_ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2511 rm -f conftest.$ac_objext
2512 if { (ac_try="$ac_compile"
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518 (eval "$ac_compile") 2>conftest.er1
2520 grep -v '^ *+' conftest.er1 >conftest.err
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_try") 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2550 ac_c_werror_flag=$ac_save_c_werror_flag
2552 cat >conftest.$ac_ext <<_ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2567 rm -f conftest.$ac_objext
2568 if { (ac_try="$ac_compile"
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_compile") 2>conftest.er1
2576 grep -v '^ *+' conftest.er1 >conftest.err
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 ac_c_werror_flag=$ac_save_c_werror_flag
2618 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2620 if test "$ac_test_CFLAGS" = set; then
2621 CFLAGS=$ac_save_CFLAGS
2622 elif test $ac_cv_prog_cc_g = yes; then
2623 if test "$GCC" = yes; then
2629 if test "$GCC" = yes; then
2635 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_cc_c89+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 ac_cv_prog_cc_c89=no
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2653 struct buf { int x; };
2654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655 static char *e (p, i)
2661 static char *f (char * (*g) (char **, int), char **p, ...)
2666 s = g (p, va_arg (v,int));
2671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2672 function prototypes and stuff, but not '\xHH' hex character constants.
2673 These don't provoke an error unfortunately, instead are silently treated
2674 as 'x'. The following induces an error, until -std is added to get
2675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2676 array size at least. It's necessary to write '\x00'==0 to get something
2677 that's true only with -std. */
2678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681 inside strings and character constants. */
2683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 CC="$ac_save_CC $ac_arg"
2703 rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 ac_cv_prog_cc_c89=$ac_arg
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f core conftest.err conftest.$ac_objext
2746 test "x$ac_cv_prog_cc_c89" != "xno" && break
2748 rm -f conftest.$ac_ext
2753 case "x$ac_cv_prog_cc_c89" in
2755 { echo "$as_me:$LINENO: result: none needed" >&5
2756 echo "${ECHO_T}none needed" >&6; } ;;
2758 { echo "$as_me:$LINENO: result: unsupported" >&5
2759 echo "${ECHO_T}unsupported" >&6; } ;;
2761 CC="$CC $ac_cv_prog_cc_c89"
2762 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778 if test -z "$CXX"; then
2779 if test -n "$CCC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in clang++ llvm-g++ g++
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CXX+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$CXX"; then
2793 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 if test -n "$CXX"; then
2814 { echo "$as_me:$LINENO: result: $CXX" >&5
2815 echo "${ECHO_T}$CXX" >&6; }
2817 { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2822 test -n "$CXX" && break
2825 if test -z "$CXX"; then
2827 for ac_prog in clang++ llvm-g++ g++
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $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_ac_ct_CXX+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 if test -n "$ac_ct_CXX"; then
2837 ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857 if test -n "$ac_ct_CXX"; then
2858 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861 { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2866 test -n "$ac_ct_CXX" && break
2869 if test "x$ac_ct_CXX" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet. If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&5
2877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet. If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880 ac_tool_warned=yes ;;
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (ac_try="$ac_compiler --version >&5"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler --version >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901 { (ac_try="$ac_compiler -v >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -v >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (ac_try="$ac_compiler -V >&5"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -V >&5") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993 GXX=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CXXFLAGS=${CXXFLAGS+set}
2995 ac_save_CXXFLAGS=$CXXFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cxx_g+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002 ac_cxx_werror_flag=yes
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 ac_cv_prog_cxx_g=yes
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_cv_prog_cxx_g=yes
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184 if test "$ac_test_CXXFLAGS" = set; then
3185 CXXFLAGS=$ac_save_CXXFLAGS
3186 elif test $ac_cv_prog_cxx_g = yes; then
3187 if test "$GXX" = yes; then
3193 if test "$GXX" = yes; then
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3212 # On Suns, sometimes $CPP names a directory.
3213 if test -n "$CPP" && test -d "$CPP"; then
3216 if test -z "$CPP"; then
3217 if test "${ac_cv_prog_CPP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 # Double quotes because CPP needs to be expanded
3221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3224 for ac_c_preproc_warn_flag in '' yes
3226 # Use a header file that comes with gcc, so configuring glibc
3227 # with a fresh cross-compiler works.
3228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229 # <limits.h> exists even on freestanding compilers.
3230 # On the NeXT, cc -E runs the code through the compiler's parser,
3231 # not just through cpp. "Syntax error" is here to catch this case.
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3239 # include <limits.h>
3241 # include <assert.h>
3245 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253 grep -v '^ *+' conftest.er1 >conftest.err
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } >/dev/null; then
3258 if test -s conftest.err; then
3259 ac_cpp_err=$ac_c_preproc_warn_flag
3260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3267 if test -z "$ac_cpp_err"; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3273 # Broken: fails on valid input.
3277 rm -f conftest.err conftest.$ac_ext
3279 # OK, works on sane cases. Now check whether nonexistent headers
3280 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <ac_nonexistent.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
3312 # Broken: success on invalid input.
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 # Passes both tests.
3323 rm -f conftest.err conftest.$ac_ext
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3340 { echo "$as_me:$LINENO: result: $CPP" >&5
3341 echo "${ECHO_T}$CPP" >&6; }
3343 for ac_c_preproc_warn_flag in '' yes
3345 # Use a header file that comes with gcc, so configuring glibc
3346 # with a fresh cross-compiler works.
3347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348 # <limits.h> exists even on freestanding compilers.
3349 # On the NeXT, cc -E runs the code through the compiler's parser,
3350 # not just through cpp. "Syntax error" is here to catch this case.
3351 cat >conftest.$ac_ext <<_ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3358 # include <limits.h>
3360 # include <assert.h>
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386 if test -z "$ac_cpp_err"; then
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 # Broken: fails on valid input.
3396 rm -f conftest.err conftest.$ac_ext
3398 # OK, works on sane cases. Now check whether nonexistent headers
3399 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <ac_nonexistent.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
3431 # Broken: success on invalid input.
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 # Passes both tests.
3442 rm -f conftest.err conftest.$ac_ext
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3450 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466 # Check whether --enable-polly was given.
3467 if test "${enable_polly+set}" = set; then
3468 enableval=$enable_polly;
3473 case "$enableval" in
3478 default) ENABLE_POLLY=1
3480 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3481 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3482 { (exit 1); exit 1; }; } ;;
3486 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3489 subdirs="$subdirs tools/polly"
3494 # Make sure we can run config.sub.
3495 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3496 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3497 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3498 { (exit 1); exit 1; }; }
3500 { echo "$as_me:$LINENO: checking build system type" >&5
3501 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3502 if test "${ac_cv_build+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 ac_build_alias=$build_alias
3506 test "x$ac_build_alias" = x &&
3507 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3508 test "x$ac_build_alias" = x &&
3509 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3510 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3511 { (exit 1); exit 1; }; }
3512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3513 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3514 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3515 { (exit 1); exit 1; }; }
3518 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3519 echo "${ECHO_T}$ac_cv_build" >&6; }
3520 case $ac_cv_build in
3522 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3523 echo "$as_me: error: invalid value of canonical build" >&2;}
3524 { (exit 1); exit 1; }; };;
3527 ac_save_IFS=$IFS; IFS='-'
3533 # Remember, the first character of IFS is used to create $*,
3534 # except with old shells:
3537 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3540 { echo "$as_me:$LINENO: checking host system type" >&5
3541 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_host+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test "x$host_alias" = x; then
3546 ac_cv_host=$ac_cv_build
3548 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3549 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3550 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3551 { (exit 1); exit 1; }; }
3555 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3556 echo "${ECHO_T}$ac_cv_host" >&6; }
3559 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3560 echo "$as_me: error: invalid value of canonical host" >&2;}
3561 { (exit 1); exit 1; }; };;
3564 ac_save_IFS=$IFS; IFS='-'
3570 # Remember, the first character of IFS is used to create $*,
3571 # except with old shells:
3574 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3577 { echo "$as_me:$LINENO: checking target system type" >&5
3578 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3579 if test "${ac_cv_target+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 if test "x$target_alias" = x; then
3583 ac_cv_target=$ac_cv_host
3585 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3586 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3587 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3588 { (exit 1); exit 1; }; }
3592 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3593 echo "${ECHO_T}$ac_cv_target" >&6; }
3594 case $ac_cv_target in
3596 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3597 echo "$as_me: error: invalid value of canonical target" >&2;}
3598 { (exit 1); exit 1; }; };;
3600 target=$ac_cv_target
3601 ac_save_IFS=$IFS; IFS='-'
3607 # Remember, the first character of IFS is used to create $*,
3608 # except with old shells:
3611 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3614 # The aliases save the names the user supplied, while $host etc.
3615 # will get canonicalized.
3616 test -n "$target_alias" &&
3617 test "$program_prefix$program_suffix$program_transform_name" = \
3619 program_prefix=${target_alias}-
3621 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3622 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3623 if test "${llvm_cv_os_type+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 llvm_cv_link_all_option="-Wl,--whole-archive"
3629 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3630 llvm_cv_os_type="AIX"
3631 llvm_cv_platform_type="Unix" ;;
3633 llvm_cv_link_all_option="-Wl,--whole-archive"
3634 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635 llvm_cv_os_type="IRIX"
3636 llvm_cv_platform_type="Unix" ;;
3638 llvm_cv_link_all_option="-Wl,--whole-archive"
3639 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640 llvm_cv_os_type="Cygwin"
3641 llvm_cv_platform_type="Unix" ;;
3643 llvm_cv_link_all_option="-Wl,-all_load"
3644 llvm_cv_no_link_all_option="-Wl,-noall_load"
3645 llvm_cv_os_type="Darwin"
3646 llvm_cv_platform_type="Unix" ;;
3648 llvm_cv_link_all_option="-Wl,-all_load"
3649 llvm_cv_no_link_all_option="-Wl,-noall_load"
3650 llvm_cv_os_type="Minix"
3651 llvm_cv_platform_type="Unix" ;;
3652 *-*-freebsd* | *-*-kfreebsd-gnu)
3653 llvm_cv_link_all_option="-Wl,--whole-archive"
3654 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3655 llvm_cv_os_type="FreeBSD"
3656 llvm_cv_platform_type="Unix" ;;
3658 llvm_cv_link_all_option="-Wl,--whole-archive"
3659 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660 llvm_cv_os_type="OpenBSD"
3661 llvm_cv_platform_type="Unix" ;;
3663 llvm_cv_link_all_option="-Wl,--whole-archive"
3664 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665 llvm_cv_os_type="NetBSD"
3666 llvm_cv_platform_type="Unix" ;;
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="DragonFly"
3671 llvm_cv_platform_type="Unix" ;;
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="HP-UX"
3676 llvm_cv_platform_type="Unix" ;;
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Interix"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="Linux"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="GNU"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,-z,allextract"
3694 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3695 llvm_cv_os_type="SunOS"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,-z,allextract"
3699 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3700 llvm_cv_os_type="AuroraUX"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Win32"
3706 llvm_cv_platform_type="Win32" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="MingW"
3711 llvm_cv_platform_type="Win32" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="Haiku"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Freestanding"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Freestanding"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option=""
3729 llvm_cv_no_link_all_option=""
3730 llvm_cv_os_type="Unknown"
3731 llvm_cv_platform_type="Unknown" ;;
3734 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3735 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3737 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3738 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3739 if test "${llvm_cv_target_os_type+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 llvm_cv_target_os_type="AIX" ;;
3746 llvm_cv_target_os_type="IRIX" ;;
3748 llvm_cv_target_os_type="Cygwin" ;;
3750 llvm_cv_target_os_type="Darwin" ;;
3752 llvm_cv_target_os_type="Minix" ;;
3753 *-*-freebsd* | *-*-kfreebsd-gnu)
3754 llvm_cv_target_os_type="FreeBSD" ;;
3756 llvm_cv_target_os_type="OpenBSD" ;;
3758 llvm_cv_target_os_type="NetBSD" ;;
3760 llvm_cv_target_os_type="DragonFly" ;;
3762 llvm_cv_target_os_type="HP-UX" ;;
3764 llvm_cv_target_os_type="Interix" ;;
3766 llvm_cv_target_os_type="Linux" ;;
3768 llvm_cv_target_os_type="GNU" ;;
3770 llvm_cv_target_os_type="SunOS" ;;
3772 llvm_cv_target_os_type="AuroraUX" ;;
3774 llvm_cv_target_os_type="Win32" ;;
3776 llvm_cv_target_os_type="MingW" ;;
3778 llvm_cv_target_os_type="Haiku" ;;
3780 llvm_cv_target_os_type="RTEMS" ;;
3782 llvm_cv_target_os_type="NativeClient" ;;
3784 llvm_cv_target_os_type="Freestanding" ;;
3786 llvm_cv_target_os_type="Unknown" ;;
3789 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3790 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3792 if test "$llvm_cv_os_type" = "Unknown" ; then
3793 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3794 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3795 { (exit 1); exit 1; }; }
3800 HOST_OS=$llvm_cv_os_type
3802 TARGET_OS=$llvm_cv_target_os_type
3805 LINKALL=$llvm_cv_link_all_option
3807 NOLINKALL=$llvm_cv_no_link_all_option
3810 case $llvm_cv_platform_type in
3813 cat >>confdefs.h <<\_ACEOF
3814 #define LLVM_ON_UNIX 1
3824 cat >>confdefs.h <<\_ACEOF
3825 #define LLVM_ON_WIN32 1
3835 { echo "$as_me:$LINENO: checking target architecture" >&5
3836 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3837 if test "${llvm_cv_target_arch+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 i?86-*) llvm_cv_target_arch="x86" ;;
3842 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3843 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3844 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3845 arm*-*) llvm_cv_target_arch="ARM" ;;
3846 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
3847 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3848 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3849 xcore-*) llvm_cv_target_arch="XCore" ;;
3850 msp430-*) llvm_cv_target_arch="MSP430" ;;
3851 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3852 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3853 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3854 *) llvm_cv_target_arch="Unknown" ;;
3857 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3858 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3860 if test "$llvm_cv_target_arch" = "Unknown" ; then
3861 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3862 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3865 # Determine the LLVM native architecture for the target
3866 case "$llvm_cv_target_arch" in
3867 x86) LLVM_NATIVE_ARCH="X86" ;;
3868 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3869 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3872 ARCH=$llvm_cv_target_arch
3877 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3878 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 # Extract the first word of "grep ggrep" to use in msg output
3883 if test -z "$GREP"; then
3884 set dummy grep ggrep; ac_prog_name=$2
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 ac_path_GREP_found=false
3889 # Loop through the user's path and test for each of PROGNAME-LIST
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894 test -z "$as_dir" && as_dir=.
3895 for ac_prog in grep ggrep; do
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3898 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3899 # Check for GNU ac_path_GREP and select it if it is found.
3900 # Check for GNU $ac_path_GREP
3901 case `"$ac_path_GREP" --version 2>&1` in
3903 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3909 cat "conftest.in" "conftest.in" >"conftest.tmp"
3910 mv "conftest.tmp" "conftest.in"
3911 cp "conftest.in" "conftest.nl"
3912 echo 'GREP' >> "conftest.nl"
3913 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915 ac_count=`expr $ac_count + 1`
3916 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3917 # Best one so far, save it but keep looking for a better one
3918 ac_cv_path_GREP="$ac_path_GREP"
3919 ac_path_GREP_max=$ac_count
3921 # 10*(2^10) chars as input seems more than enough
3922 test $ac_count -gt 10 && break
3924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3928 $ac_path_GREP_found && break 3
3938 GREP="$ac_cv_path_GREP"
3939 if test -z "$GREP"; then
3940 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942 { (exit 1); exit 1; }; }
3946 ac_cv_path_GREP=$GREP
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3953 GREP="$ac_cv_path_GREP"
3956 { echo "$as_me:$LINENO: checking for egrep" >&5
3957 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3958 if test "${ac_cv_path_EGREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3962 then ac_cv_path_EGREP="$GREP -E"
3964 # Extract the first word of "egrep" to use in msg output
3965 if test -z "$EGREP"; then
3966 set dummy egrep; ac_prog_name=$2
3967 if test "${ac_cv_path_EGREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_path_EGREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in egrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3981 # Check for GNU ac_path_EGREP and select it if it is found.
3982 # Check for GNU $ac_path_EGREP
3983 case `"$ac_path_EGREP" --version 2>&1` in
3985 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'EGREP' >> "conftest.nl"
3995 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_EGREP="$ac_path_EGREP"
4001 ac_path_EGREP_max=$ac_count
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_EGREP_found && break 3
4020 EGREP="$ac_cv_path_EGREP"
4021 if test -z "$EGREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4028 ac_cv_path_EGREP=$EGREP
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4036 EGREP="$ac_cv_path_EGREP"
4039 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4041 if test "${ac_cv_header_stdc+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078 { (case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_try") 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 ac_cv_header_stdc=yes
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4102 ac_cv_header_stdc=no
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 if test $ac_cv_header_stdc = yes; then
4108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119 $EGREP "memchr" >/dev/null 2>&1; then
4122 ac_cv_header_stdc=no
4128 if test $ac_cv_header_stdc = yes; then
4129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140 $EGREP "free" >/dev/null 2>&1; then
4143 ac_cv_header_stdc=no
4149 if test $ac_cv_header_stdc = yes; then
4150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4151 if test "$cross_compiling" = yes; then
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4162 #if ((' ' & 0x0FF) == 0x020)
4163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4166 # define ISLOWER(c) \
4167 (('a' <= (c) && (c) <= 'i') \
4168 || ('j' <= (c) && (c) <= 'r') \
4169 || ('s' <= (c) && (c) <= 'z'))
4170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4178 for (i = 0; i < 256; i++)
4179 if (XOR (islower (i), ISLOWER (i))
4180 || toupper (i) != TOUPPER (i))
4185 rm -f conftest$ac_exeext
4186 if { (ac_try="$ac_link"
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_link") 2>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4207 echo "$as_me: program exited with status $ac_status" >&5
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4212 ac_cv_header_stdc=no
4214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4220 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4221 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4222 if test $ac_cv_header_stdc = yes; then
4224 cat >>confdefs.h <<\_ACEOF
4225 #define STDC_HEADERS 1
4230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4240 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4241 inttypes.h stdint.h unistd.h
4243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 $ac_includes_default
4257 #include <$ac_header>
4259 rm -f conftest.$ac_objext
4260 if { (ac_try="$ac_compile"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_compile") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest.$ac_objext'
4284 { (case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_try") 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 eval "$as_ac_Header=yes"
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 eval "$as_ac_Header=no"
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 ac_res=`eval echo '${'$as_ac_Header'}'`
4304 { echo "$as_me:$LINENO: result: $ac_res" >&5
4305 echo "${ECHO_T}$ac_res" >&6; }
4306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4307 cat >>confdefs.h <<_ACEOF
4308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4317 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4318 if test "${ac_cv_c_bigendian+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 # See if sys/param.h defines the BYTE_ORDER macro.
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 #include <sys/types.h>
4329 #include <sys/param.h>
4334 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4342 rm -f conftest.$ac_objext
4343 if { (ac_try="$ac_compile"
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_compile") 2>conftest.er1
4351 grep -v '^ *+' conftest.er1 >conftest.err
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest.$ac_objext'
4367 { (case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_try") 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 # It does; now see whether it defined to BIG_ENDIAN or not.
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <sys/types.h>
4384 #include <sys/param.h>
4389 #if BYTE_ORDER != BIG_ENDIAN
4397 rm -f conftest.$ac_objext
4398 if { (ac_try="$ac_compile"
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_compile") 2>conftest.er1
4406 grep -v '^ *+' conftest.er1 >conftest.err
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412 { (case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_try") 2>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_try") 2>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_c_bigendian=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_cv_c_bigendian=no
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 # It does not; compile a test program.
4445 if test "$cross_compiling" = yes; then
4446 # try to guess the endianness by grepping values into an object file
4447 ac_cv_c_bigendian=unknown
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4455 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4456 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4457 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4458 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4459 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4463 _ascii (); _ebcdic ();
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4503 ac_cv_c_bigendian=yes
4505 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4506 if test "$ac_cv_c_bigendian" = unknown; then
4507 ac_cv_c_bigendian=no
4509 # finding both strings is unlikely to happen, but who knows?
4510 ac_cv_c_bigendian=unknown
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4533 /* Are we little or big endian? From Harbison&Steele. */
4537 char c[sizeof (long int)];
4540 return u.c[sizeof (long int) - 1] == 1;
4546 rm -f conftest$ac_exeext
4547 if { (ac_try="$ac_link"
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_link") 2>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557 { (case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_try") 2>&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 ac_cv_c_bigendian=no
4568 echo "$as_me: program exited with status $ac_status" >&5
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4573 ac_cv_c_bigendian=yes
4575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4584 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4585 case $ac_cv_c_bigendian in
4593 { { echo "$as_me:$LINENO: error: unknown endianness
4594 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4595 echo "$as_me: error: unknown endianness
4596 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4597 { (exit 1); exit 1; }; } ;;
4601 if test "$cross_compiling" = yes; then
4602 LLVM_CROSS_COMPILING=1
4605 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4606 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4607 if test "${ac_cv_build_exeext+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4611 ac_cv_build_exeext=.exe
4613 ac_build_prefix=${build_alias}-
4615 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4616 set dummy ${ac_build_prefix}gcc; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 if test -n "$BUILD_CC"; then
4623 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 BUILD_CC=$ac_cv_prog_BUILD_CC
4643 if test -n "$BUILD_CC"; then
4644 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4645 echo "${ECHO_T}$BUILD_CC" >&6; }
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4652 if test -z "$BUILD_CC"; then
4653 # Extract the first word of "gcc", so it can be a program name with args.
4654 set dummy gcc; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 if test -n "$BUILD_CC"; then
4661 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_BUILD_CC="gcc"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 BUILD_CC=$ac_cv_prog_BUILD_CC
4681 if test -n "$BUILD_CC"; then
4682 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4683 echo "${ECHO_T}$BUILD_CC" >&6; }
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4690 if test -z "$BUILD_CC"; then
4691 # Extract the first word of "cc", so it can be a program name with args.
4692 set dummy cc; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 if test -n "$BUILD_CC"; then
4699 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4710 ac_prog_rejected=yes
4713 ac_cv_prog_BUILD_CC="cc"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 if test $ac_prog_rejected = yes; then
4722 # We found a bogon in the path, so make sure we never use it.
4723 set dummy $ac_cv_prog_BUILD_CC
4725 if test $# != 0; then
4726 # We chose a different compiler from the bogus one.
4727 # However, it has the same basename, so the bogon will be chosen
4728 # first if we set BUILD_CC to just the basename; use the full file name.
4730 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4735 BUILD_CC=$ac_cv_prog_BUILD_CC
4736 if test -n "$BUILD_CC"; then
4737 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4738 echo "${ECHO_T}$BUILD_CC" >&6; }
4740 { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4747 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4748 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4749 { (exit 1); exit 1; }; }
4750 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4752 echo 'int main () { return 0; }' > conftest.$ac_ext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4755 (eval $ac_build_link) 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; then
4759 for file in conftest.*; do
4761 *.c | *.o | *.obj | *.dSYM) ;;
4762 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4766 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4767 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4768 { (exit 1); exit 1; }; }
4771 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4776 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4777 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4778 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4779 ac_build_exeext=$BUILD_EXEEXT
4781 ac_build_prefix=${build_alias}-
4782 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4783 set dummy ${ac_build_prefix}g++; ac_word=$2
4784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4786 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 if test -n "$BUILD_CXX"; then
4790 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4810 if test -n "$BUILD_CXX"; then
4811 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4812 echo "${ECHO_T}$BUILD_CXX" >&6; }
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4819 if test -z "$BUILD_CXX"; then
4820 # Extract the first word of "g++", so it can be a program name with args.
4821 set dummy g++; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 if test -n "$BUILD_CXX"; then
4828 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_BUILD_CXX="g++"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4848 if test -n "$BUILD_CXX"; then
4849 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4850 echo "${ECHO_T}$BUILD_CXX" >&6; }
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4857 if test -z "$BUILD_CXX"; then
4858 # Extract the first word of "c++", so it can be a program name with args.
4859 set dummy c++; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 if test -n "$BUILD_CXX"; then
4866 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4877 ac_prog_rejected=yes
4880 ac_cv_prog_BUILD_CXX="c++"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 if test $ac_prog_rejected = yes; then
4889 # We found a bogon in the path, so make sure we never use it.
4890 set dummy $ac_cv_prog_BUILD_CXX
4892 if test $# != 0; then
4893 # We chose a different compiler from the bogus one.
4894 # However, it has the same basename, so the bogon will be chosen
4895 # first if we set BUILD_CXX to just the basename; use the full file name.
4897 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4902 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4903 if test -n "$BUILD_CXX"; then
4904 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4905 echo "${ECHO_T}$BUILD_CXX" >&6; }
4907 { echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6; }
4915 LLVM_CROSS_COMPILING=0
4919 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4930 # Check whether --enable-libcpp was given.
4931 if test "${enable_libcpp+set}" = set; then
4932 enableval=$enable_libcpp;
4937 case "$enableval" in
4938 yes) ENABLE_LIBCPP=1
4942 default) ENABLE_LIBCPP=0
4944 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4945 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4946 { (exit 1); exit 1; }; } ;;
4949 # Check whether --enable-cxx11 was given.
4950 if test "${enable_cxx11+set}" = set; then
4951 enableval=$enable_cxx11;
4956 case "$enableval" in
4961 default) ENABLE_CXX11=0
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4968 # Check whether --enable-optimized was given.
4969 if test "${enable_optimized+set}" = set; then
4970 enableval=$enable_optimized;
4975 if test ${enableval} = "no" ; then
4979 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4983 # Check whether --enable-profiling was given.
4984 if test "${enable_profiling+set}" = set; then
4985 enableval=$enable_profiling;
4990 if test ${enableval} = "no" ; then
4994 ENABLE_PROFILING=ENABLE_PROFILING=1
4998 # Check whether --enable-assertions was given.
4999 if test "${enable_assertions+set}" = set; then
5000 enableval=$enable_assertions;
5005 if test ${enableval} = "yes" ; then
5009 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5013 # Check whether --enable-werror was given.
5014 if test "${enable_werror+set}" = set; then
5015 enableval=$enable_werror;
5020 case "$enableval" in
5021 yes) ENABLE_WERROR=1
5025 default) ENABLE_WERROR=0
5027 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5028 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5029 { (exit 1); exit 1; }; } ;;
5032 # Check whether --enable-expensive-checks was given.
5033 if test "${enable_expensive_checks+set}" = set; then
5034 enableval=$enable_expensive_checks;
5039 if test ${enableval} = "yes" ; then
5040 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5042 EXPENSIVE_CHECKS=yes
5045 ENABLE_EXPENSIVE_CHECKS=
5051 # Check whether --enable-debug-runtime was given.
5052 if test "${enable_debug_runtime+set}" = set; then
5053 enableval=$enable_debug_runtime;
5058 if test ${enableval} = "no" ; then
5062 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5066 # Check whether --enable-debug-symbols was given.
5067 if test "${enable_debug_symbols+set}" = set; then
5068 enableval=$enable_debug_symbols;
5073 if test ${enableval} = "no" ; then
5077 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5081 # Check whether --enable-jit was given.
5082 if test "${enable_jit+set}" = set; then
5083 enableval=$enable_jit;
5088 if test ${enableval} = "no"
5093 case "$llvm_cv_target_arch" in
5094 x86) TARGET_HAS_JIT=1
5096 Sparc) TARGET_HAS_JIT=0
5098 PowerPC) TARGET_HAS_JIT=1
5100 x86_64) TARGET_HAS_JIT=1
5102 ARM) TARGET_HAS_JIT=1
5104 AArch64) TARGET_HAS_JIT=0
5106 Mips) TARGET_HAS_JIT=1
5108 XCore) TARGET_HAS_JIT=0
5110 MSP430) TARGET_HAS_JIT=0
5112 Hexagon) TARGET_HAS_JIT=0
5114 NVPTX) TARGET_HAS_JIT=0
5116 SystemZ) TARGET_HAS_JIT=1
5123 # Check whether --enable-docs was given.
5124 if test "${enable_docs+set}" = set; then
5125 enableval=$enable_docs;
5130 case "$enableval" in
5135 default) ENABLE_DOCS=1
5137 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5138 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5142 # Check whether --enable-doxygen was given.
5143 if test "${enable_doxygen+set}" = set; then
5144 enableval=$enable_doxygen;
5149 case "$enableval" in
5150 yes) ENABLE_DOXYGEN=1
5152 no) ENABLE_DOXYGEN=0
5154 default) ENABLE_DOXYGEN=0
5156 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5157 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5161 # Check whether --enable-threads was given.
5162 if test "${enable_threads+set}" = set; then
5163 enableval=$enable_threads;
5168 case "$enableval" in
5169 yes) ENABLE_THREADS=1
5171 no) ENABLE_THREADS=0
5173 default) ENABLE_THREADS=1
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5176 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5180 cat >>confdefs.h <<_ACEOF
5181 #define ENABLE_THREADS $ENABLE_THREADS
5185 # Check whether --enable-pthreads was given.
5186 if test "${enable_pthreads+set}" = set; then
5187 enableval=$enable_pthreads;
5192 case "$enableval" in
5193 yes) ENABLE_PTHREADS=1
5195 no) ENABLE_PTHREADS=0
5197 default) ENABLE_PTHREADS=1
5199 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5200 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5201 { (exit 1); exit 1; }; } ;;
5204 # Check whether --enable-zlib was given.
5205 if test "${enable_zlib+set}" = set; then
5206 enableval=$enable_zlib;
5211 case "$enableval" in
5212 yes) LLVM_ENABLE_ZLIB=1
5214 no) LLVM_ENABLE_ZLIB=0
5216 default) LLVM_ENABLE_ZLIB=1
5218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5223 cat >>confdefs.h <<_ACEOF
5224 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5228 # Check whether --enable-pic was given.
5229 if test "${enable_pic+set}" = set; then
5230 enableval=$enable_pic;
5235 case "$enableval" in
5240 default) ENABLE_PIC=1
5242 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5243 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5244 { (exit 1); exit 1; }; } ;;
5247 cat >>confdefs.h <<_ACEOF
5248 #define ENABLE_PIC $ENABLE_PIC
5252 # Check whether --enable-shared was given.
5253 if test "${enable_shared+set}" = set; then
5254 enableval=$enable_shared;
5259 case "$enableval" in
5260 yes) ENABLE_SHARED=1
5264 default) ENABLE_SHARED=0
5266 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5267 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5268 { (exit 1); exit 1; }; } ;;
5271 # Check whether --enable-embed-stdcxx was given.
5272 if test "${enable_embed_stdcxx+set}" = set; then
5273 enableval=$enable_embed_stdcxx;
5278 case "$enableval" in
5279 yes) ENABLE_EMBED_STDCXX=1
5281 no) ENABLE_EMBED_STDCXX=0
5283 default) ENABLE_EMBED_STDCXX=1
5285 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5286 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5287 { (exit 1); exit 1; }; } ;;
5290 # Check whether --enable-timestamps was given.
5291 if test "${enable_timestamps+set}" = set; then
5292 enableval=$enable_timestamps;
5297 case "$enableval" in
5298 yes) ENABLE_TIMESTAMPS=1
5300 no) ENABLE_TIMESTAMPS=0
5302 default) ENABLE_TIMESTAMPS=1
5304 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5305 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5306 { (exit 1); exit 1; }; } ;;
5309 cat >>confdefs.h <<_ACEOF
5310 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5315 # Check whether --enable-targets was given.
5316 if test "${enable_targets+set}" = set; then
5317 enableval=$enable_targets;
5322 if test "$enableval" = host-only ; then
5325 case "$enableval" in
5326 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5327 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5329 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5332 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5333 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5334 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5335 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5340 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5341 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5342 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5343 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5344 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5345 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5346 host) case "$llvm_cv_target_arch" in
5347 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5348 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5350 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5351 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5352 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5353 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5354 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5355 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5356 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5357 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5358 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5359 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5360 echo "$as_me: error: Can not set target to build" >&2;}
5361 { (exit 1); exit 1; }; } ;;
5363 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5364 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5365 { (exit 1); exit 1; }; } ;;
5370 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5373 # Determine whether we are building LLVM support for the native architecture.
5374 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5375 for a_target in $TARGETS_TO_BUILD; do
5376 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5378 cat >>confdefs.h <<_ACEOF
5379 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5382 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5383 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5384 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5385 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5386 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5387 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5389 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5390 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5393 cat >>confdefs.h <<_ACEOF
5394 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5398 cat >>confdefs.h <<_ACEOF
5399 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5412 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5414 cat >>confdefs.h <<_ACEOF
5415 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5419 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5429 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5430 # target feature def files.
5431 LLVM_ENUM_TARGETS=""
5432 LLVM_ENUM_ASM_PRINTERS=""
5433 LLVM_ENUM_ASM_PARSERS=""
5434 LLVM_ENUM_DISASSEMBLERS=""
5435 for target_to_build in $TARGETS_TO_BUILD; do
5436 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5437 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5438 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5440 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5441 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5443 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5444 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5453 # Check whether --with-optimize-option was given.
5454 if test "${with_optimize_option+set}" = set; then
5455 withval=$with_optimize_option;
5460 { echo "$as_me:$LINENO: checking optimization flags" >&5
5461 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5464 case "$llvm_cv_os_type" in
5465 FreeBSD) optimize_option=-O2 ;;
5466 MingW) optimize_option=-O2 ;;
5467 *) optimize_option=-O3 ;;
5469 *) optimize_option="$withval" ;;
5471 OPTIMIZE_OPTION=$optimize_option
5473 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5474 echo "${ECHO_T}$optimize_option" >&6; }
5477 # Check whether --with-extra-options was given.
5478 if test "${with_extra_options+set}" = set; then
5479 withval=$with_extra_options;
5485 default) EXTRA_OPTIONS= ;;
5486 *) EXTRA_OPTIONS=$withval ;;
5488 EXTRA_OPTIONS=$EXTRA_OPTIONS
5492 # Check whether --with-extra-ld-options was given.
5493 if test "${with_extra_ld_options+set}" = set; then
5494 withval=$with_extra_ld_options;
5500 default) EXTRA_LD_OPTIONS= ;;
5501 *) EXTRA_LD_OPTIONS=$withval ;;
5503 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5506 # Check whether --enable-bindings was given.
5507 if test "${enable_bindings+set}" = set; then
5508 enableval=$enable_bindings;
5513 BINDINGS_TO_BUILD=""
5514 case "$enableval" in
5515 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5516 all ) BINDINGS_TO_BUILD="ocaml" ;;
5517 none | no) BINDINGS_TO_BUILD="" ;;
5518 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5519 case "$a_binding" in
5520 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5521 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5522 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5523 { (exit 1); exit 1; }; } ;;
5530 # Check whether --with-ocaml-libdir was given.
5531 if test "${with_ocaml_libdir+set}" = set; then
5532 withval=$with_ocaml_libdir;
5538 auto) with_ocaml_libdir="$withval" ;;
5539 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5540 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5541 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5542 { (exit 1); exit 1; }; } ;;
5546 # Check whether --with-clang-resource-dir was given.
5547 if test "${with_clang_resource_dir+set}" = set; then
5548 withval=$with_clang_resource_dir;
5554 cat >>confdefs.h <<_ACEOF
5555 #define CLANG_RESOURCE_DIR "$withval"
5560 # Check whether --with-c-include-dirs was given.
5561 if test "${with_c_include_dirs+set}" = set; then
5562 withval=$with_c_include_dirs;
5568 cat >>confdefs.h <<_ACEOF
5569 #define C_INCLUDE_DIRS "$withval"
5573 # Clang normally uses the system c++ headers and libraries. With this option,
5574 # clang will use the ones provided by a gcc installation instead. This option should
5575 # be passed the same value that was used with --prefix when configuring gcc.
5577 # Check whether --with-gcc-toolchain was given.
5578 if test "${with_gcc_toolchain+set}" = set; then
5579 withval=$with_gcc_toolchain;
5585 cat >>confdefs.h <<_ACEOF
5586 #define GCC_INSTALL_PREFIX "$withval"
5591 # Check whether --with-binutils-include was given.
5592 if test "${with_binutils_include+set}" = set; then
5593 withval=$with_binutils_include;
5599 default) WITH_BINUTILS_INCDIR=default ;;
5600 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5601 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5602 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5603 { (exit 1); exit 1; }; } ;;
5605 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5606 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5608 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5609 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5610 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5611 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5612 { (exit 1); exit 1; }; };
5617 # Check whether --with-bug-report-url was given.
5618 if test "${with_bug_report_url+set}" = set; then
5619 withval=$with_bug_report_url;
5621 withval="http://llvm.org/bugs/"
5625 cat >>confdefs.h <<_ACEOF
5626 #define BUG_REPORT_URL "$withval"
5630 # Check whether --enable-terminfo was given.
5631 if test "${enable_terminfo+set}" = set; then
5632 enableval=$enable_terminfo; case "$enableval" in
5633 yes) llvm_cv_enable_terminfo="yes" ;;
5634 no) llvm_cv_enable_terminfo="no" ;;
5635 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5636 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5637 { (exit 1); exit 1; }; } ;;
5640 llvm_cv_enable_terminfo="yes"
5644 # Check whether --enable-libffi was given.
5645 if test "${enable_libffi+set}" = set; then
5646 enableval=$enable_libffi; case "$enableval" in
5647 yes) llvm_cv_enable_libffi="yes" ;;
5648 no) llvm_cv_enable_libffi="no" ;;
5649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5650 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5651 { (exit 1); exit 1; }; } ;;
5654 llvm_cv_enable_libffi=no
5659 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5660 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5661 if test "${lt_cv_path_NM+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 if test -n "$NM"; then
5665 # Let the user override the test.
5668 lt_nm_to_check="${ac_tool_prefix}nm"
5669 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5670 lt_nm_to_check="$lt_nm_to_check nm"
5672 for lt_tmp_nm in $lt_nm_to_check; do
5673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5674 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5676 test -z "$ac_dir" && ac_dir=.
5677 tmp_nm="$ac_dir/$lt_tmp_nm"
5678 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5679 # Check to see if the nm accepts a BSD-compat flag.
5680 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5681 # nm: unknown option "B" ignored
5682 # Tru64's nm complains that /dev/null is an invalid object file
5683 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5684 */dev/null* | *'Invalid file or object type'*)
5685 lt_cv_path_NM="$tmp_nm -B"
5689 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5691 lt_cv_path_NM="$tmp_nm -p"
5695 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696 continue # so that we can try to find one that supports BSD flags
5705 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5708 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5709 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5714 { echo "$as_me:$LINENO: checking for GNU make" >&5
5715 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5716 if test "${llvm_cv_gnu_make_command+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 llvm_cv_gnu_make_command=''
5720 for a in "$MAKE" make gmake gnumake ; do
5721 if test -z "$a" ; then continue ; fi ;
5722 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5724 llvm_cv_gnu_make_command=$a ;
5729 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5730 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5731 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5735 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5736 echo "${ECHO_T}\"Not found\"" >&6; };
5740 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5741 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5743 if test "$LN_S" = "ln -s"; then
5744 { echo "$as_me:$LINENO: result: yes" >&5
5745 echo "${ECHO_T}yes" >&6; }
5747 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5748 echo "${ECHO_T}no, using $LN_S" >&6; }
5751 # Extract the first word of "cmp", so it can be a program name with args.
5752 set dummy cmp; ac_word=$2
5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755 if test "${ac_cv_path_CMP+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5783 if test -n "$CMP"; then
5784 { echo "$as_me:$LINENO: result: $CMP" >&5
5785 echo "${ECHO_T}$CMP" >&6; }
5787 { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5792 # Extract the first word of "cp", so it can be a program name with args.
5793 set dummy cp; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_path_CP+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5824 if test -n "$CP"; then
5825 { echo "$as_me:$LINENO: result: $CP" >&5
5826 echo "${ECHO_T}$CP" >&6; }
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 # Extract the first word of "date", so it can be a program name with args.
5834 set dummy date; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_path_DATE+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5864 DATE=$ac_cv_path_DATE
5865 if test -n "$DATE"; then
5866 { echo "$as_me:$LINENO: result: $DATE" >&5
5867 echo "${ECHO_T}$DATE" >&6; }
5869 { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5874 # Extract the first word of "find", so it can be a program name with args.
5875 set dummy find; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_path_FIND+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5905 FIND=$ac_cv_path_FIND
5906 if test -n "$FIND"; then
5907 { echo "$as_me:$LINENO: result: $FIND" >&5
5908 echo "${ECHO_T}$FIND" >&6; }
5910 { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5915 # Extract the first word of "grep", so it can be a program name with args.
5916 set dummy grep; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_GREP+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5946 GREP=$ac_cv_path_GREP
5947 if test -n "$GREP"; then
5948 { echo "$as_me:$LINENO: result: $GREP" >&5
5949 echo "${ECHO_T}$GREP" >&6; }
5951 { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5956 # Extract the first word of "mkdir", so it can be a program name with args.
5957 set dummy mkdir; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_path_MKDIR+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5987 MKDIR=$ac_cv_path_MKDIR
5988 if test -n "$MKDIR"; then
5989 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5990 echo "${ECHO_T}$MKDIR" >&6; }
5992 { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5997 # Extract the first word of "mv", so it can be a program name with args.
5998 set dummy mv; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_path_MV+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6029 if test -n "$MV"; then
6030 { echo "$as_me:$LINENO: result: $MV" >&5
6031 echo "${ECHO_T}$MV" >&6; }
6033 { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6038 if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_RANLIB+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 if test -n "$RANLIB"; then
6047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 RANLIB=$ac_cv_prog_RANLIB
6067 if test -n "$RANLIB"; then
6068 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6069 echo "${ECHO_T}$RANLIB" >&6; }
6071 { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6077 if test -z "$ac_cv_prog_RANLIB"; then
6078 ac_ct_RANLIB=$RANLIB
6079 # Extract the first word of "ranlib", so it can be a program name with args.
6080 set dummy ranlib; ac_word=$2
6081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 if test -n "$ac_ct_RANLIB"; then
6087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_ac_ct_RANLIB="ranlib"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6107 if test -n "$ac_ct_RANLIB"; then
6108 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6109 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6111 { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6115 if test "x$ac_ct_RANLIB" = x; then
6118 case $cross_compiling:$ac_tool_warned in
6120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet. If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&5
6123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet. If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126 ac_tool_warned=yes ;;
6128 RANLIB=$ac_ct_RANLIB
6131 RANLIB="$ac_cv_prog_RANLIB"
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}ar; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_prog_AR+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 if test -n "$AR"; then
6143 ac_cv_prog_AR="$AR" # Let the user override the test.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_AR="${ac_tool_prefix}ar"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 if test -n "$AR"; then
6164 { echo "$as_me:$LINENO: result: $AR" >&5
6165 echo "${ECHO_T}$AR" >&6; }
6167 { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6173 if test -z "$ac_cv_prog_AR"; then
6175 # Extract the first word of "ar", so it can be a program name with args.
6176 set dummy ar; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 if test -n "$ac_ct_AR"; then
6183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_prog_ac_ct_AR="ar"
6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6203 if test -n "$ac_ct_AR"; then
6204 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6205 echo "${ECHO_T}$ac_ct_AR" >&6; }
6207 { echo "$as_me:$LINENO: result: no" >&5
6208 echo "${ECHO_T}no" >&6; }
6211 if test "x$ac_ct_AR" = x; then
6214 case $cross_compiling:$ac_tool_warned in
6216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet. If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&5
6219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet. If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222 ac_tool_warned=yes ;;
6230 # Extract the first word of "rm", so it can be a program name with args.
6231 set dummy rm; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_RM+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6262 if test -n "$RM"; then
6263 { echo "$as_me:$LINENO: result: $RM" >&5
6264 echo "${ECHO_T}$RM" >&6; }
6266 { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6271 # Extract the first word of "sed", so it can be a program name with args.
6272 set dummy sed; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_SED+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6303 if test -n "$SED"; then
6304 { echo "$as_me:$LINENO: result: $SED" >&5
6305 echo "${ECHO_T}$SED" >&6; }
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6312 # Extract the first word of "tar", so it can be a program name with args.
6313 set dummy tar; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_TAR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6344 if test -n "$TAR"; then
6345 { echo "$as_me:$LINENO: result: $TAR" >&5
6346 echo "${ECHO_T}$TAR" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6353 # Extract the first word of "pwd", so it can be a program name with args.
6354 set dummy pwd; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_BINPWD+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6384 BINPWD=$ac_cv_path_BINPWD
6385 if test -n "$BINPWD"; then
6386 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6387 echo "${ECHO_T}$BINPWD" >&6; }
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6395 # Extract the first word of "Graphviz", so it can be a program name with args.
6396 set dummy Graphviz; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6426 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6427 if test -n "$GRAPHVIZ"; then
6428 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6429 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6431 { echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6; }
6436 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6438 cat >>confdefs.h <<\_ACEOF
6439 #define HAVE_GRAPHVIZ 1
6442 if test "$llvm_cv_os_type" = "MingW" ; then
6443 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6446 cat >>confdefs.h <<_ACEOF
6447 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6451 # Extract the first word of "dot", so it can be a program name with args.
6452 set dummy dot; ac_word=$2
6453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6455 if test "${ac_cv_path_DOT+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6483 if test -n "$DOT"; then
6484 { echo "$as_me:$LINENO: result: $DOT" >&5
6485 echo "${ECHO_T}$DOT" >&6; }
6487 { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6492 if test "$DOT" != "echo dot" ; then
6494 cat >>confdefs.h <<\_ACEOF
6498 if test "$llvm_cv_os_type" = "MingW" ; then
6499 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6502 cat >>confdefs.h <<_ACEOF
6503 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6507 # Extract the first word of "fdp", so it can be a program name with args.
6508 set dummy fdp; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_path_FDP+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6539 if test -n "$FDP"; then
6540 { echo "$as_me:$LINENO: result: $FDP" >&5
6541 echo "${ECHO_T}$FDP" >&6; }
6543 { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6548 if test "$FDP" != "echo fdp" ; then
6550 cat >>confdefs.h <<\_ACEOF
6554 if test "$llvm_cv_os_type" = "MingW" ; then
6555 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6558 cat >>confdefs.h <<_ACEOF
6559 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6563 # Extract the first word of "neato", so it can be a program name with args.
6564 set dummy neato; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_NEATO+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6594 NEATO=$ac_cv_path_NEATO
6595 if test -n "$NEATO"; then
6596 { echo "$as_me:$LINENO: result: $NEATO" >&5
6597 echo "${ECHO_T}$NEATO" >&6; }
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6604 if test "$NEATO" != "echo neato" ; then
6606 cat >>confdefs.h <<\_ACEOF
6607 #define HAVE_NEATO 1
6610 if test "$llvm_cv_os_type" = "MingW" ; then
6611 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6614 cat >>confdefs.h <<_ACEOF
6615 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6619 # Extract the first word of "twopi", so it can be a program name with args.
6620 set dummy twopi; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_path_TWOPI+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6650 TWOPI=$ac_cv_path_TWOPI
6651 if test -n "$TWOPI"; then
6652 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6653 echo "${ECHO_T}$TWOPI" >&6; }
6655 { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6660 if test "$TWOPI" != "echo twopi" ; then
6662 cat >>confdefs.h <<\_ACEOF
6663 #define HAVE_TWOPI 1
6666 if test "$llvm_cv_os_type" = "MingW" ; then
6667 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6670 cat >>confdefs.h <<_ACEOF
6671 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6675 # Extract the first word of "circo", so it can be a program name with args.
6676 set dummy circo; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_path_CIRCO+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6706 CIRCO=$ac_cv_path_CIRCO
6707 if test -n "$CIRCO"; then
6708 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6709 echo "${ECHO_T}$CIRCO" >&6; }
6711 { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6716 if test "$CIRCO" != "echo circo" ; then
6718 cat >>confdefs.h <<\_ACEOF
6719 #define HAVE_CIRCO 1
6722 if test "$llvm_cv_os_type" = "MingW" ; then
6723 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6726 cat >>confdefs.h <<_ACEOF
6727 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6731 for ac_prog in gv gsview32
6733 # Extract the first word of "$ac_prog", so it can be a program name with args.
6734 set dummy $ac_prog; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_GV+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 if test -n "$GV"; then
6765 { echo "$as_me:$LINENO: result: $GV" >&5
6766 echo "${ECHO_T}$GV" >&6; }
6768 { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6773 test -n "$GV" && break
6775 test -n "$GV" || GV="echo gv"
6777 if test "$GV" != "echo gv" ; then
6779 cat >>confdefs.h <<\_ACEOF
6783 if test "$llvm_cv_os_type" = "MingW" ; then
6784 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6787 cat >>confdefs.h <<_ACEOF
6788 #define LLVM_PATH_GV "$GV${EXEEXT}"
6792 # Extract the first word of "dotty", so it can be a program name with args.
6793 set dummy dotty; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_DOTTY+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6823 DOTTY=$ac_cv_path_DOTTY
6824 if test -n "$DOTTY"; then
6825 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6826 echo "${ECHO_T}$DOTTY" >&6; }
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6833 if test "$DOTTY" != "echo dotty" ; then
6835 cat >>confdefs.h <<\_ACEOF
6836 #define HAVE_DOTTY 1
6839 if test "$llvm_cv_os_type" = "MingW" ; then
6840 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6843 cat >>confdefs.h <<_ACEOF
6844 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6848 # Extract the first word of "xdot.py", so it can be a program name with args.
6849 set dummy xdot.py; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6879 XDOT_PY=$ac_cv_path_XDOT_PY
6880 if test -n "$XDOT_PY"; then
6881 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6882 echo "${ECHO_T}$XDOT_PY" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6889 if test "$XDOT_PY" != "echo xdot.py" ; then
6891 cat >>confdefs.h <<\_ACEOF
6892 #define HAVE_XDOT_PY 1
6895 if test "$llvm_cv_os_type" = "MingW" ; then
6896 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6899 cat >>confdefs.h <<_ACEOF
6900 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6905 # Find a good install program. We prefer a C program (faster),
6906 # so one script is as good as another. But avoid the broken or
6907 # incompatible versions:
6908 # SysV /etc/install, /usr/sbin/install
6909 # SunOS /usr/etc/install
6910 # IRIX /sbin/install
6912 # AmigaOS /C/install, which installs bootblocks on floppy discs
6913 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6914 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6915 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6916 # OS/2's system install, which has a completely different semantic
6917 # ./install, which can be erroneously created by make from ./install.sh.
6918 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6919 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6920 if test -z "$INSTALL"; then
6921 if test "${ac_cv_path_install+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 test -z "$as_dir" && as_dir=.
6929 # Account for people who put trailing slashes in PATH elements.
6931 ./ | .// | /cC/* | \
6932 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6933 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6936 # OSF1 and SCO ODT 3.0 have their own names for install.
6937 # Don't use installbsd from OSF since it installs stuff as root
6939 for ac_prog in ginstall scoinst install; do
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6942 if test $ac_prog = install &&
6943 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6944 # AIX install. It has an incompatible calling convention.
6946 elif test $ac_prog = install &&
6947 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6948 # program-specific install script used by HP pwplus--don't use.
6951 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6964 if test "${ac_cv_path_install+set}" = set; then
6965 INSTALL=$ac_cv_path_install
6967 # As a last resort, use the slow shell script. Don't cache a
6968 # value for INSTALL within a source directory, because that will
6969 # break other packages using the cache if that directory is
6970 # removed, or if the value is a relative name.
6971 INSTALL=$ac_install_sh
6974 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6975 echo "${ECHO_T}$INSTALL" >&6; }
6977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6978 # It thinks the first close brace ends the variable substitution.
6979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6986 [\\/$]* | ?:[\\/]* ) ;;
6987 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6990 # Extract the first word of "bzip2", so it can be a program name with args.
6991 set dummy bzip2; ac_word=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_path_BZIP2+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 BZIP2=$ac_cv_path_BZIP2
7021 if test -n "$BZIP2"; then
7022 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7023 echo "${ECHO_T}$BZIP2" >&6; }
7025 { echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6; }
7030 # Extract the first word of "cat", so it can be a program name with args.
7031 set dummy cat; ac_word=$2
7032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034 if test "${ac_cv_path_CAT+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 if test -n "$CAT"; then
7062 { echo "$as_me:$LINENO: result: $CAT" >&5
7063 echo "${ECHO_T}$CAT" >&6; }
7065 { echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6; }
7070 # Extract the first word of "doxygen", so it can be a program name with args.
7071 set dummy doxygen; ac_word=$2
7072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7074 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 DOXYGEN=$ac_cv_path_DOXYGEN
7101 if test -n "$DOXYGEN"; then
7102 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7103 echo "${ECHO_T}$DOXYGEN" >&6; }
7105 { echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6; }
7110 # Extract the first word of "groff", so it can be a program name with args.
7111 set dummy groff; ac_word=$2
7112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7114 if test "${ac_cv_path_GROFF+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 GROFF=$ac_cv_path_GROFF
7141 if test -n "$GROFF"; then
7142 { echo "$as_me:$LINENO: result: $GROFF" >&5
7143 echo "${ECHO_T}$GROFF" >&6; }
7145 { echo "$as_me:$LINENO: result: no" >&5
7146 echo "${ECHO_T}no" >&6; }
7150 # Extract the first word of "gzip", so it can be a program name with args.
7151 set dummy gzip; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 GZIPBIN=$ac_cv_path_GZIPBIN
7181 if test -n "$GZIPBIN"; then
7182 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7183 echo "${ECHO_T}$GZIPBIN" >&6; }
7185 { echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6; }
7190 # Extract the first word of "pod2html", so it can be a program name with args.
7191 set dummy pod2html; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_path_POD2HTML+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 POD2HTML=$ac_cv_path_POD2HTML
7221 if test -n "$POD2HTML"; then
7222 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7223 echo "${ECHO_T}$POD2HTML" >&6; }
7225 { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7230 # Extract the first word of "pod2man", so it can be a program name with args.
7231 set dummy pod2man; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_path_POD2MAN+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 POD2MAN=$ac_cv_path_POD2MAN
7261 if test -n "$POD2MAN"; then
7262 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7263 echo "${ECHO_T}$POD2MAN" >&6; }
7265 { echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6; }
7270 # Extract the first word of "pdfroff", so it can be a program name with args.
7271 set dummy pdfroff; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_path_PDFROFF+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7289 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 PDFROFF=$ac_cv_path_PDFROFF
7301 if test -n "$PDFROFF"; then
7302 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7303 echo "${ECHO_T}$PDFROFF" >&6; }
7305 { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7310 # Extract the first word of "runtest", so it can be a program name with args.
7311 set dummy runtest; ac_word=$2
7312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314 if test "${ac_cv_path_RUNTEST+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7329 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 RUNTEST=$ac_cv_path_RUNTEST
7341 if test -n "$RUNTEST"; then
7342 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7343 echo "${ECHO_T}$RUNTEST" >&6; }
7345 { echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6; }
7352 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7353 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7355 # Check whether --with-tclinclude was given.
7356 if test "${with_tclinclude+set}" = set; then
7357 withval=$with_tclinclude; with_tclinclude=${withval}
7362 if test "${ac_cv_path_tclsh+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 if test x"${with_tclinclude}" != x ; then
7367 if test -f ${with_tclinclude}/tclsh ; then
7368 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7369 elif test -f ${with_tclinclude}/src/tclsh ; then
7370 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7372 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7373 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7374 { (exit 1); exit 1; }; }
7380 if test x"${ac_cv_path_tclsh}" = x ; then
7381 { echo "$as_me:$LINENO: result: none" >&5
7382 echo "${ECHO_T}none" >&6; }
7383 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7385 # Extract the first word of "$ac_prog", so it can be a program name with args.
7386 set dummy $ac_prog; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_TCLSH+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 TCLSH=$ac_cv_path_TCLSH
7416 if test -n "$TCLSH"; then
7417 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7418 echo "${ECHO_T}$TCLSH" >&6; }
7420 { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7425 test -n "$TCLSH" && break
7428 if test x"${TCLSH}" = x ; then
7429 ac_cv_path_tclsh='';
7431 ac_cv_path_tclsh="${TCLSH}";
7434 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7435 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7436 TCLSH="${ac_cv_path_tclsh}"
7440 # Extract the first word of "zip", so it can be a program name with args.
7441 set dummy zip; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_ZIP+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 if test -n "$ZIP"; then
7472 { echo "$as_me:$LINENO: result: $ZIP" >&5
7473 echo "${ECHO_T}$ZIP" >&6; }
7475 { echo "$as_me:$LINENO: result: no" >&5
7476 echo "${ECHO_T}no" >&6; }
7480 for ac_prog in ocamlc
7482 # Extract the first word of "$ac_prog", so it can be a program name with args.
7483 set dummy $ac_prog; ac_word=$2
7484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486 if test "${ac_cv_path_OCAMLC+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 OCAMLC=$ac_cv_path_OCAMLC
7513 if test -n "$OCAMLC"; then
7514 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7515 echo "${ECHO_T}$OCAMLC" >&6; }
7517 { echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6; }
7522 test -n "$OCAMLC" && break
7525 for ac_prog in ocamlopt
7527 # Extract the first word of "$ac_prog", so it can be a program name with args.
7528 set dummy $ac_prog; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 OCAMLOPT=$ac_cv_path_OCAMLOPT
7558 if test -n "$OCAMLOPT"; then
7559 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7560 echo "${ECHO_T}$OCAMLOPT" >&6; }
7562 { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7567 test -n "$OCAMLOPT" && break
7570 for ac_prog in ocamldep
7572 # Extract the first word of "$ac_prog", so it can be a program name with args.
7573 set dummy $ac_prog; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 OCAMLDEP=$ac_cv_path_OCAMLDEP
7603 if test -n "$OCAMLDEP"; then
7604 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7605 echo "${ECHO_T}$OCAMLDEP" >&6; }
7607 { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7612 test -n "$OCAMLDEP" && break
7615 for ac_prog in ocamldoc
7617 # Extract the first word of "$ac_prog", so it can be a program name with args.
7618 set dummy $ac_prog; ac_word=$2
7619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7636 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 OCAMLDOC=$ac_cv_path_OCAMLDOC
7648 if test -n "$OCAMLDOC"; then
7649 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7650 echo "${ECHO_T}$OCAMLDOC" >&6; }
7652 { echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6; }
7657 test -n "$OCAMLDOC" && break
7660 for ac_prog in gas as
7662 # Extract the first word of "$ac_prog", so it can be a program name with args.
7663 set dummy $ac_prog; ac_word=$2
7664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666 if test "${ac_cv_path_GAS+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7681 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 if test -n "$GAS"; then
7694 { echo "$as_me:$LINENO: result: $GAS" >&5
7695 echo "${ECHO_T}$GAS" >&6; }
7697 { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7702 test -n "$GAS" && break
7706 { echo "$as_me:$LINENO: checking for linker version" >&5
7707 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7708 if test "${llvm_cv_link_version+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 version_string="$(ld -v 2>&1 | head -1)"
7715 if (echo "$version_string" | grep -q "ld64"); then
7716 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7718 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7722 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7723 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7725 cat >>confdefs.h <<_ACEOF
7726 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7731 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7732 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7733 if test "${llvm_cv_link_use_r+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 ac_cpp='$CPP $CPPFLAGS'
7738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7743 CFLAGS="$CFLAGS -Wl,-R."
7744 cat >conftest.$ac_ext <<_ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (ac_try="$ac_link"
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_link") 2>conftest.er1
7768 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7774 { (case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_try") 2>&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try='test -s conftest$ac_exeext'
7784 { (case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_try") 2>&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 llvm_cv_link_use_r=yes
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7798 llvm_cv_link_use_r=no
7801 rm -f core conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7805 ac_cpp='$CPP $CPPFLAGS'
7806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7813 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7814 if test "$llvm_cv_link_use_r" = yes ; then
7816 cat >>confdefs.h <<\_ACEOF
7817 #define HAVE_LINK_R 1
7823 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7824 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7825 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 ac_cpp='$CPP $CPPFLAGS'
7830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7835 CFLAGS="$CFLAGS -rdynamic"
7836 cat >conftest.$ac_ext <<_ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_link") 2>conftest.er1
7860 grep -v '^ *+' conftest.er1 >conftest.err
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866 { (case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_try") 2>&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
7876 { (case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 llvm_cv_link_use_export_dynamic=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 llvm_cv_link_use_export_dynamic=no
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7905 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7906 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_LINK_EXPORT_DYNAMIC 1
7915 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7916 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7917 if test "${llvm_cv_link_use_version_script+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 ac_cpp='$CPP $CPPFLAGS'
7922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928 # The following code is from the autoconf manual,
7929 # "11.13: Limitations of Usual Tools".
7930 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7931 # Use mktemp if possible; otherwise fall back on mkdir,
7932 # with $RANDOM to make collisions less likely.
7936 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7938 test -n "$tmp" && test -d "$tmp"
7940 tmp=$TMPDIR/foo$$-$RANDOM
7941 (umask 077 && mkdir "$tmp")
7944 echo "{" > "$tmp/export.map"
7945 echo " global: main;" >> "$tmp/export.map"
7946 echo " local: *;" >> "$tmp/export.map"
7947 echo "};" >> "$tmp/export.map"
7949 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7950 cat >conftest.$ac_ext <<_ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 if { (ac_try="$ac_link"
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_link") 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7980 { (case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_try") 2>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; } &&
7989 { ac_try='test -s conftest$ac_exeext'
7990 { (case "(($ac_try" in
7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992 *) ac_try_echo=$ac_try;;
7994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995 (eval "$ac_try") 2>&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 llvm_cv_link_use_version_script=yes
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8004 llvm_cv_link_use_version_script=no
8007 rm -f core conftest.err conftest.$ac_objext \
8008 conftest$ac_exeext conftest.$ac_ext
8009 rm "$tmp/export.map"
8013 ac_cpp='$CPP $CPPFLAGS'
8014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8021 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8022 if test "$llvm_cv_link_use_version_script" = yes ; then
8023 HAVE_LINK_VERSION_SCRIPT=1
8028 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8029 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8042 if test "$GCC" != "yes" && test "$ICC" != "yes"
8044 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8045 echo "$as_me: error: gcc|icc required but not found" >&2;}
8046 { (exit 1); exit 1; }; }
8049 if test "$GXX" != "yes" && test "$IXX" != "yes"
8051 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8052 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8053 { (exit 1); exit 1; }; }
8056 if test "$GCC" = "yes"
8058 cat >conftest.$ac_ext <<_ACEOF
8059 #if !defined(__GNUC__) || __GNUC__ < 3
8060 #error Unsupported GCC version
8064 rm -f conftest.$ac_objext
8065 if { (ac_try="$ac_compile"
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_compile") 2>conftest.er1
8073 grep -v '^ *+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8079 { (case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_try") 2>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; } &&
8088 { ac_try='test -s conftest.$ac_objext'
8089 { (case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_try") 2>&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8103 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8104 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8105 { (exit 1); exit 1; }; }
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 if test -z "$llvm_cv_gnu_make_command"
8113 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8114 echo "$as_me: error: GNU Make required but not found" >&2;}
8115 { (exit 1); exit 1; }; }
8118 { echo "$as_me:$LINENO: result: ok" >&5
8119 echo "${ECHO_T}ok" >&6; }
8121 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8122 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8123 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8125 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8127 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8129 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
8130 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
8134 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8135 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8136 if test "${ac_cv_lib_m_sin+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 ac_check_lib_save_LIBS=$LIBS
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8148 /* Override any GCC internal prototype to avoid an error.
8149 Use char because int might match the return type of a GCC
8150 builtin and then its argument prototype would still apply. */
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (ac_try="$ac_link"
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_link") 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8178 { (case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_try") 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest$ac_exeext'
8188 { (case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_try") 2>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8205 rm -f core conftest.err conftest.$ac_objext \
8206 conftest$ac_exeext conftest.$ac_ext
8207 LIBS=$ac_check_lib_save_LIBS
8209 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8210 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8211 if test $ac_cv_lib_m_sin = yes; then
8212 cat >>confdefs.h <<_ACEOF
8220 if test "$llvm_cv_os_type" = "MingW" ; then
8222 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8223 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8224 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 ac_check_lib_save_LIBS=$LIBS
8228 LIBS="-limagehlp $LIBS"
8229 cat >conftest.$ac_ext <<_ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_link") 2>conftest.er1
8254 grep -v '^ *+' conftest.er1 >conftest.err
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8260 { (case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_try") 2>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest$ac_exeext'
8270 { (case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_try") 2>&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 ac_cv_lib_imagehlp_main=yes
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 ac_cv_lib_imagehlp_main=no
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8289 LIBS=$ac_check_lib_save_LIBS
8291 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8292 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8293 if test $ac_cv_lib_imagehlp_main = yes; then
8294 cat >>confdefs.h <<_ACEOF
8295 #define HAVE_LIBIMAGEHLP 1
8298 LIBS="-limagehlp $LIBS"
8303 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8304 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8305 if test "${ac_cv_lib_psapi_main+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 ac_check_lib_save_LIBS=$LIBS
8309 LIBS="-lpsapi $LIBS"
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (ac_try="$ac_link"
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_link") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_try") 2>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest$ac_exeext'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_cv_lib_psapi_main=yes
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 ac_cv_lib_psapi_main=no
8368 rm -f core conftest.err conftest.$ac_objext \
8369 conftest$ac_exeext conftest.$ac_ext
8370 LIBS=$ac_check_lib_save_LIBS
8372 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8373 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8374 if test $ac_cv_lib_psapi_main = yes; then
8375 cat >>confdefs.h <<_ACEOF
8376 #define HAVE_LIBPSAPI 1
8379 LIBS="-lpsapi $LIBS"
8384 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8385 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8386 if test "${ac_cv_lib_shell32_main+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 ac_check_lib_save_LIBS=$LIBS
8390 LIBS="-lshell32 $LIBS"
8391 cat >conftest.$ac_ext <<_ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (ac_try="$ac_link"
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_link") 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_try") 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; } &&
8431 { ac_try='test -s conftest$ac_exeext'
8432 { (case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_try") 2>&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 ac_cv_lib_shell32_main=yes
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 ac_cv_lib_shell32_main=no
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8453 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8454 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8455 if test $ac_cv_lib_shell32_main = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457 #define HAVE_LIBSHELL32 1
8460 LIBS="-lshell32 $LIBS"
8466 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8467 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8468 if test "${ac_cv_search_dlopen+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 ac_func_search_save_LIBS=$LIBS
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8479 /* Override any GCC internal prototype to avoid an error.
8480 Use char because int might match the return type of a GCC
8481 builtin and then its argument prototype would still apply. */
8494 for ac_lib in '' dl; do
8495 if test -z "$ac_lib"; then
8496 ac_res="none required"
8499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (ac_try="$ac_link"
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_link") 2>conftest.er1
8510 grep -v '^ *+' conftest.er1 >conftest.err
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8516 { (case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_try") 2>&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest$ac_exeext'
8526 { (case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_try") 2>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_search_dlopen=$ac_res
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8543 rm -f core conftest.err conftest.$ac_objext \
8545 if test "${ac_cv_search_dlopen+set}" = set; then
8549 if test "${ac_cv_search_dlopen+set}" = set; then
8552 ac_cv_search_dlopen=no
8555 LIBS=$ac_func_search_save_LIBS
8557 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8558 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8559 ac_res=$ac_cv_search_dlopen
8560 if test "$ac_res" != no; then
8561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8563 cat >>confdefs.h <<\_ACEOF
8564 #define HAVE_DLOPEN 1
8568 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8569 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8573 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8574 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8575 if test "${ac_cv_search_clock_gettime+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 ac_func_search_save_LIBS=$LIBS
8579 cat >conftest.$ac_ext <<_ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8586 /* Override any GCC internal prototype to avoid an error.
8587 Use char because int might match the return type of a GCC
8588 builtin and then its argument prototype would still apply. */
8592 char clock_gettime ();
8596 return clock_gettime ();
8601 for ac_lib in '' rt; do
8602 if test -z "$ac_lib"; then
8603 ac_res="none required"
8606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (ac_try="$ac_link"
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_link") 2>conftest.er1
8617 grep -v '^ *+' conftest.er1 >conftest.err
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8623 { (case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_try") 2>&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try='test -s conftest$ac_exeext'
8633 { (case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_try") 2>&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 ac_cv_search_clock_gettime=$ac_res
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8650 rm -f core conftest.err conftest.$ac_objext \
8652 if test "${ac_cv_search_clock_gettime+set}" = set; then
8656 if test "${ac_cv_search_clock_gettime+set}" = set; then
8659 ac_cv_search_clock_gettime=no
8662 LIBS=$ac_func_search_save_LIBS
8664 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8665 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8666 ac_res=$ac_cv_search_clock_gettime
8667 if test "$ac_res" != no; then
8668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8673 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8674 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8675 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8676 if test "${ac_cv_search_setupterm+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 ac_func_search_save_LIBS=$LIBS
8680 cat >conftest.$ac_ext <<_ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8687 /* Override any GCC internal prototype to avoid an error.
8688 Use char because int might match the return type of a GCC
8689 builtin and then its argument prototype would still apply. */
8697 return setupterm ();
8702 for ac_lib in '' tinfo curses ncurses ncursesw; do
8703 if test -z "$ac_lib"; then
8704 ac_res="none required"
8707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (ac_try="$ac_link"
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716 (eval "$ac_link") 2>conftest.er1
8718 grep -v '^ *+' conftest.er1 >conftest.err
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8724 { (case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_try") 2>&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; } &&
8733 { ac_try='test -s conftest$ac_exeext'
8734 { (case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_try") 2>&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8743 ac_cv_search_setupterm=$ac_res
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8751 rm -f core conftest.err conftest.$ac_objext \
8753 if test "${ac_cv_search_setupterm+set}" = set; then
8757 if test "${ac_cv_search_setupterm+set}" = set; then
8760 ac_cv_search_setupterm=no
8763 LIBS=$ac_func_search_save_LIBS
8765 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8766 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8767 ac_res=$ac_cv_search_setupterm
8768 if test "$ac_res" != no; then
8769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8771 cat >>confdefs.h <<\_ACEOF
8772 #define HAVE_TERMINFO 1
8779 if test "$llvm_cv_enable_libffi" = "yes" ; then
8780 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8781 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8782 if test "${ac_cv_search_ffi_call+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 ac_func_search_save_LIBS=$LIBS
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8793 /* Override any GCC internal prototype to avoid an error.
8794 Use char because int might match the return type of a GCC
8795 builtin and then its argument prototype would still apply. */
8808 for ac_lib in '' ffi; do
8809 if test -z "$ac_lib"; then
8810 ac_res="none required"
8813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_link") 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_search_ffi_call=$ac_res
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8857 rm -f core conftest.err conftest.$ac_objext \
8859 if test "${ac_cv_search_ffi_call+set}" = set; then
8863 if test "${ac_cv_search_ffi_call+set}" = set; then
8866 ac_cv_search_ffi_call=no
8869 LIBS=$ac_func_search_save_LIBS
8871 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
8872 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
8873 ac_res=$ac_cv_search_ffi_call
8874 if test "$ac_res" != no; then
8875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8877 cat >>confdefs.h <<\_ACEOF
8878 #define HAVE_FFI_CALL 1
8882 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
8883 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
8884 { (exit 1); exit 1; }; }
8889 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
8890 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
8891 if test "${ac_cv_search_mallinfo+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 ac_func_search_save_LIBS=$LIBS
8895 cat >conftest.$ac_ext <<_ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8902 /* Override any GCC internal prototype to avoid an error.
8903 Use char because int might match the return type of a GCC
8904 builtin and then its argument prototype would still apply. */
8917 for ac_lib in '' malloc; do
8918 if test -z "$ac_lib"; then
8919 ac_res="none required"
8922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (ac_try="$ac_link"
8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928 *) ac_try_echo=$ac_try;;
8930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8931 (eval "$ac_link") 2>conftest.er1
8933 grep -v '^ *+' conftest.er1 >conftest.err
8935 cat conftest.err >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8939 { (case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_try") 2>&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; } &&
8948 { ac_try='test -s conftest$ac_exeext'
8949 { (case "(($ac_try" in
8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_try") 2>&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 ac_cv_search_mallinfo=$ac_res
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8966 rm -f core conftest.err conftest.$ac_objext \
8968 if test "${ac_cv_search_mallinfo+set}" = set; then
8972 if test "${ac_cv_search_mallinfo+set}" = set; then
8975 ac_cv_search_mallinfo=no
8978 LIBS=$ac_func_search_save_LIBS
8980 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
8981 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
8982 ac_res=$ac_cv_search_mallinfo
8983 if test "$ac_res" != no; then
8984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8986 cat >>confdefs.h <<\_ACEOF
8987 #define HAVE_MALLINFO 1
8993 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
8995 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
8996 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
8997 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 ac_check_lib_save_LIBS=$LIBS
9001 LIBS="-lpthread $LIBS"
9002 cat >conftest.$ac_ext <<_ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9009 /* Override any GCC internal prototype to avoid an error.
9010 Use char because int might match the return type of a GCC
9011 builtin and then its argument prototype would still apply. */
9015 char pthread_mutex_init ();
9019 return pthread_mutex_init ();
9024 rm -f conftest.$ac_objext conftest$ac_exeext
9025 if { (ac_try="$ac_link"
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031 (eval "$ac_link") 2>conftest.er1
9033 grep -v '^ *+' conftest.er1 >conftest.err
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9039 { (case "(($ac_try" in
9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9044 (eval "$ac_try") 2>&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_try") 2>&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_lib_pthread_pthread_mutex_init=yes
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 ac_cv_lib_pthread_pthread_mutex_init=no
9066 rm -f core conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
9068 LIBS=$ac_check_lib_save_LIBS
9070 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9071 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9072 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9073 cat >>confdefs.h <<_ACEOF
9074 #define HAVE_LIBPTHREAD 1
9077 LIBS="-lpthread $LIBS"
9081 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9082 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9083 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 ac_func_search_save_LIBS=$LIBS
9087 cat >conftest.$ac_ext <<_ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9094 /* Override any GCC internal prototype to avoid an error.
9095 Use char because int might match the return type of a GCC
9096 builtin and then its argument prototype would still apply. */
9100 char pthread_mutex_lock ();
9104 return pthread_mutex_lock ();
9109 for ac_lib in '' pthread; do
9110 if test -z "$ac_lib"; then
9111 ac_res="none required"
9114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (ac_try="$ac_link"
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_link") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9131 { (case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_try") 2>&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest$ac_exeext'
9141 { (case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_try") 2>&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
9150 ac_cv_search_pthread_mutex_lock=$ac_res
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9158 rm -f core conftest.err conftest.$ac_objext \
9160 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9164 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9167 ac_cv_search_pthread_mutex_lock=no
9170 LIBS=$ac_func_search_save_LIBS
9172 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9173 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9174 ac_res=$ac_cv_search_pthread_mutex_lock
9175 if test "$ac_res" != no; then
9176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9178 cat >>confdefs.h <<\_ACEOF
9179 #define HAVE_PTHREAD_MUTEX_LOCK 1
9184 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9185 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9186 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 ac_func_search_save_LIBS=$LIBS
9190 cat >conftest.$ac_ext <<_ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9197 /* Override any GCC internal prototype to avoid an error.
9198 Use char because int might match the return type of a GCC
9199 builtin and then its argument prototype would still apply. */
9203 char pthread_rwlock_init ();
9207 return pthread_rwlock_init ();
9212 for ac_lib in '' pthread; do
9213 if test -z "$ac_lib"; then
9214 ac_res="none required"
9217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (ac_try="$ac_link"
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_link") 2>conftest.er1
9228 grep -v '^ *+' conftest.er1 >conftest.err
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9234 { (case "(($ac_try" in
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_try") 2>&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest$ac_exeext'
9244 { (case "(($ac_try" in
9245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9246 *) ac_try_echo=$ac_try;;
9248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9249 (eval "$ac_try") 2>&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9253 ac_cv_search_pthread_rwlock_init=$ac_res
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9261 rm -f core conftest.err conftest.$ac_objext \
9263 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9267 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9270 ac_cv_search_pthread_rwlock_init=no
9273 LIBS=$ac_func_search_save_LIBS
9275 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9276 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9277 ac_res=$ac_cv_search_pthread_rwlock_init
9278 if test "$ac_res" != no; then
9279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9281 cat >>confdefs.h <<\_ACEOF
9282 #define HAVE_PTHREAD_RWLOCK_INIT 1
9287 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9288 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9289 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 ac_func_search_save_LIBS=$LIBS
9293 cat >conftest.$ac_ext <<_ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9300 /* Override any GCC internal prototype to avoid an error.
9301 Use char because int might match the return type of a GCC
9302 builtin and then its argument prototype would still apply. */
9306 char pthread_getspecific ();
9310 return pthread_getspecific ();
9315 for ac_lib in '' pthread; do
9316 if test -z "$ac_lib"; then
9317 ac_res="none required"
9320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9322 rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (ac_try="$ac_link"
9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_link") 2>conftest.er1
9331 grep -v '^ *+' conftest.er1 >conftest.err
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } &&
9336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9337 { (case "(($ac_try" in
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_try") 2>&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; } &&
9346 { ac_try='test -s conftest$ac_exeext'
9347 { (case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_try") 2>&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 ac_cv_search_pthread_getspecific=$ac_res
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9364 rm -f core conftest.err conftest.$ac_objext \
9366 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9370 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9373 ac_cv_search_pthread_getspecific=no
9376 LIBS=$ac_func_search_save_LIBS
9378 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9379 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9380 ac_res=$ac_cv_search_pthread_getspecific
9381 if test "$ac_res" != no; then
9382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9384 cat >>confdefs.h <<\_ACEOF
9385 #define HAVE_PTHREAD_GETSPECIFIC 1
9392 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9394 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9395 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9396 if test "${ac_cv_lib_z_compress2+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 ac_check_lib_save_LIBS=$LIBS
9401 cat >conftest.$ac_ext <<_ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9408 /* Override any GCC internal prototype to avoid an error.
9409 Use char because int might match the return type of a GCC
9410 builtin and then its argument prototype would still apply. */
9418 return compress2 ();
9423 rm -f conftest.$ac_objext conftest$ac_exeext
9424 if { (ac_try="$ac_link"
9426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430 (eval "$ac_link") 2>conftest.er1
9432 grep -v '^ *+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } &&
9437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9438 { (case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_try") 2>&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (case "(($ac_try" in
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_try") 2>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9457 ac_cv_lib_z_compress2=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_cv_lib_z_compress2=no
9465 rm -f core conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9467 LIBS=$ac_check_lib_save_LIBS
9469 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9470 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9471 if test $ac_cv_lib_z_compress2 = yes; then
9472 cat >>confdefs.h <<_ACEOF
9483 # Check whether --with-udis86 was given.
9484 if test "${with_udis86+set}" = set; then
9485 withval=$with_udis86;
9490 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
9493 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
9494 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
9495 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 ac_check_lib_save_LIBS=$LIBS
9499 LIBS="-ludis86 $LIBS"
9500 cat >conftest.$ac_ext <<_ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9507 /* Override any GCC internal prototype to avoid an error.
9508 Use char because int might match the return type of a GCC
9509 builtin and then its argument prototype would still apply. */
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (ac_try="$ac_link"
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 (eval "$ac_link") 2>conftest.er1
9531 grep -v '^ *+' conftest.er1 >conftest.err
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9537 { (case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_try") 2>&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try='test -s conftest$ac_exeext'
9547 { (case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_try") 2>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_cv_lib_udis86_ud_init=yes
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9561 ac_cv_lib_udis86_ud_init=no
9564 rm -f core conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566 LIBS=$ac_check_lib_save_LIBS
9568 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
9569 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
9570 if test $ac_cv_lib_udis86_ud_init = yes; then
9571 cat >>confdefs.h <<_ACEOF
9572 #define HAVE_LIBUDIS86 1
9575 LIBS="-ludis86 $LIBS"
9579 echo "Error! You need to have libudis86 around."
9591 cat >>confdefs.h <<_ACEOF
9592 #define USE_UDIS86 $USE_UDIS86
9597 # Check whether --with-oprofile was given.
9598 if test "${with_oprofile+set}" = set; then
9599 withval=$with_oprofile;
9603 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9607 *) llvm_cv_oppath="${withval}/lib/oprofile"
9608 CPPFLAGS="-I${withval}/include";;
9610 if test -n "$llvm_cv_oppath" ; then
9611 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9612 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9613 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9614 if test "${ac_cv_search_bfd_init+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 ac_func_search_save_LIBS=$LIBS
9618 cat >conftest.$ac_ext <<_ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9625 /* Override any GCC internal prototype to avoid an error.
9626 Use char because int might match the return type of a GCC
9627 builtin and then its argument prototype would still apply. */
9640 for ac_lib in '' bfd; do
9641 if test -z "$ac_lib"; then
9642 ac_res="none required"
9645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9662 { (case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_try") 2>&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
9672 { (case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_try") 2>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_search_bfd_init=$ac_res
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9689 rm -f core conftest.err conftest.$ac_objext \
9691 if test "${ac_cv_search_bfd_init+set}" = set; then
9695 if test "${ac_cv_search_bfd_init+set}" = set; then
9698 ac_cv_search_bfd_init=no
9701 LIBS=$ac_func_search_save_LIBS
9703 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9704 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9705 ac_res=$ac_cv_search_bfd_init
9706 if test "$ac_res" != no; then
9707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9711 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9712 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9713 if test "${ac_cv_search_op_open_agent+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 ac_func_search_save_LIBS=$LIBS
9717 cat >conftest.$ac_ext <<_ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9724 /* Override any GCC internal prototype to avoid an error.
9725 Use char because int might match the return type of a GCC
9726 builtin and then its argument prototype would still apply. */
9730 char op_open_agent ();
9734 return op_open_agent ();
9739 for ac_lib in '' opagent; do
9740 if test -z "$ac_lib"; then
9741 ac_res="none required"
9744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_search_op_open_agent=$ac_res
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9788 rm -f core conftest.err conftest.$ac_objext \
9790 if test "${ac_cv_search_op_open_agent+set}" = set; then
9794 if test "${ac_cv_search_op_open_agent+set}" = set; then
9797 ac_cv_search_op_open_agent=no
9800 LIBS=$ac_func_search_save_LIBS
9802 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9803 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9804 ac_res=$ac_cv_search_op_open_agent
9805 if test "$ac_res" != no; then
9806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9810 echo "Error! You need to have libopagent around."
9815 if test "${ac_cv_header_opagent_h+set}" = set; then
9816 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9817 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9818 if test "${ac_cv_header_opagent_h+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9822 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9824 # Is the header compilable?
9825 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9826 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 $ac_includes_default
9834 #include <opagent.h>
9836 rm -f conftest.$ac_objext
9837 if { (ac_try="$ac_compile"
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_compile") 2>conftest.er1
9845 grep -v '^ *+' conftest.er1 >conftest.err
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9851 { (case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_try") 2>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try='test -s conftest.$ac_objext'
9861 { (case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_try") 2>&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 ac_header_compiler=yes
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_header_compiler=no
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9880 echo "${ECHO_T}$ac_header_compiler" >&6; }
9882 # Is the header present?
9883 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9884 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9885 cat >conftest.$ac_ext <<_ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 #include <opagent.h>
9893 if { (ac_try="$ac_cpp conftest.$ac_ext"
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9901 grep -v '^ *+' conftest.er1 >conftest.err
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } >/dev/null; then
9906 if test -s conftest.err; then
9907 ac_cpp_err=$ac_c_preproc_warn_flag
9908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9915 if test -z "$ac_cpp_err"; then
9916 ac_header_preproc=yes
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ac_header_preproc=no
9924 rm -f conftest.err conftest.$ac_ext
9925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9926 echo "${ECHO_T}$ac_header_preproc" >&6; }
9928 # So? What about this header?
9929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9931 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
9932 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
9934 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
9935 ac_header_preproc=yes
9938 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
9939 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
9941 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
9943 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
9945 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
9947 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
9949 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
9951 ## ------------------------------ ##
9952 ## Report this to bugs@yourdomain ##
9953 ## ------------------------------ ##
9955 ) | sed "s/^/$as_me: WARNING: /" >&2
9958 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9959 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9960 if test "${ac_cv_header_opagent_h+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 ac_cv_header_opagent_h=$ac_header_preproc
9965 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9966 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9969 if test $ac_cv_header_opagent_h = yes; then
9973 echo "Error! You need to have opagent.h around."
9989 cat >>confdefs.h <<_ACEOF
9990 #define USE_OPROFILE $USE_OPROFILE
10000 ac_header_dirent=no
10001 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10002 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10003 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10004 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 cat >conftest.$ac_ext <<_ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 #include <sys/types.h>
10026 rm -f conftest.$ac_objext
10027 if { (ac_try="$ac_compile"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_compile") 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10041 { (case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_try") 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest.$ac_objext'
10051 { (case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 eval "$as_ac_Header=yes"
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 eval "$as_ac_Header=no"
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070 ac_res=`eval echo '${'$as_ac_Header'}'`
10071 { echo "$as_me:$LINENO: result: $ac_res" >&5
10072 echo "${ECHO_T}$ac_res" >&6; }
10073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10074 cat >>confdefs.h <<_ACEOF
10075 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10078 ac_header_dirent=$ac_hdr; break
10082 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10083 if test $ac_header_dirent = dirent.h; then
10084 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10085 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10086 if test "${ac_cv_search_opendir+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 ac_func_search_save_LIBS=$LIBS
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10097 /* Override any GCC internal prototype to avoid an error.
10098 Use char because int might match the return type of a GCC
10099 builtin and then its argument prototype would still apply. */
10112 for ac_lib in '' dir; do
10113 if test -z "$ac_lib"; then
10114 ac_res="none required"
10117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>conftest.er1
10128 grep -v '^ *+' conftest.er1 >conftest.err
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } &&
10133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_search_opendir=$ac_res
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10161 rm -f core conftest.err conftest.$ac_objext \
10163 if test "${ac_cv_search_opendir+set}" = set; then
10167 if test "${ac_cv_search_opendir+set}" = set; then
10170 ac_cv_search_opendir=no
10172 rm conftest.$ac_ext
10173 LIBS=$ac_func_search_save_LIBS
10175 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10176 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10177 ac_res=$ac_cv_search_opendir
10178 if test "$ac_res" != no; then
10179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10184 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10185 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10186 if test "${ac_cv_search_opendir+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 ac_func_search_save_LIBS=$LIBS
10190 cat >conftest.$ac_ext <<_ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10197 /* Override any GCC internal prototype to avoid an error.
10198 Use char because int might match the return type of a GCC
10199 builtin and then its argument prototype would still apply. */
10212 for ac_lib in '' x; do
10213 if test -z "$ac_lib"; then
10214 ac_res="none required"
10217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10219 rm -f conftest.$ac_objext conftest$ac_exeext
10220 if { (ac_try="$ac_link"
10221 case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_link") 2>conftest.er1
10228 grep -v '^ *+' conftest.er1 >conftest.err
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10234 { (case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_try") 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_cv_search_opendir=$ac_res
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10261 rm -f core conftest.err conftest.$ac_objext \
10263 if test "${ac_cv_search_opendir+set}" = set; then
10267 if test "${ac_cv_search_opendir+set}" = set; then
10270 ac_cv_search_opendir=no
10272 rm conftest.$ac_ext
10273 LIBS=$ac_func_search_save_LIBS
10275 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10276 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10277 ac_res=$ac_cv_search_opendir
10278 if test "$ac_res" != no; then
10279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10285 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10286 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10287 if test "${ac_cv_header_mmap_anon+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 ac_cpp='$CPP $CPPFLAGS'
10292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10296 cat >conftest.$ac_ext <<_ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <sys/mman.h>
10303 #include <unistd.h>
10308 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10313 rm -f conftest.$ac_objext
10314 if { (ac_try="$ac_compile"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_compile") 2>conftest.er1
10322 grep -v '^ *+' conftest.er1 >conftest.err
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10328 { (case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_try") 2>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; } &&
10337 { ac_try='test -s conftest.$ac_objext'
10338 { (case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_try") 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 ac_cv_header_mmap_anon=yes
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_cv_header_mmap_anon=no
10355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357 ac_cpp='$CPP $CPPFLAGS'
10358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10364 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10365 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10366 if test "$ac_cv_header_mmap_anon" = yes; then
10368 cat >>confdefs.h <<\_ACEOF
10369 #define HAVE_MMAP_ANONYMOUS 1
10374 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10375 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10376 if test "${ac_cv_header_stat_broken+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 #include <sys/types.h>
10386 #include <sys/stat.h>
10388 #if defined S_ISBLK && defined S_IFDIR
10389 # if S_ISBLK (S_IFDIR)
10394 #if defined S_ISBLK && defined S_IFCHR
10395 # if S_ISBLK (S_IFCHR)
10400 #if defined S_ISLNK && defined S_IFREG
10401 # if S_ISLNK (S_IFREG)
10406 #if defined S_ISSOCK && defined S_IFREG
10407 # if S_ISSOCK (S_IFREG)
10413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10414 $EGREP "You lose" >/dev/null 2>&1; then
10415 ac_cv_header_stat_broken=yes
10417 ac_cv_header_stat_broken=no
10422 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10423 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10424 if test $ac_cv_header_stat_broken = yes; then
10426 cat >>confdefs.h <<\_ACEOF
10427 #define STAT_MACROS_BROKEN 1
10432 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10433 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10434 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 cat >conftest.$ac_ext <<_ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10443 #include <sys/types.h>
10444 #include <sys/wait.h>
10445 #ifndef WEXITSTATUS
10446 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10449 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10457 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10462 rm -f conftest.$ac_objext
10463 if { (ac_try="$ac_compile"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_compile") 2>conftest.er1
10471 grep -v '^ *+' conftest.er1 >conftest.err
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } &&
10476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10477 { (case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_try") 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; } &&
10486 { ac_try='test -s conftest.$ac_objext'
10487 { (case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_try") 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_header_sys_wait_h=yes
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_cv_header_sys_wait_h=no
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10507 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10508 if test $ac_cv_header_sys_wait_h = yes; then
10510 cat >>confdefs.h <<\_ACEOF
10511 #define HAVE_SYS_WAIT_H 1
10516 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10517 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10518 if test "${ac_cv_header_time+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 cat >conftest.$ac_ext <<_ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10527 #include <sys/types.h>
10528 #include <sys/time.h>
10534 if ((struct tm *) 0)
10540 rm -f conftest.$ac_objext
10541 if { (ac_try="$ac_compile"
10542 case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_compile") 2>conftest.er1
10549 grep -v '^ *+' conftest.er1 >conftest.err
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10555 { (case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560 (eval "$ac_try") 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; } &&
10564 { ac_try='test -s conftest.$ac_objext'
10565 { (case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_try") 2>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; }; then
10574 ac_cv_header_time=yes
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10579 ac_cv_header_time=no
10582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10584 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10585 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10586 if test $ac_cv_header_time = yes; then
10588 cat >>confdefs.h <<\_ACEOF
10589 #define TIME_WITH_SYS_TIME 1
10601 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
10603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 ac_res=`eval echo '${'$as_ac_Header'}'`
10611 { echo "$as_me:$LINENO: result: $ac_res" >&5
10612 echo "${ECHO_T}$ac_res" >&6; }
10614 # Is the header compilable?
10615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10617 cat >conftest.$ac_ext <<_ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623 $ac_includes_default
10624 #include <$ac_header>
10626 rm -f conftest.$ac_objext
10627 if { (ac_try="$ac_compile"
10628 case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_compile") 2>conftest.er1
10635 grep -v '^ *+' conftest.er1 >conftest.err
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10641 { (case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_try") 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try='test -s conftest.$ac_objext'
10651 { (case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_try") 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_header_compiler=yes
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10665 ac_header_compiler=no
10668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10670 echo "${ECHO_T}$ac_header_compiler" >&6; }
10672 # Is the header present?
10673 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10675 cat >conftest.$ac_ext <<_ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 #include <$ac_header>
10683 if { (ac_try="$ac_cpp conftest.$ac_ext"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10691 grep -v '^ *+' conftest.er1 >conftest.err
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } >/dev/null; then
10696 if test -s conftest.err; then
10697 ac_cpp_err=$ac_c_preproc_warn_flag
10698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10705 if test -z "$ac_cpp_err"; then
10706 ac_header_preproc=yes
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10711 ac_header_preproc=no
10714 rm -f conftest.err conftest.$ac_ext
10715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10716 echo "${ECHO_T}$ac_header_preproc" >&6; }
10718 # So? What about this header?
10719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10725 ac_header_preproc=yes
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10741 ## ------------------------------ ##
10742 ## Report this to bugs@yourdomain ##
10743 ## ------------------------------ ##
10745 ) | sed "s/^/$as_me: WARNING: /" >&2
10748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 eval "$as_ac_Header=\$ac_header_preproc"
10755 ac_res=`eval echo '${'$as_ac_Header'}'`
10756 { echo "$as_me:$LINENO: result: $ac_res" >&5
10757 echo "${ECHO_T}$ac_res" >&6; }
10760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10761 cat >>confdefs.h <<_ACEOF
10762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10775 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
10777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 ac_res=`eval echo '${'$as_ac_Header'}'`
10785 { echo "$as_me:$LINENO: result: $ac_res" >&5
10786 echo "${ECHO_T}$ac_res" >&6; }
10788 # Is the header compilable?
10789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10791 cat >conftest.$ac_ext <<_ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 $ac_includes_default
10798 #include <$ac_header>
10800 rm -f conftest.$ac_objext
10801 if { (ac_try="$ac_compile"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_compile") 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10815 { (case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_try") 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest.$ac_objext'
10825 { (case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_try") 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_header_compiler=yes
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_header_compiler=no
10842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10844 echo "${ECHO_T}$ac_header_compiler" >&6; }
10846 # Is the header present?
10847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10849 cat >conftest.$ac_ext <<_ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 #include <$ac_header>
10857 if { (ac_try="$ac_cpp conftest.$ac_ext"
10858 case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10865 grep -v '^ *+' conftest.er1 >conftest.err
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } >/dev/null; then
10870 if test -s conftest.err; then
10871 ac_cpp_err=$ac_c_preproc_warn_flag
10872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10879 if test -z "$ac_cpp_err"; then
10880 ac_header_preproc=yes
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 ac_header_preproc=no
10888 rm -f conftest.err conftest.$ac_ext
10889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10890 echo "${ECHO_T}$ac_header_preproc" >&6; }
10892 # So? What about this header?
10893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10899 ac_header_preproc=yes
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10915 ## ------------------------------ ##
10916 ## Report this to bugs@yourdomain ##
10917 ## ------------------------------ ##
10919 ) | sed "s/^/$as_me: WARNING: /" >&2
10922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 eval "$as_ac_Header=\$ac_header_preproc"
10929 ac_res=`eval echo '${'$as_ac_Header'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931 echo "${ECHO_T}$ac_res" >&6; }
10934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10935 cat >>confdefs.h <<_ACEOF
10936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10945 for ac_header in utime.h windows.h
10947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 ac_res=`eval echo '${'$as_ac_Header'}'`
10955 { echo "$as_me:$LINENO: result: $ac_res" >&5
10956 echo "${ECHO_T}$ac_res" >&6; }
10958 # Is the header compilable?
10959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10961 cat >conftest.$ac_ext <<_ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 $ac_includes_default
10968 #include <$ac_header>
10970 rm -f conftest.$ac_objext
10971 if { (ac_try="$ac_compile"
10972 case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_compile") 2>conftest.er1
10979 grep -v '^ *+' conftest.er1 >conftest.err
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest.$ac_objext'
10995 { (case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_try") 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 ac_header_compiler=yes
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_header_compiler=no
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11014 echo "${ECHO_T}$ac_header_compiler" >&6; }
11016 # Is the header present?
11017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <$ac_header>
11027 if { (ac_try="$ac_cpp conftest.$ac_ext"
11028 case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11035 grep -v '^ *+' conftest.er1 >conftest.err
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } >/dev/null; then
11040 if test -s conftest.err; then
11041 ac_cpp_err=$ac_c_preproc_warn_flag
11042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11049 if test -z "$ac_cpp_err"; then
11050 ac_header_preproc=yes
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 ac_header_preproc=no
11058 rm -f conftest.err conftest.$ac_ext
11059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11060 echo "${ECHO_T}$ac_header_preproc" >&6; }
11062 # So? What about this header?
11063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11069 ac_header_preproc=yes
11072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11085 ## ------------------------------ ##
11086 ## Report this to bugs@yourdomain ##
11087 ## ------------------------------ ##
11089 ) | sed "s/^/$as_me: WARNING: /" >&2
11092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 eval "$as_ac_Header=\$ac_header_preproc"
11099 ac_res=`eval echo '${'$as_ac_Header'}'`
11100 { echo "$as_me:$LINENO: result: $ac_res" >&5
11101 echo "${ECHO_T}$ac_res" >&6; }
11104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11105 cat >>confdefs.h <<_ACEOF
11106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11118 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 ac_res=`eval echo '${'$as_ac_Header'}'`
11128 { echo "$as_me:$LINENO: result: $ac_res" >&5
11129 echo "${ECHO_T}$ac_res" >&6; }
11131 # Is the header compilable?
11132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11134 cat >conftest.$ac_ext <<_ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 $ac_includes_default
11141 #include <$ac_header>
11143 rm -f conftest.$ac_objext
11144 if { (ac_try="$ac_compile"
11145 case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_compile") 2>conftest.er1
11152 grep -v '^ *+' conftest.er1 >conftest.err
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11158 { (case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_try") 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest.$ac_objext'
11168 { (case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_try") 2>&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 ac_header_compiler=yes
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11182 ac_header_compiler=no
11185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11187 echo "${ECHO_T}$ac_header_compiler" >&6; }
11189 # Is the header present?
11190 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11192 cat >conftest.$ac_ext <<_ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 #include <$ac_header>
11200 if { (ac_try="$ac_cpp conftest.$ac_ext"
11201 case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11208 grep -v '^ *+' conftest.er1 >conftest.err
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } >/dev/null; then
11213 if test -s conftest.err; then
11214 ac_cpp_err=$ac_c_preproc_warn_flag
11215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11222 if test -z "$ac_cpp_err"; then
11223 ac_header_preproc=yes
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11228 ac_header_preproc=no
11231 rm -f conftest.err conftest.$ac_ext
11232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11233 echo "${ECHO_T}$ac_header_preproc" >&6; }
11235 # So? What about this header?
11236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11242 ac_header_preproc=yes
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11258 ## ------------------------------ ##
11259 ## Report this to bugs@yourdomain ##
11260 ## ------------------------------ ##
11262 ) | sed "s/^/$as_me: WARNING: /" >&2
11265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 eval "$as_ac_Header=\$ac_header_preproc"
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273 { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11278 cat >>confdefs.h <<_ACEOF
11279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11290 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
11292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 ac_res=`eval echo '${'$as_ac_Header'}'`
11300 { echo "$as_me:$LINENO: result: $ac_res" >&5
11301 echo "${ECHO_T}$ac_res" >&6; }
11303 # Is the header compilable?
11304 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 $ac_includes_default
11313 #include <$ac_header>
11315 rm -f conftest.$ac_objext
11316 if { (ac_try="$ac_compile"
11317 case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_compile") 2>conftest.er1
11324 grep -v '^ *+' conftest.er1 >conftest.err
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11330 { (case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_try") 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; } &&
11339 { ac_try='test -s conftest.$ac_objext'
11340 { (case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_try") 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_header_compiler=yes
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 ac_header_compiler=no
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11359 echo "${ECHO_T}$ac_header_compiler" >&6; }
11361 # Is the header present?
11362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11364 cat >conftest.$ac_ext <<_ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 #include <$ac_header>
11372 if { (ac_try="$ac_cpp conftest.$ac_ext"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } >/dev/null; then
11385 if test -s conftest.err; then
11386 ac_cpp_err=$ac_c_preproc_warn_flag
11387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11394 if test -z "$ac_cpp_err"; then
11395 ac_header_preproc=yes
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ac_header_preproc=no
11403 rm -f conftest.err conftest.$ac_ext
11404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11405 echo "${ECHO_T}$ac_header_preproc" >&6; }
11407 # So? What about this header?
11408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11414 ac_header_preproc=yes
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11430 ## ------------------------------ ##
11431 ## Report this to bugs@yourdomain ##
11432 ## ------------------------------ ##
11434 ) | sed "s/^/$as_me: WARNING: /" >&2
11437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 eval "$as_ac_Header=\$ac_header_preproc"
11444 ac_res=`eval echo '${'$as_ac_Header'}'`
11445 { echo "$as_me:$LINENO: result: $ac_res" >&5
11446 echo "${ECHO_T}$ac_res" >&6; }
11449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11450 cat >>confdefs.h <<_ACEOF
11451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11459 for ac_header in valgrind/valgrind.h
11461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 ac_res=`eval echo '${'$as_ac_Header'}'`
11469 { echo "$as_me:$LINENO: result: $ac_res" >&5
11470 echo "${ECHO_T}$ac_res" >&6; }
11472 # Is the header compilable?
11473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11475 cat >conftest.$ac_ext <<_ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 $ac_includes_default
11482 #include <$ac_header>
11484 rm -f conftest.$ac_objext
11485 if { (ac_try="$ac_compile"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_compile") 2>conftest.er1
11493 grep -v '^ *+' conftest.er1 >conftest.err
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499 { (case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_try") 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; } &&
11508 { ac_try='test -s conftest.$ac_objext'
11509 { (case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_try") 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_header_compiler=yes
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_header_compiler=no
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11528 echo "${ECHO_T}$ac_header_compiler" >&6; }
11530 # Is the header present?
11531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11533 cat >conftest.$ac_ext <<_ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 #include <$ac_header>
11541 if { (ac_try="$ac_cpp conftest.$ac_ext"
11542 case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11549 grep -v '^ *+' conftest.er1 >conftest.err
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } >/dev/null; then
11554 if test -s conftest.err; then
11555 ac_cpp_err=$ac_c_preproc_warn_flag
11556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11563 if test -z "$ac_cpp_err"; then
11564 ac_header_preproc=yes
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 ac_header_preproc=no
11572 rm -f conftest.err conftest.$ac_ext
11573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11574 echo "${ECHO_T}$ac_header_preproc" >&6; }
11576 # So? What about this header?
11577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11583 ac_header_preproc=yes
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11599 ## ------------------------------ ##
11600 ## Report this to bugs@yourdomain ##
11601 ## ------------------------------ ##
11603 ) | sed "s/^/$as_me: WARNING: /" >&2
11606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 eval "$as_ac_Header=\$ac_header_preproc"
11613 ac_res=`eval echo '${'$as_ac_Header'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11628 for ac_header in fenv.h
11630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 ac_res=`eval echo '${'$as_ac_Header'}'`
11638 { echo "$as_me:$LINENO: result: $ac_res" >&5
11639 echo "${ECHO_T}$ac_res" >&6; }
11641 # Is the header compilable?
11642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11644 cat >conftest.$ac_ext <<_ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 $ac_includes_default
11651 #include <$ac_header>
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_compile") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest.$ac_objext'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_header_compiler=yes
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_header_compiler=no
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11697 echo "${ECHO_T}$ac_header_compiler" >&6; }
11699 # Is the header present?
11700 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11702 cat >conftest.$ac_ext <<_ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 #include <$ac_header>
11710 if { (ac_try="$ac_cpp conftest.$ac_ext"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11718 grep -v '^ *+' conftest.er1 >conftest.err
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } >/dev/null; then
11723 if test -s conftest.err; then
11724 ac_cpp_err=$ac_c_preproc_warn_flag
11725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11732 if test -z "$ac_cpp_err"; then
11733 ac_header_preproc=yes
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 ac_header_preproc=no
11741 rm -f conftest.err conftest.$ac_ext
11742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6; }
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc=yes
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11768 ## ------------------------------ ##
11769 ## Report this to bugs@yourdomain ##
11770 ## ------------------------------ ##
11772 ) | sed "s/^/$as_me: WARNING: /" >&2
11775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 eval "$as_ac_Header=\$ac_header_preproc"
11782 ac_res=`eval echo '${'$as_ac_Header'}'`
11783 { echo "$as_me:$LINENO: result: $ac_res" >&5
11784 echo "${ECHO_T}$ac_res" >&6; }
11787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11788 cat >>confdefs.h <<_ACEOF
11789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11796 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
11798 for ac_header in pthread.h
11800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 ac_res=`eval echo '${'$as_ac_Header'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11811 # Is the header compilable?
11812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11814 cat >conftest.$ac_ext <<_ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 $ac_includes_default
11821 #include <$ac_header>
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_compile") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11838 { (case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_try") 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11857 ac_header_compiler=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_header_compiler=no
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 #include <$ac_header>
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } >/dev/null; then
11893 if test -s conftest.err; then
11894 ac_cpp_err=$ac_c_preproc_warn_flag
11895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11902 if test -z "$ac_cpp_err"; then
11903 ac_header_preproc=yes
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 ac_header_preproc=no
11911 rm -f conftest.err conftest.$ac_ext
11912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913 echo "${ECHO_T}$ac_header_preproc" >&6; }
11915 # So? What about this header?
11916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922 ac_header_preproc=yes
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11938 ## ------------------------------ ##
11939 ## Report this to bugs@yourdomain ##
11940 ## ------------------------------ ##
11942 ) | sed "s/^/$as_me: WARNING: /" >&2
11945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 eval "$as_ac_Header=\$ac_header_preproc"
11952 ac_res=`eval echo '${'$as_ac_Header'}'`
11953 { echo "$as_me:$LINENO: result: $ac_res" >&5
11954 echo "${ECHO_T}$ac_res" >&6; }
11957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11958 cat >>confdefs.h <<_ACEOF
11959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11974 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
11976 for ac_header in zlib.h
11978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 ac_res=`eval echo '${'$as_ac_Header'}'`
11986 { echo "$as_me:$LINENO: result: $ac_res" >&5
11987 echo "${ECHO_T}$ac_res" >&6; }
11989 # Is the header compilable?
11990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11992 cat >conftest.$ac_ext <<_ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 $ac_includes_default
11999 #include <$ac_header>
12001 rm -f conftest.$ac_objext
12002 if { (ac_try="$ac_compile"
12003 case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_compile") 2>conftest.er1
12010 grep -v '^ *+' conftest.er1 >conftest.err
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; } &&
12025 { ac_try='test -s conftest.$ac_objext'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_header_compiler=yes
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ac_header_compiler=no
12043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12045 echo "${ECHO_T}$ac_header_compiler" >&6; }
12047 # Is the header present?
12048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12050 cat >conftest.$ac_ext <<_ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 #include <$ac_header>
12058 if { (ac_try="$ac_cpp conftest.$ac_ext"
12059 case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12066 grep -v '^ *+' conftest.er1 >conftest.err
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } >/dev/null; then
12071 if test -s conftest.err; then
12072 ac_cpp_err=$ac_c_preproc_warn_flag
12073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12080 if test -z "$ac_cpp_err"; then
12081 ac_header_preproc=yes
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 ac_header_preproc=no
12089 rm -f conftest.err conftest.$ac_ext
12090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12091 echo "${ECHO_T}$ac_header_preproc" >&6; }
12093 # So? What about this header?
12094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12100 ac_header_preproc=yes
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12116 ## ------------------------------ ##
12117 ## Report this to bugs@yourdomain ##
12118 ## ------------------------------ ##
12120 ) | sed "s/^/$as_me: WARNING: /" >&2
12123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 eval "$as_ac_Header=\$ac_header_preproc"
12130 ac_res=`eval echo '${'$as_ac_Header'}'`
12131 { echo "$as_me:$LINENO: result: $ac_res" >&5
12132 echo "${ECHO_T}$ac_res" >&6; }
12135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12153 if test "$llvm_cv_enable_libffi" = "yes" ; then
12156 for ac_header in ffi.h ffi/ffi.h
12158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 ac_res=`eval echo '${'$as_ac_Header'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12169 # Is the header compilable?
12170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12179 #include <$ac_header>
12181 rm -f conftest.$ac_objext
12182 if { (ac_try="$ac_compile"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_compile") 2>conftest.er1
12190 grep -v '^ *+' conftest.er1 >conftest.err
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12196 { (case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_try") 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest.$ac_objext'
12206 { (case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_try") 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_header_compiler=yes
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_header_compiler=no
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12225 echo "${ECHO_T}$ac_header_compiler" >&6; }
12227 # Is the header present?
12228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <$ac_header>
12238 if { (ac_try="$ac_cpp conftest.$ac_ext"
12239 case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12246 grep -v '^ *+' conftest.er1 >conftest.err
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } >/dev/null; then
12251 if test -s conftest.err; then
12252 ac_cpp_err=$ac_c_preproc_warn_flag
12253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12260 if test -z "$ac_cpp_err"; then
12261 ac_header_preproc=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_header_preproc=no
12269 rm -f conftest.err conftest.$ac_ext
12270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271 echo "${ECHO_T}$ac_header_preproc" >&6; }
12273 # So? What about this header?
12274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12280 ac_header_preproc=yes
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12296 ## ------------------------------ ##
12297 ## Report this to bugs@yourdomain ##
12298 ## ------------------------------ ##
12300 ) | sed "s/^/$as_me: WARNING: /" >&2
12303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 eval "$as_ac_Header=\$ac_header_preproc"
12310 ac_res=`eval echo '${'$as_ac_Header'}'`
12311 { echo "$as_me:$LINENO: result: $ac_res" >&5
12312 echo "${ECHO_T}$ac_res" >&6; }
12315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12327 for ac_header in CrashReporterClient.h
12329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 ac_res=`eval echo '${'$as_ac_Header'}'`
12337 { echo "$as_me:$LINENO: result: $ac_res" >&5
12338 echo "${ECHO_T}$ac_res" >&6; }
12340 # Is the header compilable?
12341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 #include <$ac_header>
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_header_compiler=yes
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 ac_header_compiler=no
12394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396 echo "${ECHO_T}$ac_header_compiler" >&6; }
12398 # Is the header present?
12399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12401 cat >conftest.$ac_ext <<_ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 #include <$ac_header>
12409 if { (ac_try="$ac_cpp conftest.$ac_ext"
12410 case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12417 grep -v '^ *+' conftest.er1 >conftest.err
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } >/dev/null; then
12422 if test -s conftest.err; then
12423 ac_cpp_err=$ac_c_preproc_warn_flag
12424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12431 if test -z "$ac_cpp_err"; then
12432 ac_header_preproc=yes
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 ac_header_preproc=no
12440 rm -f conftest.err conftest.$ac_ext
12441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442 echo "${ECHO_T}$ac_header_preproc" >&6; }
12444 # So? What about this header?
12445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12467 ## ------------------------------ ##
12468 ## Report this to bugs@yourdomain ##
12469 ## ------------------------------ ##
12471 ) | sed "s/^/$as_me: WARNING: /" >&2
12474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 eval "$as_ac_Header=\$ac_header_preproc"
12481 ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483 echo "${ECHO_T}$ac_res" >&6; }
12486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12496 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
12497 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
12498 cat >conftest.$ac_ext <<_ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12504 extern const char *__crashreporter_info__;
12506 __crashreporter_info__ = "test";
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512 if { (ac_try="$ac_link"
12513 case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_link") 2>conftest.er1
12520 grep -v '^ *+' conftest.er1 >conftest.err
12522 cat conftest.err >&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } &&
12525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12526 { (case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_try") 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest$ac_exeext'
12536 { (case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_try") 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 { echo "$as_me:$LINENO: result: yes" >&5
12546 echo "${ECHO_T}yes" >&6; }
12548 cat >>confdefs.h <<\_ACEOF
12549 #define HAVE_CRASHREPORTER_INFO 1
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 { echo "$as_me:$LINENO: result: no" >&5
12557 echo "${ECHO_T}no" >&6; }
12559 cat >>confdefs.h <<\_ACEOF
12560 #define HAVE_CRASHREPORTER_INFO 0
12565 rm -f core conftest.err conftest.$ac_objext \
12566 conftest$ac_exeext conftest.$ac_ext
12571 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
12572 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
12573 if test "${ac_cv_huge_val_sanity+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 ac_cpp='$CXXCPP $CPPFLAGS'
12579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12583 ac_save_CXXFLAGS=$CXXFLAGS
12584 CXXFLAGS="$CXXFLAGS -pedantic"
12585 if test "$cross_compiling" = yes; then
12586 ac_cv_huge_val_sanity=yes
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12598 double x = HUGE_VAL; return x != x;
12603 rm -f conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_link") 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12614 { (case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_try") 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 ac_cv_huge_val_sanity=yes
12625 echo "$as_me: program exited with status $ac_status" >&5
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ( exit $ac_status )
12630 ac_cv_huge_val_sanity=no
12632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12636 CXXFLAGS=$ac_save_CXXFLAGS
12638 ac_cpp='$CPP $CPPFLAGS'
12639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12645 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
12646 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
12647 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
12650 { echo "$as_me:$LINENO: checking for pid_t" >&5
12651 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
12652 if test "${ac_cv_type_pid_t+set}" = set; then
12653 echo $ECHO_N "(cached) $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 typedef pid_t ac__type_new_;
12666 if ((ac__type_new_ *) 0)
12668 if (sizeof (ac__type_new_))
12674 rm -f conftest.$ac_objext
12675 if { (ac_try="$ac_compile"
12676 case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_compile") 2>conftest.er1
12683 grep -v '^ *+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12698 { ac_try='test -s conftest.$ac_objext'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12708 ac_cv_type_pid_t=yes
12710 echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12713 ac_cv_type_pid_t=no
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12718 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12719 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
12720 if test $ac_cv_type_pid_t = yes; then
12724 cat >>confdefs.h <<_ACEOF
12730 { echo "$as_me:$LINENO: checking for size_t" >&5
12731 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
12732 if test "${ac_cv_type_size_t+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 cat >conftest.$ac_ext <<_ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12741 $ac_includes_default
12742 typedef size_t ac__type_new_;
12746 if ((ac__type_new_ *) 0)
12748 if (sizeof (ac__type_new_))
12754 rm -f conftest.$ac_objext
12755 if { (ac_try="$ac_compile"
12756 case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_compile") 2>conftest.er1
12763 grep -v '^ *+' conftest.er1 >conftest.err
12765 cat conftest.err >&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } &&
12768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12769 { (case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_try") 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_try") 2>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 ac_cv_type_size_t=yes
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12793 ac_cv_type_size_t=no
12796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12799 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
12800 if test $ac_cv_type_size_t = yes; then
12804 cat >>confdefs.h <<_ACEOF
12805 #define size_t unsigned int
12811 cat >>confdefs.h <<_ACEOF
12812 #define RETSIGTYPE void
12815 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12816 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12817 if test "${ac_cv_struct_tm+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 #include <sys/types.h>
12832 struct tm *tp; tp->tm_sec;
12837 rm -f conftest.$ac_objext
12838 if { (ac_try="$ac_compile"
12839 case "(($ac_try" in
12840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841 *) ac_try_echo=$ac_try;;
12843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12844 (eval "$ac_compile") 2>conftest.er1
12846 grep -v '^ *+' conftest.er1 >conftest.err
12848 cat conftest.err >&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12852 { (case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_try") 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; } &&
12861 { ac_try='test -s conftest.$ac_objext'
12862 { (case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_try") 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_struct_tm=time.h
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 ac_cv_struct_tm=sys/time.h
12879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12881 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12882 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12883 if test $ac_cv_struct_tm = sys/time.h; then
12885 cat >>confdefs.h <<\_ACEOF
12886 #define TM_IN_SYS_TIME 1
12891 { echo "$as_me:$LINENO: checking for int64_t" >&5
12892 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12893 if test "${ac_cv_type_int64_t+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 cat >conftest.$ac_ext <<_ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12902 $ac_includes_default
12903 typedef int64_t ac__type_new_;
12907 if ((ac__type_new_ *) 0)
12909 if (sizeof (ac__type_new_))
12915 rm -f conftest.$ac_objext
12916 if { (ac_try="$ac_compile"
12917 case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_compile") 2>conftest.er1
12924 grep -v '^ *+' conftest.er1 >conftest.err
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest.$ac_objext'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 ac_cv_type_int64_t=yes
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12954 ac_cv_type_int64_t=no
12957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12960 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12961 if test $ac_cv_type_int64_t = yes; then
12963 cat >>confdefs.h <<_ACEOF
12964 #define HAVE_INT64_T 1
12969 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
12970 echo "$as_me: error: Type int64_t required but not found" >&2;}
12971 { (exit 1); exit 1; }; }
12974 { echo "$as_me:$LINENO: checking for uint64_t" >&5
12975 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
12976 if test "${ac_cv_type_uint64_t+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 $ac_includes_default
12986 typedef uint64_t ac__type_new_;
12990 if ((ac__type_new_ *) 0)
12992 if (sizeof (ac__type_new_))
12998 rm -f conftest.$ac_objext
12999 if { (ac_try="$ac_compile"
13000 case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_compile") 2>conftest.er1
13007 grep -v '^ *+' conftest.er1 >conftest.err
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } &&
13012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13013 { (case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_try") 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; } &&
13022 { ac_try='test -s conftest.$ac_objext'
13023 { (case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_try") 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_cv_type_uint64_t=yes
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13037 ac_cv_type_uint64_t=no
13040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13043 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13044 if test $ac_cv_type_uint64_t = yes; then
13046 cat >>confdefs.h <<_ACEOF
13047 #define HAVE_UINT64_T 1
13052 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13053 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13054 if test "${ac_cv_type_u_int64_t+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 cat >conftest.$ac_ext <<_ACEOF
13060 cat confdefs.h >>conftest.$ac_ext
13061 cat >>conftest.$ac_ext <<_ACEOF
13062 /* end confdefs.h. */
13063 $ac_includes_default
13064 typedef u_int64_t ac__type_new_;
13068 if ((ac__type_new_ *) 0)
13070 if (sizeof (ac__type_new_))
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_compile") 2>conftest.er1
13085 grep -v '^ *+' conftest.er1 >conftest.err
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } &&
13090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13091 { (case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_try") 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest.$ac_objext'
13101 { (case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_try") 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 ac_cv_type_u_int64_t=yes
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 ac_cv_type_u_int64_t=no
13118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13120 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13121 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13122 if test $ac_cv_type_u_int64_t = yes; then
13124 cat >>confdefs.h <<_ACEOF
13125 #define HAVE_U_INT64_T 1
13130 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13131 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13132 { (exit 1); exit 1; }; }
13146 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 cat >conftest.$ac_ext <<_ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13162 #define $ac_func innocuous_$ac_func
13164 /* System header to define __stub macros and hopefully few prototypes,
13165 which can conflict with char $ac_func (); below.
13166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13167 <limits.h> exists even on freestanding compilers. */
13170 # include <limits.h>
13172 # include <assert.h>
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13184 /* The GNU C library defines this for functions which it implements
13185 to always fail with ENOSYS. Some functions are actually named
13186 something starting with __ and the normal name is an alias. */
13187 #if defined __stub_$ac_func || defined __stub___$ac_func
13194 return $ac_func ();
13199 rm -f conftest.$ac_objext conftest$ac_exeext
13200 if { (ac_try="$ac_link"
13201 case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_link") 2>conftest.er1
13208 grep -v '^ *+' conftest.er1 >conftest.err
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13214 { (case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_try") 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try='test -s conftest$ac_exeext'
13224 { (case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_try") 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
13233 eval "$as_ac_var=yes"
13235 echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13238 eval "$as_ac_var=no"
13241 rm -f core conftest.err conftest.$ac_objext \
13242 conftest$ac_exeext conftest.$ac_ext
13244 ac_res=`eval echo '${'$as_ac_var'}'`
13245 { echo "$as_me:$LINENO: result: $ac_res" >&5
13246 echo "${ECHO_T}$ac_res" >&6; }
13247 if test `eval echo '${'$as_ac_var'}'` = yes; then
13248 cat >>confdefs.h <<_ACEOF
13249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13259 for ac_func in powf fmodf strtof round
13261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 cat >conftest.$ac_ext <<_ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13275 #define $ac_func innocuous_$ac_func
13277 /* System header to define __stub macros and hopefully few prototypes,
13278 which can conflict with char $ac_func (); below.
13279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13280 <limits.h> exists even on freestanding compilers. */
13283 # include <limits.h>
13285 # include <assert.h>
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13297 /* The GNU C library defines this for functions which it implements
13298 to always fail with ENOSYS. Some functions are actually named
13299 something starting with __ and the normal name is an alias. */
13300 #if defined __stub_$ac_func || defined __stub___$ac_func
13307 return $ac_func ();
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1 >conftest.err
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest$ac_exeext'
13337 { (case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_try") 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 eval "$as_ac_var=yes"
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 eval "$as_ac_var=no"
13354 rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13357 ac_res=`eval echo '${'$as_ac_var'}'`
13358 { echo "$as_me:$LINENO: result: $ac_res" >&5
13359 echo "${ECHO_T}$ac_res" >&6; }
13360 if test `eval echo '${'$as_ac_var'}'` = yes; then
13361 cat >>confdefs.h <<_ACEOF
13362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13373 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
13375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 cat >conftest.$ac_ext <<_ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13389 #define $ac_func innocuous_$ac_func
13391 /* System header to define __stub macros and hopefully few prototypes,
13392 which can conflict with char $ac_func (); below.
13393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13394 <limits.h> exists even on freestanding compilers. */
13397 # include <limits.h>
13399 # include <assert.h>
13404 /* Override any GCC internal prototype to avoid an error.
13405 Use char because int might match the return type of a GCC
13406 builtin and then its argument prototype would still apply. */
13411 /* The GNU C library defines this for functions which it implements
13412 to always fail with ENOSYS. Some functions are actually named
13413 something starting with __ and the normal name is an alias. */
13414 #if defined __stub_$ac_func || defined __stub___$ac_func
13421 return $ac_func ();
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (ac_try="$ac_link"
13428 case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_link") 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13441 { (case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_try") 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest$ac_exeext'
13451 { (case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_try") 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 eval "$as_ac_var=yes"
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 eval "$as_ac_var=no"
13468 rm -f core conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13471 ac_res=`eval echo '${'$as_ac_var'}'`
13472 { echo "$as_me:$LINENO: result: $ac_res" >&5
13473 echo "${ECHO_T}$ac_res" >&6; }
13474 if test `eval echo '${'$as_ac_var'}'` = yes; then
13475 cat >>confdefs.h <<_ACEOF
13476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13485 for ac_func in isatty mkdtemp mkstemp
13487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13501 #define $ac_func innocuous_$ac_func
13503 /* System header to define __stub macros and hopefully few prototypes,
13504 which can conflict with char $ac_func (); below.
13505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13506 <limits.h> exists even on freestanding compilers. */
13509 # include <limits.h>
13511 # include <assert.h>
13516 /* Override any GCC internal prototype to avoid an error.
13517 Use char because int might match the return type of a GCC
13518 builtin and then its argument prototype would still apply. */
13523 /* The GNU C library defines this for functions which it implements
13524 to always fail with ENOSYS. Some functions are actually named
13525 something starting with __ and the normal name is an alias. */
13526 #if defined __stub_$ac_func || defined __stub___$ac_func
13533 return $ac_func ();
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (ac_try="$ac_link"
13540 case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_link") 2>conftest.er1
13547 grep -v '^ *+' conftest.er1 >conftest.err
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
13552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13553 { (case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_try") 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try='test -s conftest$ac_exeext'
13563 { (case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_try") 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 eval "$as_ac_var=yes"
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13577 eval "$as_ac_var=no"
13580 rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13583 ac_res=`eval echo '${'$as_ac_var'}'`
13584 { echo "$as_me:$LINENO: result: $ac_res" >&5
13585 echo "${ECHO_T}$ac_res" >&6; }
13586 if test `eval echo '${'$as_ac_var'}'` = yes; then
13587 cat >>confdefs.h <<_ACEOF
13588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13600 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
13602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 cat >conftest.$ac_ext <<_ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13616 #define $ac_func innocuous_$ac_func
13618 /* System header to define __stub macros and hopefully few prototypes,
13619 which can conflict with char $ac_func (); below.
13620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13621 <limits.h> exists even on freestanding compilers. */
13624 # include <limits.h>
13626 # include <assert.h>
13631 /* Override any GCC internal prototype to avoid an error.
13632 Use char because int might match the return type of a GCC
13633 builtin and then its argument prototype would still apply. */
13638 /* The GNU C library defines this for functions which it implements
13639 to always fail with ENOSYS. Some functions are actually named
13640 something starting with __ and the normal name is an alias. */
13641 #if defined __stub_$ac_func || defined __stub___$ac_func
13648 return $ac_func ();
13653 rm -f conftest.$ac_objext conftest$ac_exeext
13654 if { (ac_try="$ac_link"
13655 case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_link") 2>conftest.er1
13662 grep -v '^ *+' conftest.er1 >conftest.err
13664 cat conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13668 { (case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_try") 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest$ac_exeext'
13678 { (case "(($ac_try" in
13679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683 (eval "$ac_try") 2>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 eval "$as_ac_var=yes"
13689 echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13692 eval "$as_ac_var=no"
13695 rm -f core conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13698 ac_res=`eval echo '${'$as_ac_var'}'`
13699 { echo "$as_me:$LINENO: result: $ac_res" >&5
13700 echo "${ECHO_T}$ac_res" >&6; }
13701 if test `eval echo '${'$as_ac_var'}'` = yes; then
13702 cat >>confdefs.h <<_ACEOF
13703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13712 for ac_func in strerror strerror_r setenv
13714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 cat >conftest.$ac_ext <<_ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13728 #define $ac_func innocuous_$ac_func
13730 /* System header to define __stub macros and hopefully few prototypes,
13731 which can conflict with char $ac_func (); below.
13732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13733 <limits.h> exists even on freestanding compilers. */
13736 # include <limits.h>
13738 # include <assert.h>
13743 /* Override any GCC internal prototype to avoid an error.
13744 Use char because int might match the return type of a GCC
13745 builtin and then its argument prototype would still apply. */
13750 /* The GNU C library defines this for functions which it implements
13751 to always fail with ENOSYS. Some functions are actually named
13752 something starting with __ and the normal name is an alias. */
13753 #if defined __stub_$ac_func || defined __stub___$ac_func
13760 return $ac_func ();
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (ac_try="$ac_link"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 eval "$as_ac_var=yes"
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 eval "$as_ac_var=no"
13807 rm -f core conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
13810 ac_res=`eval echo '${'$as_ac_var'}'`
13811 { echo "$as_me:$LINENO: result: $ac_res" >&5
13812 echo "${ECHO_T}$ac_res" >&6; }
13813 if test `eval echo '${'$as_ac_var'}'` = yes; then
13814 cat >>confdefs.h <<_ACEOF
13815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13825 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
13827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13833 cat >conftest.$ac_ext <<_ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13841 #define $ac_func innocuous_$ac_func
13843 /* System header to define __stub macros and hopefully few prototypes,
13844 which can conflict with char $ac_func (); below.
13845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13846 <limits.h> exists even on freestanding compilers. */
13849 # include <limits.h>
13851 # include <assert.h>
13856 /* Override any GCC internal prototype to avoid an error.
13857 Use char because int might match the return type of a GCC
13858 builtin and then its argument prototype would still apply. */
13863 /* The GNU C library defines this for functions which it implements
13864 to always fail with ENOSYS. Some functions are actually named
13865 something starting with __ and the normal name is an alias. */
13866 #if defined __stub_$ac_func || defined __stub___$ac_func
13873 return $ac_func ();
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (ac_try="$ac_link"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_link") 2>conftest.er1
13887 grep -v '^ *+' conftest.er1 >conftest.err
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest$ac_exeext'
13903 { (case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_try") 2>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 eval "$as_ac_var=yes"
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13917 eval "$as_ac_var=no"
13920 rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13923 ac_res=`eval echo '${'$as_ac_var'}'`
13924 { echo "$as_me:$LINENO: result: $ac_res" >&5
13925 echo "${ECHO_T}$ac_res" >&6; }
13926 if test `eval echo '${'$as_ac_var'}'` = yes; then
13927 cat >>confdefs.h <<_ACEOF
13928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13939 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
13941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13955 #define $ac_func innocuous_$ac_func
13957 /* System header to define __stub macros and hopefully few prototypes,
13958 which can conflict with char $ac_func (); below.
13959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13960 <limits.h> exists even on freestanding compilers. */
13963 # include <limits.h>
13965 # include <assert.h>
13970 /* Override any GCC internal prototype to avoid an error.
13971 Use char because int might match the return type of a GCC
13972 builtin and then its argument prototype would still apply. */
13977 /* The GNU C library defines this for functions which it implements
13978 to always fail with ENOSYS. Some functions are actually named
13979 something starting with __ and the normal name is an alias. */
13980 #if defined __stub_$ac_func || defined __stub___$ac_func
13987 return $ac_func ();
13992 rm -f conftest.$ac_objext conftest$ac_exeext
13993 if { (ac_try="$ac_link"
13994 case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_link") 2>conftest.er1
14001 grep -v '^ *+' conftest.er1 >conftest.err
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14007 { (case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_try") 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; } &&
14016 { ac_try='test -s conftest$ac_exeext'
14017 { (case "(($ac_try" in
14018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022 (eval "$ac_try") 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 eval "$as_ac_var=yes"
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 eval "$as_ac_var=no"
14034 rm -f core conftest.err conftest.$ac_objext \
14035 conftest$ac_exeext conftest.$ac_ext
14037 ac_res=`eval echo '${'$as_ac_var'}'`
14038 { echo "$as_me:$LINENO: result: $ac_res" >&5
14039 echo "${ECHO_T}$ac_res" >&6; }
14040 if test `eval echo '${'$as_ac_var'}'` = yes; then
14041 cat >>confdefs.h <<_ACEOF
14042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14048 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14049 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14050 if test "${llvm_cv_c_printf_a+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 ac_cpp='$CPP $CPPFLAGS'
14055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14059 if test "$cross_compiling" = yes; then
14060 llvmac_cv_c_printf_a=no
14062 cat >conftest.$ac_ext <<_ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14071 #include <stdlib.h>
14077 volatile double A, B;
14081 sprintf(Buffer, "%a", A);
14085 if (A != 0x1.999999999999ap-4)
14092 rm -f conftest$ac_exeext
14093 if { (ac_try="$ac_link"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_link") 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14103 { (case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_try") 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 llvm_cv_c_printf_a=yes
14114 echo "$as_me: program exited with status $ac_status" >&5
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14118 ( exit $ac_status )
14119 llvmac_cv_c_printf_a=no
14121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14126 ac_cpp='$CPP $CPPFLAGS'
14127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14132 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14133 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14134 if test "$llvm_cv_c_printf_a" = "yes"; then
14136 cat >>confdefs.h <<\_ACEOF
14137 #define HAVE_PRINTF_A 1
14143 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14144 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14145 if test "${ac_cv_func_rand48+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 ac_cpp='$CXXCPP $CPPFLAGS'
14150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14154 cat >conftest.$ac_ext <<_ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 #include <stdlib.h>
14164 srand48(0);lrand48();drand48();
14169 rm -f conftest.$ac_objext
14170 if { (ac_try="$ac_compile"
14171 case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_compile") 2>conftest.er1
14178 grep -v '^ *+' conftest.er1 >conftest.err
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14184 { (case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_try") 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; } &&
14193 { ac_try='test -s conftest.$ac_objext'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 ac_cv_func_rand48=yes
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 ac_cv_func_rand48=no
14211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14213 ac_cpp='$CPP $CPPFLAGS'
14214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14219 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
14220 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
14222 if test "$ac_cv_func_rand48" = "yes" ; then
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_RAND48 1
14231 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
14232 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
14233 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 cat >conftest.$ac_ext <<_ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 $ac_includes_default
14247 char *p = (char *) strerror_s;
14255 rm -f conftest.$ac_objext
14256 if { (ac_try="$ac_compile"
14257 case "(($ac_try" in
14258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259 *) ac_try_echo=$ac_try;;
14261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14262 (eval "$ac_compile") 2>conftest.er1
14264 grep -v '^ *+' conftest.er1 >conftest.err
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14270 { (case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_try") 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest.$ac_objext'
14280 { (case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_try") 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 ac_cv_have_decl_strerror_s=yes
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 ac_cv_have_decl_strerror_s=no
14297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
14300 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
14301 if test $ac_cv_have_decl_strerror_s = yes; then
14303 cat >>confdefs.h <<_ACEOF
14304 #define HAVE_DECL_STRERROR_S 1
14309 cat >>confdefs.h <<_ACEOF
14310 #define HAVE_DECL_STRERROR_S 0
14318 if test "$llvm_cv_os_type" = "MingW" ; then
14319 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
14320 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
14321 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 ac_check_lib_save_LIBS=$LIBS
14326 cat >conftest.$ac_ext <<_ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14333 /* Override any GCC internal prototype to avoid an error.
14334 Use char because int might match the return type of a GCC
14335 builtin and then its argument prototype would still apply. */
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (ac_try="$ac_link"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_link") 2>conftest.er1
14357 grep -v '^ *+' conftest.er1 >conftest.err
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14363 { (case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_try") 2>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest$ac_exeext'
14373 { (case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_try") 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_cv_lib_gcc__alloca=yes
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_cv_lib_gcc__alloca=no
14390 rm -f core conftest.err conftest.$ac_objext \
14391 conftest$ac_exeext conftest.$ac_ext
14392 LIBS=$ac_check_lib_save_LIBS
14394 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
14395 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
14396 if test $ac_cv_lib_gcc__alloca = yes; then
14398 cat >>confdefs.h <<\_ACEOF
14399 #define HAVE__ALLOCA 1
14404 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
14405 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
14406 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 ac_check_lib_save_LIBS=$LIBS
14411 cat >conftest.$ac_ext <<_ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h. */
14418 /* Override any GCC internal prototype to avoid an error.
14419 Use char because int might match the return type of a GCC
14420 builtin and then its argument prototype would still apply. */
14428 return __alloca ();
14433 rm -f conftest.$ac_objext conftest$ac_exeext
14434 if { (ac_try="$ac_link"
14435 case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_link") 2>conftest.er1
14442 grep -v '^ *+' conftest.er1 >conftest.err
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14448 { (case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_try") 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; } &&
14457 { ac_try='test -s conftest$ac_exeext'
14458 { (case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_try") 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 ac_cv_lib_gcc___alloca=yes
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 ac_cv_lib_gcc___alloca=no
14475 rm -f core conftest.err conftest.$ac_objext \
14476 conftest$ac_exeext conftest.$ac_ext
14477 LIBS=$ac_check_lib_save_LIBS
14479 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
14480 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
14481 if test $ac_cv_lib_gcc___alloca = yes; then
14483 cat >>confdefs.h <<\_ACEOF
14484 #define HAVE___ALLOCA 1
14489 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
14490 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
14491 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 ac_check_lib_save_LIBS=$LIBS
14496 cat >conftest.$ac_ext <<_ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14503 /* Override any GCC internal prototype to avoid an error.
14504 Use char because int might match the return type of a GCC
14505 builtin and then its argument prototype would still apply. */
14513 return __chkstk ();
14518 rm -f conftest.$ac_objext conftest$ac_exeext
14519 if { (ac_try="$ac_link"
14520 case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_link") 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14533 { (case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_try") 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try='test -s conftest$ac_exeext'
14543 { (case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_try") 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_cv_lib_gcc___chkstk=yes
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14557 ac_cv_lib_gcc___chkstk=no
14560 rm -f core conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14562 LIBS=$ac_check_lib_save_LIBS
14564 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
14565 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
14566 if test $ac_cv_lib_gcc___chkstk = yes; then
14568 cat >>confdefs.h <<\_ACEOF
14569 #define HAVE___CHKSTK 1
14574 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
14575 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
14576 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 ac_check_lib_save_LIBS=$LIBS
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 /* Override any GCC internal prototype to avoid an error.
14589 Use char because int might match the return type of a GCC
14590 builtin and then its argument prototype would still apply. */
14598 return ___chkstk ();
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (ac_try="$ac_link"
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_link") 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_exeext'
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_lib_gcc____chkstk=yes
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 ac_cv_lib_gcc____chkstk=no
14645 rm -f core conftest.err conftest.$ac_objext \
14646 conftest$ac_exeext conftest.$ac_ext
14647 LIBS=$ac_check_lib_save_LIBS
14649 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
14650 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
14651 if test $ac_cv_lib_gcc____chkstk = yes; then
14653 cat >>confdefs.h <<\_ACEOF
14654 #define HAVE____CHKSTK 1
14660 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
14661 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
14662 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 ac_check_lib_save_LIBS=$LIBS
14667 cat >conftest.$ac_ext <<_ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14674 /* Override any GCC internal prototype to avoid an error.
14675 Use char because int might match the return type of a GCC
14676 builtin and then its argument prototype would still apply. */
14684 return __ashldi3 ();
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (ac_try="$ac_link"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_link") 2>conftest.er1
14698 grep -v '^ *+' conftest.er1 >conftest.err
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14704 { (case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_try") 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; } &&
14713 { ac_try='test -s conftest$ac_exeext'
14714 { (case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_try") 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_cv_lib_gcc___ashldi3=yes
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 ac_cv_lib_gcc___ashldi3=no
14731 rm -f core conftest.err conftest.$ac_objext \
14732 conftest$ac_exeext conftest.$ac_ext
14733 LIBS=$ac_check_lib_save_LIBS
14735 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
14736 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
14737 if test $ac_cv_lib_gcc___ashldi3 = yes; then
14739 cat >>confdefs.h <<\_ACEOF
14740 #define HAVE___ASHLDI3 1
14745 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
14746 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
14747 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 ac_check_lib_save_LIBS=$LIBS
14752 cat >conftest.$ac_ext <<_ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14759 /* Override any GCC internal prototype to avoid an error.
14760 Use char because int might match the return type of a GCC
14761 builtin and then its argument prototype would still apply. */
14769 return __ashrdi3 ();
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (ac_try="$ac_link"
14776 case "(($ac_try" in
14777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778 *) ac_try_echo=$ac_try;;
14780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781 (eval "$ac_link") 2>conftest.er1
14783 grep -v '^ *+' conftest.er1 >conftest.err
14785 cat conftest.err >&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } &&
14788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } &&
14798 { ac_try='test -s conftest$ac_exeext'
14799 { (case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_try") 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14808 ac_cv_lib_gcc___ashrdi3=yes
14810 echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14813 ac_cv_lib_gcc___ashrdi3=no
14816 rm -f core conftest.err conftest.$ac_objext \
14817 conftest$ac_exeext conftest.$ac_ext
14818 LIBS=$ac_check_lib_save_LIBS
14820 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
14821 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
14822 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
14824 cat >>confdefs.h <<\_ACEOF
14825 #define HAVE___ASHRDI3 1
14830 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
14831 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
14832 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 ac_check_lib_save_LIBS=$LIBS
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14844 /* Override any GCC internal prototype to avoid an error.
14845 Use char because int might match the return type of a GCC
14846 builtin and then its argument prototype would still apply. */
14854 return __divdi3 ();
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (ac_try="$ac_link"
14861 case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_link") 2>conftest.er1
14868 grep -v '^ *+' conftest.er1 >conftest.err
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14874 { (case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_try") 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest$ac_exeext'
14884 { (case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_try") 2>&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 ac_cv_lib_gcc___divdi3=yes
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 ac_cv_lib_gcc___divdi3=no
14901 rm -f core conftest.err conftest.$ac_objext \
14902 conftest$ac_exeext conftest.$ac_ext
14903 LIBS=$ac_check_lib_save_LIBS
14905 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
14906 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
14907 if test $ac_cv_lib_gcc___divdi3 = yes; then
14909 cat >>confdefs.h <<\_ACEOF
14910 #define HAVE___DIVDI3 1
14915 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
14916 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
14917 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 ac_check_lib_save_LIBS=$LIBS
14922 cat >conftest.$ac_ext <<_ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14929 /* Override any GCC internal prototype to avoid an error.
14930 Use char because int might match the return type of a GCC
14931 builtin and then its argument prototype would still apply. */
14939 return __fixdfdi ();
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (ac_try="$ac_link"
14946 case "(($ac_try" in
14947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948 *) ac_try_echo=$ac_try;;
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_link") 2>conftest.er1
14953 grep -v '^ *+' conftest.er1 >conftest.err
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
14958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14959 { (case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_try") 2>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; } &&
14968 { ac_try='test -s conftest$ac_exeext'
14969 { (case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_try") 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 ac_cv_lib_gcc___fixdfdi=yes
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ac_cv_lib_gcc___fixdfdi=no
14986 rm -f core conftest.err conftest.$ac_objext \
14987 conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14990 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
14991 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
14992 if test $ac_cv_lib_gcc___fixdfdi = yes; then
14994 cat >>confdefs.h <<\_ACEOF
14995 #define HAVE___FIXDFDI 1
15000 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15001 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15002 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 ac_check_lib_save_LIBS=$LIBS
15007 cat >conftest.$ac_ext <<_ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15014 /* Override any GCC internal prototype to avoid an error.
15015 Use char because int might match the return type of a GCC
15016 builtin and then its argument prototype would still apply. */
15024 return __fixsfdi ();
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (ac_try="$ac_link"
15031 case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_link") 2>conftest.er1
15038 grep -v '^ *+' conftest.er1 >conftest.err
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15044 { (case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_try") 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
15054 { (case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_try") 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_cv_lib_gcc___fixsfdi=yes
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_cv_lib_gcc___fixsfdi=no
15071 rm -f core conftest.err conftest.$ac_objext \
15072 conftest$ac_exeext conftest.$ac_ext
15073 LIBS=$ac_check_lib_save_LIBS
15075 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15076 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15077 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15079 cat >>confdefs.h <<\_ACEOF
15080 #define HAVE___FIXSFDI 1
15085 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15086 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15087 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 ac_check_lib_save_LIBS=$LIBS
15092 cat >conftest.$ac_ext <<_ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 /* Override any GCC internal prototype to avoid an error.
15100 Use char because int might match the return type of a GCC
15101 builtin and then its argument prototype would still apply. */
15105 char __floatdidf ();
15109 return __floatdidf ();
15114 rm -f conftest.$ac_objext conftest$ac_exeext
15115 if { (ac_try="$ac_link"
15116 case "(($ac_try" in
15117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118 *) ac_try_echo=$ac_try;;
15120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15121 (eval "$ac_link") 2>conftest.er1
15123 grep -v '^ *+' conftest.er1 >conftest.err
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
15128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15129 { (case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_try") 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; } &&
15138 { ac_try='test -s conftest$ac_exeext'
15139 { (case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_try") 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 ac_cv_lib_gcc___floatdidf=yes
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 ac_cv_lib_gcc___floatdidf=no
15156 rm -f core conftest.err conftest.$ac_objext \
15157 conftest$ac_exeext conftest.$ac_ext
15158 LIBS=$ac_check_lib_save_LIBS
15160 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
15161 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
15162 if test $ac_cv_lib_gcc___floatdidf = yes; then
15164 cat >>confdefs.h <<\_ACEOF
15165 #define HAVE___FLOATDIDF 1
15170 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
15171 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
15172 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_check_lib_save_LIBS=$LIBS
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15184 /* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15194 return __lshrdi3 ();
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15208 grep -v '^ *+' conftest.er1 >conftest.err
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15214 { (case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_try") 2>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; } &&
15223 { ac_try='test -s conftest$ac_exeext'
15224 { (case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_try") 2>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_cv_lib_gcc___lshrdi3=yes
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_cv_lib_gcc___lshrdi3=no
15241 rm -f core conftest.err conftest.$ac_objext \
15242 conftest$ac_exeext conftest.$ac_ext
15243 LIBS=$ac_check_lib_save_LIBS
15245 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
15246 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
15247 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
15249 cat >>confdefs.h <<\_ACEOF
15250 #define HAVE___LSHRDI3 1
15255 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
15256 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
15257 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 ac_check_lib_save_LIBS=$LIBS
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15269 /* Override any GCC internal prototype to avoid an error.
15270 Use char because int might match the return type of a GCC
15271 builtin and then its argument prototype would still apply. */
15279 return __moddi3 ();
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (ac_try="$ac_link"
15286 case "(($ac_try" in
15287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288 *) ac_try_echo=$ac_try;;
15290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15291 (eval "$ac_link") 2>conftest.er1
15293 grep -v '^ *+' conftest.er1 >conftest.err
15295 cat conftest.err >&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
15298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } &&
15308 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15318 ac_cv_lib_gcc___moddi3=yes
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 ac_cv_lib_gcc___moddi3=no
15326 rm -f core conftest.err conftest.$ac_objext \
15327 conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15330 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
15331 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
15332 if test $ac_cv_lib_gcc___moddi3 = yes; then
15334 cat >>confdefs.h <<\_ACEOF
15335 #define HAVE___MODDI3 1
15340 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
15341 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
15342 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 ac_check_lib_save_LIBS=$LIBS
15347 cat >conftest.$ac_ext <<_ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15354 /* Override any GCC internal prototype to avoid an error.
15355 Use char because int might match the return type of a GCC
15356 builtin and then its argument prototype would still apply. */
15364 return __udivdi3 ();
15369 rm -f conftest.$ac_objext conftest$ac_exeext
15370 if { (ac_try="$ac_link"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_link") 2>conftest.er1
15378 grep -v '^ *+' conftest.er1 >conftest.err
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15384 { (case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_try") 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest$ac_exeext'
15394 { (case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_try") 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_cv_lib_gcc___udivdi3=yes
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_cv_lib_gcc___udivdi3=no
15411 rm -f core conftest.err conftest.$ac_objext \
15412 conftest$ac_exeext conftest.$ac_ext
15413 LIBS=$ac_check_lib_save_LIBS
15415 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
15416 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
15417 if test $ac_cv_lib_gcc___udivdi3 = yes; then
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE___UDIVDI3 1
15425 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
15426 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
15427 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 ac_check_lib_save_LIBS=$LIBS
15432 cat >conftest.$ac_ext <<_ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15439 /* Override any GCC internal prototype to avoid an error.
15440 Use char because int might match the return type of a GCC
15441 builtin and then its argument prototype would still apply. */
15449 return __umoddi3 ();
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (ac_try="$ac_link"
15456 case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_link") 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; } &&
15478 { ac_try='test -s conftest$ac_exeext'
15479 { (case "(($ac_try" in
15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484 (eval "$ac_try") 2>&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }; then
15488 ac_cv_lib_gcc___umoddi3=yes
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_cv_lib_gcc___umoddi3=no
15496 rm -f core conftest.err conftest.$ac_objext \
15497 conftest$ac_exeext conftest.$ac_ext
15498 LIBS=$ac_check_lib_save_LIBS
15500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
15501 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
15502 if test $ac_cv_lib_gcc___umoddi3 = yes; then
15504 cat >>confdefs.h <<\_ACEOF
15505 #define HAVE___UMODDI3 1
15511 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
15512 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
15513 if test "${ac_cv_lib_gcc___main+set}" = set; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 ac_check_lib_save_LIBS=$LIBS
15518 cat >conftest.$ac_ext <<_ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h. */
15525 /* Override any GCC internal prototype to avoid an error.
15526 Use char because int might match the return type of a GCC
15527 builtin and then its argument prototype would still apply. */
15540 rm -f conftest.$ac_objext conftest$ac_exeext
15541 if { (ac_try="$ac_link"
15542 case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_link") 2>conftest.er1
15549 grep -v '^ *+' conftest.er1 >conftest.err
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15555 { (case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_try") 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } &&
15564 { ac_try='test -s conftest$ac_exeext'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_cv_lib_gcc___main=yes
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 ac_cv_lib_gcc___main=no
15582 rm -f core conftest.err conftest.$ac_objext \
15583 conftest$ac_exeext conftest.$ac_ext
15584 LIBS=$ac_check_lib_save_LIBS
15586 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
15587 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
15588 if test $ac_cv_lib_gcc___main = yes; then
15590 cat >>confdefs.h <<\_ACEOF
15591 #define HAVE___MAIN 1
15596 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
15597 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
15598 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 ac_check_lib_save_LIBS=$LIBS
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 /* Override any GCC internal prototype to avoid an error.
15611 Use char because int might match the return type of a GCC
15612 builtin and then its argument prototype would still apply. */
15620 return __cmpdi2 ();
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (ac_try="$ac_link"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_link") 2>conftest.er1
15634 grep -v '^ *+' conftest.er1 >conftest.err
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640 { (case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_try") 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; } &&
15649 { ac_try='test -s conftest$ac_exeext'
15650 { (case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_try") 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 ac_cv_lib_gcc___cmpdi2=yes
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 ac_cv_lib_gcc___cmpdi2=no
15667 rm -f core conftest.err conftest.$ac_objext \
15668 conftest$ac_exeext conftest.$ac_ext
15669 LIBS=$ac_check_lib_save_LIBS
15671 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
15672 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
15673 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
15675 cat >>confdefs.h <<\_ACEOF
15676 #define HAVE___CMPDI2 1
15683 if test "$llvm_cv_os_type" = "MingW" ; then
15684 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
15685 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
15686 cat >conftest.$ac_ext <<_ACEOF
15687 #include <windows.h>
15688 #include <imagehlp.h>
15689 extern void foo(PENUMLOADED_MODULES_CALLBACK);
15690 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
15692 rm -f conftest.$ac_objext
15693 if { (ac_try="$ac_compile"
15694 case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_compile") 2>conftest.er1
15701 grep -v '^ *+' conftest.er1 >conftest.err
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15707 { (case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_try") 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest.$ac_objext'
15717 { (case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_try") 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15727 { echo "$as_me:$LINENO: result: yes" >&5
15728 echo "${ECHO_T}yes" >&6; }
15729 llvm_cv_win32_elmcb_pcstr="PCSTR"
15732 echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15736 { echo "$as_me:$LINENO: result: no" >&5
15737 echo "${ECHO_T}no" >&6; }
15738 llvm_cv_win32_elmcb_pcstr="PSTR"
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744 cat >>confdefs.h <<_ACEOF
15745 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
15751 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
15752 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
15753 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 ac_cpp='$CXXCPP $CPPFLAGS'
15758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15762 cat >conftest.$ac_ext <<_ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15777 rm -f conftest.$ac_objext
15778 if { (ac_try="$ac_compile"
15779 case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_compile") 2>conftest.er1
15786 grep -v '^ *+' conftest.er1 >conftest.err
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15792 { (case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_try") 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; } &&
15801 { ac_try='test -s conftest.$ac_objext'
15802 { (case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_try") 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_cv_func_isnan_in_math_h=yes
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_cv_func_isnan_in_math_h=no
15819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 ac_cpp='$CPP $CPPFLAGS'
15822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15827 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
15828 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
15831 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
15833 cat >>confdefs.h <<\_ACEOF
15834 #define HAVE_ISNAN_IN_MATH_H 1
15839 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
15840 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
15841 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 ac_cpp='$CXXCPP $CPPFLAGS'
15846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15850 cat >conftest.$ac_ext <<_ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15865 rm -f conftest.$ac_objext
15866 if { (ac_try="$ac_compile"
15867 case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_compile") 2>conftest.er1
15874 grep -v '^ *+' conftest.er1 >conftest.err
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15880 { (case "(($ac_try" in
15881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882 *) ac_try_echo=$ac_try;;
15884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885 (eval "$ac_try") 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_try") 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_cv_func_isnan_in_cmath=yes
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_cv_func_isnan_in_cmath=no
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 ac_cpp='$CPP $CPPFLAGS'
15910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15915 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
15916 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
15918 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
15920 cat >>confdefs.h <<\_ACEOF
15921 #define HAVE_ISNAN_IN_CMATH 1
15926 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
15927 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
15928 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 ac_cpp='$CXXCPP $CPPFLAGS'
15933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15937 cat >conftest.$ac_ext <<_ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15947 float f; std::isnan(f);
15952 rm -f conftest.$ac_objext
15953 if { (ac_try="$ac_compile"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_compile") 2>conftest.er1
15961 grep -v '^ *+' conftest.er1 >conftest.err
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } &&
15966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15967 { (case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_try") 2>&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; } &&
15976 { ac_try='test -s conftest.$ac_objext'
15977 { (case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_try") 2>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15986 ac_cv_func_std_isnan_in_cmath=yes
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 ac_cv_func_std_isnan_in_cmath=no
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15996 ac_cpp='$CPP $CPPFLAGS'
15997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16002 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
16003 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
16005 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
16007 cat >>confdefs.h <<\_ACEOF
16008 #define HAVE_STD_ISNAN_IN_CMATH 1
16014 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
16015 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
16016 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 ac_cpp='$CXXCPP $CPPFLAGS'
16021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16025 cat >conftest.$ac_ext <<_ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16040 rm -f conftest.$ac_objext
16041 if { (ac_try="$ac_compile"
16042 case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_compile") 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } &&
16054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16055 { (case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060 (eval "$ac_try") 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; } &&
16064 { ac_try='test -s conftest.$ac_objext'
16065 { (case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_try") 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }; then
16074 ac_cv_func_isinf_in_math_h=yes
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 ac_cv_func_isinf_in_math_h=no
16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16084 ac_cpp='$CPP $CPPFLAGS'
16085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16090 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
16091 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
16093 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE_ISINF_IN_MATH_H 1
16101 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
16102 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
16103 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 ac_cpp='$CXXCPP $CPPFLAGS'
16108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16112 cat >conftest.$ac_ext <<_ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16127 rm -f conftest.$ac_objext
16128 if { (ac_try="$ac_compile"
16129 case "(($ac_try" in
16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131 *) ac_try_echo=$ac_try;;
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134 (eval "$ac_compile") 2>conftest.er1
16136 grep -v '^ *+' conftest.er1 >conftest.err
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_try") 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; } &&
16151 { ac_try='test -s conftest.$ac_objext'
16152 { (case "(($ac_try" in
16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154 *) ac_try_echo=$ac_try;;
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157 (eval "$ac_try") 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 ac_cv_func_isinf_in_cmath=yes
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 ac_cv_func_isinf_in_cmath=no
16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16171 ac_cpp='$CPP $CPPFLAGS'
16172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16177 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
16178 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
16180 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
16182 cat >>confdefs.h <<\_ACEOF
16183 #define HAVE_ISINF_IN_CMATH 1
16188 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
16189 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
16190 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 ac_cpp='$CXXCPP $CPPFLAGS'
16195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16199 cat >conftest.$ac_ext <<_ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16209 float f; std::isinf(f);
16214 rm -f conftest.$ac_objext
16215 if { (ac_try="$ac_compile"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_compile") 2>conftest.er1
16223 grep -v '^ *+' conftest.er1 >conftest.err
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16229 { (case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_try") 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest.$ac_objext'
16239 { (case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_try") 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ac_cv_func_std_isinf_in_cmath=yes
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ac_cv_func_std_isinf_in_cmath=no
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 ac_cpp='$CPP $CPPFLAGS'
16259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16264 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
16265 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
16267 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
16269 cat >>confdefs.h <<\_ACEOF
16270 #define HAVE_STD_ISINF_IN_CMATH 1
16275 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
16276 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
16277 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 ac_cpp='$CXXCPP $CPPFLAGS'
16282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16286 cat >conftest.$ac_ext <<_ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 #include <ieeefp.h>
16296 float f; finite(f);
16301 rm -f conftest.$ac_objext
16302 if { (ac_try="$ac_compile"
16303 case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_compile") 2>conftest.er1
16310 grep -v '^ *+' conftest.er1 >conftest.err
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
16315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16316 { (case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_try") 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; } &&
16325 { ac_try='test -s conftest.$ac_objext'
16326 { (case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_try") 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_cv_func_finite_in_ieeefp_h=yes
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_cv_func_finite_in_ieeefp_h=no
16343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345 ac_cpp='$CPP $CPPFLAGS'
16346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16351 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
16352 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
16354 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
16356 cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_FINITE_IN_IEEEFP_H 1
16364 if test "$llvm_cv_platform_type" = "Unix" ; then
16367 for ac_header in stdlib.h unistd.h
16369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 ac_res=`eval echo '${'$as_ac_Header'}'`
16377 { echo "$as_me:$LINENO: result: $ac_res" >&5
16378 echo "${ECHO_T}$ac_res" >&6; }
16380 # Is the header compilable?
16381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16383 cat >conftest.$ac_ext <<_ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 $ac_includes_default
16390 #include <$ac_header>
16392 rm -f conftest.$ac_objext
16393 if { (ac_try="$ac_compile"
16394 case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399 (eval "$ac_compile") 2>conftest.er1
16401 grep -v '^ *+' conftest.er1 >conftest.err
16403 cat conftest.err >&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
16406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16407 { (case "(($ac_try" in
16408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409 *) ac_try_echo=$ac_try;;
16411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412 (eval "$ac_try") 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest.$ac_objext'
16417 { (case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_try") 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; }; then
16426 ac_header_compiler=yes
16428 echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16431 ac_header_compiler=no
16434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16436 echo "${ECHO_T}$ac_header_compiler" >&6; }
16438 # Is the header present?
16439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16441 cat >conftest.$ac_ext <<_ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h. */
16447 #include <$ac_header>
16449 if { (ac_try="$ac_cpp conftest.$ac_ext"
16450 case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16457 grep -v '^ *+' conftest.er1 >conftest.err
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } >/dev/null; then
16462 if test -s conftest.err; then
16463 ac_cpp_err=$ac_c_preproc_warn_flag
16464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16471 if test -z "$ac_cpp_err"; then
16472 ac_header_preproc=yes
16474 echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16477 ac_header_preproc=no
16480 rm -f conftest.err conftest.$ac_ext
16481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16482 echo "${ECHO_T}$ac_header_preproc" >&6; }
16484 # So? What about this header?
16485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16491 ac_header_preproc=yes
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16507 ## ------------------------------ ##
16508 ## Report this to bugs@yourdomain ##
16509 ## ------------------------------ ##
16511 ) | sed "s/^/$as_me: WARNING: /" >&2
16514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 eval "$as_ac_Header=\$ac_header_preproc"
16521 ac_res=`eval echo '${'$as_ac_Header'}'`
16522 { echo "$as_me:$LINENO: result: $ac_res" >&5
16523 echo "${ECHO_T}$ac_res" >&6; }
16526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16527 cat >>confdefs.h <<_ACEOF
16528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16536 for ac_func in getpagesize
16538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 cat >conftest.$ac_ext <<_ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h. */
16550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16552 #define $ac_func innocuous_$ac_func
16554 /* System header to define __stub macros and hopefully few prototypes,
16555 which can conflict with char $ac_func (); below.
16556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16557 <limits.h> exists even on freestanding compilers. */
16560 # include <limits.h>
16562 # include <assert.h>
16567 /* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16574 /* The GNU C library defines this for functions which it implements
16575 to always fail with ENOSYS. Some functions are actually named
16576 something starting with __ and the normal name is an alias. */
16577 #if defined __stub_$ac_func || defined __stub___$ac_func
16584 return $ac_func ();
16589 rm -f conftest.$ac_objext conftest$ac_exeext
16590 if { (ac_try="$ac_link"
16591 case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_link") 2>conftest.er1
16598 grep -v '^ *+' conftest.er1 >conftest.err
16600 cat conftest.err >&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16604 { (case "(($ac_try" in
16605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_try") 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; } &&
16613 { ac_try='test -s conftest$ac_exeext'
16614 { (case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_try") 2>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 eval "$as_ac_var=yes"
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 eval "$as_ac_var=no"
16631 rm -f core conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext conftest.$ac_ext
16634 ac_res=`eval echo '${'$as_ac_var'}'`
16635 { echo "$as_me:$LINENO: result: $ac_res" >&5
16636 echo "${ECHO_T}$ac_res" >&6; }
16637 if test `eval echo '${'$as_ac_var'}'` = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16645 { echo "$as_me:$LINENO: checking for working mmap" >&5
16646 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
16647 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 if test "$cross_compiling" = yes; then
16651 ac_cv_func_mmap_fixed_mapped=no
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 $ac_includes_default
16660 /* malloc might have been renamed as rpl_malloc. */
16663 /* Thanks to Mike Haertel and Jim Avera for this test.
16664 Here is a matrix of mmap possibilities:
16665 mmap private not fixed
16666 mmap private fixed at somewhere currently unmapped
16667 mmap private fixed at somewhere already mapped
16668 mmap shared not fixed
16669 mmap shared fixed at somewhere currently unmapped
16670 mmap shared fixed at somewhere already mapped
16671 For private mappings, we should verify that changes cannot be read()
16672 back from the file, nor mmap's back from the file at a different
16673 address. (There have been systems where private was not correctly
16674 implemented like the infamous i386 svr4.0, and systems where the
16675 VM page cache was not coherent with the file system buffer cache
16676 like early versions of FreeBSD and possibly contemporary NetBSD.)
16677 For shared mappings, we should conversely verify that changes get
16678 propagated back to all the places they're supposed to be.
16680 Grep wants private fixed already mapped.
16681 The main things grep needs to know about mmap are:
16682 * does it exist and is it safe to write into the mmap'd area
16683 * how to use it (BSD variants) */
16686 #include <sys/mman.h>
16688 #if !STDC_HEADERS && !HAVE_STDLIB_H
16692 /* This mess was copied from the GNU getpagesize.h. */
16693 #if !HAVE_GETPAGESIZE
16694 /* Assume that all systems that can run configure have sys/param.h. */
16695 # if !HAVE_SYS_PARAM_H
16696 # define HAVE_SYS_PARAM_H 1
16699 # ifdef _SC_PAGESIZE
16700 # define getpagesize() sysconf(_SC_PAGESIZE)
16701 # else /* no _SC_PAGESIZE */
16702 # if HAVE_SYS_PARAM_H
16703 # include <sys/param.h>
16704 # ifdef EXEC_PAGESIZE
16705 # define getpagesize() EXEC_PAGESIZE
16706 # else /* no EXEC_PAGESIZE */
16708 # define getpagesize() NBPG * CLSIZE
16711 # endif /* no CLSIZE */
16712 # else /* no NBPG */
16714 # define getpagesize() NBPC
16715 # else /* no NBPC */
16717 # define getpagesize() PAGESIZE
16718 # endif /* PAGESIZE */
16719 # endif /* no NBPC */
16720 # endif /* no NBPG */
16721 # endif /* no EXEC_PAGESIZE */
16722 # else /* no HAVE_SYS_PARAM_H */
16723 # define getpagesize() 8192 /* punt totally */
16724 # endif /* no HAVE_SYS_PARAM_H */
16725 # endif /* no _SC_PAGESIZE */
16727 #endif /* no HAVE_GETPAGESIZE */
16732 char *data, *data2, *data3;
16736 pagesize = getpagesize ();
16738 /* First, make a file with some known garbage in it. */
16739 data = (char *) malloc (pagesize);
16742 for (i = 0; i < pagesize; ++i)
16743 *(data + i) = rand ();
16745 fd = creat ("conftest.mmap", 0600);
16748 if (write (fd, data, pagesize) != pagesize)
16752 /* Next, try to mmap the file at a fixed address which already has
16753 something else allocated at it. If we can, also make sure that
16754 we see the same garbage. */
16755 fd = open ("conftest.mmap", O_RDWR);
16758 data2 = (char *) malloc (2 * pagesize);
16761 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16762 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16763 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16765 for (i = 0; i < pagesize; ++i)
16766 if (*(data + i) != *(data2 + i))
16769 /* Finally, make sure that changes to the mapped area do not
16770 percolate back to the file as seen by read(). (This is a bug on
16771 some variants of i386 svr4.0.) */
16772 for (i = 0; i < pagesize; ++i)
16773 *(data2 + i) = *(data2 + i) + 1;
16774 data3 = (char *) malloc (pagesize);
16777 if (read (fd, data3, pagesize) != pagesize)
16779 for (i = 0; i < pagesize; ++i)
16780 if (*(data + i) != *(data3 + i))
16786 rm -f 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>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16797 { (case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_try") 2>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
16806 ac_cv_func_mmap_fixed_mapped=yes
16808 echo "$as_me: program exited with status $ac_status" >&5
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 ( exit $ac_status )
16813 ac_cv_func_mmap_fixed_mapped=no
16815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16820 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16821 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
16822 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16824 cat >>confdefs.h <<\_ACEOF
16825 #define HAVE_MMAP 1
16829 rm -f conftest.mmap
16831 { echo "$as_me:$LINENO: checking for mmap of files" >&5
16832 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
16833 if test "${ac_cv_func_mmap_file+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 ac_cpp='$CPP $CPPFLAGS'
16838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16842 if test "$cross_compiling" = yes; then
16843 ac_cv_func_mmap_file=no
16845 cat >conftest.$ac_ext <<_ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16853 #include <sys/types.h>
16854 #include <sys/mman.h>
16862 fd = creat ("foo",0777);
16863 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
16865 return (fd != (int) MAP_FAILED);
16870 rm -f conftest$ac_exeext
16871 if { (ac_try="$ac_link"
16872 case "(($ac_try" in
16873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877 (eval "$ac_link") 2>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 ac_cv_func_mmap_file=yes
16892 echo "$as_me: program exited with status $ac_status" >&5
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16896 ( exit $ac_status )
16897 ac_cv_func_mmap_file=no
16899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16904 ac_cpp='$CPP $CPPFLAGS'
16905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16911 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
16912 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
16913 if test "$ac_cv_func_mmap_file" = yes; then
16915 cat >>confdefs.h <<\_ACEOF
16916 #define HAVE_MMAP_FILE
16923 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
16924 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
16925 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 if test "$llvm_cv_os_type" = "Interix" ; then
16929 ac_cv_need_dev_zero_for_mmap=yes
16931 ac_cv_need_dev_zero_for_mmap=no
16935 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
16936 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
16937 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
16939 cat >>confdefs.h <<\_ACEOF
16940 #define NEED_DEV_ZERO_FOR_MMAP 1
16945 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
16947 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
16948 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
16950 if test "$ac_cv_func_mmap_file" = "no"
16952 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
16953 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
16957 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
16958 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
16960 ac_cpp='$CXXCPP $CPPFLAGS'
16961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16965 cat >conftest.$ac_ext <<_ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16972 volatile unsigned long val = 1;
16973 __sync_synchronize();
16974 __sync_val_compare_and_swap(&val, 1, 0);
16975 __sync_add_and_fetch(&val, 1);
16976 __sync_sub_and_fetch(&val, 1);
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17016 ac_cpp='$CPP $CPPFLAGS'
17017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17021 { echo "$as_me:$LINENO: result: yes" >&5
17022 echo "${ECHO_T}yes" >&6; }
17024 cat >>confdefs.h <<\_ACEOF
17025 #define LLVM_HAS_ATOMICS 1
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 { echo "$as_me:$LINENO: result: no" >&5
17033 echo "${ECHO_T}no" >&6; }
17035 cat >>confdefs.h <<\_ACEOF
17036 #define LLVM_HAS_ATOMICS 0
17039 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17040 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17043 rm -f core conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
17047 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17048 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17049 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17050 if test "${llvm_cv_linux_mixed+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 ac_cpp='$CPP $CPPFLAGS'
17055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17059 cat >conftest.$ac_ext <<_ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17066 error: Not x86-64 even if uname says so!
17077 rm -f conftest.$ac_objext
17078 if { (ac_try="$ac_compile"
17079 case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_compile") 2>conftest.er1
17086 grep -v '^ *+' conftest.er1 >conftest.err
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17092 { (case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_try") 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 llvm_cv_linux_mixed=no
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 llvm_cv_linux_mixed=yes
17119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17121 ac_cpp='$CPP $CPPFLAGS'
17122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17128 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17129 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17131 if test "$llvm_cv_linux_mixed" = "yes"; then
17132 llvm_cv_target_arch="x86"
17138 for ac_func in __dso_handle
17140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 cat >conftest.$ac_ext <<_ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17154 #define $ac_func innocuous_$ac_func
17156 /* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func (); below.
17158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159 <limits.h> exists even on freestanding compilers. */
17162 # include <limits.h>
17164 # include <assert.h>
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17176 /* The GNU C library defines this for functions which it implements
17177 to always fail with ENOSYS. Some functions are actually named
17178 something starting with __ and the normal name is an alias. */
17179 #if defined __stub_$ac_func || defined __stub___$ac_func
17186 return $ac_func ();
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17200 grep -v '^ *+' conftest.er1 >conftest.err
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest$ac_exeext'
17216 { (case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_try") 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 eval "$as_ac_var=yes"
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 eval "$as_ac_var=no"
17233 rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
17236 ac_res=`eval echo '${'$as_ac_var'}'`
17237 { echo "$as_me:$LINENO: result: $ac_res" >&5
17238 echo "${ECHO_T}$ac_res" >&6; }
17239 if test `eval echo '${'$as_ac_var'}'` = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17248 SHLIBEXT=$libltdl_cv_shlibext
17251 # Translate the various configuration directories and other basic
17252 # information into substitutions that will end up in Makefile.config.in
17253 # that these configured values can be used by the makefiles
17254 if test "${prefix}" = "NONE" ; then
17255 prefix="/usr/local"
17257 eval LLVM_PREFIX="${prefix}";
17258 eval LLVM_BINDIR="${prefix}/bin";
17259 eval LLVM_DATADIR="${prefix}/share/llvm";
17260 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17261 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17262 eval LLVM_INCLUDEDIR="${prefix}/include";
17263 eval LLVM_INFODIR="${prefix}/info";
17264 eval LLVM_MANDIR="${prefix}/man";
17265 LLVM_CONFIGTIME=`date`
17276 # Place the various directores into the config.h file as #defines so that we
17277 # can know about the installation paths within LLVM.
17279 cat >>confdefs.h <<_ACEOF
17280 #define LLVM_PREFIX "$LLVM_PREFIX"
17284 cat >>confdefs.h <<_ACEOF
17285 #define LLVM_BINDIR "$LLVM_BINDIR"
17289 cat >>confdefs.h <<_ACEOF
17290 #define LLVM_DATADIR "$LLVM_DATADIR"
17294 cat >>confdefs.h <<_ACEOF
17295 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17299 cat >>confdefs.h <<_ACEOF
17300 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17304 cat >>confdefs.h <<_ACEOF
17305 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17309 cat >>confdefs.h <<_ACEOF
17310 #define LLVM_INFODIR "$LLVM_INFODIR"
17314 cat >>confdefs.h <<_ACEOF
17315 #define LLVM_MANDIR "$LLVM_MANDIR"
17319 cat >>confdefs.h <<_ACEOF
17320 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17324 cat >>confdefs.h <<_ACEOF
17325 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17329 # Determine which bindings to build.
17330 if test "$BINDINGS_TO_BUILD" = auto ; then
17331 BINDINGS_TO_BUILD=""
17332 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
17333 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17336 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17339 # This isn't really configurey, but it avoids having to repeat the list in
17344 # Do any work necessary to ensure that bindings have what they need.
17345 binding_prereqs_failed=0
17346 for a_binding in $BINDINGS_TO_BUILD ; do
17347 case "$a_binding" in
17349 if test "x$OCAMLC" = x ; then
17350 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
17351 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
17352 binding_prereqs_failed=1
17354 if test "x$OCAMLDEP" = x ; then
17355 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
17356 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
17357 binding_prereqs_failed=1
17359 if test "x$OCAMLOPT" = x ; then
17360 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
17361 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
17363 if test "x$with_ocaml_libdir" != xauto ; then
17364 OCAML_LIBDIR=$with_ocaml_libdir
17367 ocaml_stdlib="`"$OCAMLC" -where`"
17368 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17370 # ocaml stdlib is beneath our prefix; use stdlib
17371 OCAML_LIBDIR=$ocaml_stdlib
17374 # ocaml stdlib is outside our prefix; use libdir/ocaml
17375 OCAML_LIBDIR=${prefix}/lib/ocaml
17382 if test "$binding_prereqs_failed" = 1 ; then
17383 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17384 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17385 { (exit 1); exit 1; }; }
17388 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17389 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17390 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 ac_cpp='$CXXCPP $CPPFLAGS'
17395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17399 oldcxxflags="$CXXFLAGS"
17400 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17416 rm -f conftest.$ac_objext
17417 if { (ac_try="$ac_compile"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_compile") 2>conftest.er1
17425 grep -v '^ *+' conftest.er1 >conftest.err
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17431 { (case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_try") 2>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest.$ac_objext'
17441 { (case "(($ac_try" in
17442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_try") 2>&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 llvm_cv_cxx_visibility_inlines_hidden=yes
17452 echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17455 llvm_cv_cxx_visibility_inlines_hidden=no
17458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17459 CXXFLAGS="$oldcxxflags"
17461 ac_cpp='$CPP $CPPFLAGS'
17462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17468 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17469 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17470 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17471 ENABLE_VISIBILITY_INLINES_HIDDEN=1
17474 ENABLE_VISIBILITY_INLINES_HIDDEN=0
17479 if test "$llvm_cv_link_use_r" = "yes" ; then
17486 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
17487 RDYNAMIC="-rdynamic"
17495 ac_config_files="$ac_config_files Makefile.common"
17497 ac_config_files="$ac_config_files Makefile.llvm.config"
17500 ac_config_commands="$ac_config_commands Makefile"
17503 ac_config_commands="$ac_config_commands lib/Makefile"
17506 ac_config_commands="$ac_config_commands lib/sample/Makefile"
17509 ac_config_commands="$ac_config_commands tools/Makefile"
17512 ac_config_commands="$ac_config_commands tools/sample/Makefile"
17516 cat >confcache <<\_ACEOF
17517 # This file is a shell script that caches the results of configure
17518 # tests run on this system so they can be shared between configure
17519 # scripts and configure runs, see configure's option --config-cache.
17520 # It is not useful on other systems. If it contains results you don't
17521 # want to keep, you may remove or edit it.
17523 # config.status only pays attention to the cache file if you give it
17524 # the --recheck option to rerun configure.
17526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17528 # following values.
17532 # The following way of writing the cache mishandles newlines in values,
17533 # but we know of no workaround that is simple, portable, and efficient.
17534 # So, we kill variables containing newlines.
17535 # Ultrix sh set writes to stderr and can't be redirected directly,
17536 # and sets the high bit in the cache file unless we assign to the vars.
17538 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17539 eval ac_val=\$$ac_var
17543 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17544 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17547 _ | IFS | as_nl) ;; #(
17548 *) $as_unset $ac_var ;;
17554 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17555 *${as_nl}ac_space=\ *)
17556 # `set' does not quote correctly, so add quotes (double-quote
17557 # substitution turns \\\\ into \\, and sed turns \\ into \).
17560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17563 # `set' quotes correctly as required by POSIX, so do not add quotes.
17564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17573 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17575 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17577 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17578 if test -w "$cache_file"; then
17579 test "x$cache_file" != "x/dev/null" &&
17580 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17581 echo "$as_me: updating cache $cache_file" >&6;}
17582 cat confcache >$cache_file
17584 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17585 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17591 # Let make expand exec_prefix.
17592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17594 # Transform confdefs.h into DEFS.
17595 # Protect against shell expansion while executing Makefile rules.
17596 # Protect against Makefile macro expansion.
17598 # If the first sed substitution is executed (which looks for macros that
17599 # take arguments), then branch to the quote section. Otherwise,
17600 # look for a macro that doesn't take arguments.
17604 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17606 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17610 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17623 DEFS=`sed -n "$ac_script" confdefs.h`
17628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17629 # 1. Remove the extension, and $U if already installed.
17630 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17631 ac_i=`echo "$ac_i" | sed "$ac_script"`
17632 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17633 # will be set to the directory where LIBOBJS objects are built.
17634 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17635 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17637 LIBOBJS=$ac_libobjs
17639 LTLIBOBJS=$ac_ltlibobjs
17643 : ${CONFIG_STATUS=./config.status}
17644 ac_clean_files_save=$ac_clean_files
17645 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17646 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17647 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17648 cat >$CONFIG_STATUS <<_ACEOF
17650 # Generated by $as_me.
17651 # Run this file to recreate the current configuration.
17652 # Compiler output produced by configure, useful for debugging
17653 # configure, is in config.log if it exists.
17656 ac_cs_recheck=false
17658 SHELL=\${CONFIG_SHELL-$SHELL}
17661 cat >>$CONFIG_STATUS <<\_ACEOF
17662 ## --------------------- ##
17663 ## M4sh Initialization. ##
17664 ## --------------------- ##
17666 # Be Bourne compatible
17667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17670 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17671 # is contrary to our usage. Disable this feature.
17672 alias -g '${1+"$@"}'='"$@"'
17673 setopt NO_GLOB_SUBST
17675 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
17677 BIN_SH=xpg4; export BIN_SH # for Tru64
17678 DUALCASE=1; export DUALCASE # for MKS sh
17682 # Avoid depending upon Character Ranges.
17683 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17684 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17685 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17686 as_cr_digits='0123456789'
17687 as_cr_alnum=$as_cr_Letters$as_cr_digits
17689 # The user is always right.
17690 if test "${PATH_SEPARATOR+set}" != set; then
17691 echo "#! /bin/sh" >conf$$.sh
17692 echo "exit 0" >>conf$$.sh
17694 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17702 # Support unset when possible.
17703 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17711 # We need space, tab and new line, in precisely that order. Quoting is
17712 # there to prevent editors from complaining about space-tab.
17713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17714 # splitting by setting IFS to empty value.)
17719 # Find who we are. Look in the path if we contain no directory separator.
17721 *[\\/]* ) as_myself=$0 ;;
17722 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17723 for as_dir in $PATH
17726 test -z "$as_dir" && as_dir=.
17727 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17733 # We did not find ourselves, most probably we were run as `sh COMMAND'
17734 # in which case we are not to be found in the path.
17735 if test "x$as_myself" = x; then
17738 if test ! -f "$as_myself"; then
17739 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17740 { (exit 1); exit 1; }
17743 # Work around bugs in pre-3.0 UWIN ksh.
17744 for as_var in ENV MAIL MAILPATH
17745 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17753 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17754 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17755 LC_TELEPHONE LC_TIME
17757 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17758 eval $as_var=C; export $as_var
17760 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17764 # Required to use basename.
17765 if expr a : '\(a\)' >/dev/null 2>&1 &&
17766 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17772 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17773 as_basename=basename
17779 # Name of the executable.
17780 as_me=`$as_basename -- "$0" ||
17781 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17782 X"$0" : 'X\(//\)$' \| \
17783 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17785 sed '/^.*\/\([^/][^/]*\)\/*$/{
17804 as_lineno_1=$LINENO
17805 as_lineno_2=$LINENO
17806 test "x$as_lineno_1" != "x$as_lineno_2" &&
17807 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17809 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17810 # uniformly replaced by the line number. The first 'sed' inserts a
17811 # line-number line after each line using $LINENO; the second 'sed'
17812 # does the real work. The second script uses 'N' to pair each
17813 # line-number line with the line containing $LINENO, and appends
17814 # trailing '-' during substitution so that $LINENO is not a special
17815 # case at line end.
17816 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17817 # scripts with optimization help from Paolo Bonzini. Blame Lee
17818 # E. McMahon (1931-1989) for sed's syntax. :-)
17830 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17833 ' >$as_me.lineno &&
17834 chmod +x "$as_me.lineno" ||
17835 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17836 { (exit 1); exit 1; }; }
17838 # Don't try to exec as it changes $[0], causing all sort of problems
17839 # (the dirname of $[0] is not the place where we might find the
17840 # original and so on. Autoconf is especially sensitive to this).
17841 . "./$as_me.lineno"
17842 # Exit status is that of the last command.
17847 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17853 ECHO_C= ECHO_N= ECHO_T=
17854 case `echo -n x` in
17856 case `echo 'x\c'` in
17857 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17864 if expr a : '\(a\)' >/dev/null 2>&1 &&
17865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17871 rm -f conf$$ conf$$.exe conf$$.file
17872 if test -d conf$$.dir; then
17873 rm -f conf$$.dir/conf$$.file
17879 if ln -s conf$$.file conf$$ 2>/dev/null; then
17881 # ... but there are two gotchas:
17882 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17883 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17884 # In both cases, we have to default to `cp -p'.
17885 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17887 elif ln conf$$.file conf$$ 2>/dev/null; then
17892 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17893 rmdir conf$$.dir 2>/dev/null
17895 if mkdir -p . 2>/dev/null; then
17898 test -d ./-p && rmdir ./-p
17902 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
17903 # systems may use methods other than mode bits to determine executability.
17904 cat >conf$$.file <<_ASEOF
17908 chmod +x conf$$.file
17909 if test -x conf$$.file >/dev/null 2>&1; then
17910 as_executable_p="test -x"
17916 # Sed expression to map a string onto a valid CPP name.
17917 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17919 # Sed expression to map a string onto a valid variable name.
17920 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17925 # Save the log message, to keep $[0] and so on meaningful, and to
17926 # report actual input values of CONFIG_FILES etc. instead of their
17927 # values after options handling.
17929 This file was extended by [SAMPLE] $as_me [x.xx], which was
17930 generated by GNU Autoconf 2.60. Invocation command line was
17932 CONFIG_FILES = $CONFIG_FILES
17933 CONFIG_HEADERS = $CONFIG_HEADERS
17934 CONFIG_LINKS = $CONFIG_LINKS
17935 CONFIG_COMMANDS = $CONFIG_COMMANDS
17938 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17943 cat >>$CONFIG_STATUS <<_ACEOF
17944 # Files that config.status was made for.
17945 config_files="$ac_config_files"
17946 config_commands="$ac_config_commands"
17950 cat >>$CONFIG_STATUS <<\_ACEOF
17952 \`$as_me' instantiates files from templates according to the
17953 current configuration.
17955 Usage: $0 [OPTIONS] [FILE]...
17957 -h, --help print this help, then exit
17958 -V, --version print version number, then exit
17959 -q, --quiet do not print progress messages
17960 -d, --debug don't remove temporary files
17961 --recheck update $as_me by reconfiguring in the same conditions
17962 --file=FILE[:TEMPLATE]
17963 instantiate the configuration file FILE
17965 Configuration files:
17968 Configuration commands:
17971 Report bugs to <bug-autoconf@gnu.org>."
17974 cat >>$CONFIG_STATUS <<_ACEOF
17976 [SAMPLE] config.status [x.xx]
17977 configured by $0, generated by GNU Autoconf 2.60,
17978 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17980 Copyright (C) 2006 Free Software Foundation, Inc.
17981 This config.status script is free software; the Free Software Foundation
17982 gives unlimited permission to copy, distribute and modify it."
17989 cat >>$CONFIG_STATUS <<\_ACEOF
17990 # If no file are specified by the user, then we need to provide default
17991 # value. By we need to know if files were specified by the user.
17997 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17998 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18009 # Handling of the options.
18010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18012 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18013 echo "$ac_cs_version"; exit ;;
18014 --debug | --debu | --deb | --de | --d | -d )
18016 --file | --fil | --fi | --f )
18018 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18019 ac_need_defaults=false;;
18020 --he | --h | --help | --hel | -h )
18021 echo "$ac_cs_usage"; exit ;;
18022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18023 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18026 # This is an error.
18027 -*) { echo "$as_me: error: unrecognized option: $1
18028 Try \`$0 --help' for more information." >&2
18029 { (exit 1); exit 1; }; } ;;
18031 *) ac_config_targets="$ac_config_targets $1"
18032 ac_need_defaults=false ;;
18038 ac_configure_extra_args=
18040 if $ac_cs_silent; then
18042 ac_configure_extra_args="$ac_configure_extra_args --silent"
18046 cat >>$CONFIG_STATUS <<_ACEOF
18047 if \$ac_cs_recheck; then
18048 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18049 CONFIG_SHELL=$SHELL
18050 export CONFIG_SHELL
18051 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18055 cat >>$CONFIG_STATUS <<\_ACEOF
18059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18060 ## Running $as_me. ##
18066 cat >>$CONFIG_STATUS <<_ACEOF
18070 llvm_src="${LLVM_SRC}"
18074 cat >>$CONFIG_STATUS <<\_ACEOF
18076 # Handling of arguments.
18077 for ac_config_target in $ac_config_targets
18079 case $ac_config_target in
18080 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18081 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
18082 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
18083 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18084 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18085 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
18086 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18087 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
18089 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18090 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18091 { (exit 1); exit 1; }; };;
18096 # If the user did not use the arguments to specify the items to instantiate,
18097 # then the envvar interface is used. Set only those that are not.
18098 # We use the long form for the default assignment because of an extremely
18099 # bizarre bug on SunOS 4.1.3.
18100 if $ac_need_defaults; then
18101 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18102 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18105 # Have a temporary directory for convenience. Make it in the build tree
18106 # simply because there is no reason against having it here, and in addition,
18107 # creating and moving files from /tmp can sometimes cause problems.
18108 # Hook for its removal unless debugging.
18109 # Note that there is a small window in which the directory will not be cleaned:
18110 # after its creation but before its name has been assigned to `$tmp'.
18114 trap 'exit_status=$?
18115 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18117 trap '{ (exit 1); exit 1; }' 1 2 13 15
18119 # Create a (secure) tmp directory for tmp files.
18122 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18123 test -n "$tmp" && test -d "$tmp"
18126 tmp=./conf$$-$RANDOM
18127 (umask 077 && mkdir "$tmp")
18130 echo "$me: cannot create a temporary directory in ." >&2
18131 { (exit 1); exit 1; }
18135 # Set up the sed scripts for CONFIG_FILES section.
18138 # No need to generate the scripts if there are no CONFIG_FILES.
18139 # This happens for instance when ./config.status config.h
18140 if test -n "$CONFIG_FILES"; then
18147 for ac_last_try in false false false false false :; do
18148 cat >conf$$subs.sed <<_ACEOF
18149 SHELL!$SHELL$ac_delim
18150 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18151 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18152 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18153 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18154 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18155 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18156 exec_prefix!$exec_prefix$ac_delim
18157 prefix!$prefix$ac_delim
18158 program_transform_name!$program_transform_name$ac_delim
18159 bindir!$bindir$ac_delim
18160 sbindir!$sbindir$ac_delim
18161 libexecdir!$libexecdir$ac_delim
18162 datarootdir!$datarootdir$ac_delim
18163 datadir!$datadir$ac_delim
18164 sysconfdir!$sysconfdir$ac_delim
18165 sharedstatedir!$sharedstatedir$ac_delim
18166 localstatedir!$localstatedir$ac_delim
18167 includedir!$includedir$ac_delim
18168 oldincludedir!$oldincludedir$ac_delim
18169 docdir!$docdir$ac_delim
18170 infodir!$infodir$ac_delim
18171 htmldir!$htmldir$ac_delim
18172 dvidir!$dvidir$ac_delim
18173 pdfdir!$pdfdir$ac_delim
18174 psdir!$psdir$ac_delim
18175 libdir!$libdir$ac_delim
18176 localedir!$localedir$ac_delim
18177 mandir!$mandir$ac_delim
18178 DEFS!$DEFS$ac_delim
18179 ECHO_C!$ECHO_C$ac_delim
18180 ECHO_N!$ECHO_N$ac_delim
18181 ECHO_T!$ECHO_T$ac_delim
18182 LIBS!$LIBS$ac_delim
18183 build_alias!$build_alias$ac_delim
18184 host_alias!$host_alias$ac_delim
18185 target_alias!$target_alias$ac_delim
18186 LLVM_SRC!$LLVM_SRC$ac_delim
18187 LLVM_OBJ!$LLVM_OBJ$ac_delim
18188 LLVM_VERSION!$LLVM_VERSION$ac_delim
18190 CFLAGS!$CFLAGS$ac_delim
18191 LDFLAGS!$LDFLAGS$ac_delim
18192 CPPFLAGS!$CPPFLAGS$ac_delim
18193 ac_ct_CC!$ac_ct_CC$ac_delim
18194 EXEEXT!$EXEEXT$ac_delim
18195 OBJEXT!$OBJEXT$ac_delim
18197 CXXFLAGS!$CXXFLAGS$ac_delim
18198 ac_ct_CXX!$ac_ct_CXX$ac_delim
18200 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18201 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18202 subdirs!$subdirs$ac_delim
18203 build!$build$ac_delim
18204 build_cpu!$build_cpu$ac_delim
18205 build_vendor!$build_vendor$ac_delim
18206 build_os!$build_os$ac_delim
18207 host!$host$ac_delim
18208 host_cpu!$host_cpu$ac_delim
18209 host_vendor!$host_vendor$ac_delim
18210 host_os!$host_os$ac_delim
18211 target!$target$ac_delim
18212 target_cpu!$target_cpu$ac_delim
18213 target_vendor!$target_vendor$ac_delim
18214 target_os!$target_os$ac_delim
18216 HOST_OS!$HOST_OS$ac_delim
18217 TARGET_OS!$TARGET_OS$ac_delim
18218 LINKALL!$LINKALL$ac_delim
18219 NOLINKALL!$NOLINKALL$ac_delim
18220 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18221 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18222 ARCH!$ARCH$ac_delim
18223 ENDIAN!$ENDIAN$ac_delim
18224 GREP!$GREP$ac_delim
18225 EGREP!$EGREP$ac_delim
18226 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18227 BUILD_CC!$BUILD_CC$ac_delim
18228 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18229 BUILD_CXX!$BUILD_CXX$ac_delim
18230 CVSBUILD!$CVSBUILD$ac_delim
18231 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18232 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
18233 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18234 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18235 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18236 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18237 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18238 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18239 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18240 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18242 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18243 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18244 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18245 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
18248 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18250 elif $ac_last_try; then
18251 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18252 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18253 { (exit 1); exit 1; }; }
18255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18259 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18260 if test -n "$ac_eof"; then
18261 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18262 ac_eof=`expr $ac_eof + 1`
18265 cat >>$CONFIG_STATUS <<_ACEOF
18266 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18270 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18271 s/^/s,@/; s/!/@,|#_!!_#|/
18274 s/'"$ac_delim"'$/,g/; t
18276 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18277 ' >>$CONFIG_STATUS <conf$$subs.sed
18278 rm -f conf$$subs.sed
18279 cat >>$CONFIG_STATUS <<_ACEOF
18285 for ac_last_try in false false false false false :; do
18286 cat >conf$$subs.sed <<_ACEOF
18287 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18288 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18289 ENABLE_PIC!$ENABLE_PIC$ac_delim
18290 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18291 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18292 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18293 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18294 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18295 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18296 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18297 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18298 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18299 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18300 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18301 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18303 ifGNUmake!$ifGNUmake$ac_delim
18304 LN_S!$LN_S$ac_delim
18307 DATE!$DATE$ac_delim
18308 FIND!$FIND$ac_delim
18309 MKDIR!$MKDIR$ac_delim
18311 RANLIB!$RANLIB$ac_delim
18316 BINPWD!$BINPWD$ac_delim
18317 GRAPHVIZ!$GRAPHVIZ$ac_delim
18320 NEATO!$NEATO$ac_delim
18321 TWOPI!$TWOPI$ac_delim
18322 CIRCO!$CIRCO$ac_delim
18324 DOTTY!$DOTTY$ac_delim
18325 XDOT_PY!$XDOT_PY$ac_delim
18326 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18327 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18328 INSTALL_DATA!$INSTALL_DATA$ac_delim
18329 BZIP2!$BZIP2$ac_delim
18331 DOXYGEN!$DOXYGEN$ac_delim
18332 GROFF!$GROFF$ac_delim
18333 GZIPBIN!$GZIPBIN$ac_delim
18334 POD2HTML!$POD2HTML$ac_delim
18335 POD2MAN!$POD2MAN$ac_delim
18336 PDFROFF!$PDFROFF$ac_delim
18337 RUNTEST!$RUNTEST$ac_delim
18338 TCLSH!$TCLSH$ac_delim
18340 OCAMLC!$OCAMLC$ac_delim
18341 OCAMLOPT!$OCAMLOPT$ac_delim
18342 OCAMLDEP!$OCAMLDEP$ac_delim
18343 OCAMLDOC!$OCAMLDOC$ac_delim
18345 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18346 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18347 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18348 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18349 USE_UDIS86!$USE_UDIS86$ac_delim
18350 USE_OPROFILE!$USE_OPROFILE$ac_delim
18351 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18352 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18353 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18354 MMAP_FILE!$MMAP_FILE$ac_delim
18355 SHLIBEXT!$SHLIBEXT$ac_delim
18356 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18357 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18358 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18359 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18360 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
18361 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
18362 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18363 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
18364 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18365 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
18366 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
18367 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18368 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
18369 RPATH!$RPATH$ac_delim
18370 RDYNAMIC!$RDYNAMIC$ac_delim
18371 LIBOBJS!$LIBOBJS$ac_delim
18372 LTLIBOBJS!$LTLIBOBJS$ac_delim
18375 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
18377 elif $ac_last_try; then
18378 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18380 { (exit 1); exit 1; }; }
18382 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18387 if test -n "$ac_eof"; then
18388 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18389 ac_eof=`expr $ac_eof + 1`
18392 cat >>$CONFIG_STATUS <<_ACEOF
18393 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18398 s/^/s,@/; s/!/@,|#_!!_#|/
18401 s/'"$ac_delim"'$/,g/; t
18403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18404 ' >>$CONFIG_STATUS <conf$$subs.sed
18405 rm -f conf$$subs.sed
18406 cat >>$CONFIG_STATUS <<_ACEOF
18413 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18414 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18415 # trailing colons and then remove the whole line if VPATH becomes empty
18416 # (actually we leave an empty line to preserve line numbers).
18417 if test "x$srcdir" = x.; then
18418 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18419 s/:*\$(srcdir):*/:/
18420 s/:*\${srcdir}:*/:/
18422 s/^\([^=]*=[ ]*\):*/\1/
18428 cat >>$CONFIG_STATUS <<\_ACEOF
18429 fi # test -n "$CONFIG_FILES"
18432 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
18435 :[FHLC]) ac_mode=$ac_tag; continue;;
18437 case $ac_mode$ac_tag in
18439 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18440 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18441 { (exit 1); exit 1; }; };;
18442 :[FH]-) ac_tag=-:-;;
18443 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18460 -) ac_f="$tmp/stdin";;
18461 *) # Look for the file first in the build tree, then in the source tree
18462 # (if the path is not absolute). The absolute path cannot be DOS-style,
18463 # because $ac_f cannot contain `:'.
18467 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18469 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18470 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18471 { (exit 1); exit 1; }; };;
18473 ac_file_inputs="$ac_file_inputs $ac_f"
18476 # Let's still pretend it is `configure' which instantiates (i.e., don't
18477 # use $as_me), people would be surprised to read:
18478 # /* config.h. Generated by config.status. */
18479 configure_input="Generated from "`IFS=:
18480 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18481 if test x"$ac_file" != x-; then
18482 configure_input="$ac_file. $configure_input"
18483 { echo "$as_me:$LINENO: creating $ac_file" >&5
18484 echo "$as_me: creating $ac_file" >&6;}
18488 *:-:* | *:-) cat >"$tmp/stdin";;
18493 ac_dir=`$as_dirname -- "$ac_file" ||
18494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18495 X"$ac_file" : 'X\(//\)[^/]' \| \
18496 X"$ac_file" : 'X\(//\)$' \| \
18497 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18503 /^X\(\/\/\)[^/].*/{
18518 -*) as_dir=./$as_dir;;
18520 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18524 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18525 *) as_qdir=$as_dir;;
18527 as_dirs="'$as_qdir' $as_dirs"
18528 as_dir=`$as_dirname -- "$as_dir" ||
18529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18530 X"$as_dir" : 'X\(//\)[^/]' \| \
18531 X"$as_dir" : 'X\(//\)$' \| \
18532 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18538 /^X\(\/\/\)[^/].*/{
18551 test -d "$as_dir" && break
18553 test -z "$as_dirs" || eval "mkdir $as_dirs"
18554 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18555 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18556 { (exit 1); exit 1; }; }; }
18560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18563 # A ".." for each directory in $ac_dir_suffix.
18564 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18565 case $ac_top_builddir_sub in
18566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18570 ac_abs_top_builddir=$ac_pwd
18571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18572 # for backward compatibility:
18573 ac_top_builddir=$ac_top_build_prefix
18576 .) # We are building in place.
18578 ac_top_srcdir=$ac_top_builddir_sub
18579 ac_abs_top_srcdir=$ac_pwd ;;
18580 [\\/]* | ?:[\\/]* ) # Absolute name.
18581 ac_srcdir=$srcdir$ac_dir_suffix;
18582 ac_top_srcdir=$srcdir
18583 ac_abs_top_srcdir=$srcdir ;;
18584 *) # Relative name.
18585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18586 ac_top_srcdir=$ac_top_build_prefix$srcdir
18587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18599 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18600 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18604 cat >>$CONFIG_STATUS <<\_ACEOF
18605 # If the template does not know about datarootdir, expand it.
18606 # FIXME: This hack should be removed a few years after 2.60.
18607 ac_datarootdir_hack=; ac_datarootdir_seen=
18609 case `sed -n '/datarootdir/ {
18618 ' $ac_file_inputs` in
18619 *datarootdir*) ac_datarootdir_seen=yes;;
18620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18621 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18622 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18624 cat >>$CONFIG_STATUS <<_ACEOF
18625 ac_datarootdir_hack='
18626 s&@datadir@&$datadir&g
18627 s&@docdir@&$docdir&g
18628 s&@infodir@&$infodir&g
18629 s&@localedir@&$localedir&g
18630 s&@mandir@&$mandir&g
18631 s&\\\${datarootdir}&$datarootdir&g' ;;
18635 # Neutralize VPATH when `$srcdir' = `.'.
18636 # Shell code in configure.ac might set extrasub.
18637 # FIXME: do we really want to maintain this feature?
18638 cat >>$CONFIG_STATUS <<_ACEOF
18642 cat >>$CONFIG_STATUS <<\_ACEOF
18644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18645 s&@configure_input@&$configure_input&;t t
18646 s&@top_builddir@&$ac_top_builddir_sub&;t t
18647 s&@srcdir@&$ac_srcdir&;t t
18648 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18649 s&@top_srcdir@&$ac_top_srcdir&;t t
18650 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18651 s&@builddir@&$ac_builddir&;t t
18652 s&@abs_builddir@&$ac_abs_builddir&;t t
18653 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18654 s&@INSTALL@&$ac_INSTALL&;t t
18655 $ac_datarootdir_hack
18656 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
18658 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18659 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18661 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18662 which seems to be undefined. Please make sure it is defined." >&5
18663 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18664 which seems to be undefined. Please make sure it is defined." >&2;}
18668 -) cat "$tmp/out"; rm -f "$tmp/out";;
18669 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18674 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18675 echo "$as_me: executing $ac_file commands" >&6;}
18680 case $ac_file$ac_mode in
18681 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
18682 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
18683 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
18684 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
18685 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
18686 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
18687 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
18688 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
18689 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
18690 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
18696 { (exit 0); exit 0; }
18698 chmod +x $CONFIG_STATUS
18699 ac_clean_files=$ac_clean_files_save
18702 # configure is writing to config.log, and then calls config.status.
18703 # config.status does its own redirection, appending to config.log.
18704 # Unfortunately, on DOS this fails, as config.log is still kept open
18705 # by configure, so config.status won't be able to write to it; its
18706 # output is simply discarded. So we exec the FD to /dev/null,
18707 # effectively closing config.log, so it can be properly (re)opened and
18708 # appended to by config.status. When coming back to configure, we
18709 # need to make the FD available again.
18710 if test "$no_create" != yes; then
18712 ac_config_status_args=
18713 test "$silent" = yes &&
18714 ac_config_status_args="$ac_config_status_args --quiet"
18716 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18719 # would make configure fail if this is the last instruction.
18720 $ac_cs_success || { (exit 1); exit 1; }
18724 # CONFIG_SUBDIRS section.
18726 if test "$no_recursion" != yes; then
18728 # Remove --cache-file and --srcdir arguments so they do not pile up.
18729 ac_sub_configure_args=
18731 eval "set x $ac_configure_args"
18735 if test -n "$ac_prev"; then
18740 -cache-file | --cache-file | --cache-fil | --cache-fi \
18741 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18742 ac_prev=cache_file ;;
18743 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18744 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18747 --config-cache | -C)
18749 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18751 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18753 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18755 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18759 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18761 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
18765 # Always prepend --prefix to ensure using the same prefix
18766 # in subdir configurations.
18767 ac_arg="--prefix=$prefix"
18769 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18771 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
18774 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18776 # Do not complain, so a configure script can configure whichever
18777 # parts of a large source tree are present.
18778 test -d "$srcdir/$ac_dir" || continue
18780 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18781 echo "$as_me:$LINENO: $ac_msg" >&5
18785 -*) as_dir=./$as_dir;;
18787 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18791 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18792 *) as_qdir=$as_dir;;
18794 as_dirs="'$as_qdir' $as_dirs"
18795 as_dir=`$as_dirname -- "$as_dir" ||
18796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18797 X"$as_dir" : 'X\(//\)[^/]' \| \
18798 X"$as_dir" : 'X\(//\)$' \| \
18799 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18805 /^X\(\/\/\)[^/].*/{
18818 test -d "$as_dir" && break
18820 test -z "$as_dirs" || eval "mkdir $as_dirs"
18821 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18822 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18823 { (exit 1); exit 1; }; }; }
18827 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18829 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18830 # A ".." for each directory in $ac_dir_suffix.
18831 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18832 case $ac_top_builddir_sub in
18833 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18834 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18837 ac_abs_top_builddir=$ac_pwd
18838 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18839 # for backward compatibility:
18840 ac_top_builddir=$ac_top_build_prefix
18843 .) # We are building in place.
18845 ac_top_srcdir=$ac_top_builddir_sub
18846 ac_abs_top_srcdir=$ac_pwd ;;
18847 [\\/]* | ?:[\\/]* ) # Absolute name.
18848 ac_srcdir=$srcdir$ac_dir_suffix;
18849 ac_top_srcdir=$srcdir
18850 ac_abs_top_srcdir=$srcdir ;;
18851 *) # Relative name.
18852 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18853 ac_top_srcdir=$ac_top_build_prefix$srcdir
18854 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18856 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18861 # Check for guested configure; otherwise get Cygnus style configure.
18862 if test -f "$ac_srcdir/configure.gnu"; then
18863 ac_sub_configure=$ac_srcdir/configure.gnu
18864 elif test -f "$ac_srcdir/configure"; then
18865 ac_sub_configure=$ac_srcdir/configure
18866 elif test -f "$ac_srcdir/configure.in"; then
18867 # This should be Cygnus configure.
18868 ac_sub_configure=$ac_aux_dir/configure
18870 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18871 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18875 # The recursion is here.
18876 if test -n "$ac_sub_configure"; then
18877 # Make the cache file name correct relative to the subdirectory.
18878 case $cache_file in
18879 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18880 *) # Relative name.
18881 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18884 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18885 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18886 # The eval makes quoting arguments work.
18887 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18888 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18889 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18890 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18891 { (exit 1); exit 1; }; }