2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
695 ENABLE_EXPENSIVE_CHECKS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
762 HAVE_LINK_VERSION_SCRIPT
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
799 ENABLE_VISIBILITY_INLINES_HIDDEN
806 ac_precious_vars='build_alias
818 ac_subdirs_all='projects/llvm-gcc
822 projects/llvm-poolalloc
825 projects/llvm-stacker
833 # Initialize some variables set by options.
835 ac_init_version=false
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938 { (exit 1); exit 1; }; }
939 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940 eval enable_$ac_feature=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 -enable-* | --enable-*)
953 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
956 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957 { (exit 1); exit 1; }; }
958 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
959 eval enable_$ac_feature=\$ac_optarg ;;
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
974 -help | --help | --hel | --he | -h)
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 htmldir=$ac_optarg ;;
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1004 -libdir | --libdir | --libdi | --libd)
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1095 -psdir | --psdir | --psdi | --psd | --ps)
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1123 -site=* | --site=* | --sit=*)
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1150 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package| sed 's/-/_/g'`
1156 eval with_$ac_package=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid package name: $ac_package" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_package=`echo $ac_package | sed 's/-/_/g'`
1165 eval with_$ac_package=no ;;
1168 # Obsolete; use --with-x.
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1185 -*) { echo "$as_me: error: unrecognized option: $ac_option
1186 Try \`$0 --help' for more information." >&2
1187 { (exit 1); exit 1; }; }
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195 { (exit 1); exit 1; }; }
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 { echo "$as_me: error: missing argument to $ac_option" >&2
1213 { (exit 1); exit 1; }; }
1216 # Be sure to have absolute directory names.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val=\$$ac_var
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228 { (exit 1); exit 1; }; }
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 { echo "$as_me: error: Working directory cannot be determined" >&2
1259 { (exit 1); exit 1; }; }
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 { echo "$as_me: error: pwd does not report name of working directory" >&2
1262 { (exit 1); exit 1; }; }
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$0" ||
1270 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$0" : 'X\(//\)[^/]' \| \
1272 X"$0" : 'X\(//\)$' \| \
1273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302 { (exit 1); exit 1; }; }
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307 { (exit 1); exit 1; }; }
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 # Report the --help message.
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1333 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1340 Defaults for the options are specified in brackets.
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1364 For better control, use the options below.
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-polly Use polly if available (default is YES)
1407 --enable-libcpp Use libc++ if available (default is NO)
1408 --enable-cxx11 Use c++11 if available (default is NO)
1409 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1410 --enable-clang-static-analyzer
1411 Enable building of clang Static Analyzer (default is
1413 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1414 --enable-optimized Compile with optimizations enabled (default is NO)
1415 --enable-profiling Compile with profiling enabled (default is NO)
1416 --enable-assertions Compile with assertion checks enabled (default is
1418 --enable-werror Compile with -Werror enabled (default is NO)
1419 --enable-expensive-checks
1420 Compile with expensive debug checks enabled (default
1422 --enable-debug-runtime Build runtime libs with debug symbols (default is
1424 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1425 optimization is on and YES if it's off)
1426 --enable-keep-symbols Do not strip installed executables)
1427 --enable-jit Enable Just In Time Compiling (default is YES)
1428 --enable-docs Build documents (default is YES)
1429 --enable-doxygen Build doxygen documentation (default is NO)
1430 --enable-threads Use threads if available (default is YES)
1431 --enable-pthreads Use pthreads if available (default is YES)
1432 --enable-zlib Use zlib for compression/decompression if available
1434 --enable-pic Build LLVM with Position Independent Code (default
1436 --enable-shared Build a shared library and link tools against it
1438 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1439 Win32 DLL (default is NO)
1440 --enable-timestamps Enable embedding timestamp information in build
1442 --enable-backtraces Enable embedding backtraces on crash (default is
1444 --enable-targets Build specific host targets: all or
1445 target1,target2,... Valid targets are: host, x86,
1446 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1447 xcore, msp430, nvptx, systemz, r600, and cpp
1449 --enable-experimental-targets
1450 Build experimental host targets: disable or
1451 target1,target2,... (default=disable)
1452 --enable-bindings Build specific language bindings:
1453 all,auto,none,{binding-name} (default=auto)
1454 --enable-libffi Check for the presence of libffi (default is NO)
1455 --enable-ltdl-install install libltdl
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-optimize-option Select the compiler options to use for optimized
1462 --with-extra-options Specify additional options to compile LLVM with
1463 --with-extra-ld-options Specify additional options to link LLVM with
1464 --with-ocaml-libdir Specify install location for ocaml bindings (default
1466 --with-clang-srcdir Directory to the out-of-tree Clang source
1467 --with-clang-resource-dir
1468 Relative directory from the Clang binary for
1470 --with-c-include-dirs Colon separated list of directories clang will
1472 --with-gcc-toolchain Directory where gcc is installed.
1473 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1474 --with-binutils-include Specify path to binutils/include/ containing
1475 plugin-api.h file for gold plugin.
1476 --with-bug-report-url Specify the URL where bug reports should be
1477 submitted (default=http://llvm.org/bugs/)
1478 --with-internal-prefix Installation directory for internal files
1479 --with-python path to python
1480 --with-udis86=<path> Use udis86 external x86 disassembler library
1481 --with-oprofile=<prefix>
1482 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1496 CXXCPP C++ preprocessor
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to <http://llvm.org/bugs/>.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" || continue
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1529 .) # We are building in place.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1562 LLVM configure 3.4svn
1563 generated by GNU Autoconf 2.60
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1570 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1578 It was created by LLVM $as_me 3.4svn, which was
1579 generated by GNU Autoconf 2.60. Invocation command line was
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1600 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1601 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1604 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1605 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1606 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 test -z "$as_dir" && as_dir=.
1615 echo "PATH: $as_dir"
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_must_keep_next=false
1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647 | -silent | --silent | --silen | --sile | --sil)
1650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656 if test $ac_must_keep_next = true; then
1657 ac_must_keep_next=false # Got value, back to normal.
1660 *=* | --config-cache | -C | -disable-* | --disable-* \
1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663 | -with-* | --with-* | -without-* | --without-* | --x)
1664 case "$ac_configure_args0 " in
1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 -* ) ac_must_keep_next=true ;;
1671 ac_configure_args="$ac_configure_args '$ac_arg'"
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log. We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685 # Save into config.log some information that might help in debugging.
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1695 # The following way of writing the cache mishandles newlines in values,
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 _ | IFS | as_nl) ;; #(
1707 *) $as_unset $ac_var ;;
1712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
1715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1732 for ac_var in $ac_subst_vars
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 echo "$ac_var='\''$ac_val'\''"
1742 if test -n "$ac_subst_files"; then
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1749 for ac_var in $ac_subst_files
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1760 if test -s confdefs.h; then
1770 test "$ac_signal" != 0 &&
1771 echo "$as_me: caught signal $ac_signal"
1772 echo "$as_me: exit $exit_status"
1774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 for ac_signal in 1 2 13 15; do
1779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1786 # Predefined preprocessor variables.
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816 set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 set x "$ac_default_prefix/share/config.site" \
1821 "$ac_default_prefix/etc/config.site"
1826 if test -r "$ac_site_file"; then
1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829 sed 's/^/| /' "$ac_site_file" >&5
1834 if test -r "$cache_file"; then
1835 # Some versions of bash will fail to source /dev/null (special
1836 # files actually), so we avoid doing that.
1837 if test -f "$cache_file"; then
1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
1846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1851 # Check that the precious variables saved in the cache have kept the same
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
1859 case $ac_old_set,$ac_new_set in
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
1871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1874 echo "$as_me: former value: $ac_old_val" >&2;}
1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1876 echo "$as_me: current value: $ac_new_val" >&2;}
1877 ac_cache_corrupted=:
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892 if $ac_cache_corrupted; then
1893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 4
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952 if test -f "$ac_dir/install-sh"; then
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1956 elif test -f "$ac_dir/install.sh"; then
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1960 elif test -f "$ac_dir/shtool"; then
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1966 if test -z "$ac_aux_dir"; then
1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969 { (exit 1); exit 1; }; }
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1982 if test ${srcdir} != "." ; then
1983 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986 { (exit 1); exit 1; }; }
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999 for ac_prog in clang llvm-gcc gcc
2001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$CC"; then
2009 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 if test -n "$CC"; then
2030 { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2033 { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2038 test -n "$CC" && break
2041 if test -z "$CC"; then
2043 for ac_prog in clang llvm-gcc gcc
2045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$ac_ct_CC"; then
2053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062 ac_cv_prog_ac_ct_CC="$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2077 { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2082 test -n "$ac_ct_CC" && break
2085 if test "x$ac_ct_CC" = x; then
2088 case $cross_compiling:$ac_tool_warned in
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet. If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet. If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler --version >&5") 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler -v >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -V >&5") 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort. b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions. Remove them first so a
2174 # subsequent execution test works.
2176 for ac_file in $ac_files
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2185 if { (ac_try="$ac_link_default"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191 (eval "$ac_link_default") 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; then
2195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2200 for ac_file in $ac_files
2202 test -f "$ac_file" || continue
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2207 # We found the default executable, but exeext='' is most
2211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215 # We set ac_cv_exeext here because the later test for it is not
2216 # safe: cross compilers may not add the suffix if given an `-o'
2217 # argument, so we may need to know it at that point already.
2218 # Even if this section looks crufty: it has the advantage of
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235 { (exit 77); exit 77; }; }
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2242 # Check that the compiler produces executables we can run. If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249 if { ac_try='./$ac_file'
2250 { (case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_try") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 if test "$cross_compiling" = maybe; then
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294 (eval "$ac_link") 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 for ac_file in conftest.exe conftest conftest.*; do
2303 test -f "$ac_file" || continue
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353 (eval "$ac_compile") 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 for ac_file in conftest.o conftest.obj conftest.*; do
2358 test -f "$ac_file" || continue;
2360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373 { (exit 1); exit 1; }; }
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_compile") 2>conftest.er1
2414 grep -v '^ *+' conftest.er1 >conftest.err
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420 { (case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_try") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 ac_save_c_werror_flag=$ac_c_werror_flag
2462 ac_c_werror_flag=yes
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_compile") 2>conftest.er1
2489 grep -v '^ *+' conftest.er1 >conftest.err
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550 { (case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_try") 2>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 ac_c_werror_flag=$ac_save_c_werror_flag
2576 cat >conftest.$ac_ext <<_ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606 { (case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_try") 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645 CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647 if test "$GCC" = yes; then
2653 if test "$GCC" = yes; then
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 ac_cv_prog_cc_c89=no
2666 cat >conftest.$ac_ext <<_ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2690 s = g (p, va_arg (v,int));
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2696 function prototypes and stuff, but not '\xHH' hex character constants.
2697 These don't provoke an error unfortunately, instead are silently treated
2698 as 'x'. The following induces an error, until -std is added to get
2699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2700 array size at least. It's necessary to write '\x00'==0 to get something
2701 that's true only with -std. */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705 inside strings and character constants. */
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compile") 2>conftest.er1
2736 grep -v '^ *+' conftest.er1 >conftest.err
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742 { (case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_try") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_prog_cc_c89=$ac_arg
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2769 rm -f core conftest.err conftest.$ac_objext
2770 test "x$ac_cv_prog_cc_c89" != "xno" && break
2772 rm -f conftest.$ac_ext
2777 case "x$ac_cv_prog_cc_c89" in
2779 { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2782 { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2785 CC="$CC $ac_cv_prog_cc_c89"
2786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803 if test -n "$CCC"; then
2806 if test -n "$ac_tool_prefix"; then
2807 for ac_prog in clang++ llvm-g++ g++
2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CXX"; then
2817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CXX"; then
2838 { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2846 test -n "$CXX" && break
2849 if test -z "$CXX"; then
2851 for ac_prog in clang++ llvm-g++ g++
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CXX"; then
2861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_CXX="$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2890 test -n "$ac_ct_CXX" && break
2893 if test "x$ac_ct_CXX" = x; then
2896 case $cross_compiling:$ac_tool_warned in
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet. If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet. If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler --version >&5") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler -v >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -V >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026 ac_cxx_werror_flag=yes
3029 cat >conftest.$ac_ext <<_ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_cv_prog_cxx_g=yes
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_prog_cxx_g=yes
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209 CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211 if test "$GXX" = yes; then
3217 if test "$GXX" = yes; then
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3240 if test -z "$CPP"; then
3241 if test "${ac_cv_prog_CPP+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 # Double quotes because CPP needs to be expanded
3245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 for ac_c_preproc_warn_flag in '' yes
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3263 # include <limits.h>
3265 # include <assert.h>
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291 if test -z "$ac_cpp_err"; then
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 # Broken: fails on valid input.
3301 rm -f conftest.err conftest.$ac_ext
3303 # OK, works on sane cases. Now check whether nonexistent headers
3304 # can be detected and how.
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <ac_nonexistent.h>
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3335 if test -z "$ac_cpp_err"; then
3336 # Broken: success on invalid input.
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 # Passes both tests.
3347 rm -f conftest.err conftest.$ac_ext
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3367 for ac_c_preproc_warn_flag in '' yes
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3382 # include <limits.h>
3384 # include <assert.h>
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410 if test -z "$ac_cpp_err"; then
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Broken: fails on valid input.
3420 rm -f conftest.err conftest.$ac_ext
3422 # OK, works on sane cases. Now check whether nonexistent headers
3423 # can be detected and how.
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <ac_nonexistent.h>
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 if test -z "$ac_cpp_err"; then
3455 # Broken: success on invalid input.
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Passes both tests.
3466 rm -f conftest.err conftest.$ac_ext
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478 { (exit 1); exit 1; }; }
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 if test "$CXX" = "clang++" ; then
3489 { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3505 #if __has_include (<cxxabi.h>)
3508 #if __has_include (<unwind.h>)
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_try") 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest.$ac_objext'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3555 { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3566 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3567 { (exit 1); exit 1; }; }
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 if test -d ${srcdir}/projects/llvm-gcc ; then
3583 subdirs="$subdirs projects/llvm-gcc"
3587 if test -d ${srcdir}/projects/test-suite ; then
3588 subdirs="$subdirs projects/test-suite"
3592 if test -d ${srcdir}/projects/llvm-test ; then
3593 subdirs="$subdirs projects/llvm-test"
3597 if test -d ${srcdir}/projects/poolalloc ; then
3598 subdirs="$subdirs projects/poolalloc"
3602 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3603 subdirs="$subdirs projects/llvm-poolalloc"
3607 for i in `ls ${srcdir}/projects`
3609 if test -d ${srcdir}/projects/${i} ; then
3611 sample) subdirs="$subdirs projects/sample"
3613 privbracket) subdirs="$subdirs projects/privbracket"
3615 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3617 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3619 llvm-java) subdirs="$subdirs projects/llvm-java"
3621 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3623 safecode) subdirs="$subdirs projects/safecode"
3625 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3634 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3635 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3641 # Check whether --enable-polly was given.
3642 if test "${enable_polly+set}" = set; then
3643 enableval=$enable_polly;
3648 case "$enableval" in
3653 default) ENABLE_POLLY=1
3655 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3656 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3657 { (exit 1); exit 1; }; } ;;
3661 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3664 subdirs="$subdirs tools/polly"
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673 { (exit 1); exit 1; }; }
3675 { echo "$as_me:$LINENO: checking build system type" >&5
3676 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677 if test "${ac_cv_build+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 ac_build_alias=$build_alias
3681 test "x$ac_build_alias" = x &&
3682 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683 test "x$ac_build_alias" = x &&
3684 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686 { (exit 1); exit 1; }; }
3687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690 { (exit 1); exit 1; }; }
3693 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694 echo "${ECHO_T}$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698 echo "$as_me: error: invalid value of canonical build" >&2;}
3699 { (exit 1); exit 1; }; };;
3702 ac_save_IFS=$IFS; IFS='-'
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3715 { echo "$as_me:$LINENO: checking host system type" >&5
3716 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717 if test "${ac_cv_host+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 if test "x$host_alias" = x; then
3721 ac_cv_host=$ac_cv_build
3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726 { (exit 1); exit 1; }; }
3730 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731 echo "${ECHO_T}$ac_cv_host" >&6; }
3734 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735 echo "$as_me: error: invalid value of canonical host" >&2;}
3736 { (exit 1); exit 1; }; };;
3739 ac_save_IFS=$IFS; IFS='-'
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3752 { echo "$as_me:$LINENO: checking target system type" >&5
3753 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3754 if test "${ac_cv_target+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test "x$target_alias" = x; then
3758 ac_cv_target=$ac_cv_host
3760 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3761 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3762 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3763 { (exit 1); exit 1; }; }
3767 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3768 echo "${ECHO_T}$ac_cv_target" >&6; }
3769 case $ac_cv_target in
3771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3772 echo "$as_me: error: invalid value of canonical target" >&2;}
3773 { (exit 1); exit 1; }; };;
3775 target=$ac_cv_target
3776 ac_save_IFS=$IFS; IFS='-'
3782 # Remember, the first character of IFS is used to create $*,
3783 # except with old shells:
3786 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3789 # The aliases save the names the user supplied, while $host etc.
3790 # will get canonicalized.
3791 test -n "$target_alias" &&
3792 test "$program_prefix$program_suffix$program_transform_name" = \
3794 program_prefix=${target_alias}-
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3797 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3798 if test "${llvm_cv_os_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 llvm_cv_link_all_option="-Wl,--whole-archive"
3804 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805 llvm_cv_os_type="AIX"
3806 llvm_cv_platform_type="Unix" ;;
3808 llvm_cv_link_all_option="-Wl,--whole-archive"
3809 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810 llvm_cv_os_type="IRIX"
3811 llvm_cv_platform_type="Unix" ;;
3813 llvm_cv_link_all_option="-Wl,--whole-archive"
3814 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815 llvm_cv_os_type="Cygwin"
3816 llvm_cv_platform_type="Unix" ;;
3818 llvm_cv_link_all_option="-Wl,-all_load"
3819 llvm_cv_no_link_all_option="-Wl,-noall_load"
3820 llvm_cv_os_type="Darwin"
3821 llvm_cv_platform_type="Unix" ;;
3823 llvm_cv_link_all_option="-Wl,-all_load"
3824 llvm_cv_no_link_all_option="-Wl,-noall_load"
3825 llvm_cv_os_type="Minix"
3826 llvm_cv_platform_type="Unix" ;;
3827 *-*-freebsd* | *-*-kfreebsd-gnu)
3828 llvm_cv_link_all_option="-Wl,--whole-archive"
3829 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830 llvm_cv_os_type="FreeBSD"
3831 llvm_cv_platform_type="Unix" ;;
3833 llvm_cv_link_all_option="-Wl,--whole-archive"
3834 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835 llvm_cv_os_type="OpenBSD"
3836 llvm_cv_platform_type="Unix" ;;
3838 llvm_cv_link_all_option="-Wl,--whole-archive"
3839 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840 llvm_cv_os_type="NetBSD"
3841 llvm_cv_platform_type="Unix" ;;
3843 llvm_cv_link_all_option="-Wl,--whole-archive"
3844 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845 llvm_cv_os_type="DragonFly"
3846 llvm_cv_platform_type="Unix" ;;
3848 llvm_cv_link_all_option="-Wl,--whole-archive"
3849 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850 llvm_cv_os_type="HP-UX"
3851 llvm_cv_platform_type="Unix" ;;
3853 llvm_cv_link_all_option="-Wl,--whole-archive"
3854 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855 llvm_cv_os_type="Interix"
3856 llvm_cv_platform_type="Unix" ;;
3858 llvm_cv_link_all_option="-Wl,--whole-archive"
3859 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860 llvm_cv_os_type="Linux"
3861 llvm_cv_platform_type="Unix" ;;
3863 llvm_cv_link_all_option="-Wl,--whole-archive"
3864 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865 llvm_cv_os_type="GNU"
3866 llvm_cv_platform_type="Unix" ;;
3868 llvm_cv_link_all_option="-Wl,-z,allextract"
3869 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3870 llvm_cv_os_type="SunOS"
3871 llvm_cv_platform_type="Unix" ;;
3873 llvm_cv_link_all_option="-Wl,-z,allextract"
3874 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3875 llvm_cv_os_type="AuroraUX"
3876 llvm_cv_platform_type="Unix" ;;
3878 llvm_cv_link_all_option="-Wl,--whole-archive"
3879 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880 llvm_cv_os_type="Win32"
3881 llvm_cv_platform_type="Win32" ;;
3883 llvm_cv_link_all_option="-Wl,--whole-archive"
3884 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885 llvm_cv_os_type="MingW"
3886 llvm_cv_platform_type="Win32" ;;
3888 llvm_cv_link_all_option="-Wl,--whole-archive"
3889 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890 llvm_cv_os_type="Haiku"
3891 llvm_cv_platform_type="Unix" ;;
3893 llvm_cv_link_all_option="-Wl,--whole-archive"
3894 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895 llvm_cv_os_type="Freestanding"
3896 llvm_cv_platform_type="Unix" ;;
3898 llvm_cv_link_all_option="-Wl,--whole-archive"
3899 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900 llvm_cv_os_type="Freestanding"
3901 llvm_cv_platform_type="Unix" ;;
3903 llvm_cv_link_all_option=""
3904 llvm_cv_no_link_all_option=""
3905 llvm_cv_os_type="Unknown"
3906 llvm_cv_platform_type="Unknown" ;;
3909 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3910 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3912 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3913 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3914 if test "${llvm_cv_target_os_type+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 llvm_cv_target_os_type="AIX" ;;
3921 llvm_cv_target_os_type="IRIX" ;;
3923 llvm_cv_target_os_type="Cygwin" ;;
3925 llvm_cv_target_os_type="Darwin" ;;
3927 llvm_cv_target_os_type="Minix" ;;
3928 *-*-freebsd* | *-*-kfreebsd-gnu)
3929 llvm_cv_target_os_type="FreeBSD" ;;
3931 llvm_cv_target_os_type="OpenBSD" ;;
3933 llvm_cv_target_os_type="NetBSD" ;;
3935 llvm_cv_target_os_type="DragonFly" ;;
3937 llvm_cv_target_os_type="HP-UX" ;;
3939 llvm_cv_target_os_type="Interix" ;;
3941 llvm_cv_target_os_type="Linux" ;;
3943 llvm_cv_target_os_type="GNU" ;;
3945 llvm_cv_target_os_type="SunOS" ;;
3947 llvm_cv_target_os_type="AuroraUX" ;;
3949 llvm_cv_target_os_type="Win32" ;;
3951 llvm_cv_target_os_type="MingW" ;;
3953 llvm_cv_target_os_type="Haiku" ;;
3955 llvm_cv_target_os_type="RTEMS" ;;
3957 llvm_cv_target_os_type="NativeClient" ;;
3959 llvm_cv_target_os_type="Freestanding" ;;
3961 llvm_cv_target_os_type="Unknown" ;;
3964 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3965 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3967 if test "$llvm_cv_os_type" = "Unknown" ; then
3968 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3969 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3970 { (exit 1); exit 1; }; }
3975 HOST_OS=$llvm_cv_os_type
3977 TARGET_OS=$llvm_cv_target_os_type
3980 LINKALL=$llvm_cv_link_all_option
3982 NOLINKALL=$llvm_cv_no_link_all_option
3985 case $llvm_cv_platform_type in
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_UNIX 1
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_WIN32 1
4010 { echo "$as_me:$LINENO: checking target architecture" >&5
4011 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4012 if test "${llvm_cv_target_arch+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 i?86-*) llvm_cv_target_arch="x86" ;;
4017 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4018 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4019 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4020 arm*-*) llvm_cv_target_arch="ARM" ;;
4021 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4022 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4023 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4024 xcore-*) llvm_cv_target_arch="XCore" ;;
4025 msp430-*) llvm_cv_target_arch="MSP430" ;;
4026 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4027 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4028 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4029 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4030 *) llvm_cv_target_arch="Unknown" ;;
4033 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4034 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4036 if test "$llvm_cv_target_arch" = "Unknown" ; then
4037 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4038 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4041 case "$llvm_cv_target_arch" in
4042 x86) LLVM_NATIVE_ARCH="X86" ;;
4043 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4044 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4047 ARCH=$llvm_cv_target_arch
4051 i?86-*) host_arch="x86" ;;
4052 amd64-* | x86_64-*) host_arch="x86_64" ;;
4053 sparc*-*) host_arch="Sparc" ;;
4054 powerpc*-*) host_arch="PowerPC" ;;
4055 arm*-*) host_arch="ARM" ;;
4056 aarch64*-*) host_arch="AArch64" ;;
4057 mips-* | mips64-*) host_arch="Mips" ;;
4058 mipsel-* | mips64el-*) host_arch="Mips" ;;
4059 xcore-*) host_arch="XCore" ;;
4060 msp430-*) host_arch="MSP430" ;;
4061 hexagon-*) host_arch="Hexagon" ;;
4062 mblaze-*) host_arch="MBlaze" ;;
4063 s390x-*) host_arch="SystemZ" ;;
4064 *) host_arch="Unknown" ;;
4067 if test "$host_arch" = "Unknown" ; then
4068 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4069 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4072 HOST_ARCH=$host_arch
4077 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4078 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4079 if test "${ac_cv_path_GREP+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 # Extract the first word of "grep ggrep" to use in msg output
4083 if test -z "$GREP"; then
4084 set dummy grep ggrep; ac_prog_name=$2
4085 if test "${ac_cv_path_GREP+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 ac_path_GREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in grep ggrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4098 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4099 # Check for GNU ac_path_GREP and select it if it is found.
4100 # Check for GNU $ac_path_GREP
4101 case `"$ac_path_GREP" --version 2>&1` in
4103 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4106 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 echo 'GREP' >> "conftest.nl"
4113 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 ac_count=`expr $ac_count + 1`
4116 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_GREP="$ac_path_GREP"
4119 ac_path_GREP_max=$ac_count
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128 $ac_path_GREP_found && break 3
4138 GREP="$ac_cv_path_GREP"
4139 if test -z "$GREP"; then
4140 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4141 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4142 { (exit 1); exit 1; }; }
4146 ac_cv_path_GREP=$GREP
4151 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4152 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4153 GREP="$ac_cv_path_GREP"
4156 { echo "$as_me:$LINENO: checking for egrep" >&5
4157 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4158 if test "${ac_cv_path_EGREP+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4162 then ac_cv_path_EGREP="$GREP -E"
4164 # Extract the first word of "egrep" to use in msg output
4165 if test -z "$EGREP"; then
4166 set dummy egrep; ac_prog_name=$2
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 ac_path_EGREP_found=false
4171 # Loop through the user's path and test for each of PROGNAME-LIST
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176 test -z "$as_dir" && as_dir=.
4177 for ac_prog in egrep; do
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4180 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4181 # Check for GNU ac_path_EGREP and select it if it is found.
4182 # Check for GNU $ac_path_EGREP
4183 case `"$ac_path_EGREP" --version 2>&1` in
4185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4188 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4191 cat "conftest.in" "conftest.in" >"conftest.tmp"
4192 mv "conftest.tmp" "conftest.in"
4193 cp "conftest.in" "conftest.nl"
4194 echo 'EGREP' >> "conftest.nl"
4195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197 ac_count=`expr $ac_count + 1`
4198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4199 # Best one so far, save it but keep looking for a better one
4200 ac_cv_path_EGREP="$ac_path_EGREP"
4201 ac_path_EGREP_max=$ac_count
4203 # 10*(2^10) chars as input seems more than enough
4204 test $ac_count -gt 10 && break
4206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 $ac_path_EGREP_found && break 3
4220 EGREP="$ac_cv_path_EGREP"
4221 if test -z "$EGREP"; then
4222 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4223 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4224 { (exit 1); exit 1; }; }
4228 ac_cv_path_EGREP=$EGREP
4234 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4235 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4236 EGREP="$ac_cv_path_EGREP"
4239 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4240 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4241 if test "${ac_cv_header_stdc+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4263 rm -f conftest.$ac_objext
4264 if { (ac_try="$ac_compile"
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_compile") 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4278 { (case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_try") 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 ac_cv_header_stdc=yes
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 ac_cv_header_stdc=no
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 if test $ac_cv_header_stdc = yes; then
4308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319 $EGREP "memchr" >/dev/null 2>&1; then
4322 ac_cv_header_stdc=no
4328 if test $ac_cv_header_stdc = yes; then
4329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340 $EGREP "free" >/dev/null 2>&1; then
4343 ac_cv_header_stdc=no
4349 if test $ac_cv_header_stdc = yes; then
4350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4351 if test "$cross_compiling" = yes; then
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4362 #if ((' ' & 0x0FF) == 0x020)
4363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4366 # define ISLOWER(c) \
4367 (('a' <= (c) && (c) <= 'i') \
4368 || ('j' <= (c) && (c) <= 'r') \
4369 || ('s' <= (c) && (c) <= 'z'))
4370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4378 for (i = 0; i < 256; i++)
4379 if (XOR (islower (i), ISLOWER (i))
4380 || toupper (i) != TOUPPER (i))
4385 rm -f conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_link") 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396 { (case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_try") 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4407 echo "$as_me: program exited with status $ac_status" >&5
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4412 ac_cv_header_stdc=no
4414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4420 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4421 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4422 if test $ac_cv_header_stdc = yes; then
4424 cat >>confdefs.h <<\_ACEOF
4425 #define STDC_HEADERS 1
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441 inttypes.h stdint.h unistd.h
4443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 $ac_includes_default
4457 #include <$ac_header>
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_compile") 2>conftest.er1
4468 grep -v '^ *+' conftest.er1 >conftest.err
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } &&
4473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4474 { (case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_try") 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 eval "$as_ac_Header=yes"
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 eval "$as_ac_Header=no"
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_res=`eval echo '${'$as_ac_Header'}'`
4504 { echo "$as_me:$LINENO: result: $ac_res" >&5
4505 echo "${ECHO_T}$ac_res" >&6; }
4506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507 cat >>confdefs.h <<_ACEOF
4508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4516 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4517 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4518 if test "${ac_cv_c_bigendian+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 # See if sys/param.h defines the BYTE_ORDER macro.
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 #include <sys/types.h>
4529 #include <sys/param.h>
4534 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4542 rm -f conftest.$ac_objext
4543 if { (ac_try="$ac_compile"
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_compile") 2>conftest.er1
4551 grep -v '^ *+' conftest.er1 >conftest.err
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4566 { ac_try='test -s conftest.$ac_objext'
4567 { (case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_try") 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 # It does; now see whether it defined to BIG_ENDIAN or not.
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 #include <sys/param.h>
4589 #if BYTE_ORDER != BIG_ENDIAN
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_compile") 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4612 { (case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_try") 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_try") 2>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_cv_c_bigendian=yes
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_cv_c_bigendian=no
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4644 # It does not; compile a test program.
4645 if test "$cross_compiling" = yes; then
4646 # try to guess the endianness by grepping values into an object file
4647 ac_cv_c_bigendian=unknown
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4655 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4656 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4657 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4658 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4659 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4663 _ascii (); _ebcdic ();
4668 rm -f conftest.$ac_objext
4669 if { (ac_try="$ac_compile"
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_compile") 2>conftest.er1
4677 grep -v '^ *+' conftest.er1 >conftest.err
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4683 { (case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_try") 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try='test -s conftest.$ac_objext'
4693 { (case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_try") 2>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4703 ac_cv_c_bigendian=yes
4705 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4706 if test "$ac_cv_c_bigendian" = unknown; then
4707 ac_cv_c_bigendian=no
4709 # finding both strings is unlikely to happen, but who knows?
4710 ac_cv_c_bigendian=unknown
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4733 /* Are we little or big endian? From Harbison&Steele. */
4737 char c[sizeof (long int)];
4740 return u.c[sizeof (long int) - 1] == 1;
4746 rm -f conftest$ac_exeext
4747 if { (ac_try="$ac_link"
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_link") 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4757 { (case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_try") 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 ac_cv_c_bigendian=no
4768 echo "$as_me: program exited with status $ac_status" >&5
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4773 ac_cv_c_bigendian=yes
4775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4784 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4785 case $ac_cv_c_bigendian in
4793 { { echo "$as_me:$LINENO: error: unknown endianness
4794 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4795 echo "$as_me: error: unknown endianness
4796 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4797 { (exit 1); exit 1; }; } ;;
4801 if test "$cross_compiling" = yes; then
4802 LLVM_CROSS_COMPILING=1
4805 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4806 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4807 if test "${ac_cv_build_exeext+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4811 ac_cv_build_exeext=.exe
4813 ac_build_prefix=${build_alias}-
4815 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4816 set dummy ${ac_build_prefix}gcc; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$BUILD_CC"; then
4823 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 BUILD_CC=$ac_cv_prog_BUILD_CC
4843 if test -n "$BUILD_CC"; then
4844 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4845 echo "${ECHO_T}$BUILD_CC" >&6; }
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4852 if test -z "$BUILD_CC"; then
4853 # Extract the first word of "gcc", so it can be a program name with args.
4854 set dummy gcc; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$BUILD_CC"; then
4861 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_BUILD_CC="gcc"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 BUILD_CC=$ac_cv_prog_BUILD_CC
4881 if test -n "$BUILD_CC"; then
4882 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4883 echo "${ECHO_T}$BUILD_CC" >&6; }
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 if test -z "$BUILD_CC"; then
4891 # Extract the first word of "cc", so it can be a program name with args.
4892 set dummy cc; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 if test -n "$BUILD_CC"; then
4899 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4910 ac_prog_rejected=yes
4913 ac_cv_prog_BUILD_CC="cc"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 if test $ac_prog_rejected = yes; then
4922 # We found a bogon in the path, so make sure we never use it.
4923 set dummy $ac_cv_prog_BUILD_CC
4925 if test $# != 0; then
4926 # We chose a different compiler from the bogus one.
4927 # However, it has the same basename, so the bogon will be chosen
4928 # first if we set BUILD_CC to just the basename; use the full file name.
4930 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4935 BUILD_CC=$ac_cv_prog_BUILD_CC
4936 if test -n "$BUILD_CC"; then
4937 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4938 echo "${ECHO_T}$BUILD_CC" >&6; }
4940 { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4947 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4948 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4949 { (exit 1); exit 1; }; }
4950 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4952 echo 'int main () { return 0; }' > conftest.$ac_ext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4955 (eval $ac_build_link) 2>&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; then
4959 for file in conftest.*; do
4961 *.c | *.o | *.obj | *.dSYM) ;;
4962 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4966 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4967 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4968 { (exit 1); exit 1; }; }
4971 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4976 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4977 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4978 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4979 ac_build_exeext=$BUILD_EXEEXT
4981 ac_build_prefix=${build_alias}-
4982 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4983 set dummy ${ac_build_prefix}g++; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 if test -n "$BUILD_CXX"; then
4990 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5010 if test -n "$BUILD_CXX"; then
5011 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5012 echo "${ECHO_T}$BUILD_CXX" >&6; }
5014 { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5019 if test -z "$BUILD_CXX"; then
5020 # Extract the first word of "g++", so it can be a program name with args.
5021 set dummy g++; ac_word=$2
5022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 if test -n "$BUILD_CXX"; then
5028 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_BUILD_CXX="g++"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5048 if test -n "$BUILD_CXX"; then
5049 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5050 echo "${ECHO_T}$BUILD_CXX" >&6; }
5052 { echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6; }
5057 if test -z "$BUILD_CXX"; then
5058 # Extract the first word of "c++", so it can be a program name with args.
5059 set dummy c++; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 if test -n "$BUILD_CXX"; then
5066 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5077 ac_prog_rejected=yes
5080 ac_cv_prog_BUILD_CXX="c++"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 if test $ac_prog_rejected = yes; then
5089 # We found a bogon in the path, so make sure we never use it.
5090 set dummy $ac_cv_prog_BUILD_CXX
5092 if test $# != 0; then
5093 # We chose a different compiler from the bogus one.
5094 # However, it has the same basename, so the bogon will be chosen
5095 # first if we set BUILD_CXX to just the basename; use the full file name.
5097 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5102 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5103 if test -n "$BUILD_CXX"; then
5104 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5105 echo "${ECHO_T}$BUILD_CXX" >&6; }
5107 { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5115 LLVM_CROSS_COMPILING=0
5119 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5130 # Check whether --enable-libcpp was given.
5131 if test "${enable_libcpp+set}" = set; then
5132 enableval=$enable_libcpp;
5137 case "$enableval" in
5138 yes) ENABLE_LIBCPP=1
5142 default) ENABLE_LIBCPP=0
5144 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5145 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5146 { (exit 1); exit 1; }; } ;;
5149 # Check whether --enable-cxx11 was given.
5150 if test "${enable_cxx11+set}" = set; then
5151 enableval=$enable_cxx11;
5156 case "$enableval" in
5161 default) ENABLE_CXX11=0
5163 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5164 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5165 { (exit 1); exit 1; }; } ;;
5169 # Check whether --enable-clang-arcmt was given.
5170 if test "${enable_clang_arcmt+set}" = set; then
5171 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5176 case "$enableval" in
5177 yes) ENABLE_CLANG_ARCMT=1
5179 no) ENABLE_CLANG_ARCMT=0
5181 default) ENABLE_CLANG_ARCMT=1
5183 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5185 { (exit 1); exit 1; }; } ;;
5188 clang_static_analyzer="yes"
5189 # Check whether --enable-clang-static-analyzer was given.
5190 if test "${enable_clang_static_analyzer+set}" = set; then
5191 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5196 case "$enableval" in
5197 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5199 no) ENABLE_CLANG_STATIC_ANALYZER=0
5201 default) ENABLE_CLANG_STATIC_ANALYZER=1
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 # Check whether --enable-clang-rewriter was given.
5209 if test "${enable_clang_rewriter+set}" = set; then
5210 enableval=$enable_clang_rewriter;
5215 case "$enableval" in
5216 yes) ENABLE_CLANG_REWRITER=1
5219 if test ${clang_arcmt} != "no" ; then
5220 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5221 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5222 { (exit 1); exit 1; }; }
5224 if test ${clang_static_analyzer} != "no" ; then
5225 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5226 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5227 { (exit 1); exit 1; }; }
5229 ENABLE_CLANG_REWRITER=0
5232 default) ENABLE_CLANG_REWRITER=1
5234 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5236 { (exit 1); exit 1; }; } ;;
5239 # Check whether --enable-optimized was given.
5240 if test "${enable_optimized+set}" = set; then
5241 enableval=$enable_optimized;
5246 if test ${enableval} = "no" ; then
5250 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5254 # Check whether --enable-profiling was given.
5255 if test "${enable_profiling+set}" = set; then
5256 enableval=$enable_profiling;
5261 if test ${enableval} = "no" ; then
5265 ENABLE_PROFILING=ENABLE_PROFILING=1
5269 # Check whether --enable-assertions was given.
5270 if test "${enable_assertions+set}" = set; then
5271 enableval=$enable_assertions;
5276 if test ${enableval} = "yes" ; then
5280 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5284 # Check whether --enable-werror was given.
5285 if test "${enable_werror+set}" = set; then
5286 enableval=$enable_werror;
5291 case "$enableval" in
5292 yes) ENABLE_WERROR=1
5296 default) ENABLE_WERROR=0
5298 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5300 { (exit 1); exit 1; }; } ;;
5303 # Check whether --enable-expensive-checks was given.
5304 if test "${enable_expensive_checks+set}" = set; then
5305 enableval=$enable_expensive_checks;
5310 if test ${enableval} = "yes" ; then
5311 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5313 EXPENSIVE_CHECKS=yes
5316 ENABLE_EXPENSIVE_CHECKS=
5322 # Check whether --enable-debug-runtime was given.
5323 if test "${enable_debug_runtime+set}" = set; then
5324 enableval=$enable_debug_runtime;
5329 if test ${enableval} = "no" ; then
5333 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5337 # Check whether --enable-debug-symbols was given.
5338 if test "${enable_debug_symbols+set}" = set; then
5339 enableval=$enable_debug_symbols;
5344 if test ${enableval} = "no" ; then
5348 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5352 # Check whether --enable-keep-symbols was given.
5353 if test "${enable_keep_symbols+set}" = set; then
5354 enableval=$enable_keep_symbols;
5359 if test ${enableval} = "no" ; then
5363 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5367 # Check whether --enable-jit was given.
5368 if test "${enable_jit+set}" = set; then
5369 enableval=$enable_jit;
5374 if test ${enableval} = "no"
5379 case "$llvm_cv_target_arch" in
5380 x86) TARGET_HAS_JIT=1
5382 Sparc) TARGET_HAS_JIT=0
5384 PowerPC) TARGET_HAS_JIT=1
5386 x86_64) TARGET_HAS_JIT=1
5388 ARM) TARGET_HAS_JIT=1
5390 AArch64) TARGET_HAS_JIT=0
5392 Mips) TARGET_HAS_JIT=1
5394 XCore) TARGET_HAS_JIT=0
5396 MSP430) TARGET_HAS_JIT=0
5398 Hexagon) TARGET_HAS_JIT=0
5400 MBlaze) TARGET_HAS_JIT=0
5402 NVPTX) TARGET_HAS_JIT=0
5404 SystemZ) TARGET_HAS_JIT=1
5411 # Check whether --enable-docs was given.
5412 if test "${enable_docs+set}" = set; then
5413 enableval=$enable_docs;
5418 case "$enableval" in
5423 default) ENABLE_DOCS=1
5425 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5426 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5427 { (exit 1); exit 1; }; } ;;
5430 # Check whether --enable-doxygen was given.
5431 if test "${enable_doxygen+set}" = set; then
5432 enableval=$enable_doxygen;
5437 case "$enableval" in
5438 yes) ENABLE_DOXYGEN=1
5440 no) ENABLE_DOXYGEN=0
5442 default) ENABLE_DOXYGEN=0
5444 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5445 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5446 { (exit 1); exit 1; }; } ;;
5449 # Check whether --enable-threads was given.
5450 if test "${enable_threads+set}" = set; then
5451 enableval=$enable_threads;
5456 case "$enableval" in
5457 yes) LLVM_ENABLE_THREADS=1
5459 no) LLVM_ENABLE_THREADS=0
5461 default) LLVM_ENABLE_THREADS=1
5463 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5464 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5465 { (exit 1); exit 1; }; } ;;
5468 cat >>confdefs.h <<_ACEOF
5469 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5473 # Check whether --enable-pthreads was given.
5474 if test "${enable_pthreads+set}" = set; then
5475 enableval=$enable_pthreads;
5480 case "$enableval" in
5481 yes) ENABLE_PTHREADS=1
5483 no) ENABLE_PTHREADS=0
5485 default) ENABLE_PTHREADS=1
5487 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5488 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5489 { (exit 1); exit 1; }; } ;;
5492 # Check whether --enable-zlib was given.
5493 if test "${enable_zlib+set}" = set; then
5494 enableval=$enable_zlib;
5499 case "$enableval" in
5500 yes) LLVM_ENABLE_ZLIB=1
5502 no) LLVM_ENABLE_ZLIB=0
5504 default) LLVM_ENABLE_ZLIB=1
5506 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5507 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5508 { (exit 1); exit 1; }; } ;;
5511 cat >>confdefs.h <<_ACEOF
5512 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5516 # Check whether --enable-pic was given.
5517 if test "${enable_pic+set}" = set; then
5518 enableval=$enable_pic;
5523 case "$enableval" in
5528 default) ENABLE_PIC=1
5530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5532 { (exit 1); exit 1; }; } ;;
5535 cat >>confdefs.h <<_ACEOF
5536 #define ENABLE_PIC $ENABLE_PIC
5540 # Check whether --enable-shared was given.
5541 if test "${enable_shared+set}" = set; then
5542 enableval=$enable_shared;
5547 case "$enableval" in
5548 yes) ENABLE_SHARED=1
5552 default) ENABLE_SHARED=0
5554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5556 { (exit 1); exit 1; }; } ;;
5559 # Check whether --enable-embed-stdcxx was given.
5560 if test "${enable_embed_stdcxx+set}" = set; then
5561 enableval=$enable_embed_stdcxx;
5566 case "$enableval" in
5567 yes) ENABLE_EMBED_STDCXX=1
5569 no) ENABLE_EMBED_STDCXX=0
5571 default) ENABLE_EMBED_STDCXX=0
5573 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5574 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5575 { (exit 1); exit 1; }; } ;;
5578 # Check whether --enable-timestamps was given.
5579 if test "${enable_timestamps+set}" = set; then
5580 enableval=$enable_timestamps;
5585 case "$enableval" in
5586 yes) ENABLE_TIMESTAMPS=1
5588 no) ENABLE_TIMESTAMPS=0
5590 default) ENABLE_TIMESTAMPS=1
5592 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5593 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5594 { (exit 1); exit 1; }; } ;;
5597 cat >>confdefs.h <<_ACEOF
5598 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5603 # Check whether --enable-backtraces was given.
5604 if test "${enable_backtraces+set}" = set; then
5605 enableval=$enable_backtraces;
5610 case "$enableval" in
5611 yes) ENABLE_BACKTRACES=1
5613 no) ENABLE_BACKTRACES=0
5615 default) ENABLE_BACKTRACES=1
5617 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5618 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5619 { (exit 1); exit 1; }; } ;;
5622 cat >>confdefs.h <<_ACEOF
5623 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5628 # Check whether --enable-targets was given.
5629 if test "${enable_targets+set}" = set; then
5630 enableval=$enable_targets;
5635 if test "$enableval" = host-only ; then
5638 case "$enableval" in
5639 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5640 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5642 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5643 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5644 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5645 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5646 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5647 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5648 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5649 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5652 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5653 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5654 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5655 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5656 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5657 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5658 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5659 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5660 host) case "$llvm_cv_target_arch" in
5661 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5662 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5663 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5664 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5665 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5666 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5667 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5668 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5669 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5670 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5671 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5672 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5673 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5674 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5675 echo "$as_me: error: Can not set target to build" >&2;}
5676 { (exit 1); exit 1; }; } ;;
5678 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5679 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5680 { (exit 1); exit 1; }; } ;;
5686 # Check whether --enable-experimental-targets was given.
5687 if test "${enable_experimental_targets+set}" = set; then
5688 enableval=$enable_experimental_targets;
5694 if test ${enableval} != "disable"
5696 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5699 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5702 for a_target in $TARGETS_TO_BUILD; do
5703 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5705 cat >>confdefs.h <<_ACEOF
5706 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5709 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5710 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5711 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5712 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5713 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5714 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5716 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5717 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5730 cat >>confdefs.h <<_ACEOF
5731 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5739 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5746 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5756 LLVM_ENUM_TARGETS=""
5757 LLVM_ENUM_ASM_PRINTERS=""
5758 LLVM_ENUM_ASM_PARSERS=""
5759 LLVM_ENUM_DISASSEMBLERS=""
5760 for target_to_build in $TARGETS_TO_BUILD; do
5761 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5762 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5763 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5765 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5766 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5768 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5769 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5778 # Check whether --with-optimize-option was given.
5779 if test "${with_optimize_option+set}" = set; then
5780 withval=$with_optimize_option;
5785 { echo "$as_me:$LINENO: checking optimization flags" >&5
5786 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5789 case "$llvm_cv_os_type" in
5790 FreeBSD) optimize_option=-O2 ;;
5791 MingW) optimize_option=-O2 ;;
5792 *) optimize_option=-O3 ;;
5794 *) optimize_option="$withval" ;;
5796 OPTIMIZE_OPTION=$optimize_option
5798 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5799 echo "${ECHO_T}$optimize_option" >&6; }
5802 # Check whether --with-extra-options was given.
5803 if test "${with_extra_options+set}" = set; then
5804 withval=$with_extra_options;
5810 default) EXTRA_OPTIONS= ;;
5811 *) EXTRA_OPTIONS=$withval ;;
5813 EXTRA_OPTIONS=$EXTRA_OPTIONS
5817 # Check whether --with-extra-ld-options was given.
5818 if test "${with_extra_ld_options+set}" = set; then
5819 withval=$with_extra_ld_options;
5825 default) EXTRA_LD_OPTIONS= ;;
5826 *) EXTRA_LD_OPTIONS=$withval ;;
5828 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5831 # Check whether --enable-bindings was given.
5832 if test "${enable_bindings+set}" = set; then
5833 enableval=$enable_bindings;
5838 BINDINGS_TO_BUILD=""
5839 case "$enableval" in
5840 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5841 all ) BINDINGS_TO_BUILD="ocaml" ;;
5842 none | no) BINDINGS_TO_BUILD="" ;;
5843 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5844 case "$a_binding" in
5845 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5846 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5847 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5848 { (exit 1); exit 1; }; } ;;
5855 # Check whether --with-ocaml-libdir was given.
5856 if test "${with_ocaml_libdir+set}" = set; then
5857 withval=$with_ocaml_libdir;
5863 auto) with_ocaml_libdir="$withval" ;;
5864 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5865 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5866 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5867 { (exit 1); exit 1; }; } ;;
5871 # Check whether --with-clang-srcdir was given.
5872 if test "${with_clang_srcdir+set}" = set; then
5873 withval=$with_clang_srcdir;
5879 -) clang_src_root="" ;;
5880 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5881 *) clang_src_root="$ac_pwd/$withval" ;;
5883 CLANG_SRC_ROOT=$clang_src_root
5887 # Check whether --with-clang-resource-dir was given.
5888 if test "${with_clang_resource_dir+set}" = set; then
5889 withval=$with_clang_resource_dir;
5895 cat >>confdefs.h <<_ACEOF
5896 #define CLANG_RESOURCE_DIR "$withval"
5901 # Check whether --with-c-include-dirs was given.
5902 if test "${with_c_include_dirs+set}" = set; then
5903 withval=$with_c_include_dirs;
5909 cat >>confdefs.h <<_ACEOF
5910 #define C_INCLUDE_DIRS "$withval"
5914 # Clang normally uses the system c++ headers and libraries. With this option,
5915 # clang will use the ones provided by a gcc installation instead. This option should
5916 # be passed the same value that was used with --prefix when configuring gcc.
5918 # Check whether --with-gcc-toolchain was given.
5919 if test "${with_gcc_toolchain+set}" = set; then
5920 withval=$with_gcc_toolchain;
5926 cat >>confdefs.h <<_ACEOF
5927 #define GCC_INSTALL_PREFIX "$withval"
5932 # Check whether --with-default-sysroot was given.
5933 if test "${with_default_sysroot+set}" = set; then
5934 withval=$with_default_sysroot;
5940 cat >>confdefs.h <<_ACEOF
5941 #define DEFAULT_SYSROOT "$withval"
5946 # Check whether --with-binutils-include was given.
5947 if test "${with_binutils_include+set}" = set; then
5948 withval=$with_binutils_include;
5954 default) WITH_BINUTILS_INCDIR=default ;;
5955 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5956 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5957 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5958 { (exit 1); exit 1; }; } ;;
5960 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5961 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5963 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5964 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5965 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5966 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5967 { (exit 1); exit 1; }; };
5972 # Check whether --with-bug-report-url was given.
5973 if test "${with_bug_report_url+set}" = set; then
5974 withval=$with_bug_report_url;
5976 withval="http://llvm.org/bugs/"
5980 cat >>confdefs.h <<_ACEOF
5981 #define BUG_REPORT_URL "$withval"
5985 # Check whether --enable-libffi was given.
5986 if test "${enable_libffi+set}" = set; then
5987 enableval=$enable_libffi; case "$enableval" in
5988 yes) llvm_cv_enable_libffi="yes" ;;
5989 no) llvm_cv_enable_libffi="no" ;;
5990 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5991 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5992 { (exit 1); exit 1; }; } ;;
5995 llvm_cv_enable_libffi=no
6000 # Check whether --with-internal-prefix was given.
6001 if test "${with_internal_prefix+set}" = set; then
6002 withval=$with_internal_prefix;
6007 INTERNAL_PREFIX=$withval
6011 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6012 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6013 if test "${lt_cv_path_NM+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 if test -n "$NM"; then
6017 # Let the user override the test.
6020 lt_nm_to_check="${ac_tool_prefix}nm"
6021 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6022 lt_nm_to_check="$lt_nm_to_check nm"
6024 for lt_tmp_nm in $lt_nm_to_check; do
6025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6026 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6028 test -z "$ac_dir" && ac_dir=.
6029 tmp_nm="$ac_dir/$lt_tmp_nm"
6030 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6031 # Check to see if the nm accepts a BSD-compat flag.
6032 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6033 # nm: unknown option "B" ignored
6034 # Tru64's nm complains that /dev/null is an invalid object file
6035 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6036 */dev/null* | *'Invalid file or object type'*)
6037 lt_cv_path_NM="$tmp_nm -B"
6041 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6043 lt_cv_path_NM="$tmp_nm -p"
6047 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6048 continue # so that we can try to find one that supports BSD flags
6057 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6060 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6061 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6066 { echo "$as_me:$LINENO: checking for GNU make" >&5
6067 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6068 if test "${llvm_cv_gnu_make_command+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 llvm_cv_gnu_make_command=''
6072 for a in "$MAKE" make gmake gnumake ; do
6073 if test -z "$a" ; then continue ; fi ;
6074 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6076 llvm_cv_gnu_make_command=$a ;
6081 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6082 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6083 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6087 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6088 echo "${ECHO_T}\"Not found\"" >&6; };
6092 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6093 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6095 if test "$LN_S" = "ln -s"; then
6096 { echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6; }
6099 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6100 echo "${ECHO_T}no, using $LN_S" >&6; }
6103 # Extract the first word of "cmp", so it can be a program name with args.
6104 set dummy cmp; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_path_CMP+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6135 if test -n "$CMP"; then
6136 { echo "$as_me:$LINENO: result: $CMP" >&5
6137 echo "${ECHO_T}$CMP" >&6; }
6139 { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6144 # Extract the first word of "cp", so it can be a program name with args.
6145 set dummy cp; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_path_CP+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6176 if test -n "$CP"; then
6177 { echo "$as_me:$LINENO: result: $CP" >&5
6178 echo "${ECHO_T}$CP" >&6; }
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6185 # Extract the first word of "date", so it can be a program name with args.
6186 set dummy date; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_DATE+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6216 DATE=$ac_cv_path_DATE
6217 if test -n "$DATE"; then
6218 { echo "$as_me:$LINENO: result: $DATE" >&5
6219 echo "${ECHO_T}$DATE" >&6; }
6221 { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6226 # Extract the first word of "find", so it can be a program name with args.
6227 set dummy find; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_path_FIND+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6257 FIND=$ac_cv_path_FIND
6258 if test -n "$FIND"; then
6259 { echo "$as_me:$LINENO: result: $FIND" >&5
6260 echo "${ECHO_T}$FIND" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6267 # Extract the first word of "grep", so it can be a program name with args.
6268 set dummy grep; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_GREP+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6298 GREP=$ac_cv_path_GREP
6299 if test -n "$GREP"; then
6300 { echo "$as_me:$LINENO: result: $GREP" >&5
6301 echo "${ECHO_T}$GREP" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 # Extract the first word of "mkdir", so it can be a program name with args.
6309 set dummy mkdir; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_path_MKDIR+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6339 MKDIR=$ac_cv_path_MKDIR
6340 if test -n "$MKDIR"; then
6341 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6342 echo "${ECHO_T}$MKDIR" >&6; }
6344 { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6349 # Extract the first word of "mv", so it can be a program name with args.
6350 set dummy mv; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_path_MV+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6381 if test -n "$MV"; then
6382 { echo "$as_me:$LINENO: result: $MV" >&5
6383 echo "${ECHO_T}$MV" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6390 if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_RANLIB+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 if test -n "$RANLIB"; then
6399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 RANLIB=$ac_cv_prog_RANLIB
6419 if test -n "$RANLIB"; then
6420 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6421 echo "${ECHO_T}$RANLIB" >&6; }
6423 { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6429 if test -z "$ac_cv_prog_RANLIB"; then
6430 ac_ct_RANLIB=$RANLIB
6431 # Extract the first word of "ranlib", so it can be a program name with args.
6432 set dummy ranlib; ac_word=$2
6433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 if test -n "$ac_ct_RANLIB"; then
6439 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_prog_ac_ct_RANLIB="ranlib"
6449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6459 if test -n "$ac_ct_RANLIB"; then
6460 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6461 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6463 { echo "$as_me:$LINENO: result: no" >&5
6464 echo "${ECHO_T}no" >&6; }
6467 if test "x$ac_ct_RANLIB" = x; then
6470 case $cross_compiling:$ac_tool_warned in
6472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6473 whose name does not start with the host triplet. If you think this
6474 configuration is useful to you, please write to autoconf@gnu.org." >&5
6475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6476 whose name does not start with the host triplet. If you think this
6477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6478 ac_tool_warned=yes ;;
6480 RANLIB=$ac_ct_RANLIB
6483 RANLIB="$ac_cv_prog_RANLIB"
6486 if test -n "$ac_tool_prefix"; then
6487 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}ar; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_AR+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 if test -n "$AR"; then
6495 ac_cv_prog_AR="$AR" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_AR="${ac_tool_prefix}ar"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 if test -n "$AR"; then
6516 { echo "$as_me:$LINENO: result: $AR" >&5
6517 echo "${ECHO_T}$AR" >&6; }
6519 { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6525 if test -z "$ac_cv_prog_AR"; then
6527 # Extract the first word of "ar", so it can be a program name with args.
6528 set dummy ar; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 if test -n "$ac_ct_AR"; then
6535 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_prog_ac_ct_AR="ar"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6555 if test -n "$ac_ct_AR"; then
6556 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6557 echo "${ECHO_T}$ac_ct_AR" >&6; }
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6563 if test "x$ac_ct_AR" = x; then
6566 case $cross_compiling:$ac_tool_warned in
6568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6569 whose name does not start with the host triplet. If you think this
6570 configuration is useful to you, please write to autoconf@gnu.org." >&5
6571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6572 whose name does not start with the host triplet. If you think this
6573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6574 ac_tool_warned=yes ;;
6582 # Extract the first word of "rm", so it can be a program name with args.
6583 set dummy rm; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_RM+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6614 if test -n "$RM"; then
6615 { echo "$as_me:$LINENO: result: $RM" >&5
6616 echo "${ECHO_T}$RM" >&6; }
6618 { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6623 # Extract the first word of "sed", so it can be a program name with args.
6624 set dummy sed; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_SED+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6655 if test -n "$SED"; then
6656 { echo "$as_me:$LINENO: result: $SED" >&5
6657 echo "${ECHO_T}$SED" >&6; }
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6664 # Extract the first word of "tar", so it can be a program name with args.
6665 set dummy tar; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_TAR+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6696 if test -n "$TAR"; then
6697 { echo "$as_me:$LINENO: result: $TAR" >&5
6698 echo "${ECHO_T}$TAR" >&6; }
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6705 # Extract the first word of "pwd", so it can be a program name with args.
6706 set dummy pwd; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_BINPWD+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6736 BINPWD=$ac_cv_path_BINPWD
6737 if test -n "$BINPWD"; then
6738 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6739 echo "${ECHO_T}$BINPWD" >&6; }
6741 { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6747 # Extract the first word of "Graphviz", so it can be a program name with args.
6748 set dummy Graphviz; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6778 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6779 if test -n "$GRAPHVIZ"; then
6780 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6781 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6790 cat >>confdefs.h <<\_ACEOF
6791 #define HAVE_GRAPHVIZ 1
6794 if test "$llvm_cv_os_type" = "MingW" ; then
6795 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6798 cat >>confdefs.h <<_ACEOF
6799 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6803 # Extract the first word of "dot", so it can be a program name with args.
6804 set dummy dot; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_DOT+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6835 if test -n "$DOT"; then
6836 { echo "$as_me:$LINENO: result: $DOT" >&5
6837 echo "${ECHO_T}$DOT" >&6; }
6839 { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6844 if test "$DOT" != "echo dot" ; then
6846 cat >>confdefs.h <<\_ACEOF
6850 if test "$llvm_cv_os_type" = "MingW" ; then
6851 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6854 cat >>confdefs.h <<_ACEOF
6855 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6859 # Extract the first word of "fdp", so it can be a program name with args.
6860 set dummy fdp; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_path_FDP+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6891 if test -n "$FDP"; then
6892 { echo "$as_me:$LINENO: result: $FDP" >&5
6893 echo "${ECHO_T}$FDP" >&6; }
6895 { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6900 if test "$FDP" != "echo fdp" ; then
6902 cat >>confdefs.h <<\_ACEOF
6906 if test "$llvm_cv_os_type" = "MingW" ; then
6907 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6910 cat >>confdefs.h <<_ACEOF
6911 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6915 # Extract the first word of "neato", so it can be a program name with args.
6916 set dummy neato; ac_word=$2
6917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6919 if test "${ac_cv_path_NEATO+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6946 NEATO=$ac_cv_path_NEATO
6947 if test -n "$NEATO"; then
6948 { echo "$as_me:$LINENO: result: $NEATO" >&5
6949 echo "${ECHO_T}$NEATO" >&6; }
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6956 if test "$NEATO" != "echo neato" ; then
6958 cat >>confdefs.h <<\_ACEOF
6959 #define HAVE_NEATO 1
6962 if test "$llvm_cv_os_type" = "MingW" ; then
6963 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6966 cat >>confdefs.h <<_ACEOF
6967 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6971 # Extract the first word of "twopi", so it can be a program name with args.
6972 set dummy twopi; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_TWOPI+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7002 TWOPI=$ac_cv_path_TWOPI
7003 if test -n "$TWOPI"; then
7004 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7005 echo "${ECHO_T}$TWOPI" >&6; }
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7012 if test "$TWOPI" != "echo twopi" ; then
7014 cat >>confdefs.h <<\_ACEOF
7015 #define HAVE_TWOPI 1
7018 if test "$llvm_cv_os_type" = "MingW" ; then
7019 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7022 cat >>confdefs.h <<_ACEOF
7023 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7027 # Extract the first word of "circo", so it can be a program name with args.
7028 set dummy circo; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_path_CIRCO+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7058 CIRCO=$ac_cv_path_CIRCO
7059 if test -n "$CIRCO"; then
7060 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7061 echo "${ECHO_T}$CIRCO" >&6; }
7063 { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7068 if test "$CIRCO" != "echo circo" ; then
7070 cat >>confdefs.h <<\_ACEOF
7071 #define HAVE_CIRCO 1
7074 if test "$llvm_cv_os_type" = "MingW" ; then
7075 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7078 cat >>confdefs.h <<_ACEOF
7079 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7083 for ac_prog in gv gsview32
7085 # Extract the first word of "$ac_prog", so it can be a program name with args.
7086 set dummy $ac_prog; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_GV+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 if test -n "$GV"; then
7117 { echo "$as_me:$LINENO: result: $GV" >&5
7118 echo "${ECHO_T}$GV" >&6; }
7120 { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7125 test -n "$GV" && break
7127 test -n "$GV" || GV="echo gv"
7129 if test "$GV" != "echo gv" ; then
7131 cat >>confdefs.h <<\_ACEOF
7135 if test "$llvm_cv_os_type" = "MingW" ; then
7136 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7139 cat >>confdefs.h <<_ACEOF
7140 #define LLVM_PATH_GV "$GV${EXEEXT}"
7144 # Extract the first word of "dotty", so it can be a program name with args.
7145 set dummy dotty; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_DOTTY+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7175 DOTTY=$ac_cv_path_DOTTY
7176 if test -n "$DOTTY"; then
7177 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7178 echo "${ECHO_T}$DOTTY" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 if test "$DOTTY" != "echo dotty" ; then
7187 cat >>confdefs.h <<\_ACEOF
7188 #define HAVE_DOTTY 1
7191 if test "$llvm_cv_os_type" = "MingW" ; then
7192 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7195 cat >>confdefs.h <<_ACEOF
7196 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7200 # Extract the first word of "xdot.py", so it can be a program name with args.
7201 set dummy xdot.py; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7231 XDOT_PY=$ac_cv_path_XDOT_PY
7232 if test -n "$XDOT_PY"; then
7233 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7234 echo "${ECHO_T}$XDOT_PY" >&6; }
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7241 if test "$XDOT_PY" != "echo xdot.py" ; then
7243 cat >>confdefs.h <<\_ACEOF
7244 #define HAVE_XDOT_PY 1
7247 if test "$llvm_cv_os_type" = "MingW" ; then
7248 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7251 cat >>confdefs.h <<_ACEOF
7252 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7257 # Find a good install program. We prefer a C program (faster),
7258 # so one script is as good as another. But avoid the broken or
7259 # incompatible versions:
7260 # SysV /etc/install, /usr/sbin/install
7261 # SunOS /usr/etc/install
7262 # IRIX /sbin/install
7264 # AmigaOS /C/install, which installs bootblocks on floppy discs
7265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7268 # OS/2's system install, which has a completely different semantic
7269 # ./install, which can be erroneously created by make from ./install.sh.
7270 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7272 if test -z "$INSTALL"; then
7273 if test "${ac_cv_path_install+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir=.
7281 # Account for people who put trailing slashes in PATH elements.
7283 ./ | .// | /cC/* | \
7284 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7285 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7288 # OSF1 and SCO ODT 3.0 have their own names for install.
7289 # Don't use installbsd from OSF since it installs stuff as root
7291 for ac_prog in ginstall scoinst install; do
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7294 if test $ac_prog = install &&
7295 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7296 # AIX install. It has an incompatible calling convention.
7298 elif test $ac_prog = install &&
7299 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7300 # program-specific install script used by HP pwplus--don't use.
7303 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7316 if test "${ac_cv_path_install+set}" = set; then
7317 INSTALL=$ac_cv_path_install
7319 # As a last resort, use the slow shell script. Don't cache a
7320 # value for INSTALL within a source directory, because that will
7321 # break other packages using the cache if that directory is
7322 # removed, or if the value is a relative name.
7323 INSTALL=$ac_install_sh
7326 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7327 echo "${ECHO_T}$INSTALL" >&6; }
7329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7330 # It thinks the first close brace ends the variable substitution.
7331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7338 [\\/$]* | ?:[\\/]* ) ;;
7339 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7342 # Extract the first word of "bzip2", so it can be a program name with args.
7343 set dummy bzip2; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_BZIP2+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 BZIP2=$ac_cv_path_BZIP2
7373 if test -n "$BZIP2"; then
7374 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7375 echo "${ECHO_T}$BZIP2" >&6; }
7377 { echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6; }
7382 # Extract the first word of "cat", so it can be a program name with args.
7383 set dummy cat; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_path_CAT+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 if test -n "$CAT"; then
7414 { echo "$as_me:$LINENO: result: $CAT" >&5
7415 echo "${ECHO_T}$CAT" >&6; }
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7422 # Extract the first word of "doxygen", so it can be a program name with args.
7423 set dummy doxygen; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 DOXYGEN=$ac_cv_path_DOXYGEN
7453 if test -n "$DOXYGEN"; then
7454 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7455 echo "${ECHO_T}$DOXYGEN" >&6; }
7457 { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7462 # Extract the first word of "groff", so it can be a program name with args.
7463 set dummy groff; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_GROFF+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 GROFF=$ac_cv_path_GROFF
7493 if test -n "$GROFF"; then
7494 { echo "$as_me:$LINENO: result: $GROFF" >&5
7495 echo "${ECHO_T}$GROFF" >&6; }
7497 { echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6; }
7502 # Extract the first word of "gzip", so it can be a program name with args.
7503 set dummy gzip; ac_word=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 GZIPBIN=$ac_cv_path_GZIPBIN
7533 if test -n "$GZIPBIN"; then
7534 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7535 echo "${ECHO_T}$GZIPBIN" >&6; }
7537 { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7542 # Extract the first word of "pdfroff", so it can be a program name with args.
7543 set dummy pdfroff; ac_word=$2
7544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7546 if test "${ac_cv_path_PDFROFF+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 PDFROFF=$ac_cv_path_PDFROFF
7573 if test -n "$PDFROFF"; then
7574 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7575 echo "${ECHO_T}$PDFROFF" >&6; }
7577 { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7582 # Extract the first word of "zip", so it can be a program name with args.
7583 set dummy zip; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_ZIP+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 if test -n "$ZIP"; then
7614 { echo "$as_me:$LINENO: result: $ZIP" >&5
7615 echo "${ECHO_T}$ZIP" >&6; }
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 for ac_prog in ocamlc
7624 # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_OCAMLC+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 OCAMLC=$ac_cv_path_OCAMLC
7655 if test -n "$OCAMLC"; then
7656 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7657 echo "${ECHO_T}$OCAMLC" >&6; }
7659 { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7664 test -n "$OCAMLC" && break
7667 for ac_prog in ocamlopt
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 OCAMLOPT=$ac_cv_path_OCAMLOPT
7700 if test -n "$OCAMLOPT"; then
7701 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7702 echo "${ECHO_T}$OCAMLOPT" >&6; }
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7709 test -n "$OCAMLOPT" && break
7712 for ac_prog in ocamldep
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 OCAMLDEP=$ac_cv_path_OCAMLDEP
7745 if test -n "$OCAMLDEP"; then
7746 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7747 echo "${ECHO_T}$OCAMLDEP" >&6; }
7749 { echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6; }
7754 test -n "$OCAMLDEP" && break
7757 for ac_prog in ocamldoc
7759 # Extract the first word of "$ac_prog", so it can be a program name with args.
7760 set dummy $ac_prog; ac_word=$2
7761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7763 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 OCAMLDOC=$ac_cv_path_OCAMLDOC
7790 if test -n "$OCAMLDOC"; then
7791 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7792 echo "${ECHO_T}$OCAMLDOC" >&6; }
7794 { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7799 test -n "$OCAMLDOC" && break
7802 for ac_prog in gas as
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7808 if test "${ac_cv_path_GAS+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 if test -n "$GAS"; then
7836 { echo "$as_me:$LINENO: result: $GAS" >&5
7837 echo "${ECHO_T}$GAS" >&6; }
7839 { echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6; }
7844 test -n "$GAS" && break
7848 { echo "$as_me:$LINENO: checking for linker version" >&5
7849 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7850 if test "${llvm_cv_link_version+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 version_string="$(ld -v 2>&1 | head -1)"
7857 if (echo "$version_string" | grep -q "ld64"); then
7858 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7860 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7864 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7865 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7867 cat >>confdefs.h <<_ACEOF
7868 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7873 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7874 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7875 if test "${llvm_cv_link_use_r+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 ac_cpp='$CPP $CPPFLAGS'
7880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7885 CFLAGS="$CFLAGS -Wl,-R."
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (ac_try="$ac_link"
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_link") 2>conftest.er1
7910 grep -v '^ *+' conftest.er1 >conftest.err
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } &&
7915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7916 { (case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_try") 2>&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try='test -s conftest$ac_exeext'
7926 { (case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_try") 2>&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 llvm_cv_link_use_r=yes
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 llvm_cv_link_use_r=no
7943 rm -f core conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7954 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7955 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7956 if test "$llvm_cv_link_use_r" = yes ; then
7958 cat >>confdefs.h <<\_ACEOF
7959 #define HAVE_LINK_R 1
7965 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7966 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7967 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 ac_cpp='$CPP $CPPFLAGS'
7972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7977 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7978 cat >conftest.$ac_ext <<_ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (ac_try="$ac_link"
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_link") 2>conftest.er1
8002 grep -v '^ *+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8008 { (case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_try") 2>&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; } &&
8017 { ac_try='test -s conftest$ac_exeext'
8018 { (case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_try") 2>&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 llvm_cv_link_use_export_dynamic=yes
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 llvm_cv_link_use_export_dynamic=no
8035 rm -f core conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8039 ac_cpp='$CPP $CPPFLAGS'
8040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8047 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8048 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8050 cat >>confdefs.h <<\_ACEOF
8051 #define HAVE_LINK_EXPORT_DYNAMIC 1
8057 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8058 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8059 if test "${llvm_cv_link_use_version_script+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 ac_cpp='$CPP $CPPFLAGS'
8064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070 # The following code is from the autoconf manual,
8071 # "11.13: Limitations of Usual Tools".
8072 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8073 # Use mktemp if possible; otherwise fall back on mkdir,
8074 # with $RANDOM to make collisions less likely.
8078 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8080 test -n "$tmp" && test -d "$tmp"
8082 tmp=$TMPDIR/foo$$-$RANDOM
8083 (umask 077 && mkdir "$tmp")
8086 echo "{" > "$tmp/export.map"
8087 echo " global: main;" >> "$tmp/export.map"
8088 echo " local: *;" >> "$tmp/export.map"
8089 echo "};" >> "$tmp/export.map"
8091 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_link") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try='test -s conftest$ac_exeext'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 llvm_cv_link_use_version_script=yes
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 llvm_cv_link_use_version_script=no
8149 rm -f core conftest.err conftest.$ac_objext \
8150 conftest$ac_exeext conftest.$ac_ext
8151 rm "$tmp/export.map"
8155 ac_cpp='$CPP $CPPFLAGS'
8156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8162 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8163 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8164 if test "$llvm_cv_link_use_version_script" = yes ; then
8165 HAVE_LINK_VERSION_SCRIPT=1
8172 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8173 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8174 if test "${ac_cv_c_const+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 cat >conftest.$ac_ext <<_ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8187 /* FIXME: Include the comments suggested by Paul. */
8189 /* Ultrix mips cc rejects this. */
8190 typedef int charset[2];
8192 /* SunOS 4.1.1 cc rejects this. */
8193 char const *const *ccp;
8195 /* NEC SVR4.0.2 mips cc rejects this. */
8196 struct point {int x, y;};
8197 static struct point const zero = {0,0};
8198 /* AIX XL C 1.02.0.0 rejects this.
8199 It does not let you subtract one const X* pointer from another in
8200 an arm of an if-expression whose if-part is not a constant
8202 const char *g = "string";
8203 ccp = &g + (g ? g-g : 0);
8204 /* HPUX 7.0 cc rejects these. */
8207 ccp = (char const *const *) p;
8208 { /* SCO 3.2v4 cc rejects this. */
8210 char const *s = 0 ? (char *) 0 : (char const *) 0;
8215 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8217 const int *foo = &x[0];
8220 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8221 typedef const int *iptr;
8225 { /* AIX XL C 1.02.0.0 rejects this saying
8226 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8227 struct s { int j; const int *ap[3]; };
8228 struct s *b; b->j = 5;
8230 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8234 return !x[0] && !zero.x;
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_compile") 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest.$ac_objext'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8286 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8287 if test $ac_cv_c_const = no; then
8289 cat >>confdefs.h <<\_ACEOF
8301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8302 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8303 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8304 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 #include <sys/types.h>
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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 eval "$as_ac_Header=yes"
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 eval "$as_ac_Header=no"
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 ac_res=`eval echo '${'$as_ac_Header'}'`
8371 { echo "$as_me:$LINENO: result: $ac_res" >&5
8372 echo "${ECHO_T}$ac_res" >&6; }
8373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8374 cat >>confdefs.h <<_ACEOF
8375 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8378 ac_header_dirent=$ac_hdr; break
8382 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8383 if test $ac_header_dirent = dirent.h; then
8384 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8385 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8386 if test "${ac_cv_search_opendir+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 ac_func_search_save_LIBS=$LIBS
8390 cat >conftest.$ac_ext <<_ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8397 /* Override any GCC internal prototype to avoid an error.
8398 Use char because int might match the return type of a GCC
8399 builtin and then its argument prototype would still apply. */
8412 for ac_lib in '' dir; do
8413 if test -z "$ac_lib"; then
8414 ac_res="none required"
8417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8419 rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (ac_try="$ac_link"
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_link") 2>conftest.er1
8428 grep -v '^ *+' conftest.er1 >conftest.err
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } &&
8433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_try") 2>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_search_opendir=$ac_res
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8461 rm -f core conftest.err conftest.$ac_objext \
8463 if test "${ac_cv_search_opendir+set}" = set; then
8467 if test "${ac_cv_search_opendir+set}" = set; then
8470 ac_cv_search_opendir=no
8473 LIBS=$ac_func_search_save_LIBS
8475 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8476 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8477 ac_res=$ac_cv_search_opendir
8478 if test "$ac_res" != no; then
8479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8484 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8486 if test "${ac_cv_search_opendir+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 ac_func_search_save_LIBS=$LIBS
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8497 /* Override any GCC internal prototype to avoid an error.
8498 Use char because int might match the return type of a GCC
8499 builtin and then its argument prototype would still apply. */
8512 for ac_lib in '' x; do
8513 if test -z "$ac_lib"; then
8514 ac_res="none required"
8517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (ac_try="$ac_link"
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_link") 2>conftest.er1
8528 grep -v '^ *+' conftest.er1 >conftest.err
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534 { (case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_try") 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_try") 2>&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 ac_cv_search_opendir=$ac_res
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8561 rm -f core conftest.err conftest.$ac_objext \
8563 if test "${ac_cv_search_opendir+set}" = set; then
8567 if test "${ac_cv_search_opendir+set}" = set; then
8570 ac_cv_search_opendir=no
8573 LIBS=$ac_func_search_save_LIBS
8575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577 ac_res=$ac_cv_search_opendir
8578 if test "$ac_res" != no; then
8579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8586 for ac_header in dlfcn.h
8588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 ac_res=`eval echo '${'$as_ac_Header'}'`
8596 { echo "$as_me:$LINENO: result: $ac_res" >&5
8597 echo "${ECHO_T}$ac_res" >&6; }
8599 # Is the header compilable?
8600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8602 cat >conftest.$ac_ext <<_ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8608 $ac_includes_default
8609 #include <$ac_header>
8611 rm -f conftest.$ac_objext
8612 if { (ac_try="$ac_compile"
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest.$ac_objext'
8636 { (case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_try") 2>&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_header_compiler=yes
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8650 ac_header_compiler=no
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8655 echo "${ECHO_T}$ac_header_compiler" >&6; }
8657 # Is the header present?
8658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 #include <$ac_header>
8668 if { (ac_try="$ac_cpp conftest.$ac_ext"
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } >/dev/null; then
8681 if test -s conftest.err; then
8682 ac_cpp_err=$ac_c_preproc_warn_flag
8683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8690 if test -z "$ac_cpp_err"; then
8691 ac_header_preproc=yes
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 ac_header_preproc=no
8699 rm -f conftest.err conftest.$ac_ext
8700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701 echo "${ECHO_T}$ac_header_preproc" >&6; }
8703 # So? What about this header?
8704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8710 ac_header_preproc=yes
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8726 ## ------------------------------------ ##
8727 ## Report this to http://llvm.org/bugs/ ##
8728 ## ------------------------------------ ##
8730 ) | sed "s/^/$as_me: WARNING: /" >&2
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 eval "$as_ac_Header=\$ac_header_preproc"
8740 ac_res=`eval echo '${'$as_ac_Header'}'`
8741 { echo "$as_me:$LINENO: result: $ac_res" >&5
8742 echo "${ECHO_T}$ac_res" >&6; }
8745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 # Check whether --enable-ltdl-install was given.
8755 if test "${enable_ltdl_install+set}" = set; then
8756 enableval=$enable_ltdl_install;
8762 if test x"${enable_ltdl_install-no}" != xno; then
8764 INSTALL_LTDL_FALSE='#'
8766 INSTALL_LTDL_TRUE='#'
8772 if test x"${enable_ltdl_convenience-no}" != xno; then
8773 CONVENIENCE_LTDL_TRUE=
8774 CONVENIENCE_LTDL_FALSE='#'
8776 CONVENIENCE_LTDL_TRUE='#'
8777 CONVENIENCE_LTDL_FALSE=
8781 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8784 libname_spec='lib$name'
8792 shlibpath_overrides_runpath=unknown
8794 dynamic_linker="$host_os ld.so"
8795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8796 if test "$GCC" = yes; then
8797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8798 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8799 # if the path contains ";" then we assume it to be the separator
8800 # otherwise default to the standard path separator (i.e. ":") - it is
8801 # assumed that no part of a normal pathname contains ";" but that should
8802 # okay in the real world where ";" in dirpaths is itself problematic.
8803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8810 need_lib_prefix=unknown
8811 hardcode_into_libs=no
8813 # when you set need_version to no, make sure it does not cause -set_version
8814 # flags to be left without arguments
8815 need_version=unknown
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8821 shlibpath_var=LIBPATH
8823 # AIX 3 has no versioning support, so we append a major version to the name.
8824 soname_spec='${libname}${release}${shared_ext}$major'
8831 hardcode_into_libs=yes
8832 if test "$host_cpu" = ia64; then
8833 # AIX 5 supports IA64
8834 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8835 shlibpath_var=LD_LIBRARY_PATH
8837 # With GCC up to 2.95.x, collect2 would create an import file
8838 # for dependence libraries. The import file would start with
8839 # the line `#! .'. This would cause the generated library to
8840 # depend on `.', always an invalid library. This was fixed in
8841 # development snapshots of GCC prior to 3.0.
8843 aix4 | aix4.[01] | aix4.[01].*)
8844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8846 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8853 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8854 # soname into executable. Probably we can add versioning support to
8855 # collect2, so additional links can be useful in future.
8856 if test "$aix_use_runtimelinking" = yes; then
8857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8858 # instead of lib<name>.a to let people know that these are not
8859 # typical AIX shared libraries.
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 # We preserve .a as extension for shared libraries through AIX4.2
8863 # and later when we are not doing run time linking.
8864 library_names_spec='${libname}${release}.a $libname.a'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8867 shlibpath_var=LIBPATH
8872 library_names_spec='$libname.ixlibrary $libname.a'
8873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8874 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8878 library_names_spec='${libname}${shared_ext}'
8879 dynamic_linker="$host_os ld.so"
8880 shlibpath_var=LIBRARY_PATH
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8889 shlibpath_var=LD_LIBRARY_PATH
8890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8892 # the default ld.so.conf also contains /usr/contrib/lib and
8893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8894 # libtool to hard-code these into programs
8897 cygwin* | mingw* | pw32*)
8898 version_type=windows
8903 case $GCC,$host_os in
8904 yes,cygwin* | yes,mingw* | yes,pw32*)
8905 library_names_spec='$libname.dll.a'
8906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8907 postinstall_cmds='base_file=`basename \${file}`~
8908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8909 dldir=$destdir/`dirname \$dlpath`~
8910 test -d \$dldir || mkdir -p \$dldir~
8911 $install_prog $dir/$dlname \$dldir/$dlname~
8912 chmod a+x \$dldir/$dlname'
8913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8914 dlpath=$dir/\$dldll~
8916 shlibpath_overrides_runpath=yes
8920 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8921 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8922 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8925 # MinGW DLLs use traditional 'lib' prefix
8926 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8927 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8928 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8929 # It is most probably a Windows format PATH printed by
8930 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8931 # path with ; separators, and with drive letters. We can handle the
8932 # drive letters (cygwin fileutils understands them), so leave them,
8933 # especially as we might pass files found there to a mingw objdump,
8934 # which wouldn't understand a cygwinified path. Ahh.
8935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8941 # pw32 DLLs use 'pw' prefix rather than 'lib'
8942 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8948 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8951 dynamic_linker='Win32 ld.exe'
8952 # FIXME: first we should search . and the directory the executable is in
8956 darwin* | rhapsody*)
8957 dynamic_linker="$host_os dyld"
8961 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8962 soname_spec='${libname}${release}${major}$shared_ext'
8963 shlibpath_overrides_runpath=yes
8964 shlibpath_var=DYLD_LIBRARY_PATH
8965 shrext_cmds='.dylib'
8966 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8967 if test "$GCC" = yes; then
8968 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8970 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8972 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=no
8996 hardcode_into_libs=yes
8997 dynamic_linker='GNU ld.so'
9000 freebsd* | dragonfly*)
9001 # DragonFly does not have aout. When/if they implement a new
9002 # versioning mechanism, adjust this.
9003 if test -x /usr/bin/objformat; then
9004 objformat=`/usr/bin/objformat`
9007 freebsd[123].*) objformat=aout ;;
9011 version_type=freebsd-$objformat
9012 case $version_type in
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9023 shlibpath_var=LD_LIBRARY_PATH
9026 shlibpath_overrides_runpath=yes
9028 freebsd3.[01]* | freebsdelf3.[01]*)
9029 shlibpath_overrides_runpath=yes
9030 hardcode_into_libs=yes
9032 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9033 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9034 shlibpath_overrides_runpath=no
9035 hardcode_into_libs=yes
9037 freebsd*) # from 4.6 on
9038 shlibpath_overrides_runpath=yes
9039 hardcode_into_libs=yes
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 hardcode_into_libs=yes
9054 hpux9* | hpux10* | hpux11*)
9055 # Give a soname corresponding to the major version so that dld.sl refuses to
9056 # link against other versions.
9063 hardcode_into_libs=yes
9064 dynamic_linker="$host_os dld.so"
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 if test "X$HPUX_IA64_MODE" = X32; then
9070 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9072 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9078 hardcode_into_libs=yes
9079 dynamic_linker="$host_os dld.sl"
9080 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9089 dynamic_linker="$host_os dld.sl"
9090 shlibpath_var=SHLIB_PATH
9091 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9096 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9097 postinstall_cmds='chmod 555 $lib'
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=no
9109 hardcode_into_libs=yes
9112 irix5* | irix6* | nonstopux*)
9114 nonstopux*) version_type=nonstopux ;;
9116 if test "$lt_cv_prog_gnu_ld" = yes; then
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9127 irix5* | nonstopux*)
9131 case $LD in # libtool.m4 will add one of these switches to LD
9132 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9133 libsuff= shlibsuff= libmagic=32-bit;;
9134 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9135 libsuff=32 shlibsuff=N32 libmagic=N32;;
9136 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9137 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9138 *) libsuff= shlibsuff= libmagic=never-match;;
9142 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9143 shlibpath_overrides_runpath=no
9144 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9145 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9146 hardcode_into_libs=yes
9149 # No shared lib support for Linux oldld, aout, or coff.
9150 linux*oldld* | linux*aout* | linux*coff*)
9154 # This must be Linux ELF.
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=no
9164 # This implies no fast_install, which is unacceptable.
9165 # Some rework will be needed to allow for fast_install
9166 # before this can be enabled.
9167 hardcode_into_libs=yes
9169 # Append ld.so.conf contents to the search path
9170 if test -f /etc/ld.so.conf; then
9171 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9175 # We used to test for /lib/ld.so.1 and disable shared libraries on
9176 # powerpc, because MkLinux only supported shared libraries with the
9177 # GNU dynamic linker. Since this was broken with cross compilers,
9178 # most powerpc-linux boxes support dynamic linking these days and
9179 # people can always --disable-shared, the test was removed, and we
9180 # assume the GNU/Linux dynamic linker is in use.
9181 dynamic_linker='GNU/Linux ld.so'
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=no
9192 hardcode_into_libs=yes
9193 dynamic_linker='GNU ld.so'
9200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203 dynamic_linker='NetBSD (a.out) ld.so'
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 dynamic_linker='NetBSD ld.elf_so'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=yes
9211 hardcode_into_libs=yes
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 shlibpath_overrides_runpath=yes
9233 sys_lib_dlsearch_path_spec="/usr/lib"
9235 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9237 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9238 *) need_version=no ;;
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9245 openbsd2.[89] | openbsd2.[89].*)
9246 shlibpath_overrides_runpath=no
9249 shlibpath_overrides_runpath=yes
9253 shlibpath_overrides_runpath=yes
9258 libname_spec='$name'
9261 library_names_spec='$libname${shared_ext} $libname.a'
9262 dynamic_linker='OS/2 ld.exe'
9263 shlibpath_var=LIBPATH
9266 osf3* | osf4* | osf5*)
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9274 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=yes
9285 hardcode_into_libs=yes
9286 # ldd complains unless libraries are executable
9287 postinstall_cmds='chmod +x $lib'
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9293 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 shlibpath_overrides_runpath=yes
9296 if test "$with_gnu_ld" = yes; then
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 case $host_vendor in
9309 shlibpath_overrides_runpath=no
9311 export_dynamic_flag_spec='${wl}-Blargedynsym'
9312 runpath_var=LD_RUN_PATH
9320 shlibpath_overrides_runpath=no
9321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9327 if test -d /usr/nec ;then
9329 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9330 soname_spec='$libname${shared_ext}.$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9336 version_type=freebsd-elf
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 hardcode_into_libs=yes
9343 if test "$with_gnu_ld" = yes; then
9344 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9345 shlibpath_overrides_runpath=no
9347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9348 shlibpath_overrides_runpath=yes
9351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9355 sys_lib_dlsearch_path_spec='/usr/lib'
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9369 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9370 echo "${ECHO_T}$dynamic_linker" >&6; }
9371 test "$dynamic_linker" = no && can_build_shared=no
9373 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9374 if test "$GCC" = yes; then
9375 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9379 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9380 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9381 if test "${libltdl_cv_shlibext+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 eval libltdl_cv_shlibext=$shrext_cmds
9389 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9390 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9391 if test -n "$libltdl_cv_shlibext"; then
9393 cat >>confdefs.h <<_ACEOF
9394 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9400 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9401 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9402 if test "${libltdl_cv_sys_search_path+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9407 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9408 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9409 if test -n "$libltdl_cv_sys_search_path"; then
9411 for dir in $libltdl_cv_sys_search_path; do
9412 if test -z "$sys_search_path"; then
9413 sys_search_path="$dir"
9415 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9419 cat >>confdefs.h <<_ACEOF
9420 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9425 { echo "$as_me:$LINENO: checking for objdir" >&5
9426 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9427 if test "${libltdl_cv_objdir+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 libltdl_cv_objdir="$objdir"
9431 if test -n "$objdir"; then
9434 rm -f .libs 2>/dev/null
9435 mkdir .libs 2>/dev/null
9436 if test -d .libs; then
9437 libltdl_cv_objdir=.libs
9439 # MS-DOS does not allow filenames that begin with a dot.
9440 libltdl_cv_objdir=_libs
9442 rmdir .libs 2>/dev/null
9446 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9447 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9449 cat >>confdefs.h <<_ACEOF
9450 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9458 # Check for command to grab the raw symbol name followed by C symbol from nm.
9459 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9460 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9461 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 # These are sane defaults that work on at least a few old systems.
9466 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9468 # Character class describing NM global symbol codes.
9469 symcode='[BCDEGRST]'
9471 # Regexp to match symbols that can be accessed directly from C.
9472 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9474 # Transform an extracted symbol line into a proper C declaration
9475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9477 # Transform an extracted symbol line into symbol name and symbol address
9478 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9480 # Define system-specific variables.
9485 cygwin* | mingw* | pw32*)
9486 symcode='[ABCDGISTW]'
9488 hpux*) # Its linker distinguishes data from code symbols
9489 if test "$host_cpu" = ia64; then
9490 symcode='[ABCDEGRST]'
9492 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9493 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9496 if test "$host_cpu" = ia64; then
9497 symcode='[ABCDGIRSTW]'
9498 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9499 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9503 symcode='[BCDEGRST]'
9506 symcode='[BCDEGQRST]'
9517 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9525 # Handle CRLF in mingw tool chain
9529 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9533 # If we're using GNU nm, then use its standard symbol codes.
9534 case `$NM -V 2>&1` in
9535 *GNU* | *'with BFD'*)
9536 symcode='[ABCDGIRSTW]' ;;
9539 # Try without a prefix undercore, then with it.
9540 for ac_symprfx in "" "_"; do
9542 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9543 symxfrm="\\1 $ac_symprfx\\2 \\2"
9545 # Write the raw and C identifiers.
9546 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9548 # Check to see that the pipe works correctly.
9552 cat > conftest.$ac_ext <<EOF
9557 void nm_test_func(){}
9561 int main(){nm_test_var='a';nm_test_func();return(0);}
9564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; then
9569 # Now try to grab the symbols.
9571 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9572 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && test -s "$nlist"; then
9576 # Try sorting and uniquifying the output.
9577 if sort "$nlist" | uniq > "$nlist"T; then
9578 mv -f "$nlist"T "$nlist"
9583 # Make sure that we snagged all the symbols we need.
9584 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9585 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9586 cat <<EOF > conftest.$ac_ext
9592 # Now generate the symbol file.
9593 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9595 cat <<EOF >> conftest.$ac_ext
9596 #if defined (__STDC__) && __STDC__
9597 # define lt_ptr_t void *
9599 # define lt_ptr_t char *
9603 /* The mapping between symbol names and symbols. */
9608 lt_preloaded_symbols[] =
9611 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9612 cat <<\EOF >> conftest.$ac_ext
9620 # Now try linking the two files.
9621 mv conftest.$ac_objext conftstm.$ac_objext
9622 lt_save_LIBS="$LIBS"
9623 lt_save_CFLAGS="$CFLAGS"
9624 LIBS="conftstm.$ac_objext"
9625 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627 (eval $ac_link) 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9633 LIBS="$lt_save_LIBS"
9634 CFLAGS="$lt_save_CFLAGS"
9636 echo "cannot find nm_test_func in $nlist" >&5
9639 echo "cannot find nm_test_var in $nlist" >&5
9642 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9645 echo "$progname: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
9648 rm -f conftest* conftst*
9650 # Do not use the global_symbol_pipe unless it works.
9651 if test "$pipe_works" = yes; then
9654 lt_cv_sys_global_symbol_pipe=
9660 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9661 lt_cv_sys_global_symbol_to_cdecl=
9663 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9664 { echo "$as_me:$LINENO: result: failed" >&5
9665 echo "${ECHO_T}failed" >&6; }
9667 { echo "$as_me:$LINENO: result: ok" >&5
9668 echo "${ECHO_T}ok" >&6; }
9672 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9673 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9674 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9678 libltdl_cv_preloaded_symbols=yes
9680 libltdl_cv_preloaded_symbols=no
9684 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9685 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9686 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9688 cat >>confdefs.h <<\_ACEOF
9689 #define HAVE_PRELOADED_SYMBOLS 1
9697 ac_cpp='$CPP $CPPFLAGS'
9698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9703 { echo "$as_me:$LINENO: checking for shl_load" >&5
9704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9705 if test "${ac_cv_func_shl_load+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 cat >conftest.$ac_ext <<_ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716 #define shl_load innocuous_shl_load
9718 /* System header to define __stub macros and hopefully few prototypes,
9719 which can conflict with char shl_load (); below.
9720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 <limits.h> exists even on freestanding compilers. */
9724 # include <limits.h>
9726 # include <assert.h>
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9738 /* The GNU C library defines this for functions which it implements
9739 to always fail with ENOSYS. Some functions are actually named
9740 something starting with __ and the normal name is an alias. */
9741 #if defined __stub_shl_load || defined __stub___shl_load
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (ac_try="$ac_link"
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_link") 2>conftest.er1
9762 grep -v '^ *+' conftest.er1 >conftest.err
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } &&
9767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9768 { (case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_try") 2>&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; } &&
9777 { ac_try='test -s conftest$ac_exeext'
9778 { (case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_try") 2>&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787 ac_cv_func_shl_load=yes
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_cv_func_shl_load=no
9795 rm -f core conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9798 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9799 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9800 if test $ac_cv_func_shl_load = yes; then
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_SHL_LOAD 1
9807 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9808 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9809 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 ac_check_lib_save_LIBS=$LIBS
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9821 /* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (ac_try="$ac_link"
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_link") 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_exeext'
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_cv_lib_dld_shl_load=yes
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_cv_lib_dld_shl_load=no
9878 rm -f core conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9882 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9883 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9884 if test $ac_cv_lib_dld_shl_load = yes; then
9886 cat >>confdefs.h <<\_ACEOF
9887 #define HAVE_SHL_LOAD 1
9890 LIBADD_DL="$LIBADD_DL -ldld"
9892 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9893 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9894 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 ac_check_lib_save_LIBS=$LIBS
9899 cat >conftest.$ac_ext <<_ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9906 /* Override any GCC internal prototype to avoid an error.
9907 Use char because int might match the return type of a GCC
9908 builtin and then its argument prototype would still apply. */
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (ac_try="$ac_link"
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_link") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9936 { (case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_try") 2>&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; } &&
9945 { ac_try='test -s conftest$ac_exeext'
9946 { (case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_try") 2>&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 ac_cv_lib_dl_dlopen=yes
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_cv_lib_dl_dlopen=no
9963 rm -f core conftest.err conftest.$ac_objext \
9964 conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_check_lib_save_LIBS
9967 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9968 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9969 if test $ac_cv_lib_dl_dlopen = yes; then
9971 cat >>confdefs.h <<\_ACEOF
9972 #define HAVE_LIBDL 1
9975 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (ac_try="$ac_link"
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_link") 2>conftest.er1
10004 grep -v '^ *+' conftest.er1 >conftest.err
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
10009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10010 { (case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015 (eval "$ac_try") 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (case "(($ac_try" in
10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022 *) ac_try_echo=$ac_try;;
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025 (eval "$ac_try") 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_LIBDL 1
10033 libltdl_cv_func_dlopen="yes"
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10039 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10040 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 ac_check_lib_save_LIBS=$LIBS
10044 LIBS="-lsvld $LIBS"
10045 cat >conftest.$ac_ext <<_ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10052 /* Override any GCC internal prototype to avoid an error.
10053 Use char because int might match the return type of a GCC
10054 builtin and then its argument prototype would still apply. */
10067 rm -f conftest.$ac_objext conftest$ac_exeext
10068 if { (ac_try="$ac_link"
10069 case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_link") 2>conftest.er1
10076 grep -v '^ *+' conftest.er1 >conftest.err
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_try") 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 ac_cv_lib_svld_dlopen=yes
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 ac_cv_lib_svld_dlopen=no
10109 rm -f core conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10113 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10114 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10115 if test $ac_cv_lib_svld_dlopen = yes; then
10117 cat >>confdefs.h <<\_ACEOF
10118 #define HAVE_LIBDL 1
10121 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10123 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10124 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10125 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 ac_check_lib_save_LIBS=$LIBS
10130 cat >conftest.$ac_ext <<_ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10137 /* Override any GCC internal prototype to avoid an error.
10138 Use char because int might match the return type of a GCC
10139 builtin and then its argument prototype would still apply. */
10147 return dld_link ();
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_link") 2>conftest.er1
10161 grep -v '^ *+' conftest.er1 >conftest.err
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; } &&
10176 { ac_try='test -s conftest$ac_exeext'
10177 { (case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_try") 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_cv_lib_dld_dld_link=yes
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_cv_lib_dld_dld_link=no
10194 rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196 LIBS=$ac_check_lib_save_LIBS
10198 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10199 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10200 if test $ac_cv_lib_dld_dld_link = yes; then
10202 cat >>confdefs.h <<\_ACEOF
10206 LIBADD_DL="$LIBADD_DL -ldld"
10208 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10209 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10210 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 cat >conftest.$ac_ext <<_ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10221 #define _dyld_func_lookup innocuous__dyld_func_lookup
10223 /* System header to define __stub macros and hopefully few prototypes,
10224 which can conflict with char _dyld_func_lookup (); below.
10225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10226 <limits.h> exists even on freestanding compilers. */
10229 # include <limits.h>
10231 # include <assert.h>
10234 #undef _dyld_func_lookup
10236 /* Override any GCC internal prototype to avoid an error.
10237 Use char because int might match the return type of a GCC
10238 builtin and then its argument prototype would still apply. */
10242 char _dyld_func_lookup ();
10243 /* The GNU C library defines this for functions which it implements
10244 to always fail with ENOSYS. Some functions are actually named
10245 something starting with __ and the normal name is an alias. */
10246 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10253 return _dyld_func_lookup ();
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>conftest.er1
10267 grep -v '^ *+' conftest.er1 >conftest.err
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest$ac_exeext'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_func__dyld_func_lookup=yes
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_cv_func__dyld_func_lookup=no
10300 rm -f core conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
10303 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10304 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10305 if test $ac_cv_func__dyld_func_lookup = yes; then
10307 cat >>confdefs.h <<\_ACEOF
10308 #define HAVE_DYLD 1
10322 rm -f core conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10334 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10336 lt_save_LIBS="$LIBS"
10337 LIBS="$LIBS $LIBADD_DL"
10339 for ac_func in dlerror
10341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 cat >conftest.$ac_ext <<_ACEOF
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h. */
10353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10355 #define $ac_func innocuous_$ac_func
10357 /* System header to define __stub macros and hopefully few prototypes,
10358 which can conflict with char $ac_func (); below.
10359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10360 <limits.h> exists even on freestanding compilers. */
10363 # include <limits.h>
10365 # include <assert.h>
10370 /* Override any GCC internal prototype to avoid an error.
10371 Use char because int might match the return type of a GCC
10372 builtin and then its argument prototype would still apply. */
10377 /* The GNU C library defines this for functions which it implements
10378 to always fail with ENOSYS. Some functions are actually named
10379 something starting with __ and the normal name is an alias. */
10380 #if defined __stub_$ac_func || defined __stub___$ac_func
10387 return $ac_func ();
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_link") 2>conftest.er1
10401 grep -v '^ *+' conftest.er1 >conftest.err
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10407 { (case "(($ac_try" in
10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10412 (eval "$ac_try") 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try='test -s conftest$ac_exeext'
10417 { (case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_try") 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; }; then
10426 eval "$as_ac_var=yes"
10428 echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10431 eval "$as_ac_var=no"
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10437 ac_res=`eval echo '${'$as_ac_var'}'`
10438 { echo "$as_me:$LINENO: result: $ac_res" >&5
10439 echo "${ECHO_T}$ac_res" >&6; }
10440 if test `eval echo '${'$as_ac_var'}'` = yes; then
10441 cat >>confdefs.h <<_ACEOF
10442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10448 LIBS="$lt_save_LIBS"
10451 ac_cpp='$CPP $CPPFLAGS'
10452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10458 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10459 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10460 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 ac_cv_sys_symbol_underscore=no
10464 cat > conftest.$ac_ext <<EOF
10465 void nm_test_func(){}
10466 int main(){nm_test_func;return 0;}
10468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10469 (eval $ac_compile) 2>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; then
10473 # Now try to grab the symbols.
10474 ac_nlist=conftest.nm
10475 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10476 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && test -s "$ac_nlist"; then
10480 # See whether the symbols have a leading underscore.
10481 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10482 ac_cv_sys_symbol_underscore=yes
10484 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10487 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10491 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10494 echo "configure: failed program was:" >&5
10500 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10501 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10504 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10505 if test x"$libltdl_cv_func_dlopen" = xyes ||
10506 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10507 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10508 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10509 if test "${libltdl_cv_need_uscore+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 libltdl_cv_need_uscore=unknown
10514 LIBS="$LIBS $LIBADD_DL"
10515 if test "$cross_compiling" = yes; then :
10516 libltdl_cv_need_uscore=cross
10518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10519 lt_status=$lt_dlunknown
10520 cat > conftest.$ac_ext <<EOF
10521 #line 10521 "configure"
10522 #include "confdefs.h"
10531 # define LT_DLGLOBAL RTLD_GLOBAL
10534 # define LT_DLGLOBAL DL_GLOBAL
10536 # define LT_DLGLOBAL 0
10540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10541 find out it does not work in some platform. */
10542 #ifndef LT_DLLAZY_OR_NOW
10544 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10547 # define LT_DLLAZY_OR_NOW DL_LAZY
10550 # define LT_DLLAZY_OR_NOW RTLD_NOW
10553 # define LT_DLLAZY_OR_NOW DL_NOW
10555 # define LT_DLLAZY_OR_NOW 0
10563 extern "C" void exit (int);
10566 void fnord() { int i=42;}
10569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10570 int status = $lt_dlunknown;
10574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10575 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10576 /* dlclose (self); */
10584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10585 (eval $ac_link) 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10589 (./conftest; exit; ) >&5 2>/dev/null
10591 case x$lt_status in
10592 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10593 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10594 x$lt_dlunknown|x*) ;;
10597 # compilation failed
10606 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10607 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10611 if test x"$libltdl_cv_need_uscore" = xyes; then
10613 cat >>confdefs.h <<\_ACEOF
10614 #define NEED_USCORE 1
10620 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10621 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10622 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 # PORTME does your system automatically load deplibs for dlopen?
10626 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10627 # For now, we just catch OSes we know something about -- in the
10628 # future, we'll try test this programmatically.
10629 libltdl_cv_sys_dlopen_deplibs=unknown
10631 aix3*|aix4.1.*|aix4.2.*)
10632 # Unknown whether this is true for these versions of AIX, but
10633 # we want this `case' here to explicitly catch those versions.
10634 libltdl_cv_sys_dlopen_deplibs=unknown
10637 libltdl_cv_sys_dlopen_deplibs=yes
10640 # Assuming the user has installed a libdl from somewhere, this is true
10641 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10642 libltdl_cv_sys_dlopen_deplibs=yes
10644 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10645 # GNU and its variants, using gnu ld.so (Glibc)
10646 libltdl_cv_sys_dlopen_deplibs=yes
10649 libltdl_cv_sys_dlopen_deplibs=yes
10652 libltdl_cv_sys_dlopen_deplibs=yes
10654 irix[12345]*|irix6.[01]*)
10655 # Catch all versions of IRIX before 6.2, and indicate that we don't
10656 # know how it worked for any of those versions.
10657 libltdl_cv_sys_dlopen_deplibs=unknown
10660 # The case above catches anything before 6.2, and it's known that
10661 # at 6.2 and later dlopen does load deplibs.
10662 libltdl_cv_sys_dlopen_deplibs=yes
10665 libltdl_cv_sys_dlopen_deplibs=yes
10668 libltdl_cv_sys_dlopen_deplibs=yes
10671 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10672 # it did *not* use an RPATH in a shared library to find objects the
10673 # library depends on, so we explicitly say `no'.
10674 libltdl_cv_sys_dlopen_deplibs=no
10676 osf5.0|osf5.0a|osf5.1)
10677 # dlopen *does* load deplibs and with the right loader patch applied
10678 # it even uses RPATH in a shared library to search for shared objects
10679 # that the library depends on, but there's no easy way to know if that
10680 # patch is installed. Since this is the case, all we can really
10681 # say is unknown -- it depends on the patch being installed. If
10682 # it is, this changes to `yes'. Without it, it would be `no'.
10683 libltdl_cv_sys_dlopen_deplibs=unknown
10686 # the two cases above should catch all versions of osf <= 5.1. Read
10687 # the comments above for what we know about them.
10688 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10689 # is used to find them so we can finally say `yes'.
10690 libltdl_cv_sys_dlopen_deplibs=yes
10693 libltdl_cv_sys_dlopen_deplibs=yes
10695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10696 libltdl_cv_sys_dlopen_deplibs=yes
10701 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10702 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10703 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10705 cat >>confdefs.h <<\_ACEOF
10706 #define LTDL_DLOPEN_DEPLIBS 1
10712 for ac_header in argz.h
10714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 ac_res=`eval echo '${'$as_ac_Header'}'`
10722 { echo "$as_me:$LINENO: result: $ac_res" >&5
10723 echo "${ECHO_T}$ac_res" >&6; }
10725 # Is the header compilable?
10726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 $ac_includes_default
10735 #include <$ac_header>
10737 rm -f conftest.$ac_objext
10738 if { (ac_try="$ac_compile"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_compile") 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
10751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10752 { (case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10757 (eval "$ac_try") 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try='test -s conftest.$ac_objext'
10762 { (case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_try") 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; }; then
10771 ac_header_compiler=yes
10773 echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10776 ac_header_compiler=no
10779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10781 echo "${ECHO_T}$ac_header_compiler" >&6; }
10783 # Is the header present?
10784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10786 cat >conftest.$ac_ext <<_ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 #include <$ac_header>
10794 if { (ac_try="$ac_cpp conftest.$ac_ext"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10802 grep -v '^ *+' conftest.er1 >conftest.err
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } >/dev/null; then
10807 if test -s conftest.err; then
10808 ac_cpp_err=$ac_c_preproc_warn_flag
10809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10816 if test -z "$ac_cpp_err"; then
10817 ac_header_preproc=yes
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 ac_header_preproc=no
10825 rm -f conftest.err conftest.$ac_ext
10826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10827 echo "${ECHO_T}$ac_header_preproc" >&6; }
10829 # So? What about this header?
10830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10836 ac_header_preproc=yes
10839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10852 ## ------------------------------------ ##
10853 ## Report this to http://llvm.org/bugs/ ##
10854 ## ------------------------------------ ##
10856 ) | sed "s/^/$as_me: WARNING: /" >&2
10859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 eval "$as_ac_Header=\$ac_header_preproc"
10866 ac_res=`eval echo '${'$as_ac_Header'}'`
10867 { echo "$as_me:$LINENO: result: $ac_res" >&5
10868 echo "${ECHO_T}$ac_res" >&6; }
10871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10872 cat >>confdefs.h <<_ACEOF
10873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10881 { echo "$as_me:$LINENO: checking for error_t" >&5
10882 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10883 if test "${ac_cv_type_error_t+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10896 typedef error_t ac__type_new_;
10900 if ((ac__type_new_ *) 0)
10902 if (sizeof (ac__type_new_))
10908 rm -f conftest.$ac_objext
10909 if { (ac_try="$ac_compile"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_compile") 2>conftest.er1
10917 grep -v '^ *+' conftest.er1 >conftest.err
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest.$ac_objext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 ac_cv_type_error_t=yes
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ac_cv_type_error_t=no
10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10953 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10954 if test $ac_cv_type_error_t = yes; then
10956 cat >>confdefs.h <<_ACEOF
10957 #define HAVE_ERROR_T 1
10963 cat >>confdefs.h <<\_ACEOF
10964 #define error_t int
10975 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 cat >conftest.$ac_ext <<_ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10991 #define $ac_func innocuous_$ac_func
10993 /* System header to define __stub macros and hopefully few prototypes,
10994 which can conflict with char $ac_func (); below.
10995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10996 <limits.h> exists even on freestanding compilers. */
10999 # include <limits.h>
11001 # include <assert.h>
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11013 /* The GNU C library defines this for functions which it implements
11014 to always fail with ENOSYS. Some functions are actually named
11015 something starting with __ and the normal name is an alias. */
11016 #if defined __stub_$ac_func || defined __stub___$ac_func
11023 return $ac_func ();
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (ac_try="$ac_link"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_link") 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest$ac_exeext'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 eval "$as_ac_var=yes"
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 eval "$as_ac_var=no"
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11073 ac_res=`eval echo '${'$as_ac_var'}'`
11074 { echo "$as_me:$LINENO: result: $ac_res" >&5
11075 echo "${ECHO_T}$ac_res" >&6; }
11076 if test `eval echo '${'$as_ac_var'}'` = yes; then
11077 cat >>confdefs.h <<_ACEOF
11078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 ac_res=`eval echo '${'$as_ac_Header'}'`
11121 { echo "$as_me:$LINENO: result: $ac_res" >&5
11122 echo "${ECHO_T}$ac_res" >&6; }
11124 # Is the header compilable?
11125 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 $ac_includes_default
11134 #include <$ac_header>
11136 rm -f conftest.$ac_objext
11137 if { (ac_try="$ac_compile"
11138 case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_compile") 2>conftest.er1
11145 grep -v '^ *+' conftest.er1 >conftest.err
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
11150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11151 { (case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_try") 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; } &&
11160 { ac_try='test -s conftest.$ac_objext'
11161 { (case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_try") 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 ac_header_compiler=yes
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 ac_header_compiler=no
11178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11180 echo "${ECHO_T}$ac_header_compiler" >&6; }
11182 # Is the header present?
11183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11185 cat >conftest.$ac_ext <<_ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 #include <$ac_header>
11193 if { (ac_try="$ac_cpp conftest.$ac_ext"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11201 grep -v '^ *+' conftest.er1 >conftest.err
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } >/dev/null; then
11206 if test -s conftest.err; then
11207 ac_cpp_err=$ac_c_preproc_warn_flag
11208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11215 if test -z "$ac_cpp_err"; then
11216 ac_header_preproc=yes
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11221 ac_header_preproc=no
11224 rm -f conftest.err conftest.$ac_ext
11225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11226 echo "${ECHO_T}$ac_header_preproc" >&6; }
11228 # So? What about this header?
11229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11235 ac_header_preproc=yes
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11251 ## ------------------------------------ ##
11252 ## Report this to http://llvm.org/bugs/ ##
11253 ## ------------------------------------ ##
11255 ) | sed "s/^/$as_me: WARNING: /" >&2
11258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 eval "$as_ac_Header=\$ac_header_preproc"
11265 ac_res=`eval echo '${'$as_ac_Header'}'`
11266 { echo "$as_me:$LINENO: result: $ac_res" >&5
11267 echo "${ECHO_T}$ac_res" >&6; }
11270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11271 cat >>confdefs.h <<_ACEOF
11272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11283 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 ac_res=`eval echo '${'$as_ac_Header'}'`
11293 { echo "$as_me:$LINENO: result: $ac_res" >&5
11294 echo "${ECHO_T}$ac_res" >&6; }
11296 # Is the header compilable?
11297 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11299 cat >conftest.$ac_ext <<_ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 $ac_includes_default
11306 #include <$ac_header>
11308 rm -f conftest.$ac_objext
11309 if { (ac_try="$ac_compile"
11310 case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_compile") 2>conftest.er1
11317 grep -v '^ *+' conftest.er1 >conftest.err
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11323 { (case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_try") 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; } &&
11332 { ac_try='test -s conftest.$ac_objext'
11333 { (case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_try") 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_header_compiler=yes
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ac_header_compiler=no
11350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11352 echo "${ECHO_T}$ac_header_compiler" >&6; }
11354 # Is the header present?
11355 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11357 cat >conftest.$ac_ext <<_ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11363 #include <$ac_header>
11365 if { (ac_try="$ac_cpp conftest.$ac_ext"
11366 case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11373 grep -v '^ *+' conftest.er1 >conftest.err
11375 cat conftest.err >&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } >/dev/null; then
11378 if test -s conftest.err; then
11379 ac_cpp_err=$ac_c_preproc_warn_flag
11380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11387 if test -z "$ac_cpp_err"; then
11388 ac_header_preproc=yes
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 ac_header_preproc=no
11396 rm -f conftest.err conftest.$ac_ext
11397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11398 echo "${ECHO_T}$ac_header_preproc" >&6; }
11400 # So? What about this header?
11401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11407 ac_header_preproc=yes
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11423 ## ------------------------------------ ##
11424 ## Report this to http://llvm.org/bugs/ ##
11425 ## ------------------------------------ ##
11427 ) | sed "s/^/$as_me: WARNING: /" >&2
11430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 eval "$as_ac_Header=\$ac_header_preproc"
11437 ac_res=`eval echo '${'$as_ac_Header'}'`
11438 { echo "$as_me:$LINENO: result: $ac_res" >&5
11439 echo "${ECHO_T}$ac_res" >&6; }
11442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11443 cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11453 for ac_header in string.h strings.h
11455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 ac_res=`eval echo '${'$as_ac_Header'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11466 # Is the header compilable?
11467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11469 cat >conftest.$ac_ext <<_ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 $ac_includes_default
11476 #include <$ac_header>
11478 rm -f conftest.$ac_objext
11479 if { (ac_try="$ac_compile"
11480 case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_compile") 2>conftest.er1
11487 grep -v '^ *+' conftest.er1 >conftest.err
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11493 { (case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_try") 2>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try='test -s conftest.$ac_objext'
11503 { (case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_try") 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_header_compiler=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_header_compiler=no
11520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11522 echo "${ECHO_T}$ac_header_compiler" >&6; }
11524 # Is the header present?
11525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 #include <$ac_header>
11535 if { (ac_try="$ac_cpp conftest.$ac_ext"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11543 grep -v '^ *+' conftest.er1 >conftest.err
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } >/dev/null; then
11548 if test -s conftest.err; then
11549 ac_cpp_err=$ac_c_preproc_warn_flag
11550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11557 if test -z "$ac_cpp_err"; then
11558 ac_header_preproc=yes
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11563 ac_header_preproc=no
11566 rm -f conftest.err conftest.$ac_ext
11567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11568 echo "${ECHO_T}$ac_header_preproc" >&6; }
11570 # So? What about this header?
11571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11577 ac_header_preproc=yes
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11593 ## ------------------------------------ ##
11594 ## Report this to http://llvm.org/bugs/ ##
11595 ## ------------------------------------ ##
11597 ) | sed "s/^/$as_me: WARNING: /" >&2
11600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 eval "$as_ac_Header=\$ac_header_preproc"
11607 ac_res=`eval echo '${'$as_ac_Header'}'`
11608 { echo "$as_me:$LINENO: result: $ac_res" >&5
11609 echo "${ECHO_T}$ac_res" >&6; }
11612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11613 cat >>confdefs.h <<_ACEOF
11614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11624 for ac_func in strchr index
11626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 cat >conftest.$ac_ext <<_ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11640 #define $ac_func innocuous_$ac_func
11642 /* System header to define __stub macros and hopefully few prototypes,
11643 which can conflict with char $ac_func (); below.
11644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645 <limits.h> exists even on freestanding compilers. */
11648 # include <limits.h>
11650 # include <assert.h>
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11662 /* The GNU C library defines this for functions which it implements
11663 to always fail with ENOSYS. Some functions are actually named
11664 something starting with __ and the normal name is an alias. */
11665 #if defined __stub_$ac_func || defined __stub___$ac_func
11672 return $ac_func ();
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_link") 2>conftest.er1
11686 grep -v '^ *+' conftest.er1 >conftest.err
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11692 { (case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_try") 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest$ac_exeext'
11702 { (case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707 (eval "$ac_try") 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 eval "$as_ac_var=yes"
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11716 eval "$as_ac_var=no"
11719 rm -f core conftest.err conftest.$ac_objext \
11720 conftest$ac_exeext conftest.$ac_ext
11722 ac_res=`eval echo '${'$as_ac_var'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_var'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11735 for ac_func in strrchr rindex
11737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11751 #define $ac_func innocuous_$ac_func
11753 /* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char $ac_func (); below.
11755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 <limits.h> exists even on freestanding compilers. */
11759 # include <limits.h>
11761 # include <assert.h>
11766 /* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
11773 /* The GNU C library defines this for functions which it implements
11774 to always fail with ENOSYS. Some functions are actually named
11775 something starting with __ and the normal name is an alias. */
11776 #if defined __stub_$ac_func || defined __stub___$ac_func
11783 return $ac_func ();
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (ac_try="$ac_link"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_link") 2>conftest.er1
11797 grep -v '^ *+' conftest.er1 >conftest.err
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803 { (case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_try") 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 eval "$as_ac_var=yes"
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 eval "$as_ac_var=no"
11830 rm -f core conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext
11833 ac_res=`eval echo '${'$as_ac_var'}'`
11834 { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11836 if test `eval echo '${'$as_ac_var'}'` = yes; then
11837 cat >>confdefs.h <<_ACEOF
11838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11846 for ac_func in memcpy bcopy
11848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 cat >conftest.$ac_ext <<_ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862 #define $ac_func innocuous_$ac_func
11864 /* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11870 # include <limits.h>
11872 # include <assert.h>
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11884 /* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
11887 #if defined __stub_$ac_func || defined __stub___$ac_func
11894 return $ac_func ();
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (ac_try="$ac_link"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_link") 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 eval "$as_ac_var=yes"
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 eval "$as_ac_var=no"
11941 rm -f core conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11944 ac_res=`eval echo '${'$as_ac_var'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947 if test `eval echo '${'$as_ac_var'}'` = yes; then
11948 cat >>confdefs.h <<_ACEOF
11949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11957 for ac_func in memmove strcmp
11959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 cat >conftest.$ac_ext <<_ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11973 #define $ac_func innocuous_$ac_func
11975 /* System header to define __stub macros and hopefully few prototypes,
11976 which can conflict with char $ac_func (); below.
11977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11978 <limits.h> exists even on freestanding compilers. */
11981 # include <limits.h>
11983 # include <assert.h>
11988 /* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
11995 /* The GNU C library defines this for functions which it implements
11996 to always fail with ENOSYS. Some functions are actually named
11997 something starting with __ and the normal name is an alias. */
11998 #if defined __stub_$ac_func || defined __stub___$ac_func
12005 return $ac_func ();
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (ac_try="$ac_link"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_link") 2>conftest.er1
12019 grep -v '^ *+' conftest.er1 >conftest.err
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest$ac_exeext'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 eval "$as_ac_var=yes"
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 eval "$as_ac_var=no"
12052 rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12055 ac_res=`eval echo '${'$as_ac_var'}'`
12056 { echo "$as_me:$LINENO: result: $ac_res" >&5
12057 echo "${ECHO_T}$ac_res" >&6; }
12058 if test `eval echo '${'$as_ac_var'}'` = yes; then
12059 cat >>confdefs.h <<_ACEOF
12060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12069 for ac_func in closedir opendir readdir
12071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12085 #define $ac_func innocuous_$ac_func
12087 /* System header to define __stub macros and hopefully few prototypes,
12088 which can conflict with char $ac_func (); below.
12089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12090 <limits.h> exists even on freestanding compilers. */
12093 # include <limits.h>
12095 # include <assert.h>
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12107 /* The GNU C library defines this for functions which it implements
12108 to always fail with ENOSYS. Some functions are actually named
12109 something starting with __ and the normal name is an alias. */
12110 #if defined __stub_$ac_func || defined __stub___$ac_func
12117 return $ac_func ();
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (ac_try="$ac_link"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_link") 2>conftest.er1
12131 grep -v '^ *+' conftest.er1 >conftest.err
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest$ac_exeext'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 eval "$as_ac_var=yes"
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 eval "$as_ac_var=no"
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12167 ac_res=`eval echo '${'$as_ac_var'}'`
12168 { echo "$as_me:$LINENO: result: $ac_res" >&5
12169 echo "${ECHO_T}$ac_res" >&6; }
12170 if test `eval echo '${'$as_ac_var'}'` = yes; then
12171 cat >>confdefs.h <<_ACEOF
12172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12180 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12181 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12194 if test "$GCC" != "yes" && test "$ICC" != "yes"
12196 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12197 echo "$as_me: error: gcc|icc required but not found" >&2;}
12198 { (exit 1); exit 1; }; }
12201 if test "$GXX" != "yes" && test "$IXX" != "yes"
12203 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12204 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12205 { (exit 1); exit 1; }; }
12208 if test "$GCC" = "yes"
12210 cat >conftest.$ac_ext <<_ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12218 #if !defined(__GNUC__) || __GNUC__ < 3
12219 #error Unsupported GCC version
12224 rm -f conftest.$ac_objext
12225 if { (ac_try="$ac_compile"
12226 case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_compile") 2>conftest.er1
12233 grep -v '^ *+' conftest.er1 >conftest.err
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; } &&
12248 { ac_try='test -s conftest.$ac_objext'
12249 { (case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_try") 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; }; then
12260 echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12263 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12264 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12265 { (exit 1); exit 1; }; }
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 if test -z "$llvm_cv_gnu_make_command"
12273 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12274 echo "$as_me: error: GNU Make required but not found" >&2;}
12275 { (exit 1); exit 1; }; }
12278 { echo "$as_me:$LINENO: result: ok" >&5
12279 echo "${ECHO_T}ok" >&6; }
12281 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12282 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12283 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12285 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12287 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12291 NO_MAYBE_UNINITIALIZED=
12292 if test "$GXX" = "yes"
12294 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12296 if test -z "$NO_MAYBE_UNINITIALIZED"
12298 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12302 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12303 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12306 # Check whether --with-python was given.
12307 if test "${with_python+set}" = set; then
12308 withval=$with_python; PYTHON="$withval"
12312 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12313 { echo "$as_me:$LINENO: checking for python" >&5
12314 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12315 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12316 echo "${ECHO_T}user defined: $with_python" >&6; }
12318 if test -n "$PYTHON" ; then
12319 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12320 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12323 # Extract the first word of "python python2 python26", so it can be a program name with args.
12324 set dummy python python2 python26; ac_word=$2
12325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12327 if test "${ac_cv_path_PYTHON+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12342 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12350 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12351 echo "${ECHO_T}not found" >&6; }
12352 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12353 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12354 { (exit 1); exit 1; }; }"
12358 PYTHON=$ac_cv_path_PYTHON
12359 if test -n "$PYTHON"; then
12360 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12361 echo "${ECHO_T}$PYTHON" >&6; }
12363 { echo "$as_me:$LINENO: result: no" >&5
12364 echo "${ECHO_T}no" >&6; }
12370 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12371 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12372 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12373 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12374 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12375 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12376 if test "$ac_python_version_major" -eq "2" \
12377 && test "$ac_python_version_minor" -ge "5" ; then
12378 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12379 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12381 { echo "$as_me:$LINENO: result: not found" >&5
12382 echo "${ECHO_T}not found" >&6; }
12383 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12384 See \`config.log' for more details." >&5
12385 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12386 See \`config.log' for more details." >&2;}
12387 { (exit 1); exit 1; }; }
12392 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12393 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12394 if test "${ac_cv_lib_m_sin+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 ac_check_lib_save_LIBS=$LIBS
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12406 /* Override any GCC internal prototype to avoid an error.
12407 Use char because int might match the return type of a GCC
12408 builtin and then its argument prototype would still apply. */
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest$ac_exeext'
12446 { (case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_try") 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 ac_cv_lib_m_sin=yes
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12467 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12468 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12469 if test $ac_cv_lib_m_sin = yes; then
12470 cat >>confdefs.h <<_ACEOF
12471 #define HAVE_LIBM 1
12478 if test "$llvm_cv_os_type" = "MingW" ; then
12480 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12481 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12482 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 ac_check_lib_save_LIBS=$LIBS
12486 LIBS="-limagehlp $LIBS"
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>conftest.er1
12512 grep -v '^ *+' conftest.er1 >conftest.err
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12518 { (case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_try") 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } &&
12527 { ac_try='test -s conftest$ac_exeext'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 ac_cv_lib_imagehlp_main=yes
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 ac_cv_lib_imagehlp_main=no
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12547 LIBS=$ac_check_lib_save_LIBS
12549 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12550 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12551 if test $ac_cv_lib_imagehlp_main = yes; then
12552 cat >>confdefs.h <<_ACEOF
12553 #define HAVE_LIBIMAGEHLP 1
12556 LIBS="-limagehlp $LIBS"
12561 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12562 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12563 if test "${ac_cv_lib_psapi_main+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 ac_check_lib_save_LIBS=$LIBS
12567 LIBS="-lpsapi $LIBS"
12568 cat >conftest.$ac_ext <<_ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (ac_try="$ac_link"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_link") 2>conftest.er1
12593 grep -v '^ *+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } &&
12598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12599 { (case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_try") 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
12609 { (case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_try") 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 ac_cv_lib_psapi_main=yes
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 ac_cv_lib_psapi_main=no
12626 rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12628 LIBS=$ac_check_lib_save_LIBS
12630 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12631 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12632 if test $ac_cv_lib_psapi_main = yes; then
12633 cat >>confdefs.h <<_ACEOF
12634 #define HAVE_LIBPSAPI 1
12637 LIBS="-lpsapi $LIBS"
12643 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12644 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12645 if test "${ac_cv_search_dlopen+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 ac_func_search_save_LIBS=$LIBS
12649 cat >conftest.$ac_ext <<_ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12656 /* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12671 for ac_lib in '' dl; do
12672 if test -z "$ac_lib"; then
12673 ac_res="none required"
12676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
12687 grep -v '^ *+' conftest.er1 >conftest.err
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12693 { (case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_try") 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest$ac_exeext'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 ac_cv_search_dlopen=$ac_res
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12720 rm -f core conftest.err conftest.$ac_objext \
12722 if test "${ac_cv_search_dlopen+set}" = set; then
12726 if test "${ac_cv_search_dlopen+set}" = set; then
12729 ac_cv_search_dlopen=no
12731 rm conftest.$ac_ext
12732 LIBS=$ac_func_search_save_LIBS
12734 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12735 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12736 ac_res=$ac_cv_search_dlopen
12737 if test "$ac_res" != no; then
12738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12740 cat >>confdefs.h <<\_ACEOF
12741 #define HAVE_DLOPEN 1
12745 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12746 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12750 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12751 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12752 if test "${ac_cv_search_clock_gettime+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 ac_func_search_save_LIBS=$LIBS
12756 cat >conftest.$ac_ext <<_ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12769 char clock_gettime ();
12773 return clock_gettime ();
12778 for ac_lib in '' rt; do
12779 if test -z "$ac_lib"; then
12780 ac_res="none required"
12783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12785 rm -f conftest.$ac_objext conftest$ac_exeext
12786 if { (ac_try="$ac_link"
12787 case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_link") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest$ac_exeext'
12810 { (case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815 (eval "$ac_try") 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; }; then
12819 ac_cv_search_clock_gettime=$ac_res
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12827 rm -f core conftest.err conftest.$ac_objext \
12829 if test "${ac_cv_search_clock_gettime+set}" = set; then
12833 if test "${ac_cv_search_clock_gettime+set}" = set; then
12836 ac_cv_search_clock_gettime=no
12838 rm conftest.$ac_ext
12839 LIBS=$ac_func_search_save_LIBS
12841 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12842 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12843 ac_res=$ac_cv_search_clock_gettime
12844 if test "$ac_res" != no; then
12845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12850 if test "$llvm_cv_enable_libffi" = "yes" ; then
12851 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12852 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12853 if test "${ac_cv_search_ffi_call+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 ac_func_search_save_LIBS=$LIBS
12857 cat >conftest.$ac_ext <<_ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12864 /* Override any GCC internal prototype to avoid an error.
12865 Use char because int might match the return type of a GCC
12866 builtin and then its argument prototype would still apply. */
12874 return ffi_call ();
12879 for ac_lib in '' ffi; do
12880 if test -z "$ac_lib"; then
12881 ac_res="none required"
12884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (ac_try="$ac_link"
12888 case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893 (eval "$ac_link") 2>conftest.er1
12895 grep -v '^ *+' conftest.er1 >conftest.err
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12901 { (case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_try") 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest$ac_exeext'
12911 { (case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_try") 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 ac_cv_search_ffi_call=$ac_res
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12928 rm -f core conftest.err conftest.$ac_objext \
12930 if test "${ac_cv_search_ffi_call+set}" = set; then
12934 if test "${ac_cv_search_ffi_call+set}" = set; then
12937 ac_cv_search_ffi_call=no
12939 rm conftest.$ac_ext
12940 LIBS=$ac_func_search_save_LIBS
12942 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12943 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12944 ac_res=$ac_cv_search_ffi_call
12945 if test "$ac_res" != no; then
12946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12948 cat >>confdefs.h <<\_ACEOF
12949 #define HAVE_FFI_CALL 1
12953 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12954 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12955 { (exit 1); exit 1; }; }
12960 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12961 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12962 if test "${ac_cv_search_mallinfo+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 ac_func_search_save_LIBS=$LIBS
12966 cat >conftest.$ac_ext <<_ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h. */
12973 /* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
12983 return mallinfo ();
12988 for ac_lib in '' malloc; do
12989 if test -z "$ac_lib"; then
12990 ac_res="none required"
12993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12995 rm -f conftest.$ac_objext conftest$ac_exeext
12996 if { (ac_try="$ac_link"
12997 case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_link") 2>conftest.er1
13004 grep -v '^ *+' conftest.er1 >conftest.err
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try='test -s conftest$ac_exeext'
13020 { (case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_try") 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_cv_search_mallinfo=$ac_res
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13037 rm -f core conftest.err conftest.$ac_objext \
13039 if test "${ac_cv_search_mallinfo+set}" = set; then
13043 if test "${ac_cv_search_mallinfo+set}" = set; then
13046 ac_cv_search_mallinfo=no
13048 rm conftest.$ac_ext
13049 LIBS=$ac_func_search_save_LIBS
13051 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13052 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13053 ac_res=$ac_cv_search_mallinfo
13054 if test "$ac_res" != no; then
13055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13057 cat >>confdefs.h <<\_ACEOF
13058 #define HAVE_MALLINFO 1
13064 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13066 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13067 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13068 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-lpthread $LIBS"
13073 cat >conftest.$ac_ext <<_ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13086 char pthread_mutex_init ();
13090 return pthread_mutex_init ();
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (ac_try="$ac_link"
13097 case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_link") 2>conftest.er1
13104 grep -v '^ *+' conftest.er1 >conftest.err
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13110 { (case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_try") 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } &&
13119 { ac_try='test -s conftest$ac_exeext'
13120 { (case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
13129 ac_cv_lib_pthread_pthread_mutex_init=yes
13131 echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13134 ac_cv_lib_pthread_pthread_mutex_init=no
13137 rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13139 LIBS=$ac_check_lib_save_LIBS
13141 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13142 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13143 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13144 cat >>confdefs.h <<_ACEOF
13145 #define HAVE_LIBPTHREAD 1
13148 LIBS="-lpthread $LIBS"
13152 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13153 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13154 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 ac_func_search_save_LIBS=$LIBS
13158 cat >conftest.$ac_ext <<_ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13171 char pthread_mutex_lock ();
13175 return pthread_mutex_lock ();
13180 for ac_lib in '' pthread; do
13181 if test -z "$ac_lib"; then
13182 ac_res="none required"
13185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13187 rm -f conftest.$ac_objext conftest$ac_exeext
13188 if { (ac_try="$ac_link"
13189 case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_link") 2>conftest.er1
13196 grep -v '^ *+' conftest.er1 >conftest.err
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
13201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13202 { (case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_try") 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_try") 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 ac_cv_search_pthread_mutex_lock=$ac_res
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13229 rm -f core conftest.err conftest.$ac_objext \
13231 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13235 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13238 ac_cv_search_pthread_mutex_lock=no
13240 rm conftest.$ac_ext
13241 LIBS=$ac_func_search_save_LIBS
13243 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13244 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13245 ac_res=$ac_cv_search_pthread_mutex_lock
13246 if test "$ac_res" != no; then
13247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_PTHREAD_MUTEX_LOCK 1
13255 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13256 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13257 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 ac_func_search_save_LIBS=$LIBS
13261 cat >conftest.$ac_ext <<_ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13268 /* Override any GCC internal prototype to avoid an error.
13269 Use char because int might match the return type of a GCC
13270 builtin and then its argument prototype would still apply. */
13274 char pthread_rwlock_init ();
13278 return pthread_rwlock_init ();
13283 for ac_lib in '' pthread; do
13284 if test -z "$ac_lib"; then
13285 ac_res="none required"
13288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (ac_try="$ac_link"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_link") 2>conftest.er1
13299 grep -v '^ *+' conftest.er1 >conftest.err
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } &&
13314 { ac_try='test -s conftest$ac_exeext'
13315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
13324 ac_cv_search_pthread_rwlock_init=$ac_res
13326 echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13332 rm -f core conftest.err conftest.$ac_objext \
13334 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13338 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13341 ac_cv_search_pthread_rwlock_init=no
13343 rm conftest.$ac_ext
13344 LIBS=$ac_func_search_save_LIBS
13346 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13347 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13348 ac_res=$ac_cv_search_pthread_rwlock_init
13349 if test "$ac_res" != no; then
13350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13352 cat >>confdefs.h <<\_ACEOF
13353 #define HAVE_PTHREAD_RWLOCK_INIT 1
13358 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13359 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13360 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 ac_func_search_save_LIBS=$LIBS
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13371 /* Override any GCC internal prototype to avoid an error.
13372 Use char because int might match the return type of a GCC
13373 builtin and then its argument prototype would still apply. */
13377 char pthread_getspecific ();
13381 return pthread_getspecific ();
13386 for ac_lib in '' pthread; do
13387 if test -z "$ac_lib"; then
13388 ac_res="none required"
13391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13393 rm -f conftest.$ac_objext conftest$ac_exeext
13394 if { (ac_try="$ac_link"
13395 case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_link") 2>conftest.er1
13402 grep -v '^ *+' conftest.er1 >conftest.err
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13408 { (case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_try") 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; } &&
13417 { ac_try='test -s conftest$ac_exeext'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_cv_search_pthread_getspecific=$ac_res
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13435 rm -f core conftest.err conftest.$ac_objext \
13437 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13441 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13444 ac_cv_search_pthread_getspecific=no
13446 rm conftest.$ac_ext
13447 LIBS=$ac_func_search_save_LIBS
13449 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13450 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13451 ac_res=$ac_cv_search_pthread_getspecific
13452 if test "$ac_res" != no; then
13453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13455 cat >>confdefs.h <<\_ACEOF
13456 #define HAVE_PTHREAD_GETSPECIFIC 1
13463 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13465 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13466 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13467 if test "${ac_cv_lib_z_compress2+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 ac_check_lib_save_LIBS=$LIBS
13472 cat >conftest.$ac_ext <<_ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13479 /* Override any GCC internal prototype to avoid an error.
13480 Use char because int might match the return type of a GCC
13481 builtin and then its argument prototype would still apply. */
13489 return compress2 ();
13494 rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (ac_try="$ac_link"
13496 case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_link") 2>conftest.er1
13503 grep -v '^ *+' conftest.er1 >conftest.err
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } &&
13508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13509 { (case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_try") 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; } &&
13518 { ac_try='test -s conftest$ac_exeext'
13519 { (case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_try") 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
13528 ac_cv_lib_z_compress2=yes
13530 echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13533 ac_cv_lib_z_compress2=no
13536 rm -f core conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13538 LIBS=$ac_check_lib_save_LIBS
13540 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13541 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13542 if test $ac_cv_lib_z_compress2 = yes; then
13543 cat >>confdefs.h <<_ACEOF
13544 #define HAVE_LIBZ 1
13554 # Check whether --with-udis86 was given.
13555 if test "${with_udis86+set}" = set; then
13556 withval=$with_udis86;
13561 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13564 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13565 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13566 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 ac_check_lib_save_LIBS=$LIBS
13570 LIBS="-ludis86 $LIBS"
13571 cat >conftest.$ac_ext <<_ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13593 rm -f conftest.$ac_objext conftest$ac_exeext
13594 if { (ac_try="$ac_link"
13595 case "(($ac_try" in
13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13597 *) ac_try_echo=$ac_try;;
13599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13600 (eval "$ac_link") 2>conftest.er1
13602 grep -v '^ *+' conftest.er1 >conftest.err
13604 cat conftest.err >&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } &&
13607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13608 { (case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_try") 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest$ac_exeext'
13618 { (case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_try") 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 ac_cv_lib_udis86_ud_init=yes
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13632 ac_cv_lib_udis86_ud_init=no
13635 rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13637 LIBS=$ac_check_lib_save_LIBS
13639 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13640 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13641 if test $ac_cv_lib_udis86_ud_init = yes; then
13642 cat >>confdefs.h <<_ACEOF
13643 #define HAVE_LIBUDIS86 1
13646 LIBS="-ludis86 $LIBS"
13650 echo "Error! You need to have libudis86 around."
13662 cat >>confdefs.h <<_ACEOF
13663 #define USE_UDIS86 $USE_UDIS86
13668 # Check whether --with-oprofile was given.
13669 if test "${with_oprofile+set}" = set; then
13670 withval=$with_oprofile;
13674 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13675 no) llvm_cv_oppath=
13678 *) llvm_cv_oppath="${withval}/lib/oprofile"
13679 CPPFLAGS="-I${withval}/include";;
13681 case $llvm_cv_os_type in
13683 if test -n "$llvm_cv_oppath" ; then
13684 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13685 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13686 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13687 if test "${ac_cv_search_bfd_init+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 ac_func_search_save_LIBS=$LIBS
13691 cat >conftest.$ac_ext <<_ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13698 /* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
13708 return bfd_init ();
13713 for ac_lib in '' bfd; do
13714 if test -z "$ac_lib"; then
13715 ac_res="none required"
13718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (ac_try="$ac_link"
13722 case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_link") 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13735 { (case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_try") 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest$ac_exeext'
13745 { (case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_try") 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_cv_search_bfd_init=$ac_res
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13762 rm -f core conftest.err conftest.$ac_objext \
13764 if test "${ac_cv_search_bfd_init+set}" = set; then
13768 if test "${ac_cv_search_bfd_init+set}" = set; then
13771 ac_cv_search_bfd_init=no
13773 rm conftest.$ac_ext
13774 LIBS=$ac_func_search_save_LIBS
13776 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13777 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13778 ac_res=$ac_cv_search_bfd_init
13779 if test "$ac_res" != no; then
13780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13784 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13785 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13786 if test "${ac_cv_search_op_open_agent+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 ac_func_search_save_LIBS=$LIBS
13790 cat >conftest.$ac_ext <<_ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13797 /* Override any GCC internal prototype to avoid an error.
13798 Use char because int might match the return type of a GCC
13799 builtin and then its argument prototype would still apply. */
13803 char op_open_agent ();
13807 return op_open_agent ();
13812 for ac_lib in '' opagent; do
13813 if test -z "$ac_lib"; then
13814 ac_res="none required"
13817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (ac_try="$ac_link"
13821 case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_link") 2>conftest.er1
13828 grep -v '^ *+' conftest.er1 >conftest.err
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
13833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13834 { (case "(($ac_try" in
13835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_try") 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest$ac_exeext'
13844 { (case "(($ac_try" in
13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846 *) ac_try_echo=$ac_try;;
13848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_try") 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_search_op_open_agent=$ac_res
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13861 rm -f core conftest.err conftest.$ac_objext \
13863 if test "${ac_cv_search_op_open_agent+set}" = set; then
13867 if test "${ac_cv_search_op_open_agent+set}" = set; then
13870 ac_cv_search_op_open_agent=no
13872 rm conftest.$ac_ext
13873 LIBS=$ac_func_search_save_LIBS
13875 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13876 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13877 ac_res=$ac_cv_search_op_open_agent
13878 if test "$ac_res" != no; then
13879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13883 echo "Error! You need to have libopagent around."
13888 if test "${ac_cv_header_opagent_h+set}" = set; then
13889 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13890 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13891 if test "${ac_cv_header_opagent_h+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13895 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13897 # Is the header compilable?
13898 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13899 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13900 cat >conftest.$ac_ext <<_ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906 $ac_includes_default
13907 #include <opagent.h>
13909 rm -f conftest.$ac_objext
13910 if { (ac_try="$ac_compile"
13911 case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_compile") 2>conftest.er1
13918 grep -v '^ *+' conftest.er1 >conftest.err
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
13923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13924 { (case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_try") 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; } &&
13933 { ac_try='test -s conftest.$ac_objext'
13934 { (case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_try") 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_header_compiler=yes
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 ac_header_compiler=no
13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13953 echo "${ECHO_T}$ac_header_compiler" >&6; }
13955 # Is the header present?
13956 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13957 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13958 cat >conftest.$ac_ext <<_ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 #include <opagent.h>
13966 if { (ac_try="$ac_cpp conftest.$ac_ext"
13967 case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13974 grep -v '^ *+' conftest.er1 >conftest.err
13976 cat conftest.err >&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } >/dev/null; then
13979 if test -s conftest.err; then
13980 ac_cpp_err=$ac_c_preproc_warn_flag
13981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13988 if test -z "$ac_cpp_err"; then
13989 ac_header_preproc=yes
13991 echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13994 ac_header_preproc=no
13997 rm -f conftest.err conftest.$ac_ext
13998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13999 echo "${ECHO_T}$ac_header_preproc" >&6; }
14001 # So? What about this header?
14002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14004 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14005 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14007 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14008 ac_header_preproc=yes
14011 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14012 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14014 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14016 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14018 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14020 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14022 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14024 ## ------------------------------------ ##
14025 ## Report this to http://llvm.org/bugs/ ##
14026 ## ------------------------------------ ##
14028 ) | sed "s/^/$as_me: WARNING: /" >&2
14031 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14032 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14033 if test "${ac_cv_header_opagent_h+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 ac_cv_header_opagent_h=$ac_header_preproc
14038 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14039 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14042 if test $ac_cv_header_opagent_h = yes; then
14046 echo "Error! You need to have opagent.h around."
14054 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14055 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14056 { (exit 1); exit 1; }; } ;;
14067 cat >>confdefs.h <<_ACEOF
14068 #define LLVM_USE_OPROFILE $USE_OPROFILE
14073 # Check whether --with-intel-jitevents was given.
14074 if test "${with_intel_jitevents+set}" = set; then
14075 withval=$with_intel_jitevents;
14077 yes) USE_INTEL_JITEVENTS=1
14079 no) USE_INTEL_JITEVENTS=0
14081 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14082 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14083 { (exit 1); exit 1; }; };;
14086 case $llvm_cv_os_type in
14087 Linux|Win32|Cygwin|MingW) ;;
14088 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14089 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14090 { (exit 1); exit 1; }; };;
14093 case "$llvm_cv_target_arch" in
14095 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14096 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14097 { (exit 1); exit 1; }; };;
14102 USE_INTEL_JITEVENTS=0
14108 cat >>confdefs.h <<_ACEOF
14109 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14113 for ac_prog in xml2-config
14115 # Extract the first word of "$ac_prog", so it can be a program name with args.
14116 set dummy $ac_prog; ac_word=$2
14117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14119 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14122 if test -n "$XML2CONFIG"; then
14123 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 for as_dir in $PATH
14129 test -z "$as_dir" && as_dir=.
14130 for ac_exec_ext in '' $ac_executable_extensions; do
14131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14132 ac_cv_prog_XML2CONFIG="$ac_prog"
14133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14142 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14143 if test -n "$XML2CONFIG"; then
14144 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14145 echo "${ECHO_T}$XML2CONFIG" >&6; }
14147 { echo "$as_me:$LINENO: result: no" >&5
14148 echo "${ECHO_T}no" >&6; }
14152 test -n "$XML2CONFIG" && break
14156 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14157 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14158 if test "x$XML2CONFIG" = "x"; then
14159 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14160 echo "${ECHO_T}xml2-config not found" >&6; }
14162 LIBXML2_INC=`$XML2CONFIG --cflags`
14163 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14164 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14165 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14166 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14167 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 ac_check_lib_save_LIBS=$LIBS
14171 LIBS="-lxml2 $LIBS"
14172 cat >conftest.$ac_ext <<_ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14179 /* Override any GCC internal prototype to avoid an error.
14180 Use char because int might match the return type of a GCC
14181 builtin and then its argument prototype would still apply. */
14185 char xmlReadFile ();
14189 return xmlReadFile ();
14194 rm -f conftest.$ac_objext conftest$ac_exeext
14195 if { (ac_try="$ac_link"
14196 case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_link") 2>conftest.er1
14203 grep -v '^ *+' conftest.er1 >conftest.err
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest$ac_exeext'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_cv_lib_xml2_xmlReadFile=yes
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 ac_cv_lib_xml2_xmlReadFile=no
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14238 LIBS=$ac_check_lib_save_LIBS
14240 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14241 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14242 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14244 cat >>confdefs.h <<\_ACEOF
14245 #define CLANG_HAVE_LIBXML 1
14248 LIBXML2_LIBS="-lxml2"
14261 ac_header_dirent=no
14262 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14263 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14264 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14265 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 cat >conftest.$ac_ext <<_ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 #include <sys/types.h>
14287 rm -f conftest.$ac_objext
14288 if { (ac_try="$ac_compile"
14289 case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_compile") 2>conftest.er1
14296 grep -v '^ *+' conftest.er1 >conftest.err
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14302 { (case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_try") 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; } &&
14311 { ac_try='test -s conftest.$ac_objext'
14312 { (case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317 (eval "$ac_try") 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 eval "$as_ac_Header=yes"
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 eval "$as_ac_Header=no"
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331 ac_res=`eval echo '${'$as_ac_Header'}'`
14332 { echo "$as_me:$LINENO: result: $ac_res" >&5
14333 echo "${ECHO_T}$ac_res" >&6; }
14334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14335 cat >>confdefs.h <<_ACEOF
14336 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14339 ac_header_dirent=$ac_hdr; break
14343 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14344 if test $ac_header_dirent = dirent.h; then
14345 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14347 if test "${ac_cv_search_opendir+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 ac_func_search_save_LIBS=$LIBS
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14373 for ac_lib in '' dir; do
14374 if test -z "$ac_lib"; then
14375 ac_res="none required"
14378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14380 rm -f conftest.$ac_objext conftest$ac_exeext
14381 if { (ac_try="$ac_link"
14382 case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387 (eval "$ac_link") 2>conftest.er1
14389 grep -v '^ *+' conftest.er1 >conftest.err
14391 cat conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14395 { (case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_try") 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; } &&
14404 { ac_try='test -s conftest$ac_exeext'
14405 { (case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_try") 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_cv_search_opendir=$ac_res
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14422 rm -f core conftest.err conftest.$ac_objext \
14424 if test "${ac_cv_search_opendir+set}" = set; then
14428 if test "${ac_cv_search_opendir+set}" = set; then
14431 ac_cv_search_opendir=no
14433 rm conftest.$ac_ext
14434 LIBS=$ac_func_search_save_LIBS
14436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14438 ac_res=$ac_cv_search_opendir
14439 if test "$ac_res" != no; then
14440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14445 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14447 if test "${ac_cv_search_opendir+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 ac_func_search_save_LIBS=$LIBS
14451 cat >conftest.$ac_ext <<_ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14473 for ac_lib in '' x; do
14474 if test -z "$ac_lib"; then
14475 ac_res="none required"
14478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (ac_try="$ac_link"
14482 case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_link") 2>conftest.er1
14489 grep -v '^ *+' conftest.er1 >conftest.err
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14495 { (case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_try") 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; } &&
14504 { ac_try='test -s conftest$ac_exeext'
14505 { (case "(($ac_try" in
14506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507 *) ac_try_echo=$ac_try;;
14509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14510 (eval "$ac_try") 2>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; }; then
14514 ac_cv_search_opendir=$ac_res
14516 echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14522 rm -f core conftest.err conftest.$ac_objext \
14524 if test "${ac_cv_search_opendir+set}" = set; then
14528 if test "${ac_cv_search_opendir+set}" = set; then
14531 ac_cv_search_opendir=no
14533 rm conftest.$ac_ext
14534 LIBS=$ac_func_search_save_LIBS
14536 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14537 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14538 ac_res=$ac_cv_search_opendir
14539 if test "$ac_res" != no; then
14540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14546 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14547 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14548 if test "${ac_cv_header_mmap_anon+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 ac_cpp='$CPP $CPPFLAGS'
14553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14557 cat >conftest.$ac_ext <<_ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h. */
14563 #include <sys/mman.h>
14564 #include <unistd.h>
14569 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14574 rm -f conftest.$ac_objext
14575 if { (ac_try="$ac_compile"
14576 case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_compile") 2>conftest.er1
14583 grep -v '^ *+' conftest.er1 >conftest.err
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } &&
14588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14589 { (case "(($ac_try" in
14590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591 *) ac_try_echo=$ac_try;;
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594 (eval "$ac_try") 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_try") 2>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; }; then
14608 ac_cv_header_mmap_anon=yes
14610 echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14613 ac_cv_header_mmap_anon=no
14616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618 ac_cpp='$CPP $CPPFLAGS'
14619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14625 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14626 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14627 if test "$ac_cv_header_mmap_anon" = yes; then
14629 cat >>confdefs.h <<\_ACEOF
14630 #define HAVE_MMAP_ANONYMOUS 1
14635 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14636 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14637 if test "${ac_cv_header_stat_broken+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >conftest.$ac_ext <<_ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 #include <sys/types.h>
14647 #include <sys/stat.h>
14649 #if defined S_ISBLK && defined S_IFDIR
14650 # if S_ISBLK (S_IFDIR)
14655 #if defined S_ISBLK && defined S_IFCHR
14656 # if S_ISBLK (S_IFCHR)
14661 #if defined S_ISLNK && defined S_IFREG
14662 # if S_ISLNK (S_IFREG)
14667 #if defined S_ISSOCK && defined S_IFREG
14668 # if S_ISSOCK (S_IFREG)
14674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14675 $EGREP "You lose" >/dev/null 2>&1; then
14676 ac_cv_header_stat_broken=yes
14678 ac_cv_header_stat_broken=no
14683 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14684 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14685 if test $ac_cv_header_stat_broken = yes; then
14687 cat >>confdefs.h <<\_ACEOF
14688 #define STAT_MACROS_BROKEN 1
14693 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14694 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14695 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 cat >conftest.$ac_ext <<_ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14704 #include <sys/types.h>
14705 #include <sys/wait.h>
14706 #ifndef WEXITSTATUS
14707 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14710 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14718 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_compile") 2>conftest.er1
14732 grep -v '^ *+' conftest.er1 >conftest.err
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
14737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_cv_header_sys_wait_h=yes
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14762 ac_cv_header_sys_wait_h=no
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14768 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14769 if test $ac_cv_header_sys_wait_h = yes; then
14771 cat >>confdefs.h <<\_ACEOF
14772 #define HAVE_SYS_WAIT_H 1
14777 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14778 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14779 if test "${ac_cv_header_time+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 cat >conftest.$ac_ext <<_ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #include <sys/types.h>
14789 #include <sys/time.h>
14795 if ((struct tm *) 0)
14801 rm -f conftest.$ac_objext
14802 if { (ac_try="$ac_compile"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_compile") 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14816 { (case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_try") 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try='test -s conftest.$ac_objext'
14826 { (case "(($ac_try" in
14827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14828 *) ac_try_echo=$ac_try;;
14830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831 (eval "$ac_try") 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 ac_cv_header_time=yes
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 ac_cv_header_time=no
14843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14846 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14847 if test $ac_cv_header_time = yes; then
14849 cat >>confdefs.h <<\_ACEOF
14850 #define TIME_WITH_SYS_TIME 1
14857 ac_cpp='$CXXCPP $CPPFLAGS'
14858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14863 ac_cpp='$CXXCPP $CPPFLAGS'
14864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14867 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14868 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14869 if test -z "$CXXCPP"; then
14870 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 # Double quotes because CXXCPP needs to be expanded
14874 for CXXCPP in "$CXX -E" "/lib/cpp"
14876 ac_preproc_ok=false
14877 for ac_cxx_preproc_warn_flag in '' yes
14879 # Use a header file that comes with gcc, so configuring glibc
14880 # with a fresh cross-compiler works.
14881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14882 # <limits.h> exists even on freestanding compilers.
14883 # On the NeXT, cc -E runs the code through the compiler's parser,
14884 # not just through cpp. "Syntax error" is here to catch this case.
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14892 # include <limits.h>
14894 # include <assert.h>
14898 if { (ac_try="$ac_cpp conftest.$ac_ext"
14899 case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14906 grep -v '^ *+' conftest.er1 >conftest.err
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } >/dev/null; then
14911 if test -s conftest.err; then
14912 ac_cpp_err=$ac_cxx_preproc_warn_flag
14913 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14920 if test -z "$ac_cpp_err"; then
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 # Broken: fails on valid input.
14930 rm -f conftest.err conftest.$ac_ext
14932 # OK, works on sane cases. Now check whether nonexistent headers
14933 # can be detected and how.
14934 cat >conftest.$ac_ext <<_ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #include <ac_nonexistent.h>
14942 if { (ac_try="$ac_cpp conftest.$ac_ext"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14950 grep -v '^ *+' conftest.er1 >conftest.err
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } >/dev/null; then
14955 if test -s conftest.err; then
14956 ac_cpp_err=$ac_cxx_preproc_warn_flag
14957 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14964 if test -z "$ac_cpp_err"; then
14965 # Broken: success on invalid input.
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 # Passes both tests.
14976 rm -f conftest.err conftest.$ac_ext
14979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14980 rm -f conftest.err conftest.$ac_ext
14981 if $ac_preproc_ok; then
14986 ac_cv_prog_CXXCPP=$CXXCPP
14989 CXXCPP=$ac_cv_prog_CXXCPP
14991 ac_cv_prog_CXXCPP=$CXXCPP
14993 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14994 echo "${ECHO_T}$CXXCPP" >&6; }
14995 ac_preproc_ok=false
14996 for ac_cxx_preproc_warn_flag in '' yes
14998 # Use a header file that comes with gcc, so configuring glibc
14999 # with a fresh cross-compiler works.
15000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15001 # <limits.h> exists even on freestanding compilers.
15002 # On the NeXT, cc -E runs the code through the compiler's parser,
15003 # not just through cpp. "Syntax error" is here to catch this case.
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15011 # include <limits.h>
15013 # include <assert.h>
15017 if { (ac_try="$ac_cpp conftest.$ac_ext"
15018 case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15025 grep -v '^ *+' conftest.er1 >conftest.err
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } >/dev/null; then
15030 if test -s conftest.err; then
15031 ac_cpp_err=$ac_cxx_preproc_warn_flag
15032 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15039 if test -z "$ac_cpp_err"; then
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15045 # Broken: fails on valid input.
15049 rm -f conftest.err conftest.$ac_ext
15051 # OK, works on sane cases. Now check whether nonexistent headers
15052 # can be detected and how.
15053 cat >conftest.$ac_ext <<_ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15059 #include <ac_nonexistent.h>
15061 if { (ac_try="$ac_cpp conftest.$ac_ext"
15062 case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15069 grep -v '^ *+' conftest.er1 >conftest.err
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } >/dev/null; then
15074 if test -s conftest.err; then
15075 ac_cpp_err=$ac_cxx_preproc_warn_flag
15076 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15083 if test -z "$ac_cpp_err"; then
15084 # Broken: success on invalid input.
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 # Passes both tests.
15095 rm -f conftest.err conftest.$ac_ext
15098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15099 rm -f conftest.err conftest.$ac_ext
15100 if $ac_preproc_ok; then
15103 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15104 See \`config.log' for more details." >&5
15105 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15106 See \`config.log' for more details." >&2;}
15107 { (exit 1); exit 1; }; }
15111 ac_cpp='$CXXCPP $CPPFLAGS'
15112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15118 for ac_header in cxxabi.h
15120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 ac_res=`eval echo '${'$as_ac_Header'}'`
15128 { echo "$as_me:$LINENO: result: $ac_res" >&5
15129 echo "${ECHO_T}$ac_res" >&6; }
15131 # Is the header compilable?
15132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15134 cat >conftest.$ac_ext <<_ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15140 $ac_includes_default
15141 #include <$ac_header>
15143 rm -f conftest.$ac_objext
15144 if { (ac_try="$ac_compile"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_compile") 2>conftest.er1
15152 grep -v '^ *+' conftest.er1 >conftest.err
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } &&
15157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15158 { (case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_try") 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest.$ac_objext'
15168 { (case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_try") 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_header_compiler=yes
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15182 ac_header_compiler=no
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15187 echo "${ECHO_T}$ac_header_compiler" >&6; }
15189 # Is the header present?
15190 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15192 cat >conftest.$ac_ext <<_ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 #include <$ac_header>
15200 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15213 if test -s conftest.err; then
15214 ac_cpp_err=$ac_cxx_preproc_warn_flag
15215 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15222 if test -z "$ac_cpp_err"; then
15223 ac_header_preproc=yes
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15228 ac_header_preproc=no
15231 rm -f conftest.err conftest.$ac_ext
15232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15233 echo "${ECHO_T}$ac_header_preproc" >&6; }
15235 # So? What about this header?
15236 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15242 ac_header_preproc=yes
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15258 ## ------------------------------------ ##
15259 ## Report this to http://llvm.org/bugs/ ##
15260 ## ------------------------------------ ##
15262 ) | sed "s/^/$as_me: WARNING: /" >&2
15265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 eval "$as_ac_Header=\$ac_header_preproc"
15272 ac_res=`eval echo '${'$as_ac_Header'}'`
15273 { echo "$as_me:$LINENO: result: $ac_res" >&5
15274 echo "${ECHO_T}$ac_res" >&6; }
15277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15278 cat >>confdefs.h <<_ACEOF
15279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15287 ac_cpp='$CPP $CPPFLAGS'
15288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15298 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 ac_res=`eval echo '${'$as_ac_Header'}'`
15308 { echo "$as_me:$LINENO: result: $ac_res" >&5
15309 echo "${ECHO_T}$ac_res" >&6; }
15311 # Is the header compilable?
15312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15314 cat >conftest.$ac_ext <<_ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15320 $ac_includes_default
15321 #include <$ac_header>
15323 rm -f conftest.$ac_objext
15324 if { (ac_try="$ac_compile"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_compile") 2>conftest.er1
15332 grep -v '^ *+' conftest.er1 >conftest.err
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_header_compiler=yes
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_header_compiler=no
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15367 echo "${ECHO_T}$ac_header_compiler" >&6; }
15369 # Is the header present?
15370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15372 cat >conftest.$ac_ext <<_ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 #include <$ac_header>
15380 if { (ac_try="$ac_cpp conftest.$ac_ext"
15381 case "(($ac_try" in
15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15388 grep -v '^ *+' conftest.er1 >conftest.err
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } >/dev/null; then
15393 if test -s conftest.err; then
15394 ac_cpp_err=$ac_c_preproc_warn_flag
15395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15402 if test -z "$ac_cpp_err"; then
15403 ac_header_preproc=yes
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_header_preproc=no
15411 rm -f conftest.err conftest.$ac_ext
15412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15413 echo "${ECHO_T}$ac_header_preproc" >&6; }
15415 # So? What about this header?
15416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15422 ac_header_preproc=yes
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15438 ## ------------------------------------ ##
15439 ## Report this to http://llvm.org/bugs/ ##
15440 ## ------------------------------------ ##
15442 ) | sed "s/^/$as_me: WARNING: /" >&2
15445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 eval "$as_ac_Header=\$ac_header_preproc"
15452 ac_res=`eval echo '${'$as_ac_Header'}'`
15453 { echo "$as_me:$LINENO: result: $ac_res" >&5
15454 echo "${ECHO_T}$ac_res" >&6; }
15457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15458 cat >>confdefs.h <<_ACEOF
15459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15472 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 ac_res=`eval echo '${'$as_ac_Header'}'`
15482 { echo "$as_me:$LINENO: result: $ac_res" >&5
15483 echo "${ECHO_T}$ac_res" >&6; }
15485 # Is the header compilable?
15486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15488 cat >conftest.$ac_ext <<_ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 $ac_includes_default
15495 #include <$ac_header>
15497 rm -f conftest.$ac_objext
15498 if { (ac_try="$ac_compile"
15499 case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_compile") 2>conftest.er1
15506 grep -v '^ *+' conftest.er1 >conftest.err
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest.$ac_objext'
15522 { (case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_try") 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_header_compiler=yes
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ac_header_compiler=no
15539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15541 echo "${ECHO_T}$ac_header_compiler" >&6; }
15543 # Is the header present?
15544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 #include <$ac_header>
15554 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null; then
15567 if test -s conftest.err; then
15568 ac_cpp_err=$ac_c_preproc_warn_flag
15569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15576 if test -z "$ac_cpp_err"; then
15577 ac_header_preproc=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_preproc=no
15585 rm -f conftest.err conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587 echo "${ECHO_T}$ac_header_preproc" >&6; }
15589 # So? What about this header?
15590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596 ac_header_preproc=yes
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15612 ## ------------------------------------ ##
15613 ## Report this to http://llvm.org/bugs/ ##
15614 ## ------------------------------------ ##
15616 ) | sed "s/^/$as_me: WARNING: /" >&2
15619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 eval "$as_ac_Header=\$ac_header_preproc"
15626 ac_res=`eval echo '${'$as_ac_Header'}'`
15627 { echo "$as_me:$LINENO: result: $ac_res" >&5
15628 echo "${ECHO_T}$ac_res" >&6; }
15631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15632 cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15642 for ac_header in utime.h windows.h
15644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 ac_res=`eval echo '${'$as_ac_Header'}'`
15652 { echo "$as_me:$LINENO: result: $ac_res" >&5
15653 echo "${ECHO_T}$ac_res" >&6; }
15655 # Is the header compilable?
15656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15658 cat >conftest.$ac_ext <<_ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 $ac_includes_default
15665 #include <$ac_header>
15667 rm -f conftest.$ac_objext
15668 if { (ac_try="$ac_compile"
15669 case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_compile") 2>conftest.er1
15676 grep -v '^ *+' conftest.er1 >conftest.err
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15682 { (case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_try") 2>&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try='test -s conftest.$ac_objext'
15692 { (case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_try") 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_header_compiler=yes
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 ac_header_compiler=no
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15711 echo "${ECHO_T}$ac_header_compiler" >&6; }
15713 # Is the header present?
15714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15716 cat >conftest.$ac_ext <<_ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722 #include <$ac_header>
15724 if { (ac_try="$ac_cpp conftest.$ac_ext"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1 >conftest.err
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } >/dev/null; then
15737 if test -s conftest.err; then
15738 ac_cpp_err=$ac_c_preproc_warn_flag
15739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15746 if test -z "$ac_cpp_err"; then
15747 ac_header_preproc=yes
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 ac_header_preproc=no
15755 rm -f conftest.err conftest.$ac_ext
15756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15757 echo "${ECHO_T}$ac_header_preproc" >&6; }
15759 # So? What about this header?
15760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15766 ac_header_preproc=yes
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15782 ## ------------------------------------ ##
15783 ## Report this to http://llvm.org/bugs/ ##
15784 ## ------------------------------------ ##
15786 ) | sed "s/^/$as_me: WARNING: /" >&2
15789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 eval "$as_ac_Header=\$ac_header_preproc"
15796 ac_res=`eval echo '${'$as_ac_Header'}'`
15797 { echo "$as_me:$LINENO: result: $ac_res" >&5
15798 echo "${ECHO_T}$ac_res" >&6; }
15801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15802 cat >>confdefs.h <<_ACEOF
15803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15815 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825 { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15828 # Is the header compilable?
15829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15831 cat >conftest.$ac_ext <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15838 #include <$ac_header>
15840 rm -f conftest.$ac_objext
15841 if { (ac_try="$ac_compile"
15842 case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_compile") 2>conftest.er1
15849 grep -v '^ *+' conftest.er1 >conftest.err
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15855 { (case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_try") 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_try") 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 ac_header_compiler=yes
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_header_compiler=no
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15884 echo "${ECHO_T}$ac_header_compiler" >&6; }
15886 # Is the header present?
15887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <$ac_header>
15897 if { (ac_try="$ac_cpp conftest.$ac_ext"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15905 grep -v '^ *+' conftest.er1 >conftest.err
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } >/dev/null; then
15910 if test -s conftest.err; then
15911 ac_cpp_err=$ac_c_preproc_warn_flag
15912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15919 if test -z "$ac_cpp_err"; then
15920 ac_header_preproc=yes
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_header_preproc=no
15928 rm -f conftest.err conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15930 echo "${ECHO_T}$ac_header_preproc" >&6; }
15932 # So? What about this header?
15933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15939 ac_header_preproc=yes
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15955 ## ------------------------------------ ##
15956 ## Report this to http://llvm.org/bugs/ ##
15957 ## ------------------------------------ ##
15959 ) | sed "s/^/$as_me: WARNING: /" >&2
15962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 eval "$as_ac_Header=\$ac_header_preproc"
15969 ac_res=`eval echo '${'$as_ac_Header'}'`
15970 { echo "$as_me:$LINENO: result: $ac_res" >&5
15971 echo "${ECHO_T}$ac_res" >&6; }
15974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15975 cat >>confdefs.h <<_ACEOF
15976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15987 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 ac_res=`eval echo '${'$as_ac_Header'}'`
15997 { echo "$as_me:$LINENO: result: $ac_res" >&5
15998 echo "${ECHO_T}$ac_res" >&6; }
16000 # Is the header compilable?
16001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16003 cat >conftest.$ac_ext <<_ACEOF
16006 cat confdefs.h >>conftest.$ac_ext
16007 cat >>conftest.$ac_ext <<_ACEOF
16008 /* end confdefs.h. */
16009 $ac_includes_default
16010 #include <$ac_header>
16012 rm -f conftest.$ac_objext
16013 if { (ac_try="$ac_compile"
16014 case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_compile") 2>conftest.er1
16021 grep -v '^ *+' conftest.er1 >conftest.err
16023 cat conftest.err >&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16027 { (case "(($ac_try" in
16028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029 *) ac_try_echo=$ac_try;;
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032 (eval "$ac_try") 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; } &&
16036 { ac_try='test -s conftest.$ac_objext'
16037 { (case "(($ac_try" in
16038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16039 *) ac_try_echo=$ac_try;;
16041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16042 (eval "$ac_try") 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_header_compiler=yes
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 ac_header_compiler=no
16054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16056 echo "${ECHO_T}$ac_header_compiler" >&6; }
16058 # Is the header present?
16059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16061 cat >conftest.$ac_ext <<_ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <$ac_header>
16069 if { (ac_try="$ac_cpp conftest.$ac_ext"
16070 case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16077 grep -v '^ *+' conftest.er1 >conftest.err
16079 cat conftest.err >&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } >/dev/null; then
16082 if test -s conftest.err; then
16083 ac_cpp_err=$ac_c_preproc_warn_flag
16084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16091 if test -z "$ac_cpp_err"; then
16092 ac_header_preproc=yes
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_header_preproc=no
16100 rm -f conftest.err conftest.$ac_ext
16101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16102 echo "${ECHO_T}$ac_header_preproc" >&6; }
16104 # So? What about this header?
16105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16111 ac_header_preproc=yes
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16127 ## ------------------------------------ ##
16128 ## Report this to http://llvm.org/bugs/ ##
16129 ## ------------------------------------ ##
16131 ) | sed "s/^/$as_me: WARNING: /" >&2
16134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 eval "$as_ac_Header=\$ac_header_preproc"
16141 ac_res=`eval echo '${'$as_ac_Header'}'`
16142 { echo "$as_me:$LINENO: result: $ac_res" >&5
16143 echo "${ECHO_T}$ac_res" >&6; }
16146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16147 cat >>confdefs.h <<_ACEOF
16148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16156 for ac_header in valgrind/valgrind.h
16158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16165 ac_res=`eval echo '${'$as_ac_Header'}'`
16166 { echo "$as_me:$LINENO: result: $ac_res" >&5
16167 echo "${ECHO_T}$ac_res" >&6; }
16169 # Is the header compilable?
16170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 $ac_includes_default
16179 #include <$ac_header>
16181 rm -f conftest.$ac_objext
16182 if { (ac_try="$ac_compile"
16183 case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188 (eval "$ac_compile") 2>conftest.er1
16190 grep -v '^ *+' conftest.er1 >conftest.err
16192 cat conftest.err >&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16196 { (case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_try") 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest.$ac_objext'
16206 { (case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_try") 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 ac_header_compiler=yes
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_header_compiler=no
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16225 echo "${ECHO_T}$ac_header_compiler" >&6; }
16227 # Is the header present?
16228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 #include <$ac_header>
16238 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16246 grep -v '^ *+' conftest.er1 >conftest.err
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } >/dev/null; then
16251 if test -s conftest.err; then
16252 ac_cpp_err=$ac_c_preproc_warn_flag
16253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16260 if test -z "$ac_cpp_err"; then
16261 ac_header_preproc=yes
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_header_preproc=no
16269 rm -f conftest.err conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16271 echo "${ECHO_T}$ac_header_preproc" >&6; }
16273 # So? What about this header?
16274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16280 ac_header_preproc=yes
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16296 ## ------------------------------------ ##
16297 ## Report this to http://llvm.org/bugs/ ##
16298 ## ------------------------------------ ##
16300 ) | sed "s/^/$as_me: WARNING: /" >&2
16303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 eval "$as_ac_Header=\$ac_header_preproc"
16310 ac_res=`eval echo '${'$as_ac_Header'}'`
16311 { echo "$as_me:$LINENO: result: $ac_res" >&5
16312 echo "${ECHO_T}$ac_res" >&6; }
16315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16316 cat >>confdefs.h <<_ACEOF
16317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16325 for ac_header in fenv.h
16327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 ac_res=`eval echo '${'$as_ac_Header'}'`
16335 { echo "$as_me:$LINENO: result: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16338 # Is the header compilable?
16339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16341 cat >conftest.$ac_ext <<_ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347 $ac_includes_default
16348 #include <$ac_header>
16350 rm -f conftest.$ac_objext
16351 if { (ac_try="$ac_compile"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_compile") 2>conftest.er1
16359 grep -v '^ *+' conftest.er1 >conftest.err
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } &&
16364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16365 { (case "(($ac_try" in
16366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370 (eval "$ac_try") 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try='test -s conftest.$ac_objext'
16375 { (case "(($ac_try" in
16376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377 *) ac_try_echo=$ac_try;;
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380 (eval "$ac_try") 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; }; then
16384 ac_header_compiler=yes
16386 echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16389 ac_header_compiler=no
16392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16394 echo "${ECHO_T}$ac_header_compiler" >&6; }
16396 # Is the header present?
16397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16399 cat >conftest.$ac_ext <<_ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h. */
16405 #include <$ac_header>
16407 if { (ac_try="$ac_cpp conftest.$ac_ext"
16408 case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16415 grep -v '^ *+' conftest.er1 >conftest.err
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } >/dev/null; then
16420 if test -s conftest.err; then
16421 ac_cpp_err=$ac_c_preproc_warn_flag
16422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16429 if test -z "$ac_cpp_err"; then
16430 ac_header_preproc=yes
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ac_header_preproc=no
16438 rm -f conftest.err conftest.$ac_ext
16439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16440 echo "${ECHO_T}$ac_header_preproc" >&6; }
16442 # So? What about this header?
16443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16449 ac_header_preproc=yes
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16465 ## ------------------------------------ ##
16466 ## Report this to http://llvm.org/bugs/ ##
16467 ## ------------------------------------ ##
16469 ) | sed "s/^/$as_me: WARNING: /" >&2
16472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 eval "$as_ac_Header=\$ac_header_preproc"
16479 ac_res=`eval echo '${'$as_ac_Header'}'`
16480 { echo "$as_me:$LINENO: result: $ac_res" >&5
16481 echo "${ECHO_T}$ac_res" >&6; }
16484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16485 cat >>confdefs.h <<_ACEOF
16486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16493 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16494 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16495 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 cat >conftest.$ac_ext <<_ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16509 #ifndef FE_ALL_EXCEPT
16510 char *p = (char *) FE_ALL_EXCEPT;
16518 rm -f conftest.$ac_objext
16519 if { (ac_try="$ac_compile"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_compile") 2>conftest.er1
16527 grep -v '^ *+' conftest.er1 >conftest.err
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } &&
16532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16533 { (case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_try") 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest.$ac_objext'
16543 { (case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548 (eval "$ac_try") 2>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; }; then
16552 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 ac_cv_have_decl_FE_ALL_EXCEPT=no
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16562 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16563 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16564 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_DECL_FE_ALL_EXCEPT 1
16572 cat >>confdefs.h <<_ACEOF
16573 #define HAVE_DECL_FE_ALL_EXCEPT 0
16578 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16579 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16580 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16583 cat >conftest.$ac_ext <<_ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h. */
16595 char *p = (char *) FE_INEXACT;
16603 rm -f conftest.$ac_objext
16604 if { (ac_try="$ac_compile"
16605 case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_compile") 2>conftest.er1
16612 grep -v '^ *+' conftest.er1 >conftest.err
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } &&
16617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16618 { (case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_try") 2>&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest.$ac_objext'
16628 { (case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633 (eval "$ac_try") 2>&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; }; then
16637 ac_cv_have_decl_FE_INEXACT=yes
16639 echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16642 ac_cv_have_decl_FE_INEXACT=no
16645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16647 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16648 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16649 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16651 cat >>confdefs.h <<_ACEOF
16652 #define HAVE_DECL_FE_INEXACT 1
16657 cat >>confdefs.h <<_ACEOF
16658 #define HAVE_DECL_FE_INEXACT 0
16665 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16667 for ac_header in pthread.h
16669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16676 ac_res=`eval echo '${'$as_ac_Header'}'`
16677 { echo "$as_me:$LINENO: result: $ac_res" >&5
16678 echo "${ECHO_T}$ac_res" >&6; }
16680 # Is the header compilable?
16681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16683 cat >conftest.$ac_ext <<_ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689 $ac_includes_default
16690 #include <$ac_header>
16692 rm -f conftest.$ac_objext
16693 if { (ac_try="$ac_compile"
16694 case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_compile") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1 >conftest.err
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_header_compiler=yes
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 ac_header_compiler=no
16734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16736 echo "${ECHO_T}$ac_header_compiler" >&6; }
16738 # Is the header present?
16739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16741 cat >conftest.$ac_ext <<_ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 #include <$ac_header>
16749 if { (ac_try="$ac_cpp conftest.$ac_ext"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16757 grep -v '^ *+' conftest.er1 >conftest.err
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } >/dev/null; then
16762 if test -s conftest.err; then
16763 ac_cpp_err=$ac_c_preproc_warn_flag
16764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16771 if test -z "$ac_cpp_err"; then
16772 ac_header_preproc=yes
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 ac_header_preproc=no
16780 rm -f conftest.err conftest.$ac_ext
16781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16782 echo "${ECHO_T}$ac_header_preproc" >&6; }
16784 # So? What about this header?
16785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16791 ac_header_preproc=yes
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16807 ## ------------------------------------ ##
16808 ## Report this to http://llvm.org/bugs/ ##
16809 ## ------------------------------------ ##
16811 ) | sed "s/^/$as_me: WARNING: /" >&2
16814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 eval "$as_ac_Header=\$ac_header_preproc"
16821 ac_res=`eval echo '${'$as_ac_Header'}'`
16822 { echo "$as_me:$LINENO: result: $ac_res" >&5
16823 echo "${ECHO_T}$ac_res" >&6; }
16826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16827 cat >>confdefs.h <<_ACEOF
16828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16843 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16845 for ac_header in zlib.h
16847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 ac_res=`eval echo '${'$as_ac_Header'}'`
16855 { echo "$as_me:$LINENO: result: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16858 # Is the header compilable?
16859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16861 cat >conftest.$ac_ext <<_ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 $ac_includes_default
16868 #include <$ac_header>
16870 rm -f conftest.$ac_objext
16871 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16879 grep -v '^ *+' conftest.er1 >conftest.err
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
16884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; } &&
16894 { ac_try='test -s conftest.$ac_objext'
16895 { (case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_try") 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; }; then
16904 ac_header_compiler=yes
16906 echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16909 ac_header_compiler=no
16912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16914 echo "${ECHO_T}$ac_header_compiler" >&6; }
16916 # Is the header present?
16917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16919 cat >conftest.$ac_ext <<_ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 #include <$ac_header>
16927 if { (ac_try="$ac_cpp conftest.$ac_ext"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } >/dev/null; then
16940 if test -s conftest.err; then
16941 ac_cpp_err=$ac_c_preproc_warn_flag
16942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16949 if test -z "$ac_cpp_err"; then
16950 ac_header_preproc=yes
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16955 ac_header_preproc=no
16958 rm -f conftest.err conftest.$ac_ext
16959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16960 echo "${ECHO_T}$ac_header_preproc" >&6; }
16962 # So? What about this header?
16963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16969 ac_header_preproc=yes
16972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16985 ## ------------------------------------ ##
16986 ## Report this to http://llvm.org/bugs/ ##
16987 ## ------------------------------------ ##
16989 ) | sed "s/^/$as_me: WARNING: /" >&2
16992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 eval "$as_ac_Header=\$ac_header_preproc"
16999 ac_res=`eval echo '${'$as_ac_Header'}'`
17000 { echo "$as_me:$LINENO: result: $ac_res" >&5
17001 echo "${ECHO_T}$ac_res" >&6; }
17004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17005 cat >>confdefs.h <<_ACEOF
17006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17022 if test "$llvm_cv_enable_libffi" = "yes" ; then
17025 for ac_header in ffi.h ffi/ffi.h
17027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 ac_res=`eval echo '${'$as_ac_Header'}'`
17035 { echo "$as_me:$LINENO: result: $ac_res" >&5
17036 echo "${ECHO_T}$ac_res" >&6; }
17038 # Is the header compilable?
17039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 $ac_includes_default
17048 #include <$ac_header>
17050 rm -f conftest.$ac_objext
17051 if { (ac_try="$ac_compile"
17052 case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_compile") 2>conftest.er1
17059 grep -v '^ *+' conftest.er1 >conftest.err
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try='test -s conftest.$ac_objext'
17075 { (case "(($ac_try" in
17076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077 *) ac_try_echo=$ac_try;;
17079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080 (eval "$ac_try") 2>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 ac_header_compiler=yes
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17089 ac_header_compiler=no
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17094 echo "${ECHO_T}$ac_header_compiler" >&6; }
17096 # Is the header present?
17097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17099 cat >conftest.$ac_ext <<_ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 #include <$ac_header>
17107 if { (ac_try="$ac_cpp conftest.$ac_ext"
17108 case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17115 grep -v '^ *+' conftest.er1 >conftest.err
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } >/dev/null; then
17120 if test -s conftest.err; then
17121 ac_cpp_err=$ac_c_preproc_warn_flag
17122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17129 if test -z "$ac_cpp_err"; then
17130 ac_header_preproc=yes
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17135 ac_header_preproc=no
17138 rm -f conftest.err conftest.$ac_ext
17139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17140 echo "${ECHO_T}$ac_header_preproc" >&6; }
17142 # So? What about this header?
17143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17149 ac_header_preproc=yes
17152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17165 ## ------------------------------------ ##
17166 ## Report this to http://llvm.org/bugs/ ##
17167 ## ------------------------------------ ##
17169 ) | sed "s/^/$as_me: WARNING: /" >&2
17172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 eval "$as_ac_Header=\$ac_header_preproc"
17179 ac_res=`eval echo '${'$as_ac_Header'}'`
17180 { echo "$as_me:$LINENO: result: $ac_res" >&5
17181 echo "${ECHO_T}$ac_res" >&6; }
17184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17185 cat >>confdefs.h <<_ACEOF
17186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17196 for ac_header in CrashReporterClient.h
17198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 ac_res=`eval echo '${'$as_ac_Header'}'`
17206 { echo "$as_me:$LINENO: result: $ac_res" >&5
17207 echo "${ECHO_T}$ac_res" >&6; }
17209 # Is the header compilable?
17210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17212 cat >conftest.$ac_ext <<_ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17218 $ac_includes_default
17219 #include <$ac_header>
17221 rm -f conftest.$ac_objext
17222 if { (ac_try="$ac_compile"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_compile") 2>conftest.er1
17230 grep -v '^ *+' conftest.er1 >conftest.err
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; } &&
17245 { ac_try='test -s conftest.$ac_objext'
17246 { (case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_try") 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 ac_header_compiler=yes
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17260 ac_header_compiler=no
17263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17265 echo "${ECHO_T}$ac_header_compiler" >&6; }
17267 # Is the header present?
17268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 #include <$ac_header>
17278 if { (ac_try="$ac_cpp conftest.$ac_ext"
17279 case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17286 grep -v '^ *+' conftest.er1 >conftest.err
17288 cat conftest.err >&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } >/dev/null; then
17291 if test -s conftest.err; then
17292 ac_cpp_err=$ac_c_preproc_warn_flag
17293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17300 if test -z "$ac_cpp_err"; then
17301 ac_header_preproc=yes
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_header_preproc=no
17309 rm -f conftest.err conftest.$ac_ext
17310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17311 echo "${ECHO_T}$ac_header_preproc" >&6; }
17313 # So? What about this header?
17314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17320 ac_header_preproc=yes
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17336 ## ------------------------------------ ##
17337 ## Report this to http://llvm.org/bugs/ ##
17338 ## ------------------------------------ ##
17340 ) | sed "s/^/$as_me: WARNING: /" >&2
17343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 eval "$as_ac_Header=\$ac_header_preproc"
17350 ac_res=`eval echo '${'$as_ac_Header'}'`
17351 { echo "$as_me:$LINENO: result: $ac_res" >&5
17352 echo "${ECHO_T}$ac_res" >&6; }
17355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17356 cat >>confdefs.h <<_ACEOF
17357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17365 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17366 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17367 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17375 extern const char *__crashreporter_info__;
17377 __crashreporter_info__ = "test";
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_link") 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17398 { (case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_try") 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest$ac_exeext'
17408 { (case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_try") 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17418 { echo "$as_me:$LINENO: result: yes" >&5
17419 echo "${ECHO_T}yes" >&6; }
17421 cat >>confdefs.h <<\_ACEOF
17422 #define HAVE_CRASHREPORTER_INFO 1
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17431 { echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6; }
17434 cat >>confdefs.h <<\_ACEOF
17435 #define HAVE_CRASHREPORTER_INFO 0
17441 rm -f core conftest.err conftest.$ac_objext \
17442 conftest$ac_exeext conftest.$ac_ext
17446 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17447 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17448 if test "${ac_cv_huge_val_sanity+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 ac_cpp='$CXXCPP $CPPFLAGS'
17454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17458 ac_save_CXXFLAGS=$CXXFLAGS
17459 CXXFLAGS="$CXXFLAGS -pedantic"
17460 if test "$cross_compiling" = yes; then
17461 ac_cv_huge_val_sanity=yes
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17473 double x = HUGE_VAL; return x != x;
17478 rm -f conftest$ac_exeext
17479 if { (ac_try="$ac_link"
17480 case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_link") 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 ac_cv_huge_val_sanity=yes
17500 echo "$as_me: program exited with status $ac_status" >&5
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 ( exit $ac_status )
17505 ac_cv_huge_val_sanity=no
17507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17511 CXXFLAGS=$ac_save_CXXFLAGS
17513 ac_cpp='$CPP $CPPFLAGS'
17514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17520 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17521 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17522 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17525 { echo "$as_me:$LINENO: checking for pid_t" >&5
17526 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17527 if test "${ac_cv_type_pid_t+set}" = set; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 cat >conftest.$ac_ext <<_ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 $ac_includes_default
17537 typedef pid_t ac__type_new_;
17541 if ((ac__type_new_ *) 0)
17543 if (sizeof (ac__type_new_))
17549 rm -f conftest.$ac_objext
17550 if { (ac_try="$ac_compile"
17551 case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_compile") 2>conftest.er1
17558 grep -v '^ *+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17564 { (case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_try") 2>&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; } &&
17573 { ac_try='test -s conftest.$ac_objext'
17574 { (case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_try") 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ac_cv_type_pid_t=yes
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 ac_cv_type_pid_t=no
17591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17594 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17595 if test $ac_cv_type_pid_t = yes; then
17599 cat >>confdefs.h <<_ACEOF
17605 { echo "$as_me:$LINENO: checking for size_t" >&5
17606 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17607 if test "${ac_cv_type_size_t+set}" = set; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 cat >conftest.$ac_ext <<_ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17616 $ac_includes_default
17617 typedef size_t ac__type_new_;
17621 if ((ac__type_new_ *) 0)
17623 if (sizeof (ac__type_new_))
17629 rm -f conftest.$ac_objext
17630 if { (ac_try="$ac_compile"
17631 case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_compile") 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17644 { (case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_try") 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest.$ac_objext'
17654 { (case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_try") 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_cv_type_size_t=yes
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_cv_type_size_t=no
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17674 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17675 if test $ac_cv_type_size_t = yes; then
17679 cat >>confdefs.h <<_ACEOF
17680 #define size_t unsigned int
17686 cat >>confdefs.h <<_ACEOF
17687 #define RETSIGTYPE void
17690 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17691 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17692 if test "${ac_cv_struct_tm+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17695 cat >conftest.$ac_ext <<_ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 #include <sys/types.h>
17707 struct tm *tp; tp->tm_sec;
17712 rm -f conftest.$ac_objext
17713 if { (ac_try="$ac_compile"
17714 case "(($ac_try" in
17715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716 *) ac_try_echo=$ac_try;;
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719 (eval "$ac_compile") 2>conftest.er1
17721 grep -v '^ *+' conftest.er1 >conftest.err
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; } &&
17736 { ac_try='test -s conftest.$ac_objext'
17737 { (case "(($ac_try" in
17738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739 *) ac_try_echo=$ac_try;;
17741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742 (eval "$ac_try") 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; }; then
17746 ac_cv_struct_tm=time.h
17748 echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17751 ac_cv_struct_tm=sys/time.h
17754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17757 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17758 if test $ac_cv_struct_tm = sys/time.h; then
17760 cat >>confdefs.h <<\_ACEOF
17761 #define TM_IN_SYS_TIME 1
17766 { echo "$as_me:$LINENO: checking for int64_t" >&5
17767 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17768 if test "${ac_cv_type_int64_t+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 cat >conftest.$ac_ext <<_ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777 $ac_includes_default
17778 typedef int64_t ac__type_new_;
17782 if ((ac__type_new_ *) 0)
17784 if (sizeof (ac__type_new_))
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest.$ac_objext'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_type_int64_t=yes
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 ac_cv_type_int64_t=no
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17835 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17836 if test $ac_cv_type_int64_t = yes; then
17838 cat >>confdefs.h <<_ACEOF
17839 #define HAVE_INT64_T 1
17844 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17845 echo "$as_me: error: Type int64_t required but not found" >&2;}
17846 { (exit 1); exit 1; }; }
17849 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17850 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17851 if test "${ac_cv_type_uint64_t+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17854 cat >conftest.$ac_ext <<_ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 $ac_includes_default
17861 typedef uint64_t ac__type_new_;
17865 if ((ac__type_new_ *) 0)
17867 if (sizeof (ac__type_new_))
17873 rm -f conftest.$ac_objext
17874 if { (ac_try="$ac_compile"
17875 case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_compile") 2>conftest.er1
17882 grep -v '^ *+' conftest.er1 >conftest.err
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; } &&
17897 { ac_try='test -s conftest.$ac_objext'
17898 { (case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_try") 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 ac_cv_type_uint64_t=yes
17909 echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 ac_cv_type_uint64_t=no
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17918 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17919 if test $ac_cv_type_uint64_t = yes; then
17921 cat >>confdefs.h <<_ACEOF
17922 #define HAVE_UINT64_T 1
17927 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17928 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17929 if test "${ac_cv_type_u_int64_t+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17932 cat >conftest.$ac_ext <<_ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 $ac_includes_default
17939 typedef u_int64_t ac__type_new_;
17943 if ((ac__type_new_ *) 0)
17945 if (sizeof (ac__type_new_))
17951 rm -f conftest.$ac_objext
17952 if { (ac_try="$ac_compile"
17953 case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_compile") 2>conftest.er1
17960 grep -v '^ *+' conftest.er1 >conftest.err
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } &&
17965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17966 { (case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_try") 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest.$ac_objext'
17976 { (case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_try") 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_cv_type_u_int64_t=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 ac_cv_type_u_int64_t=no
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17995 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17996 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17997 if test $ac_cv_type_u_int64_t = yes; then
17999 cat >>confdefs.h <<_ACEOF
18000 #define HAVE_U_INT64_T 1
18005 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18006 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18007 { (exit 1); exit 1; }; }
18021 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 cat >conftest.$ac_ext <<_ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18037 #define $ac_func innocuous_$ac_func
18039 /* System header to define __stub macros and hopefully few prototypes,
18040 which can conflict with char $ac_func (); below.
18041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18042 <limits.h> exists even on freestanding compilers. */
18045 # include <limits.h>
18047 # include <assert.h>
18052 /* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
18059 /* The GNU C library defines this for functions which it implements
18060 to always fail with ENOSYS. Some functions are actually named
18061 something starting with __ and the normal name is an alias. */
18062 #if defined __stub_$ac_func || defined __stub___$ac_func
18069 return $ac_func ();
18074 rm -f conftest.$ac_objext conftest$ac_exeext
18075 if { (ac_try="$ac_link"
18076 case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_link") 2>conftest.er1
18083 grep -v '^ *+' conftest.er1 >conftest.err
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18089 { (case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_try") 2>&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest$ac_exeext'
18099 { (case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_try") 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; }; then
18108 eval "$as_ac_var=yes"
18110 echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18113 eval "$as_ac_var=no"
18116 rm -f core conftest.err conftest.$ac_objext \
18117 conftest$ac_exeext conftest.$ac_ext
18119 ac_res=`eval echo '${'$as_ac_var'}'`
18120 { echo "$as_me:$LINENO: result: $ac_res" >&5
18121 echo "${ECHO_T}$ac_res" >&6; }
18122 if test `eval echo '${'$as_ac_var'}'` = yes; then
18123 cat >>confdefs.h <<_ACEOF
18124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18134 for ac_func in powf fmodf strtof round
18136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 cat >conftest.$ac_ext <<_ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18150 #define $ac_func innocuous_$ac_func
18152 /* System header to define __stub macros and hopefully few prototypes,
18153 which can conflict with char $ac_func (); below.
18154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18155 <limits.h> exists even on freestanding compilers. */
18158 # include <limits.h>
18160 # include <assert.h>
18165 /* Override any GCC internal prototype to avoid an error.
18166 Use char because int might match the return type of a GCC
18167 builtin and then its argument prototype would still apply. */
18172 /* The GNU C library defines this for functions which it implements
18173 to always fail with ENOSYS. Some functions are actually named
18174 something starting with __ and the normal name is an alias. */
18175 #if defined __stub_$ac_func || defined __stub___$ac_func
18182 return $ac_func ();
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>conftest.er1
18196 grep -v '^ *+' conftest.er1 >conftest.err
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
18201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest$ac_exeext'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 eval "$as_ac_var=yes"
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 eval "$as_ac_var=no"
18229 rm -f core conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18232 ac_res=`eval echo '${'$as_ac_var'}'`
18233 { echo "$as_me:$LINENO: result: $ac_res" >&5
18234 echo "${ECHO_T}$ac_res" >&6; }
18235 if test `eval echo '${'$as_ac_var'}'` = yes; then
18236 cat >>confdefs.h <<_ACEOF
18237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18248 for ac_func in log log2 log10 exp exp2
18250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18254 echo $ECHO_N "(cached) $ECHO_C" >&6
18256 cat >conftest.$ac_ext <<_ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18264 #define $ac_func innocuous_$ac_func
18266 /* System header to define __stub macros and hopefully few prototypes,
18267 which can conflict with char $ac_func (); below.
18268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18269 <limits.h> exists even on freestanding compilers. */
18272 # include <limits.h>
18274 # include <assert.h>
18279 /* Override any GCC internal prototype to avoid an error.
18280 Use char because int might match the return type of a GCC
18281 builtin and then its argument prototype would still apply. */
18286 /* The GNU C library defines this for functions which it implements
18287 to always fail with ENOSYS. Some functions are actually named
18288 something starting with __ and the normal name is an alias. */
18289 #if defined __stub_$ac_func || defined __stub___$ac_func
18296 return $ac_func ();
18301 rm -f conftest.$ac_objext conftest$ac_exeext
18302 if { (ac_try="$ac_link"
18303 case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_link") 2>conftest.er1
18310 grep -v '^ *+' conftest.er1 >conftest.err
18312 cat conftest.err >&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } &&
18315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18316 { (case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_try") 2>&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; } &&
18325 { ac_try='test -s conftest$ac_exeext'
18326 { (case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_try") 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 eval "$as_ac_var=yes"
18337 echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18340 eval "$as_ac_var=no"
18343 rm -f core conftest.err conftest.$ac_objext \
18344 conftest$ac_exeext conftest.$ac_ext
18346 ac_res=`eval echo '${'$as_ac_var'}'`
18347 { echo "$as_me:$LINENO: result: $ac_res" >&5
18348 echo "${ECHO_T}$ac_res" >&6; }
18349 if test `eval echo '${'$as_ac_var'}'` = yes; then
18350 cat >>confdefs.h <<_ACEOF
18351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18362 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18378 #define $ac_func innocuous_$ac_func
18380 /* System header to define __stub macros and hopefully few prototypes,
18381 which can conflict with char $ac_func (); below.
18382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18383 <limits.h> exists even on freestanding compilers. */
18386 # include <limits.h>
18388 # include <assert.h>
18393 /* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18400 /* The GNU C library defines this for functions which it implements
18401 to always fail with ENOSYS. Some functions are actually named
18402 something starting with __ and the normal name is an alias. */
18403 #if defined __stub_$ac_func || defined __stub___$ac_func
18410 return $ac_func ();
18415 rm -f conftest.$ac_objext conftest$ac_exeext
18416 if { (ac_try="$ac_link"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_link") 2>conftest.er1
18424 grep -v '^ *+' conftest.er1 >conftest.err
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
18429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18430 { (case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_try") 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try='test -s conftest$ac_exeext'
18440 { (case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_try") 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; }; then
18449 eval "$as_ac_var=yes"
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 eval "$as_ac_var=no"
18457 rm -f core conftest.err conftest.$ac_objext \
18458 conftest$ac_exeext conftest.$ac_ext
18460 ac_res=`eval echo '${'$as_ac_var'}'`
18461 { echo "$as_me:$LINENO: result: $ac_res" >&5
18462 echo "${ECHO_T}$ac_res" >&6; }
18463 if test `eval echo '${'$as_ac_var'}'` = yes; then
18464 cat >>confdefs.h <<_ACEOF
18465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18474 for ac_func in isatty mkdtemp mkstemp
18476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18482 cat >conftest.$ac_ext <<_ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18490 #define $ac_func innocuous_$ac_func
18492 /* System header to define __stub macros and hopefully few prototypes,
18493 which can conflict with char $ac_func (); below.
18494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495 <limits.h> exists even on freestanding compilers. */
18498 # include <limits.h>
18500 # include <assert.h>
18505 /* Override any GCC internal prototype to avoid an error.
18506 Use char because int might match the return type of a GCC
18507 builtin and then its argument prototype would still apply. */
18512 /* The GNU C library defines this for functions which it implements
18513 to always fail with ENOSYS. Some functions are actually named
18514 something starting with __ and the normal name is an alias. */
18515 #if defined __stub_$ac_func || defined __stub___$ac_func
18522 return $ac_func ();
18527 rm -f conftest.$ac_objext conftest$ac_exeext
18528 if { (ac_try="$ac_link"
18529 case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_link") 2>conftest.er1
18536 grep -v '^ *+' conftest.er1 >conftest.err
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18542 { (case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_try") 2>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; } &&
18551 { ac_try='test -s conftest$ac_exeext'
18552 { (case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_try") 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 eval "$as_ac_var=yes"
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 eval "$as_ac_var=no"
18569 rm -f core conftest.err conftest.$ac_objext \
18570 conftest$ac_exeext conftest.$ac_ext
18572 ac_res=`eval echo '${'$as_ac_var'}'`
18573 { echo "$as_me:$LINENO: result: $ac_res" >&5
18574 echo "${ECHO_T}$ac_res" >&6; }
18575 if test `eval echo '${'$as_ac_var'}'` = yes; then
18576 cat >>confdefs.h <<_ACEOF
18577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18590 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 cat >conftest.$ac_ext <<_ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h. */
18604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18606 #define $ac_func innocuous_$ac_func
18608 /* System header to define __stub macros and hopefully few prototypes,
18609 which can conflict with char $ac_func (); below.
18610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18611 <limits.h> exists even on freestanding compilers. */
18614 # include <limits.h>
18616 # include <assert.h>
18621 /* Override any GCC internal prototype to avoid an error.
18622 Use char because int might match the return type of a GCC
18623 builtin and then its argument prototype would still apply. */
18628 /* The GNU C library defines this for functions which it implements
18629 to always fail with ENOSYS. Some functions are actually named
18630 something starting with __ and the normal name is an alias. */
18631 #if defined __stub_$ac_func || defined __stub___$ac_func
18638 return $ac_func ();
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (ac_try="$ac_link"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_link") 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest$ac_exeext'
18668 { (case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_try") 2>&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
18677 eval "$as_ac_var=yes"
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 eval "$as_ac_var=no"
18685 rm -f core conftest.err conftest.$ac_objext \
18686 conftest$ac_exeext conftest.$ac_ext
18688 ac_res=`eval echo '${'$as_ac_var'}'`
18689 { echo "$as_me:$LINENO: result: $ac_res" >&5
18690 echo "${ECHO_T}$ac_res" >&6; }
18691 if test `eval echo '${'$as_ac_var'}'` = yes; then
18692 cat >>confdefs.h <<_ACEOF
18693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18703 for ac_func in strerror strerror_r setenv arc4random
18705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18719 #define $ac_func innocuous_$ac_func
18721 /* System header to define __stub macros and hopefully few prototypes,
18722 which can conflict with char $ac_func (); below.
18723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18724 <limits.h> exists even on freestanding compilers. */
18727 # include <limits.h>
18729 # include <assert.h>
18734 /* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18741 /* The GNU C library defines this for functions which it implements
18742 to always fail with ENOSYS. Some functions are actually named
18743 something starting with __ and the normal name is an alias. */
18744 #if defined __stub_$ac_func || defined __stub___$ac_func
18751 return $ac_func ();
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (ac_try="$ac_link"
18758 case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_link") 2>conftest.er1
18765 grep -v '^ *+' conftest.er1 >conftest.err
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } &&
18770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18771 { (case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_try") 2>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; } &&
18780 { ac_try='test -s conftest$ac_exeext'
18781 { (case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_try") 2>&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 eval "$as_ac_var=yes"
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 eval "$as_ac_var=no"
18798 rm -f core conftest.err conftest.$ac_objext \
18799 conftest$ac_exeext conftest.$ac_ext
18801 ac_res=`eval echo '${'$as_ac_var'}'`
18802 { echo "$as_me:$LINENO: result: $ac_res" >&5
18803 echo "${ECHO_T}$ac_res" >&6; }
18804 if test `eval echo '${'$as_ac_var'}'` = yes; then
18805 cat >>confdefs.h <<_ACEOF
18806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18816 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 cat >conftest.$ac_ext <<_ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18832 #define $ac_func innocuous_$ac_func
18834 /* System header to define __stub macros and hopefully few prototypes,
18835 which can conflict with char $ac_func (); below.
18836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18837 <limits.h> exists even on freestanding compilers. */
18840 # include <limits.h>
18842 # include <assert.h>
18847 /* Override any GCC internal prototype to avoid an error.
18848 Use char because int might match the return type of a GCC
18849 builtin and then its argument prototype would still apply. */
18854 /* The GNU C library defines this for functions which it implements
18855 to always fail with ENOSYS. Some functions are actually named
18856 something starting with __ and the normal name is an alias. */
18857 #if defined __stub_$ac_func || defined __stub___$ac_func
18864 return $ac_func ();
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (ac_try="$ac_link"
18871 case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_link") 2>conftest.er1
18878 grep -v '^ *+' conftest.er1 >conftest.err
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } &&
18883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18884 { (case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889 (eval "$ac_try") 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest$ac_exeext'
18894 { (case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_try") 2>&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; }; then
18903 eval "$as_ac_var=yes"
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 eval "$as_ac_var=no"
18911 rm -f core conftest.err conftest.$ac_objext \
18912 conftest$ac_exeext conftest.$ac_ext
18914 ac_res=`eval echo '${'$as_ac_var'}'`
18915 { echo "$as_me:$LINENO: result: $ac_res" >&5
18916 echo "${ECHO_T}$ac_res" >&6; }
18917 if test `eval echo '${'$as_ac_var'}'` = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18930 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18938 cat >conftest.$ac_ext <<_ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18946 #define $ac_func innocuous_$ac_func
18948 /* System header to define __stub macros and hopefully few prototypes,
18949 which can conflict with char $ac_func (); below.
18950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18951 <limits.h> exists even on freestanding compilers. */
18954 # include <limits.h>
18956 # include <assert.h>
18961 /* Override any GCC internal prototype to avoid an error.
18962 Use char because int might match the return type of a GCC
18963 builtin and then its argument prototype would still apply. */
18968 /* The GNU C library defines this for functions which it implements
18969 to always fail with ENOSYS. Some functions are actually named
18970 something starting with __ and the normal name is an alias. */
18971 #if defined __stub_$ac_func || defined __stub___$ac_func
18978 return $ac_func ();
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (ac_try="$ac_link"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_link") 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 eval "$as_ac_var=yes"
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19022 eval "$as_ac_var=no"
19025 rm -f core conftest.err conftest.$ac_objext \
19026 conftest$ac_exeext conftest.$ac_ext
19028 ac_res=`eval echo '${'$as_ac_var'}'`
19029 { echo "$as_me:$LINENO: result: $ac_res" >&5
19030 echo "${ECHO_T}$ac_res" >&6; }
19031 if test `eval echo '${'$as_ac_var'}'` = yes; then
19032 cat >>confdefs.h <<_ACEOF
19033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19039 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19040 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19041 if test "${llvm_cv_c_printf_a+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 ac_cpp='$CPP $CPPFLAGS'
19046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19050 if test "$cross_compiling" = yes; then
19051 llvmac_cv_c_printf_a=no
19053 cat >conftest.$ac_ext <<_ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19062 #include <stdlib.h>
19068 volatile double A, B;
19072 sprintf(Buffer, "%a", A);
19076 if (A != 0x1.999999999999ap-4)
19083 rm -f conftest$ac_exeext
19084 if { (ac_try="$ac_link"
19085 case "(($ac_try" in
19086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19087 *) ac_try_echo=$ac_try;;
19089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19090 (eval "$ac_link") 2>&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19094 { (case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_try") 2>&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; }; then
19103 llvm_cv_c_printf_a=yes
19105 echo "$as_me: program exited with status $ac_status" >&5
19106 echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19109 ( exit $ac_status )
19110 llvmac_cv_c_printf_a=no
19112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19117 ac_cpp='$CPP $CPPFLAGS'
19118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19123 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19124 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19125 if test "$llvm_cv_c_printf_a" = "yes"; then
19127 cat >>confdefs.h <<\_ACEOF
19128 #define HAVE_PRINTF_A 1
19135 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19136 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19137 if test "${ac_cv_func_rand48+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 ac_cpp='$CXXCPP $CPPFLAGS'
19143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19147 cat >conftest.$ac_ext <<_ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19153 #include <stdlib.h>
19157 srand48(0);lrand48();drand48();
19162 rm -f conftest.$ac_objext
19163 if { (ac_try="$ac_compile"
19164 case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_compile") 2>conftest.er1
19171 grep -v '^ *+' conftest.er1 >conftest.err
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19177 { (case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_try") 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest.$ac_objext'
19187 { (case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_try") 2>&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_cv_func_rand48=yes
19198 echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19201 ac_cv_func_rand48=no
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 ac_cpp='$CPP $CPPFLAGS'
19207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19213 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19214 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19216 if test "$ac_cv_func_rand48" = "yes" ; then
19218 cat >>confdefs.h <<\_ACEOF
19219 #define HAVE_RAND48 1
19225 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19226 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19227 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 cat >conftest.$ac_ext <<_ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19236 $ac_includes_default
19241 char *p = (char *) strerror_s;
19249 rm -f conftest.$ac_objext
19250 if { (ac_try="$ac_compile"
19251 case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_compile") 2>conftest.er1
19258 grep -v '^ *+' conftest.er1 >conftest.err
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19264 { (case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_try") 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_try") 2>&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; }; then
19283 ac_cv_have_decl_strerror_s=yes
19285 echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19288 ac_cv_have_decl_strerror_s=no
19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19294 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19295 if test $ac_cv_have_decl_strerror_s = yes; then
19297 cat >>confdefs.h <<_ACEOF
19298 #define HAVE_DECL_STRERROR_S 1
19303 cat >>confdefs.h <<_ACEOF
19304 #define HAVE_DECL_STRERROR_S 0
19312 if test "$llvm_cv_os_type" = "MingW" ; then
19313 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19314 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19315 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 ac_check_lib_save_LIBS=$LIBS
19320 cat >conftest.$ac_ext <<_ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19327 /* Override any GCC internal prototype to avoid an error.
19328 Use char because int might match the return type of a GCC
19329 builtin and then its argument prototype would still apply. */
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (ac_try="$ac_link"
19344 case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_link") 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19357 { (case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_try") 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest$ac_exeext'
19367 { (case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_try") 2>&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; }; then
19376 ac_cv_lib_gcc__alloca=yes
19378 echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19381 ac_cv_lib_gcc__alloca=no
19384 rm -f core conftest.err conftest.$ac_objext \
19385 conftest$ac_exeext conftest.$ac_ext
19386 LIBS=$ac_check_lib_save_LIBS
19388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19389 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19390 if test $ac_cv_lib_gcc__alloca = yes; then
19392 cat >>confdefs.h <<\_ACEOF
19393 #define HAVE__ALLOCA 1
19398 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19399 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19400 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19403 ac_check_lib_save_LIBS=$LIBS
19405 cat >conftest.$ac_ext <<_ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19422 return __alloca ();
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (ac_try="$ac_link"
19429 case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_link") 2>conftest.er1
19436 grep -v '^ *+' conftest.er1 >conftest.err
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19442 { (case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; } &&
19451 { ac_try='test -s conftest$ac_exeext'
19452 { (case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_try") 2>&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_cv_lib_gcc___alloca=yes
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19466 ac_cv_lib_gcc___alloca=no
19469 rm -f core conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
19471 LIBS=$ac_check_lib_save_LIBS
19473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19474 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19475 if test $ac_cv_lib_gcc___alloca = yes; then
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE___ALLOCA 1
19483 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19484 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19485 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 ac_check_lib_save_LIBS=$LIBS
19490 cat >conftest.$ac_ext <<_ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19497 /* Override any GCC internal prototype to avoid an error.
19498 Use char because int might match the return type of a GCC
19499 builtin and then its argument prototype would still apply. */
19507 return __chkstk ();
19512 rm -f conftest.$ac_objext conftest$ac_exeext
19513 if { (ac_try="$ac_link"
19514 case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_link") 2>conftest.er1
19521 grep -v '^ *+' conftest.er1 >conftest.err
19523 cat conftest.err >&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
19526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19527 { (case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_try") 2>&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; } &&
19536 { ac_try='test -s conftest$ac_exeext'
19537 { (case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_try") 2>&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; }; then
19546 ac_cv_lib_gcc___chkstk=yes
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 ac_cv_lib_gcc___chkstk=no
19554 rm -f core conftest.err conftest.$ac_objext \
19555 conftest$ac_exeext conftest.$ac_ext
19556 LIBS=$ac_check_lib_save_LIBS
19558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19559 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19560 if test $ac_cv_lib_gcc___chkstk = yes; then
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE___CHKSTK 1
19568 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19569 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19570 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 ac_check_lib_save_LIBS=$LIBS
19575 cat >conftest.$ac_ext <<_ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19582 /* Override any GCC internal prototype to avoid an error.
19583 Use char because int might match the return type of a GCC
19584 builtin and then its argument prototype would still apply. */
19592 return ___chkstk ();
19597 rm -f conftest.$ac_objext conftest$ac_exeext
19598 if { (ac_try="$ac_link"
19599 case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_link") 2>conftest.er1
19606 grep -v '^ *+' conftest.er1 >conftest.err
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest$ac_exeext'
19622 { (case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_try") 2>&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
19631 ac_cv_lib_gcc____chkstk=yes
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 ac_cv_lib_gcc____chkstk=no
19639 rm -f core conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19644 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19645 if test $ac_cv_lib_gcc____chkstk = yes; then
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE____CHKSTK 1
19654 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19655 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19656 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 ac_check_lib_save_LIBS=$LIBS
19661 cat >conftest.$ac_ext <<_ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19668 /* Override any GCC internal prototype to avoid an error.
19669 Use char because int might match the return type of a GCC
19670 builtin and then its argument prototype would still apply. */
19678 return __ashldi3 ();
19683 rm -f conftest.$ac_objext conftest$ac_exeext
19684 if { (ac_try="$ac_link"
19685 case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_link") 2>conftest.er1
19692 grep -v '^ *+' conftest.er1 >conftest.err
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } &&
19697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19698 { (case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_try") 2>&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest$ac_exeext'
19708 { (case "(($ac_try" in
19709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710 *) ac_try_echo=$ac_try;;
19712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713 (eval "$ac_try") 2>&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; }; then
19717 ac_cv_lib_gcc___ashldi3=yes
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19722 ac_cv_lib_gcc___ashldi3=no
19725 rm -f core conftest.err conftest.$ac_objext \
19726 conftest$ac_exeext conftest.$ac_ext
19727 LIBS=$ac_check_lib_save_LIBS
19729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19730 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19731 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19733 cat >>confdefs.h <<\_ACEOF
19734 #define HAVE___ASHLDI3 1
19739 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19740 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19741 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 ac_check_lib_save_LIBS=$LIBS
19746 cat >conftest.$ac_ext <<_ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19753 /* Override any GCC internal prototype to avoid an error.
19754 Use char because int might match the return type of a GCC
19755 builtin and then its argument prototype would still apply. */
19763 return __ashrdi3 ();
19768 rm -f conftest.$ac_objext conftest$ac_exeext
19769 if { (ac_try="$ac_link"
19770 case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_link") 2>conftest.er1
19777 grep -v '^ *+' conftest.er1 >conftest.err
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } &&
19782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19783 { (case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_try") 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; } &&
19792 { ac_try='test -s conftest$ac_exeext'
19793 { (case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_try") 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_cv_lib_gcc___ashrdi3=yes
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 ac_cv_lib_gcc___ashrdi3=no
19810 rm -f core conftest.err conftest.$ac_objext \
19811 conftest$ac_exeext conftest.$ac_ext
19812 LIBS=$ac_check_lib_save_LIBS
19814 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19815 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19816 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19818 cat >>confdefs.h <<\_ACEOF
19819 #define HAVE___ASHRDI3 1
19824 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19825 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19826 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 ac_check_lib_save_LIBS=$LIBS
19831 cat >conftest.$ac_ext <<_ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19838 /* Override any GCC internal prototype to avoid an error.
19839 Use char because int might match the return type of a GCC
19840 builtin and then its argument prototype would still apply. */
19848 return __divdi3 ();
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_link") 2>conftest.er1
19862 grep -v '^ *+' conftest.er1 >conftest.err
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest$ac_exeext'
19878 { (case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_try") 2>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 ac_cv_lib_gcc___divdi3=yes
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19892 ac_cv_lib_gcc___divdi3=no
19895 rm -f core conftest.err conftest.$ac_objext \
19896 conftest$ac_exeext conftest.$ac_ext
19897 LIBS=$ac_check_lib_save_LIBS
19899 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19900 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19901 if test $ac_cv_lib_gcc___divdi3 = yes; then
19903 cat >>confdefs.h <<\_ACEOF
19904 #define HAVE___DIVDI3 1
19909 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19910 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19911 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 ac_check_lib_save_LIBS=$LIBS
19916 cat >conftest.$ac_ext <<_ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19923 /* Override any GCC internal prototype to avoid an error.
19924 Use char because int might match the return type of a GCC
19925 builtin and then its argument prototype would still apply. */
19933 return __fixdfdi ();
19938 rm -f conftest.$ac_objext conftest$ac_exeext
19939 if { (ac_try="$ac_link"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_link") 2>conftest.er1
19947 grep -v '^ *+' conftest.er1 >conftest.err
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } &&
19952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19953 { (case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_try") 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; } &&
19962 { ac_try='test -s conftest$ac_exeext'
19963 { (case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_try") 2>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_cv_lib_gcc___fixdfdi=yes
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 ac_cv_lib_gcc___fixdfdi=no
19980 rm -f core conftest.err conftest.$ac_objext \
19981 conftest$ac_exeext conftest.$ac_ext
19982 LIBS=$ac_check_lib_save_LIBS
19984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19985 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19986 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19988 cat >>confdefs.h <<\_ACEOF
19989 #define HAVE___FIXDFDI 1
19994 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19995 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19996 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 ac_check_lib_save_LIBS=$LIBS
20001 cat >conftest.$ac_ext <<_ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20018 return __fixsfdi ();
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest$ac_exeext'
20048 { (case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_try") 2>&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_cv_lib_gcc___fixsfdi=yes
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_cv_lib_gcc___fixsfdi=no
20065 rm -f core conftest.err conftest.$ac_objext \
20066 conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20069 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20070 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20071 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20073 cat >>confdefs.h <<\_ACEOF
20074 #define HAVE___FIXSFDI 1
20079 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20080 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20081 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 ac_check_lib_save_LIBS=$LIBS
20086 cat >conftest.$ac_ext <<_ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20093 /* Override any GCC internal prototype to avoid an error.
20094 Use char because int might match the return type of a GCC
20095 builtin and then its argument prototype would still apply. */
20099 char __floatdidf ();
20103 return __floatdidf ();
20108 rm -f conftest.$ac_objext conftest$ac_exeext
20109 if { (ac_try="$ac_link"
20110 case "(($ac_try" in
20111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112 *) ac_try_echo=$ac_try;;
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115 (eval "$ac_link") 2>conftest.er1
20117 grep -v '^ *+' conftest.er1 >conftest.err
20119 cat conftest.err >&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } &&
20122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20123 { (case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_try") 2>&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; } &&
20132 { ac_try='test -s conftest$ac_exeext'
20133 { (case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_try") 2>&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; }; then
20142 ac_cv_lib_gcc___floatdidf=yes
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_cv_lib_gcc___floatdidf=no
20150 rm -f core conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_lib_save_LIBS
20154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20155 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20156 if test $ac_cv_lib_gcc___floatdidf = yes; then
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE___FLOATDIDF 1
20164 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20165 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20166 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20169 ac_check_lib_save_LIBS=$LIBS
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20178 /* Override any GCC internal prototype to avoid an error.
20179 Use char because int might match the return type of a GCC
20180 builtin and then its argument prototype would still apply. */
20188 return __lshrdi3 ();
20193 rm -f conftest.$ac_objext conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_link") 2>conftest.er1
20202 grep -v '^ *+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20208 { (case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_try") 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; } &&
20217 { ac_try='test -s conftest$ac_exeext'
20218 { (case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_try") 2>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_lib_gcc___lshrdi3=yes
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_cv_lib_gcc___lshrdi3=no
20235 rm -f core conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20240 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20241 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20243 cat >>confdefs.h <<\_ACEOF
20244 #define HAVE___LSHRDI3 1
20249 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20250 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20251 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 ac_check_lib_save_LIBS=$LIBS
20256 cat >conftest.$ac_ext <<_ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20263 /* Override any GCC internal prototype to avoid an error.
20264 Use char because int might match the return type of a GCC
20265 builtin and then its argument prototype would still apply. */
20273 return __moddi3 ();
20278 rm -f conftest.$ac_objext conftest$ac_exeext
20279 if { (ac_try="$ac_link"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_link") 2>conftest.er1
20287 grep -v '^ *+' conftest.er1 >conftest.err
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20293 { (case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_try") 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest$ac_exeext'
20303 { (case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_try") 2>&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_cv_lib_gcc___moddi3=yes
20314 echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 ac_cv_lib_gcc___moddi3=no
20320 rm -f core conftest.err conftest.$ac_objext \
20321 conftest$ac_exeext conftest.$ac_ext
20322 LIBS=$ac_check_lib_save_LIBS
20324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20325 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20326 if test $ac_cv_lib_gcc___moddi3 = yes; then
20328 cat >>confdefs.h <<\_ACEOF
20329 #define HAVE___MODDI3 1
20334 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20335 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20336 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 ac_check_lib_save_LIBS=$LIBS
20341 cat >conftest.$ac_ext <<_ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20348 /* Override any GCC internal prototype to avoid an error.
20349 Use char because int might match the return type of a GCC
20350 builtin and then its argument prototype would still apply. */
20358 return __udivdi3 ();
20363 rm -f conftest.$ac_objext conftest$ac_exeext
20364 if { (ac_try="$ac_link"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_link") 2>conftest.er1
20372 grep -v '^ *+' conftest.er1 >conftest.err
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } &&
20377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20378 { (case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_try") 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; } &&
20387 { ac_try='test -s conftest$ac_exeext'
20388 { (case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393 (eval "$ac_try") 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 ac_cv_lib_gcc___udivdi3=yes
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 ac_cv_lib_gcc___udivdi3=no
20405 rm -f core conftest.err conftest.$ac_objext \
20406 conftest$ac_exeext conftest.$ac_ext
20407 LIBS=$ac_check_lib_save_LIBS
20409 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20410 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20411 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20413 cat >>confdefs.h <<\_ACEOF
20414 #define HAVE___UDIVDI3 1
20419 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20420 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20421 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 ac_check_lib_save_LIBS=$LIBS
20426 cat >conftest.$ac_ext <<_ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20433 /* Override any GCC internal prototype to avoid an error.
20434 Use char because int might match the return type of a GCC
20435 builtin and then its argument prototype would still apply. */
20443 return __umoddi3 ();
20448 rm -f conftest.$ac_objext conftest$ac_exeext
20449 if { (ac_try="$ac_link"
20450 case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_link") 2>conftest.er1
20457 grep -v '^ *+' conftest.er1 >conftest.err
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } &&
20462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20463 { (case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_try") 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; } &&
20472 { ac_try='test -s conftest$ac_exeext'
20473 { (case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_try") 2>&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; }; then
20482 ac_cv_lib_gcc___umoddi3=yes
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 ac_cv_lib_gcc___umoddi3=no
20490 rm -f core conftest.err conftest.$ac_objext \
20491 conftest$ac_exeext conftest.$ac_ext
20492 LIBS=$ac_check_lib_save_LIBS
20494 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20495 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20496 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20498 cat >>confdefs.h <<\_ACEOF
20499 #define HAVE___UMODDI3 1
20505 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20506 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20507 if test "${ac_cv_lib_gcc___main+set}" = set; then
20508 echo $ECHO_N "(cached) $ECHO_C" >&6
20510 ac_check_lib_save_LIBS=$LIBS
20512 cat >conftest.$ac_ext <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20519 /* Override any GCC internal prototype to avoid an error.
20520 Use char because int might match the return type of a GCC
20521 builtin and then its argument prototype would still apply. */
20534 rm -f conftest.$ac_objext conftest$ac_exeext
20535 if { (ac_try="$ac_link"
20536 case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_link") 2>conftest.er1
20543 grep -v '^ *+' conftest.er1 >conftest.err
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20549 { (case "(($ac_try" in
20550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551 *) ac_try_echo=$ac_try;;
20553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554 (eval "$ac_try") 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; } &&
20558 { ac_try='test -s conftest$ac_exeext'
20559 { (case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_try") 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_cv_lib_gcc___main=yes
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 ac_cv_lib_gcc___main=no
20576 rm -f core conftest.err conftest.$ac_objext \
20577 conftest$ac_exeext conftest.$ac_ext
20578 LIBS=$ac_check_lib_save_LIBS
20580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20581 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20582 if test $ac_cv_lib_gcc___main = yes; then
20584 cat >>confdefs.h <<\_ACEOF
20585 #define HAVE___MAIN 1
20590 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20591 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20592 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 ac_check_lib_save_LIBS=$LIBS
20597 cat >conftest.$ac_ext <<_ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20604 /* Override any GCC internal prototype to avoid an error.
20605 Use char because int might match the return type of a GCC
20606 builtin and then its argument prototype would still apply. */
20614 return __cmpdi2 ();
20619 rm -f conftest.$ac_objext conftest$ac_exeext
20620 if { (ac_try="$ac_link"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_link") 2>conftest.er1
20628 grep -v '^ *+' conftest.er1 >conftest.err
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest$ac_exeext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 ac_cv_lib_gcc___cmpdi2=yes
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20658 ac_cv_lib_gcc___cmpdi2=no
20661 rm -f core conftest.err conftest.$ac_objext \
20662 conftest$ac_exeext conftest.$ac_ext
20663 LIBS=$ac_check_lib_save_LIBS
20665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20666 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20667 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20669 cat >>confdefs.h <<\_ACEOF
20670 #define HAVE___CMPDI2 1
20677 if test "$llvm_cv_os_type" = "MingW" ; then
20678 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20679 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20680 cat >conftest.$ac_ext <<_ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20688 #include <windows.h>
20689 #include <imagehlp.h>
20690 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20691 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_compile") 2>conftest.er1
20704 grep -v '^ *+' conftest.er1 >conftest.err
20706 cat conftest.err >&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
20709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20710 { (case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_try") 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; } &&
20719 { ac_try='test -s conftest.$ac_objext'
20720 { (case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_try") 2>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
20730 { echo "$as_me:$LINENO: result: yes" >&5
20731 echo "${ECHO_T}yes" >&6; }
20732 llvm_cv_win32_elmcb_pcstr="PCSTR"
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20739 { echo "$as_me:$LINENO: result: no" >&5
20740 echo "${ECHO_T}no" >&6; }
20741 llvm_cv_win32_elmcb_pcstr="PSTR"
20745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20747 cat >>confdefs.h <<_ACEOF
20748 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20755 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20756 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20757 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 ac_cpp='$CXXCPP $CPPFLAGS'
20763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20767 cat >conftest.$ac_ext <<_ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_compile") 2>conftest.er1
20791 grep -v '^ *+' conftest.er1 >conftest.err
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } &&
20796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20797 { (case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_try") 2>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; } &&
20806 { ac_try='test -s conftest.$ac_objext'
20807 { (case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_try") 2>&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; }; then
20816 ac_cv_func_isnan_in_math_h=yes
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 ac_cv_func_isnan_in_math_h=no
20824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20826 ac_cpp='$CPP $CPPFLAGS'
20827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20833 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20834 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20837 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_ISNAN_IN_MATH_H 1
20846 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20847 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20848 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20849 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 ac_cpp='$CXXCPP $CPPFLAGS'
20854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20858 cat >conftest.$ac_ext <<_ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_compile") 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
20887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20888 { (case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_try") 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; } &&
20897 { ac_try='test -s conftest.$ac_objext'
20898 { (case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_try") 2>&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 ac_cv_func_isnan_in_cmath=yes
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 ac_cv_func_isnan_in_cmath=no
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 ac_cpp='$CPP $CPPFLAGS'
20918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20925 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20927 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20929 cat >>confdefs.h <<\_ACEOF
20930 #define HAVE_ISNAN_IN_CMATH 1
20936 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20937 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20938 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20958 float f; std::isnan(f);
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_compile") 2>conftest.er1
20972 grep -v '^ *+' conftest.er1 >conftest.err
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20978 { (case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_try") 2>&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest.$ac_objext'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ac_cv_func_std_isnan_in_cmath=yes
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 ac_cv_func_std_isnan_in_cmath=no
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 ac_cpp='$CPP $CPPFLAGS'
21008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21015 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21017 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21019 cat >>confdefs.h <<\_ACEOF
21020 #define HAVE_STD_ISNAN_IN_CMATH 1
21028 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21029 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21030 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 ac_cpp='$CXXCPP $CPPFLAGS'
21036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21040 cat >conftest.$ac_ext <<_ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21055 rm -f conftest.$ac_objext
21056 if { (ac_try="$ac_compile"
21057 case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062 (eval "$ac_compile") 2>conftest.er1
21064 grep -v '^ *+' conftest.er1 >conftest.err
21066 cat conftest.err >&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } &&
21069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21070 { (case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075 (eval "$ac_try") 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest.$ac_objext'
21080 { (case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085 (eval "$ac_try") 2>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 ac_cv_func_isinf_in_math_h=yes
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ac_cv_func_isinf_in_math_h=no
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21099 ac_cpp='$CPP $CPPFLAGS'
21100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21107 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21109 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21111 cat >>confdefs.h <<\_ACEOF
21112 #define HAVE_ISINF_IN_MATH_H 1
21118 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21119 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21120 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21125 ac_cpp='$CXXCPP $CPPFLAGS'
21126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21130 cat >conftest.$ac_ext <<_ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_compile") 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21160 { (case "(($ac_try" in
21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162 *) ac_try_echo=$ac_try;;
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165 (eval "$ac_try") 2>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); }; } &&
21169 { ac_try='test -s conftest.$ac_objext'
21170 { (case "(($ac_try" in
21171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172 *) ac_try_echo=$ac_try;;
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175 (eval "$ac_try") 2>&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; }; then
21179 ac_cv_func_isinf_in_cmath=yes
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21184 ac_cv_func_isinf_in_cmath=no
21187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21189 ac_cpp='$CPP $CPPFLAGS'
21190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21196 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21197 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21199 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21201 cat >>confdefs.h <<\_ACEOF
21202 #define HAVE_ISINF_IN_CMATH 1
21208 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21209 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21210 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21215 ac_cpp='$CXXCPP $CPPFLAGS'
21216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21230 float f; std::isinf(f);
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21244 grep -v '^ *+' conftest.er1 >conftest.err
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21250 { (case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_try") 2>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
21260 { (case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_try") 2>&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
21269 ac_cv_func_std_isinf_in_cmath=yes
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274 ac_cv_func_std_isinf_in_cmath=no
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279 ac_cpp='$CPP $CPPFLAGS'
21280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21286 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21287 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21289 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21291 cat >>confdefs.h <<\_ACEOF
21292 #define HAVE_STD_ISINF_IN_CMATH 1
21298 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21299 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21300 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21305 ac_cpp='$CXXCPP $CPPFLAGS'
21306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21310 cat >conftest.$ac_ext <<_ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21316 #include <ieeefp.h>
21320 float f; finite(f);
21325 rm -f conftest.$ac_objext
21326 if { (ac_try="$ac_compile"
21327 case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_compile") 2>conftest.er1
21334 grep -v '^ *+' conftest.er1 >conftest.err
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } &&
21339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21340 { (case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345 (eval "$ac_try") 2>&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; } &&
21349 { ac_try='test -s conftest.$ac_objext'
21350 { (case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_try") 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 ac_cv_func_finite_in_ieeefp_h=yes
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ac_cv_func_finite_in_ieeefp_h=no
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369 ac_cpp='$CPP $CPPFLAGS'
21370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21376 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21377 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21379 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21381 cat >>confdefs.h <<\_ACEOF
21382 #define HAVE_FINITE_IN_IEEEFP_H 1
21389 if test "$llvm_cv_platform_type" = "Unix" ; then
21392 for ac_header in stdlib.h unistd.h
21394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 ac_res=`eval echo '${'$as_ac_Header'}'`
21402 { echo "$as_me:$LINENO: result: $ac_res" >&5
21403 echo "${ECHO_T}$ac_res" >&6; }
21405 # Is the header compilable?
21406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21408 cat >conftest.$ac_ext <<_ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 $ac_includes_default
21415 #include <$ac_header>
21417 rm -f conftest.$ac_objext
21418 if { (ac_try="$ac_compile"
21419 case "(($ac_try" in
21420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421 *) ac_try_echo=$ac_try;;
21423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21424 (eval "$ac_compile") 2>conftest.er1
21426 grep -v '^ *+' conftest.er1 >conftest.err
21428 cat conftest.err >&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); } &&
21431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21432 { (case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437 (eval "$ac_try") 2>&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; } &&
21441 { ac_try='test -s conftest.$ac_objext'
21442 { (case "(($ac_try" in
21443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444 *) ac_try_echo=$ac_try;;
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447 (eval "$ac_try") 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 ac_header_compiler=yes
21453 echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21456 ac_header_compiler=no
21459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21461 echo "${ECHO_T}$ac_header_compiler" >&6; }
21463 # Is the header present?
21464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21466 cat >conftest.$ac_ext <<_ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 #include <$ac_header>
21474 if { (ac_try="$ac_cpp conftest.$ac_ext"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21482 grep -v '^ *+' conftest.er1 >conftest.err
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } >/dev/null; then
21487 if test -s conftest.err; then
21488 ac_cpp_err=$ac_c_preproc_warn_flag
21489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21496 if test -z "$ac_cpp_err"; then
21497 ac_header_preproc=yes
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 ac_header_preproc=no
21505 rm -f conftest.err conftest.$ac_ext
21506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21507 echo "${ECHO_T}$ac_header_preproc" >&6; }
21509 # So? What about this header?
21510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21516 ac_header_preproc=yes
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21532 ## ------------------------------------ ##
21533 ## Report this to http://llvm.org/bugs/ ##
21534 ## ------------------------------------ ##
21536 ) | sed "s/^/$as_me: WARNING: /" >&2
21539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21544 eval "$as_ac_Header=\$ac_header_preproc"
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547 { echo "$as_me:$LINENO: result: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21552 cat >>confdefs.h <<_ACEOF
21553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21561 for ac_func in getpagesize
21563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21569 cat >conftest.$ac_ext <<_ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21577 #define $ac_func innocuous_$ac_func
21579 /* System header to define __stub macros and hopefully few prototypes,
21580 which can conflict with char $ac_func (); below.
21581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21582 <limits.h> exists even on freestanding compilers. */
21585 # include <limits.h>
21587 # include <assert.h>
21592 /* Override any GCC internal prototype to avoid an error.
21593 Use char because int might match the return type of a GCC
21594 builtin and then its argument prototype would still apply. */
21599 /* The GNU C library defines this for functions which it implements
21600 to always fail with ENOSYS. Some functions are actually named
21601 something starting with __ and the normal name is an alias. */
21602 #if defined __stub_$ac_func || defined __stub___$ac_func
21609 return $ac_func ();
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (ac_try="$ac_link"
21616 case "(($ac_try" in
21617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618 *) ac_try_echo=$ac_try;;
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621 (eval "$ac_link") 2>conftest.er1
21623 grep -v '^ *+' conftest.er1 >conftest.err
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } &&
21628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21629 { (case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_try") 2>&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; } &&
21638 { ac_try='test -s conftest$ac_exeext'
21639 { (case "(($ac_try" in
21640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641 *) ac_try_echo=$ac_try;;
21643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21644 (eval "$ac_try") 2>&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 eval "$as_ac_var=yes"
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21653 eval "$as_ac_var=no"
21656 rm -f core conftest.err conftest.$ac_objext \
21657 conftest$ac_exeext conftest.$ac_ext
21659 ac_res=`eval echo '${'$as_ac_var'}'`
21660 { echo "$as_me:$LINENO: result: $ac_res" >&5
21661 echo "${ECHO_T}$ac_res" >&6; }
21662 if test `eval echo '${'$as_ac_var'}'` = yes; then
21663 cat >>confdefs.h <<_ACEOF
21664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21670 { echo "$as_me:$LINENO: checking for working mmap" >&5
21671 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21672 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 if test "$cross_compiling" = yes; then
21676 ac_cv_func_mmap_fixed_mapped=no
21678 cat >conftest.$ac_ext <<_ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 $ac_includes_default
21685 /* malloc might have been renamed as rpl_malloc. */
21688 /* Thanks to Mike Haertel and Jim Avera for this test.
21689 Here is a matrix of mmap possibilities:
21690 mmap private not fixed
21691 mmap private fixed at somewhere currently unmapped
21692 mmap private fixed at somewhere already mapped
21693 mmap shared not fixed
21694 mmap shared fixed at somewhere currently unmapped
21695 mmap shared fixed at somewhere already mapped
21696 For private mappings, we should verify that changes cannot be read()
21697 back from the file, nor mmap's back from the file at a different
21698 address. (There have been systems where private was not correctly
21699 implemented like the infamous i386 svr4.0, and systems where the
21700 VM page cache was not coherent with the file system buffer cache
21701 like early versions of FreeBSD and possibly contemporary NetBSD.)
21702 For shared mappings, we should conversely verify that changes get
21703 propagated back to all the places they're supposed to be.
21705 Grep wants private fixed already mapped.
21706 The main things grep needs to know about mmap are:
21707 * does it exist and is it safe to write into the mmap'd area
21708 * how to use it (BSD variants) */
21711 #include <sys/mman.h>
21713 #if !STDC_HEADERS && !HAVE_STDLIB_H
21717 /* This mess was copied from the GNU getpagesize.h. */
21718 #if !HAVE_GETPAGESIZE
21719 /* Assume that all systems that can run configure have sys/param.h. */
21720 # if !HAVE_SYS_PARAM_H
21721 # define HAVE_SYS_PARAM_H 1
21724 # ifdef _SC_PAGESIZE
21725 # define getpagesize() sysconf(_SC_PAGESIZE)
21726 # else /* no _SC_PAGESIZE */
21727 # if HAVE_SYS_PARAM_H
21728 # include <sys/param.h>
21729 # ifdef EXEC_PAGESIZE
21730 # define getpagesize() EXEC_PAGESIZE
21731 # else /* no EXEC_PAGESIZE */
21733 # define getpagesize() NBPG * CLSIZE
21736 # endif /* no CLSIZE */
21737 # else /* no NBPG */
21739 # define getpagesize() NBPC
21740 # else /* no NBPC */
21742 # define getpagesize() PAGESIZE
21743 # endif /* PAGESIZE */
21744 # endif /* no NBPC */
21745 # endif /* no NBPG */
21746 # endif /* no EXEC_PAGESIZE */
21747 # else /* no HAVE_SYS_PARAM_H */
21748 # define getpagesize() 8192 /* punt totally */
21749 # endif /* no HAVE_SYS_PARAM_H */
21750 # endif /* no _SC_PAGESIZE */
21752 #endif /* no HAVE_GETPAGESIZE */
21757 char *data, *data2, *data3;
21761 pagesize = getpagesize ();
21763 /* First, make a file with some known garbage in it. */
21764 data = (char *) malloc (pagesize);
21767 for (i = 0; i < pagesize; ++i)
21768 *(data + i) = rand ();
21770 fd = creat ("conftest.mmap", 0600);
21773 if (write (fd, data, pagesize) != pagesize)
21777 /* Next, try to mmap the file at a fixed address which already has
21778 something else allocated at it. If we can, also make sure that
21779 we see the same garbage. */
21780 fd = open ("conftest.mmap", O_RDWR);
21783 data2 = (char *) malloc (2 * pagesize);
21786 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21787 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21788 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21790 for (i = 0; i < pagesize; ++i)
21791 if (*(data + i) != *(data2 + i))
21794 /* Finally, make sure that changes to the mapped area do not
21795 percolate back to the file as seen by read(). (This is a bug on
21796 some variants of i386 svr4.0.) */
21797 for (i = 0; i < pagesize; ++i)
21798 *(data2 + i) = *(data2 + i) + 1;
21799 data3 = (char *) malloc (pagesize);
21802 if (read (fd, data3, pagesize) != pagesize)
21804 for (i = 0; i < pagesize; ++i)
21805 if (*(data + i) != *(data3 + i))
21811 rm -f conftest$ac_exeext
21812 if { (ac_try="$ac_link"
21813 case "(($ac_try" in
21814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815 *) ac_try_echo=$ac_try;;
21817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818 (eval "$ac_link") 2>&5
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21822 { (case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_try") 2>&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 ac_cv_func_mmap_fixed_mapped=yes
21833 echo "$as_me: program exited with status $ac_status" >&5
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 ( exit $ac_status )
21838 ac_cv_func_mmap_fixed_mapped=no
21840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21845 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21846 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21847 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21849 cat >>confdefs.h <<\_ACEOF
21850 #define HAVE_MMAP 1
21854 rm -f conftest.mmap
21856 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21857 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21858 if test "${ac_cv_func_mmap_file+set}" = set; then
21859 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 ac_cpp='$CPP $CPPFLAGS'
21863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21867 if test "$cross_compiling" = yes; then
21868 ac_cv_func_mmap_file=no
21870 cat >conftest.$ac_ext <<_ACEOF
21874 cat confdefs.h >>conftest.$ac_ext
21875 cat >>conftest.$ac_ext <<_ACEOF
21876 /* end confdefs.h. */
21878 #include <sys/types.h>
21879 #include <sys/mman.h>
21887 fd = creat ("foo",0777);
21888 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21890 return (fd != (int) MAP_FAILED);
21895 rm -f conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_link") 2>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21906 { (case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_try") 2>&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; }; then
21915 ac_cv_func_mmap_file=yes
21917 echo "$as_me: program exited with status $ac_status" >&5
21918 echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21921 ( exit $ac_status )
21922 ac_cv_func_mmap_file=no
21924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21929 ac_cpp='$CPP $CPPFLAGS'
21930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21936 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21937 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21938 if test "$ac_cv_func_mmap_file" = yes; then
21940 cat >>confdefs.h <<\_ACEOF
21941 #define HAVE_MMAP_FILE
21948 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21949 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21950 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 if test "$llvm_cv_os_type" = "Interix" ; then
21954 ac_cv_need_dev_zero_for_mmap=yes
21956 ac_cv_need_dev_zero_for_mmap=no
21960 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21961 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21962 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21964 cat >>confdefs.h <<\_ACEOF
21965 #define NEED_DEV_ZERO_FOR_MMAP 1
21970 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21972 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21973 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21975 if test "$ac_cv_func_mmap_file" = "no"
21977 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21978 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21982 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21983 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21985 ac_cpp='$CXXCPP $CPPFLAGS'
21986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21990 cat >conftest.$ac_ext <<_ACEOF
21994 cat confdefs.h >>conftest.$ac_ext
21995 cat >>conftest.$ac_ext <<_ACEOF
21996 /* end confdefs.h. */
21999 volatile unsigned long val = 1;
22000 __sync_synchronize();
22001 __sync_val_compare_and_swap(&val, 1, 0);
22002 __sync_add_and_fetch(&val, 1);
22003 __sync_sub_and_fetch(&val, 1);
22009 rm -f conftest.$ac_objext conftest$ac_exeext
22010 if { (ac_try="$ac_link"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_link") 2>conftest.er1
22018 grep -v '^ *+' conftest.er1 >conftest.err
22020 cat conftest.err >&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } &&
22023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22024 { (case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_try") 2>&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; } &&
22033 { ac_try='test -s conftest$ac_exeext'
22034 { (case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_try") 2>&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; }; then
22044 { echo "$as_me:$LINENO: result: yes" >&5
22045 echo "${ECHO_T}yes" >&6; }
22047 cat >>confdefs.h <<\_ACEOF
22048 #define LLVM_HAS_ATOMICS 1
22053 echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22057 { echo "$as_me:$LINENO: result: no" >&5
22058 echo "${ECHO_T}no" >&6; }
22060 cat >>confdefs.h <<\_ACEOF
22061 #define LLVM_HAS_ATOMICS 0
22064 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22065 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22069 rm -f core conftest.err conftest.$ac_objext \
22070 conftest$ac_exeext conftest.$ac_ext
22072 ac_cpp='$CPP $CPPFLAGS'
22073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22079 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22080 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22081 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22082 if test "${llvm_cv_linux_mixed+set}" = set; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22086 ac_cpp='$CPP $CPPFLAGS'
22087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22091 cat >conftest.$ac_ext <<_ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h. */
22098 error: Not x86-64 even if uname says so!
22109 rm -f conftest.$ac_objext
22110 if { (ac_try="$ac_compile"
22111 case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116 (eval "$ac_compile") 2>conftest.er1
22118 grep -v '^ *+' conftest.er1 >conftest.err
22120 cat conftest.err >&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } &&
22123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22124 { (case "(($ac_try" in
22125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126 *) ac_try_echo=$ac_try;;
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129 (eval "$ac_try") 2>&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); }; } &&
22133 { ac_try='test -s conftest.$ac_objext'
22134 { (case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139 (eval "$ac_try") 2>&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); }; }; then
22143 llvm_cv_linux_mixed=no
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 llvm_cv_linux_mixed=yes
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153 ac_cpp='$CPP $CPPFLAGS'
22154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22160 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22161 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22163 if test "$llvm_cv_linux_mixed" = "yes"; then
22164 llvm_cv_target_arch="x86"
22170 for ac_func in __dso_handle
22172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22178 cat >conftest.$ac_ext <<_ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22186 #define $ac_func innocuous_$ac_func
22188 /* System header to define __stub macros and hopefully few prototypes,
22189 which can conflict with char $ac_func (); below.
22190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22191 <limits.h> exists even on freestanding compilers. */
22194 # include <limits.h>
22196 # include <assert.h>
22201 /* Override any GCC internal prototype to avoid an error.
22202 Use char because int might match the return type of a GCC
22203 builtin and then its argument prototype would still apply. */
22208 /* The GNU C library defines this for functions which it implements
22209 to always fail with ENOSYS. Some functions are actually named
22210 something starting with __ and the normal name is an alias. */
22211 #if defined __stub_$ac_func || defined __stub___$ac_func
22218 return $ac_func ();
22223 rm -f conftest.$ac_objext conftest$ac_exeext
22224 if { (ac_try="$ac_link"
22225 case "(($ac_try" in
22226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227 *) ac_try_echo=$ac_try;;
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230 (eval "$ac_link") 2>conftest.er1
22232 grep -v '^ *+' conftest.er1 >conftest.err
22234 cat conftest.err >&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } &&
22237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22238 { (case "(($ac_try" in
22239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240 *) ac_try_echo=$ac_try;;
22242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243 (eval "$ac_try") 2>&5
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; } &&
22247 { ac_try='test -s conftest$ac_exeext'
22248 { (case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253 (eval "$ac_try") 2>&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; }; then
22257 eval "$as_ac_var=yes"
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 eval "$as_ac_var=no"
22265 rm -f core conftest.err conftest.$ac_objext \
22266 conftest$ac_exeext conftest.$ac_ext
22268 ac_res=`eval echo '${'$as_ac_var'}'`
22269 { echo "$as_me:$LINENO: result: $ac_res" >&5
22270 echo "${ECHO_T}$ac_res" >&6; }
22271 if test `eval echo '${'$as_ac_var'}'` = yes; then
22272 cat >>confdefs.h <<_ACEOF
22273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22280 SHLIBEXT=$libltdl_cv_shlibext
22283 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22286 if test "${prefix}" = "NONE" ; then
22287 prefix="/usr/local"
22289 eval LLVM_PREFIX="${prefix}";
22290 eval LLVM_BINDIR="${prefix}/bin";
22291 eval LLVM_DATADIR="${prefix}/share/llvm";
22292 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22293 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22294 eval LLVM_INCLUDEDIR="${prefix}/include";
22295 eval LLVM_INFODIR="${prefix}/info";
22296 eval LLVM_MANDIR="${prefix}/man";
22297 LLVM_CONFIGTIME=`date`
22308 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22309 LLVM_CONFIGTIME="(timestamp not enabled)"
22313 cat >>confdefs.h <<_ACEOF
22314 #define LLVM_PREFIX "$LLVM_PREFIX"
22318 cat >>confdefs.h <<_ACEOF
22319 #define LLVM_BINDIR "$LLVM_BINDIR"
22323 cat >>confdefs.h <<_ACEOF
22324 #define LLVM_DATADIR "$LLVM_DATADIR"
22328 cat >>confdefs.h <<_ACEOF
22329 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22333 cat >>confdefs.h <<_ACEOF
22334 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22338 cat >>confdefs.h <<_ACEOF
22339 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22343 cat >>confdefs.h <<_ACEOF
22344 #define LLVM_INFODIR "$LLVM_INFODIR"
22348 cat >>confdefs.h <<_ACEOF
22349 #define LLVM_MANDIR "$LLVM_MANDIR"
22353 cat >>confdefs.h <<_ACEOF
22354 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22358 cat >>confdefs.h <<_ACEOF
22359 #define LLVM_HOST_TRIPLE "$host"
22363 cat >>confdefs.h <<_ACEOF
22364 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22368 if test "$BINDINGS_TO_BUILD" = auto ; then
22369 BINDINGS_TO_BUILD=""
22370 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22371 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22374 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22380 binding_prereqs_failed=0
22381 for a_binding in $BINDINGS_TO_BUILD ; do
22382 case "$a_binding" in
22384 if test "x$OCAMLC" = x ; then
22385 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22386 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22387 binding_prereqs_failed=1
22389 if test "x$OCAMLDEP" = x ; then
22390 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22391 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22392 binding_prereqs_failed=1
22394 if test "x$OCAMLOPT" = x ; then
22395 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22396 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22398 if test "x$with_ocaml_libdir" != xauto ; then
22399 OCAML_LIBDIR=$with_ocaml_libdir
22402 ocaml_stdlib="`"$OCAMLC" -where`"
22403 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22405 # ocaml stdlib is beneath our prefix; use stdlib
22406 OCAML_LIBDIR=$ocaml_stdlib
22409 # ocaml stdlib is outside our prefix; use libdir/ocaml
22410 OCAML_LIBDIR=${prefix}/lib/ocaml
22417 if test "$binding_prereqs_failed" = 1 ; then
22418 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22419 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22420 { (exit 1); exit 1; }; }
22423 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22424 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22425 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22429 ac_cpp='$CXXCPP $CPPFLAGS'
22430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22434 oldcxxflags="$CXXFLAGS"
22435 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22436 cat >conftest.$ac_ext <<_ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22442 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22451 rm -f conftest.$ac_objext
22452 if { (ac_try="$ac_compile"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_compile") 2>conftest.er1
22460 grep -v '^ *+' conftest.er1 >conftest.err
22462 cat conftest.err >&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); } &&
22465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22466 { (case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_try") 2>&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; } &&
22475 { ac_try='test -s conftest.$ac_objext'
22476 { (case "(($ac_try" in
22477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478 *) ac_try_echo=$ac_try;;
22480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481 (eval "$ac_try") 2>&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485 llvm_cv_cxx_visibility_inlines_hidden=yes
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22490 llvm_cv_cxx_visibility_inlines_hidden=no
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 CXXFLAGS="$oldcxxflags"
22496 ac_cpp='$CPP $CPPFLAGS'
22497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22503 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22504 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22505 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22506 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22509 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22514 if test "$llvm_cv_link_use_r" = "yes" ; then
22521 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22522 RDYNAMIC="-Wl,-export-dynamic"
22529 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22536 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22538 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22540 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22542 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22544 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22547 ac_config_files="$ac_config_files Makefile.config"
22550 ac_config_files="$ac_config_files llvm.spec"
22553 ac_config_files="$ac_config_files docs/doxygen.cfg"
22556 if test "${clang_src_root}" = ""; then
22557 clang_src_root="$srcdir/tools/clang"
22559 if test -f ${clang_src_root}/README.txt; then
22560 configh="include/clang/Config/config.h"
22561 doxy="docs/doxygen.cfg"
22562 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22564 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22568 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22571 test "x$program_prefix" = "xNONE" && program_prefix=""
22575 ac_config_commands="$ac_config_commands setup"
22577 ac_config_commands="$ac_config_commands Makefile"
22580 ac_config_commands="$ac_config_commands Makefile.common"
22583 ac_config_commands="$ac_config_commands examples/Makefile"
22586 ac_config_commands="$ac_config_commands lib/Makefile"
22589 ac_config_commands="$ac_config_commands runtime/Makefile"
22592 ac_config_commands="$ac_config_commands test/Makefile"
22595 ac_config_commands="$ac_config_commands test/Makefile.tests"
22598 ac_config_commands="$ac_config_commands unittests/Makefile"
22601 ac_config_commands="$ac_config_commands tools/Makefile"
22604 ac_config_commands="$ac_config_commands utils/Makefile"
22607 ac_config_commands="$ac_config_commands projects/Makefile"
22610 ac_config_commands="$ac_config_commands bindings/Makefile"
22613 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22617 cat >confcache <<\_ACEOF
22618 # This file is a shell script that caches the results of configure
22619 # tests run on this system so they can be shared between configure
22620 # scripts and configure runs, see configure's option --config-cache.
22621 # It is not useful on other systems. If it contains results you don't
22622 # want to keep, you may remove or edit it.
22624 # config.status only pays attention to the cache file if you give it
22625 # the --recheck option to rerun configure.
22627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22629 # following values.
22633 # The following way of writing the cache mishandles newlines in values,
22634 # but we know of no workaround that is simple, portable, and efficient.
22635 # So, we kill variables containing newlines.
22636 # Ultrix sh set writes to stderr and can't be redirected directly,
22637 # and sets the high bit in the cache file unless we assign to the vars.
22639 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22640 eval ac_val=\$$ac_var
22644 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22645 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22648 _ | IFS | as_nl) ;; #(
22649 *) $as_unset $ac_var ;;
22655 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22656 *${as_nl}ac_space=\ *)
22657 # `set' does not quote correctly, so add quotes (double-quote
22658 # substitution turns \\\\ into \\, and sed turns \\ into \).
22661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22664 # `set' quotes correctly as required by POSIX, so do not add quotes.
22665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22678 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22679 if test -w "$cache_file"; then
22680 test "x$cache_file" != "x/dev/null" &&
22681 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22682 echo "$as_me: updating cache $cache_file" >&6;}
22683 cat confcache >$cache_file
22685 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22686 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22691 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22692 # Let make expand exec_prefix.
22693 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22695 DEFS=-DHAVE_CONFIG_H
22699 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22700 # 1. Remove the extension, and $U if already installed.
22701 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22702 ac_i=`echo "$ac_i" | sed "$ac_script"`
22703 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22704 # will be set to the directory where LIBOBJS objects are built.
22705 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22706 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22708 LIBOBJS=$ac_libobjs
22710 LTLIBOBJS=$ac_ltlibobjs
22713 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22714 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22715 Usually this means the macro was only invoked conditionally." >&5
22716 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22717 Usually this means the macro was only invoked conditionally." >&2;}
22718 { (exit 1); exit 1; }; }
22720 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22721 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22722 Usually this means the macro was only invoked conditionally." >&5
22723 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22724 Usually this means the macro was only invoked conditionally." >&2;}
22725 { (exit 1); exit 1; }; }
22728 : ${CONFIG_STATUS=./config.status}
22729 ac_clean_files_save=$ac_clean_files
22730 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22731 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22732 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22733 cat >$CONFIG_STATUS <<_ACEOF
22735 # Generated by $as_me.
22736 # Run this file to recreate the current configuration.
22737 # Compiler output produced by configure, useful for debugging
22738 # configure, is in config.log if it exists.
22741 ac_cs_recheck=false
22743 SHELL=\${CONFIG_SHELL-$SHELL}
22746 cat >>$CONFIG_STATUS <<\_ACEOF
22747 ## --------------------- ##
22748 ## M4sh Initialization. ##
22749 ## --------------------- ##
22751 # Be Bourne compatible
22752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22755 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22756 # is contrary to our usage. Disable this feature.
22757 alias -g '${1+"$@"}'='"$@"'
22758 setopt NO_GLOB_SUBST
22760 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22762 BIN_SH=xpg4; export BIN_SH # for Tru64
22763 DUALCASE=1; export DUALCASE # for MKS sh
22767 # Avoid depending upon Character Ranges.
22768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22771 as_cr_digits='0123456789'
22772 as_cr_alnum=$as_cr_Letters$as_cr_digits
22774 # The user is always right.
22775 if test "${PATH_SEPARATOR+set}" != set; then
22776 echo "#! /bin/sh" >conf$$.sh
22777 echo "exit 0" >>conf$$.sh
22779 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22787 # Support unset when possible.
22788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22796 # We need space, tab and new line, in precisely that order. Quoting is
22797 # there to prevent editors from complaining about space-tab.
22798 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22799 # splitting by setting IFS to empty value.)
22804 # Find who we are. Look in the path if we contain no directory separator.
22806 *[\\/]* ) as_myself=$0 ;;
22807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22808 for as_dir in $PATH
22811 test -z "$as_dir" && as_dir=.
22812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22818 # We did not find ourselves, most probably we were run as `sh COMMAND'
22819 # in which case we are not to be found in the path.
22820 if test "x$as_myself" = x; then
22823 if test ! -f "$as_myself"; then
22824 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22825 { (exit 1); exit 1; }
22828 # Work around bugs in pre-3.0 UWIN ksh.
22829 for as_var in ENV MAIL MAILPATH
22830 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22838 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22839 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22840 LC_TELEPHONE LC_TIME
22842 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22843 eval $as_var=C; export $as_var
22845 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22849 # Required to use basename.
22850 if expr a : '\(a\)' >/dev/null 2>&1 &&
22851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22858 as_basename=basename
22864 # Name of the executable.
22865 as_me=`$as_basename -- "$0" ||
22866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22867 X"$0" : 'X\(//\)$' \| \
22868 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22870 sed '/^.*\/\([^/][^/]*\)\/*$/{
22889 as_lineno_1=$LINENO
22890 as_lineno_2=$LINENO
22891 test "x$as_lineno_1" != "x$as_lineno_2" &&
22892 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22894 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22895 # uniformly replaced by the line number. The first 'sed' inserts a
22896 # line-number line after each line using $LINENO; the second 'sed'
22897 # does the real work. The second script uses 'N' to pair each
22898 # line-number line with the line containing $LINENO, and appends
22899 # trailing '-' during substitution so that $LINENO is not a special
22900 # case at line end.
22901 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22902 # scripts with optimization help from Paolo Bonzini. Blame Lee
22903 # E. McMahon (1931-1989) for sed's syntax. :-)
22915 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22918 ' >$as_me.lineno &&
22919 chmod +x "$as_me.lineno" ||
22920 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22921 { (exit 1); exit 1; }; }
22923 # Don't try to exec as it changes $[0], causing all sort of problems
22924 # (the dirname of $[0] is not the place where we might find the
22925 # original and so on. Autoconf is especially sensitive to this).
22926 . "./$as_me.lineno"
22927 # Exit status is that of the last command.
22932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22938 ECHO_C= ECHO_N= ECHO_T=
22939 case `echo -n x` in
22941 case `echo 'x\c'` in
22942 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22949 if expr a : '\(a\)' >/dev/null 2>&1 &&
22950 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22956 rm -f conf$$ conf$$.exe conf$$.file
22957 if test -d conf$$.dir; then
22958 rm -f conf$$.dir/conf$$.file
22964 if ln -s conf$$.file conf$$ 2>/dev/null; then
22966 # ... but there are two gotchas:
22967 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22968 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22969 # In both cases, we have to default to `cp -p'.
22970 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22972 elif ln conf$$.file conf$$ 2>/dev/null; then
22977 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22978 rmdir conf$$.dir 2>/dev/null
22980 if mkdir -p . 2>/dev/null; then
22983 test -d ./-p && rmdir ./-p
22987 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22988 # systems may use methods other than mode bits to determine executability.
22989 cat >conf$$.file <<_ASEOF
22993 chmod +x conf$$.file
22994 if test -x conf$$.file >/dev/null 2>&1; then
22995 as_executable_p="test -x"
23001 # Sed expression to map a string onto a valid CPP name.
23002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23004 # Sed expression to map a string onto a valid variable name.
23005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23010 # Save the log message, to keep $[0] and so on meaningful, and to
23011 # report actual input values of CONFIG_FILES etc. instead of their
23012 # values after options handling.
23014 This file was extended by LLVM $as_me 3.4svn, which was
23015 generated by GNU Autoconf 2.60. Invocation command line was
23017 CONFIG_FILES = $CONFIG_FILES
23018 CONFIG_HEADERS = $CONFIG_HEADERS
23019 CONFIG_LINKS = $CONFIG_LINKS
23020 CONFIG_COMMANDS = $CONFIG_COMMANDS
23023 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23028 cat >>$CONFIG_STATUS <<_ACEOF
23029 # Files that config.status was made for.
23030 config_files="$ac_config_files"
23031 config_headers="$ac_config_headers"
23032 config_commands="$ac_config_commands"
23036 cat >>$CONFIG_STATUS <<\_ACEOF
23038 \`$as_me' instantiates files from templates according to the
23039 current configuration.
23041 Usage: $0 [OPTIONS] [FILE]...
23043 -h, --help print this help, then exit
23044 -V, --version print version number, then exit
23045 -q, --quiet do not print progress messages
23046 -d, --debug don't remove temporary files
23047 --recheck update $as_me by reconfiguring in the same conditions
23048 --file=FILE[:TEMPLATE]
23049 instantiate the configuration file FILE
23050 --header=FILE[:TEMPLATE]
23051 instantiate the configuration header FILE
23053 Configuration files:
23056 Configuration headers:
23059 Configuration commands:
23062 Report bugs to <bug-autoconf@gnu.org>."
23065 cat >>$CONFIG_STATUS <<_ACEOF
23067 LLVM config.status 3.4svn
23068 configured by $0, generated by GNU Autoconf 2.60,
23069 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23071 Copyright (C) 2006 Free Software Foundation, Inc.
23072 This config.status script is free software; the Free Software Foundation
23073 gives unlimited permission to copy, distribute and modify it."
23080 cat >>$CONFIG_STATUS <<\_ACEOF
23081 # If no file are specified by the user, then we need to provide default
23082 # value. By we need to know if files were specified by the user.
23088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23089 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23100 # Handling of the options.
23101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23103 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23104 echo "$ac_cs_version"; exit ;;
23105 --debug | --debu | --deb | --de | --d | -d )
23107 --file | --fil | --fi | --f )
23109 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23110 ac_need_defaults=false;;
23111 --header | --heade | --head | --hea )
23113 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23114 ac_need_defaults=false;;
23116 # Conflict between --help and --header
23117 { echo "$as_me: error: ambiguous option: $1
23118 Try \`$0 --help' for more information." >&2
23119 { (exit 1); exit 1; }; };;
23120 --help | --hel | -h )
23121 echo "$ac_cs_usage"; exit ;;
23122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23123 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23126 # This is an error.
23127 -*) { echo "$as_me: error: unrecognized option: $1
23128 Try \`$0 --help' for more information." >&2
23129 { (exit 1); exit 1; }; } ;;
23131 *) ac_config_targets="$ac_config_targets $1"
23132 ac_need_defaults=false ;;
23138 ac_configure_extra_args=
23140 if $ac_cs_silent; then
23142 ac_configure_extra_args="$ac_configure_extra_args --silent"
23146 cat >>$CONFIG_STATUS <<_ACEOF
23147 if \$ac_cs_recheck; then
23148 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23149 CONFIG_SHELL=$SHELL
23150 export CONFIG_SHELL
23151 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23155 cat >>$CONFIG_STATUS <<\_ACEOF
23159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23160 ## Running $as_me. ##
23166 cat >>$CONFIG_STATUS <<_ACEOF
23170 llvm_src="${srcdir}"
23174 cat >>$CONFIG_STATUS <<\_ACEOF
23176 # Handling of arguments.
23177 for ac_config_target in $ac_config_targets
23179 case $ac_config_target in
23180 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23181 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23182 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23183 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23184 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23185 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23186 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23187 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23188 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23189 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23190 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23191 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23192 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23193 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23194 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23195 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23196 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23197 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23198 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23199 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23200 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23201 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23202 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23203 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23204 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23205 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23206 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23208 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23209 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23210 { (exit 1); exit 1; }; };;
23215 # If the user did not use the arguments to specify the items to instantiate,
23216 # then the envvar interface is used. Set only those that are not.
23217 # We use the long form for the default assignment because of an extremely
23218 # bizarre bug on SunOS 4.1.3.
23219 if $ac_need_defaults; then
23220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23222 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23225 # Have a temporary directory for convenience. Make it in the build tree
23226 # simply because there is no reason against having it here, and in addition,
23227 # creating and moving files from /tmp can sometimes cause problems.
23228 # Hook for its removal unless debugging.
23229 # Note that there is a small window in which the directory will not be cleaned:
23230 # after its creation but before its name has been assigned to `$tmp'.
23234 trap 'exit_status=$?
23235 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23237 trap '{ (exit 1); exit 1; }' 1 2 13 15
23239 # Create a (secure) tmp directory for tmp files.
23242 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23243 test -n "$tmp" && test -d "$tmp"
23246 tmp=./conf$$-$RANDOM
23247 (umask 077 && mkdir "$tmp")
23250 echo "$me: cannot create a temporary directory in ." >&2
23251 { (exit 1); exit 1; }
23255 # Set up the sed scripts for CONFIG_FILES section.
23258 # No need to generate the scripts if there are no CONFIG_FILES.
23259 # This happens for instance when ./config.status config.h
23260 if test -n "$CONFIG_FILES"; then
23267 for ac_last_try in false false false false false :; do
23268 cat >conf$$subs.sed <<_ACEOF
23269 SHELL!$SHELL$ac_delim
23270 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23271 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23272 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23273 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23274 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23275 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23276 exec_prefix!$exec_prefix$ac_delim
23277 prefix!$prefix$ac_delim
23278 program_transform_name!$program_transform_name$ac_delim
23279 bindir!$bindir$ac_delim
23280 sbindir!$sbindir$ac_delim
23281 libexecdir!$libexecdir$ac_delim
23282 datarootdir!$datarootdir$ac_delim
23283 datadir!$datadir$ac_delim
23284 sysconfdir!$sysconfdir$ac_delim
23285 sharedstatedir!$sharedstatedir$ac_delim
23286 localstatedir!$localstatedir$ac_delim
23287 includedir!$includedir$ac_delim
23288 oldincludedir!$oldincludedir$ac_delim
23289 docdir!$docdir$ac_delim
23290 infodir!$infodir$ac_delim
23291 htmldir!$htmldir$ac_delim
23292 dvidir!$dvidir$ac_delim
23293 pdfdir!$pdfdir$ac_delim
23294 psdir!$psdir$ac_delim
23295 libdir!$libdir$ac_delim
23296 localedir!$localedir$ac_delim
23297 mandir!$mandir$ac_delim
23298 DEFS!$DEFS$ac_delim
23299 ECHO_C!$ECHO_C$ac_delim
23300 ECHO_N!$ECHO_N$ac_delim
23301 ECHO_T!$ECHO_T$ac_delim
23302 LIBS!$LIBS$ac_delim
23303 build_alias!$build_alias$ac_delim
23304 host_alias!$host_alias$ac_delim
23305 target_alias!$target_alias$ac_delim
23306 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23308 CFLAGS!$CFLAGS$ac_delim
23309 LDFLAGS!$LDFLAGS$ac_delim
23310 CPPFLAGS!$CPPFLAGS$ac_delim
23311 ac_ct_CC!$ac_ct_CC$ac_delim
23312 EXEEXT!$EXEEXT$ac_delim
23313 OBJEXT!$OBJEXT$ac_delim
23315 CXXFLAGS!$CXXFLAGS$ac_delim
23316 ac_ct_CXX!$ac_ct_CXX$ac_delim
23318 subdirs!$subdirs$ac_delim
23319 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23320 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23321 build!$build$ac_delim
23322 build_cpu!$build_cpu$ac_delim
23323 build_vendor!$build_vendor$ac_delim
23324 build_os!$build_os$ac_delim
23325 host!$host$ac_delim
23326 host_cpu!$host_cpu$ac_delim
23327 host_vendor!$host_vendor$ac_delim
23328 host_os!$host_os$ac_delim
23329 target!$target$ac_delim
23330 target_cpu!$target_cpu$ac_delim
23331 target_vendor!$target_vendor$ac_delim
23332 target_os!$target_os$ac_delim
23334 HOST_OS!$HOST_OS$ac_delim
23335 TARGET_OS!$TARGET_OS$ac_delim
23336 LINKALL!$LINKALL$ac_delim
23337 NOLINKALL!$NOLINKALL$ac_delim
23338 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23339 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23340 ARCH!$ARCH$ac_delim
23341 HOST_ARCH!$HOST_ARCH$ac_delim
23342 ENDIAN!$ENDIAN$ac_delim
23343 GREP!$GREP$ac_delim
23344 EGREP!$EGREP$ac_delim
23345 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23346 BUILD_CC!$BUILD_CC$ac_delim
23347 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23348 BUILD_CXX!$BUILD_CXX$ac_delim
23349 CVSBUILD!$CVSBUILD$ac_delim
23350 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23351 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23352 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23353 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23354 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23355 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23356 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23357 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23358 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23359 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23360 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23361 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23362 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23363 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23365 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23368 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23370 elif $ac_last_try; then
23371 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23372 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23373 { (exit 1); exit 1; }; }
23375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23379 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23380 if test -n "$ac_eof"; then
23381 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23382 ac_eof=`expr $ac_eof + 1`
23385 cat >>$CONFIG_STATUS <<_ACEOF
23386 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23390 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23391 s/^/s,@/; s/!/@,|#_!!_#|/
23394 s/'"$ac_delim"'$/,g/; t
23396 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23397 ' >>$CONFIG_STATUS <conf$$subs.sed
23398 rm -f conf$$subs.sed
23399 cat >>$CONFIG_STATUS <<_ACEOF
23405 for ac_last_try in false false false false false :; do
23406 cat >conf$$subs.sed <<_ACEOF
23407 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23408 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23409 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23410 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23411 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23412 ENABLE_PIC!$ENABLE_PIC$ac_delim
23413 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23414 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23415 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23416 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23417 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23418 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23419 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23420 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23421 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23422 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23423 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23424 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23425 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23426 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23427 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23429 ifGNUmake!$ifGNUmake$ac_delim
23430 LN_S!$LN_S$ac_delim
23433 DATE!$DATE$ac_delim
23434 FIND!$FIND$ac_delim
23435 MKDIR!$MKDIR$ac_delim
23437 RANLIB!$RANLIB$ac_delim
23442 BINPWD!$BINPWD$ac_delim
23443 GRAPHVIZ!$GRAPHVIZ$ac_delim
23446 NEATO!$NEATO$ac_delim
23447 TWOPI!$TWOPI$ac_delim
23448 CIRCO!$CIRCO$ac_delim
23450 DOTTY!$DOTTY$ac_delim
23451 XDOT_PY!$XDOT_PY$ac_delim
23452 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23453 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23454 INSTALL_DATA!$INSTALL_DATA$ac_delim
23455 BZIP2!$BZIP2$ac_delim
23457 DOXYGEN!$DOXYGEN$ac_delim
23458 GROFF!$GROFF$ac_delim
23459 GZIPBIN!$GZIPBIN$ac_delim
23460 PDFROFF!$PDFROFF$ac_delim
23462 OCAMLC!$OCAMLC$ac_delim
23463 OCAMLOPT!$OCAMLOPT$ac_delim
23464 OCAMLDEP!$OCAMLDEP$ac_delim
23465 OCAMLDOC!$OCAMLDOC$ac_delim
23467 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23468 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23469 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23470 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23471 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23472 LIBADD_DL!$LIBADD_DL$ac_delim
23473 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23474 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23475 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23476 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23477 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23478 PYTHON!$PYTHON$ac_delim
23479 USE_UDIS86!$USE_UDIS86$ac_delim
23480 USE_OPROFILE!$USE_OPROFILE$ac_delim
23481 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23482 XML2CONFIG!$XML2CONFIG$ac_delim
23483 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23484 LIBXML2_INC!$LIBXML2_INC$ac_delim
23485 CXXCPP!$CXXCPP$ac_delim
23486 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23487 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23488 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23489 MMAP_FILE!$MMAP_FILE$ac_delim
23490 SHLIBEXT!$SHLIBEXT$ac_delim
23491 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23492 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23493 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23494 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23495 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23496 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23497 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23498 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23499 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23500 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23501 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23502 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23503 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23506 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23508 elif $ac_last_try; then
23509 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23510 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23511 { (exit 1); exit 1; }; }
23513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23517 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23518 if test -n "$ac_eof"; then
23519 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23520 ac_eof=`expr $ac_eof + 1`
23523 cat >>$CONFIG_STATUS <<_ACEOF
23524 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23528 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23529 s/^/s,@/; s/!/@,|#_!!_#|/
23532 s/'"$ac_delim"'$/,g/; t
23534 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23535 ' >>$CONFIG_STATUS <conf$$subs.sed
23536 rm -f conf$$subs.sed
23537 cat >>$CONFIG_STATUS <<_ACEOF
23543 for ac_last_try in false false false false false :; do
23544 cat >conf$$subs.sed <<_ACEOF
23545 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23546 RPATH!$RPATH$ac_delim
23547 RDYNAMIC!$RDYNAMIC$ac_delim
23548 program_prefix!$program_prefix$ac_delim
23549 LIBOBJS!$LIBOBJS$ac_delim
23550 LTLIBOBJS!$LTLIBOBJS$ac_delim
23553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23555 elif $ac_last_try; then
23556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23558 { (exit 1); exit 1; }; }
23560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23564 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23565 if test -n "$ac_eof"; then
23566 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23567 ac_eof=`expr $ac_eof + 1`
23570 cat >>$CONFIG_STATUS <<_ACEOF
23571 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23576 s/^/s,@/; s/!/@,|#_!!_#|/
23579 s/'"$ac_delim"'$/,g/; t
23581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23582 ' >>$CONFIG_STATUS <conf$$subs.sed
23583 rm -f conf$$subs.sed
23584 cat >>$CONFIG_STATUS <<_ACEOF
23591 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23592 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23593 # trailing colons and then remove the whole line if VPATH becomes empty
23594 # (actually we leave an empty line to preserve line numbers).
23595 if test "x$srcdir" = x.; then
23596 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23597 s/:*\$(srcdir):*/:/
23598 s/:*\${srcdir}:*/:/
23600 s/^\([^=]*=[ ]*\):*/\1/
23606 cat >>$CONFIG_STATUS <<\_ACEOF
23607 fi # test -n "$CONFIG_FILES"
23610 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23613 :[FHLC]) ac_mode=$ac_tag; continue;;
23615 case $ac_mode$ac_tag in
23617 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23618 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23619 { (exit 1); exit 1; }; };;
23620 :[FH]-) ac_tag=-:-;;
23621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23638 -) ac_f="$tmp/stdin";;
23639 *) # Look for the file first in the build tree, then in the source tree
23640 # (if the path is not absolute). The absolute path cannot be DOS-style,
23641 # because $ac_f cannot contain `:'.
23645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23647 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23648 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23649 { (exit 1); exit 1; }; };;
23651 ac_file_inputs="$ac_file_inputs $ac_f"
23654 # Let's still pretend it is `configure' which instantiates (i.e., don't
23655 # use $as_me), people would be surprised to read:
23656 # /* config.h. Generated by config.status. */
23657 configure_input="Generated from "`IFS=:
23658 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23659 if test x"$ac_file" != x-; then
23660 configure_input="$ac_file. $configure_input"
23661 { echo "$as_me:$LINENO: creating $ac_file" >&5
23662 echo "$as_me: creating $ac_file" >&6;}
23666 *:-:* | *:-) cat >"$tmp/stdin";;
23671 ac_dir=`$as_dirname -- "$ac_file" ||
23672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23673 X"$ac_file" : 'X\(//\)[^/]' \| \
23674 X"$ac_file" : 'X\(//\)$' \| \
23675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23681 /^X\(\/\/\)[^/].*/{
23696 -*) as_dir=./$as_dir;;
23698 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23702 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23703 *) as_qdir=$as_dir;;
23705 as_dirs="'$as_qdir' $as_dirs"
23706 as_dir=`$as_dirname -- "$as_dir" ||
23707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23708 X"$as_dir" : 'X\(//\)[^/]' \| \
23709 X"$as_dir" : 'X\(//\)$' \| \
23710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23716 /^X\(\/\/\)[^/].*/{
23729 test -d "$as_dir" && break
23731 test -z "$as_dirs" || eval "mkdir $as_dirs"
23732 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23733 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23734 { (exit 1); exit 1; }; }; }
23738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23740 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23741 # A ".." for each directory in $ac_dir_suffix.
23742 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23743 case $ac_top_builddir_sub in
23744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23748 ac_abs_top_builddir=$ac_pwd
23749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23750 # for backward compatibility:
23751 ac_top_builddir=$ac_top_build_prefix
23754 .) # We are building in place.
23756 ac_top_srcdir=$ac_top_builddir_sub
23757 ac_abs_top_srcdir=$ac_pwd ;;
23758 [\\/]* | ?:[\\/]* ) # Absolute name.
23759 ac_srcdir=$srcdir$ac_dir_suffix;
23760 ac_top_srcdir=$srcdir
23761 ac_abs_top_srcdir=$srcdir ;;
23762 *) # Relative name.
23763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23764 ac_top_srcdir=$ac_top_build_prefix$srcdir
23765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23777 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23778 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23782 cat >>$CONFIG_STATUS <<\_ACEOF
23783 # If the template does not know about datarootdir, expand it.
23784 # FIXME: This hack should be removed a few years after 2.60.
23785 ac_datarootdir_hack=; ac_datarootdir_seen=
23787 case `sed -n '/datarootdir/ {
23796 ' $ac_file_inputs` in
23797 *datarootdir*) ac_datarootdir_seen=yes;;
23798 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23799 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23800 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23802 cat >>$CONFIG_STATUS <<_ACEOF
23803 ac_datarootdir_hack='
23804 s&@datadir@&$datadir&g
23805 s&@docdir@&$docdir&g
23806 s&@infodir@&$infodir&g
23807 s&@localedir@&$localedir&g
23808 s&@mandir@&$mandir&g
23809 s&\\\${datarootdir}&$datarootdir&g' ;;
23813 # Neutralize VPATH when `$srcdir' = `.'.
23814 # Shell code in configure.ac might set extrasub.
23815 # FIXME: do we really want to maintain this feature?
23816 cat >>$CONFIG_STATUS <<_ACEOF
23820 cat >>$CONFIG_STATUS <<\_ACEOF
23822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23823 s&@configure_input@&$configure_input&;t t
23824 s&@top_builddir@&$ac_top_builddir_sub&;t t
23825 s&@srcdir@&$ac_srcdir&;t t
23826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23827 s&@top_srcdir@&$ac_top_srcdir&;t t
23828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23829 s&@builddir@&$ac_builddir&;t t
23830 s&@abs_builddir@&$ac_abs_builddir&;t t
23831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23832 s&@INSTALL@&$ac_INSTALL&;t t
23833 $ac_datarootdir_hack
23834 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23836 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23837 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23838 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23839 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23840 which seems to be undefined. Please make sure it is defined." >&5
23841 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23842 which seems to be undefined. Please make sure it is defined." >&2;}
23846 -) cat "$tmp/out"; rm -f "$tmp/out";;
23847 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23856 # Transform confdefs.h into a sed script `conftest.defines', that
23857 # substitutes the proper values into config.h.in to produce config.h.
23858 rm -f conftest.defines conftest.tail
23859 # First, append a space to every undef/define line, to ease matching.
23860 echo 's/$/ /' >conftest.defines
23861 # Then, protect against being on the right side of a sed subst, or in
23862 # an unquoted here document, in config.status. If some macros were
23863 # called several times there might be several #defines for the same
23864 # symbol, which is useless. But do not sort them, since the last
23865 # AC_DEFINE must be honored.
23866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23867 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23868 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23869 # PARAMS is the parameter list in the macro definition--in most cases, it's
23870 # just an empty string.
23871 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23872 ac_dB='\\)[ (].*,\\1define\\2'
23880 s/^[ ]*#[ ]*define[ ][ ]*//
23885 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23886 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23887 ' >>conftest.defines
23889 # Remove the space that was appended to ease matching.
23890 # Then replace #undef with comments. This is necessary, for
23891 # example, in the case of _POSIX_SOURCE, which is predefined and required
23892 # on some systems where configure will not decide to define it.
23893 # (The regexp can be short, since the line contains either #define or #undef.)
23895 s,^[ #]*u.*,/* & */,' >>conftest.defines
23897 # Break up conftest.defines:
23898 ac_max_sed_lines=50
23900 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23901 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23902 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23904 ac_in='$ac_file_inputs'
23905 ac_out='"$tmp/out1"'
23906 ac_nxt='"$tmp/out2"'
23910 # Write a here document:
23911 cat >>$CONFIG_STATUS <<_ACEOF
23912 # First, check the format of the line:
23913 cat >"\$tmp/defines.sed" <<\\CEOF
23914 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23915 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23919 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23921 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23922 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23923 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23924 grep . conftest.tail >/dev/null || break
23925 rm -f conftest.defines
23926 mv conftest.tail conftest.defines
23928 rm -f conftest.defines conftest.tail
23930 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23931 cat >>$CONFIG_STATUS <<\_ACEOF
23932 if test x"$ac_file" != x-; then
23933 echo "/* $configure_input */" >"$tmp/config.h"
23934 cat "$ac_result" >>"$tmp/config.h"
23935 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23936 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23937 echo "$as_me: $ac_file is unchanged" >&6;}
23940 mv "$tmp/config.h" $ac_file
23943 echo "/* $configure_input */"
23949 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23950 echo "$as_me: executing $ac_file commands" >&6;}
23955 case $ac_file$ac_mode in
23956 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23957 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23958 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23959 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23960 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23961 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23962 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23963 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23964 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23965 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23966 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23967 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23968 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23969 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23970 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23971 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23972 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23973 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23974 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23975 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23976 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23977 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23978 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23979 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23980 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23981 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23987 { (exit 0); exit 0; }
23989 chmod +x $CONFIG_STATUS
23990 ac_clean_files=$ac_clean_files_save
23993 # configure is writing to config.log, and then calls config.status.
23994 # config.status does its own redirection, appending to config.log.
23995 # Unfortunately, on DOS this fails, as config.log is still kept open
23996 # by configure, so config.status won't be able to write to it; its
23997 # output is simply discarded. So we exec the FD to /dev/null,
23998 # effectively closing config.log, so it can be properly (re)opened and
23999 # appended to by config.status. When coming back to configure, we
24000 # need to make the FD available again.
24001 if test "$no_create" != yes; then
24003 ac_config_status_args=
24004 test "$silent" = yes &&
24005 ac_config_status_args="$ac_config_status_args --quiet"
24007 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24009 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24010 # would make configure fail if this is the last instruction.
24011 $ac_cs_success || { (exit 1); exit 1; }
24015 # CONFIG_SUBDIRS section.
24017 if test "$no_recursion" != yes; then
24019 # Remove --cache-file and --srcdir arguments so they do not pile up.
24020 ac_sub_configure_args=
24022 eval "set x $ac_configure_args"
24026 if test -n "$ac_prev"; then
24031 -cache-file | --cache-file | --cache-fil | --cache-fi \
24032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24033 ac_prev=cache_file ;;
24034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24038 --config-cache | -C)
24040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24050 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24052 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24056 # Always prepend --prefix to ensure using the same prefix
24057 # in subdir configurations.
24058 ac_arg="--prefix=$prefix"
24060 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24062 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24065 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24067 # Do not complain, so a configure script can configure whichever
24068 # parts of a large source tree are present.
24069 test -d "$srcdir/$ac_dir" || continue
24071 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24072 echo "$as_me:$LINENO: $ac_msg" >&5
24076 -*) as_dir=./$as_dir;;
24078 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24082 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24083 *) as_qdir=$as_dir;;
24085 as_dirs="'$as_qdir' $as_dirs"
24086 as_dir=`$as_dirname -- "$as_dir" ||
24087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24088 X"$as_dir" : 'X\(//\)[^/]' \| \
24089 X"$as_dir" : 'X\(//\)$' \| \
24090 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24096 /^X\(\/\/\)[^/].*/{
24109 test -d "$as_dir" && break
24111 test -z "$as_dirs" || eval "mkdir $as_dirs"
24112 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24113 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24114 { (exit 1); exit 1; }; }; }
24118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24121 # A ".." for each directory in $ac_dir_suffix.
24122 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24123 case $ac_top_builddir_sub in
24124 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24125 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24128 ac_abs_top_builddir=$ac_pwd
24129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24130 # for backward compatibility:
24131 ac_top_builddir=$ac_top_build_prefix
24134 .) # We are building in place.
24136 ac_top_srcdir=$ac_top_builddir_sub
24137 ac_abs_top_srcdir=$ac_pwd ;;
24138 [\\/]* | ?:[\\/]* ) # Absolute name.
24139 ac_srcdir=$srcdir$ac_dir_suffix;
24140 ac_top_srcdir=$srcdir
24141 ac_abs_top_srcdir=$srcdir ;;
24142 *) # Relative name.
24143 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24144 ac_top_srcdir=$ac_top_build_prefix$srcdir
24145 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24152 # Check for guested configure; otherwise get Cygnus style configure.
24153 if test -f "$ac_srcdir/configure.gnu"; then
24154 ac_sub_configure=$ac_srcdir/configure.gnu
24155 elif test -f "$ac_srcdir/configure"; then
24156 ac_sub_configure=$ac_srcdir/configure
24157 elif test -f "$ac_srcdir/configure.in"; then
24158 # This should be Cygnus configure.
24159 ac_sub_configure=$ac_aux_dir/configure
24161 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24162 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24166 # The recursion is here.
24167 if test -n "$ac_sub_configure"; then
24168 # Make the cache file name correct relative to the subdirectory.
24169 case $cache_file in
24170 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24171 *) # Relative name.
24172 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24175 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24176 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24177 # The eval makes quoting arguments work.
24178 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24179 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24180 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24181 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24182 { (exit 1); exit 1; }; }