2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
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
817 ac_subdirs_all='projects/llvm-gcc
821 projects/llvm-poolalloc
824 projects/llvm-stacker
832 # Initialize some variables set by options.
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name=s,x,x,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-libcpp Use libc++ if available (default is NO)
1407 --enable-cxx11 Use c++11 if available (default is NO)
1408 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1409 --enable-clang-static-analyzer
1410 Enable building of clang Static Analyzer (default is
1412 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1413 --enable-optimized Compile with optimizations enabled (default is NO)
1414 --enable-profiling Compile with profiling enabled (default is NO)
1415 --enable-assertions Compile with assertion checks enabled (default is
1417 --enable-werror Compile with -Werror enabled (default is NO)
1418 --enable-expensive-checks
1419 Compile with expensive debug checks enabled (default
1421 --enable-debug-runtime Build runtime libs with debug symbols (default is
1423 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1424 optimization is on and YES if it's off)
1425 --enable-keep-symbols Do not strip installed executables)
1426 --enable-jit Enable Just In Time Compiling (default is YES)
1427 --enable-docs Build documents (default is YES)
1428 --enable-doxygen Build doxygen documentation (default is NO)
1429 --enable-threads Use threads if available (default is YES)
1430 --enable-pthreads Use pthreads if available (default is YES)
1431 --enable-zlib Use zlib for compression/decompression if available
1433 --enable-pic Build LLVM with Position Independent Code (default
1435 --enable-shared Build a shared library and link tools against it
1437 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1438 Win32 DLL (default is NO)
1439 --enable-timestamps Enable embedding timestamp information in build
1441 --enable-backtraces Enable embedding backtraces on crash (default is
1443 --enable-targets Build specific host targets: all or
1444 target1,target2,... Valid targets are: host, x86,
1445 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1446 xcore, msp430, nvptx, and cpp (default=all)
1447 --enable-experimental-targets
1448 Build experimental host targets: disable or
1449 target1,target2,... (default=disable)
1450 --enable-bindings Build specific language bindings:
1451 all,auto,none,{binding-name} (default=auto)
1452 --enable-libffi Check for the presence of libffi (default is NO)
1453 --enable-ltdl-install install libltdl
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-optimize-option Select the compiler options to use for optimized
1460 --with-extra-options Specify additional options to compile LLVM with
1461 --with-extra-ld-options Specify additional options to link LLVM with
1462 --with-ocaml-libdir Specify install location for ocaml bindings (default
1464 --with-clang-srcdir Directory to the out-of-tree Clang source
1465 --with-clang-resource-dir
1466 Relative directory from the Clang binary for
1468 --with-c-include-dirs Colon separated list of directories clang will
1470 --with-gcc-toolchain Directory where gcc is installed.
1471 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org/bugs/)
1476 --with-internal-prefix Installation directory for internal files
1477 --with-python path to python
1478 --with-udis86=<path> Use udis86 external x86 disassembler library
1479 --with-oprofile=<prefix>
1480 Tell OProfile >= 0.9.4 how to symbolize JIT output
1481 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1498 Report bugs to <http://llvm.org/bugs/>.
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" || continue
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1526 .) # We are building in place.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1550 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1559 LLVM configure 3.3svn
1560 generated by GNU Autoconf 2.60
1562 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1563 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1567 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1571 cat >config.log <<_ACEOF
1572 This file contains any messages produced by compilers while
1573 running configure, to aid debugging if configure makes a mistake.
1575 It was created by LLVM $as_me 3.3svn, which was
1576 generated by GNU Autoconf 2.60. Invocation command line was
1588 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1589 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1590 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1591 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1592 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1594 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1595 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1597 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1598 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1599 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1600 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1601 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1602 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1603 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 echo "PATH: $as_dir"
1628 # Keep a trace of the command line.
1629 # Strip out --no-create and --no-recursion so they do not pile up.
1630 # Strip out --silent because we don't want to record it for future runs.
1631 # Also quote any args containing shell meta-characters.
1632 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_must_keep_next=false
1642 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644 | -silent | --silent | --silen | --sile | --sil)
1647 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1650 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1652 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1653 if test $ac_must_keep_next = true; then
1654 ac_must_keep_next=false # Got value, back to normal.
1657 *=* | --config-cache | -C | -disable-* | --disable-* \
1658 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660 | -with-* | --with-* | -without-* | --without-* | --x)
1661 case "$ac_configure_args0 " in
1662 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1665 -* ) ac_must_keep_next=true ;;
1668 ac_configure_args="$ac_configure_args '$ac_arg'"
1673 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1674 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1676 # When interrupted or exit'd, cleanup temporary files, and complete
1677 # config.log. We remove comments because anyway the quotes in there
1678 # would cause problems or look ugly.
1679 # WARNING: Use '\'' to represent an apostrophe within the trap.
1680 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1681 trap 'exit_status=$?
1682 # Save into config.log some information that might help in debugging.
1687 ## ---------------- ##
1688 ## Cache variables. ##
1689 ## ---------------- ##
1692 # The following way of writing the cache mishandles newlines in values,
1694 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1695 eval ac_val=\$$ac_var
1699 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1700 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1703 _ | IFS | as_nl) ;; #(
1704 *) $as_unset $ac_var ;;
1709 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1710 *${as_nl}ac_space=\ *)
1712 "s/'\''/'\''\\\\'\'''\''/g;
1713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724 ## ----------------- ##
1725 ## Output variables. ##
1726 ## ----------------- ##
1729 for ac_var in $ac_subst_vars
1731 eval ac_val=\$$ac_var
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735 echo "$ac_var='\''$ac_val'\''"
1739 if test -n "$ac_subst_files"; then
1741 ## ------------------- ##
1742 ## File substitutions. ##
1743 ## ------------------- ##
1746 for ac_var in $ac_subst_files
1748 eval ac_val=\$$ac_var
1750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 echo "$ac_var='\''$ac_val'\''"
1757 if test -s confdefs.h; then
1767 test "$ac_signal" != 0 &&
1768 echo "$as_me: caught signal $ac_signal"
1769 echo "$as_me: exit $exit_status"
1771 rm -f core *.core core.conftest.* &&
1772 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1775 for ac_signal in 1 2 13 15; do
1776 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1781 rm -f -r conftest* confdefs.h
1783 # Predefined preprocessor variables.
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 # Let the site file select an alternate cache file if it wants to.
1811 # Prefer explicitly selected file to automatically selected ones.
1812 if test -n "$CONFIG_SITE"; then
1813 set x "$CONFIG_SITE"
1814 elif test "x$prefix" != xNONE; then
1815 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1817 set x "$ac_default_prefix/share/config.site" \
1818 "$ac_default_prefix/etc/config.site"
1823 if test -r "$ac_site_file"; then
1824 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1825 echo "$as_me: loading site script $ac_site_file" >&6;}
1826 sed 's/^/| /' "$ac_site_file" >&5
1831 if test -r "$cache_file"; then
1832 # Some versions of bash will fail to source /dev/null (special
1833 # files actually), so we avoid doing that.
1834 if test -f "$cache_file"; then
1835 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1836 echo "$as_me: loading cache $cache_file" >&6;}
1838 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1839 *) . "./$cache_file";;
1843 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1844 echo "$as_me: creating cache $cache_file" >&6;}
1848 # Check that the precious variables saved in the cache have kept the same
1850 ac_cache_corrupted=false
1851 for ac_var in $ac_precious_vars; do
1852 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853 eval ac_new_set=\$ac_env_${ac_var}_set
1854 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855 eval ac_new_val=\$ac_env_${ac_var}_value
1856 case $ac_old_set,$ac_new_set in
1858 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1860 ac_cache_corrupted=: ;;
1862 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1867 if test "x$ac_old_val" != "x$ac_new_val"; then
1868 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1871 echo "$as_me: former value: $ac_old_val" >&2;}
1872 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1873 echo "$as_me: current value: $ac_new_val" >&2;}
1874 ac_cache_corrupted=:
1877 # Pass precious variables to config.status.
1878 if test "$ac_new_set" = set; then
1880 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881 *) ac_arg=$ac_var=$ac_new_val ;;
1883 case " $ac_configure_args " in
1884 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1885 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889 if $ac_cache_corrupted; then
1890 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894 { (exit 1); exit 1; }; }
1922 ac_cpp='$CPP $CPPFLAGS'
1923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929 cat >>confdefs.h <<\_ACEOF
1930 #define LLVM_VERSION_MAJOR 3
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MINOR 3
1939 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1948 for ac_dir in autoconf "$srcdir"/autoconf; do
1949 if test -f "$ac_dir/install-sh"; then
1951 ac_install_sh="$ac_aux_dir/install-sh -c"
1953 elif test -f "$ac_dir/install.sh"; then
1955 ac_install_sh="$ac_aux_dir/install.sh -c"
1957 elif test -f "$ac_dir/shtool"; then
1959 ac_install_sh="$ac_aux_dir/shtool install -c"
1963 if test -z "$ac_aux_dir"; then
1964 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1965 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1966 { (exit 1); exit 1; }; }
1969 # These three variables are undocumented and unsupported,
1970 # and are intended to be withdrawn in a future Autoconf release.
1971 # They can cause serious problems if a builder's source tree is in a directory
1972 # whose full name contains unusual characters.
1973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 if test ${srcdir} != "." ; then
1980 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1981 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1982 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1983 { (exit 1); exit 1; }; }
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996 for ac_prog in clang llvm-gcc gcc
1998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 if test -n "$CC"; then
2027 { echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6; }
2030 { echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6; }
2035 test -n "$CC" && break
2038 if test -z "$CC"; then
2040 for ac_prog in clang llvm-gcc gcc
2042 # Extract the first word of "$ac_prog", so it can be a program name with args.
2043 set dummy $ac_prog; ac_word=$2
2044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$ac_ct_CC"; then
2050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2059 ac_cv_prog_ac_ct_CC="$ac_prog"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2070 if test -n "$ac_ct_CC"; then
2071 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2072 echo "${ECHO_T}$ac_ct_CC" >&6; }
2074 { echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6; }
2079 test -n "$ac_ct_CC" && break
2082 if test "x$ac_ct_CC" = x; then
2085 case $cross_compiling:$ac_tool_warned in
2087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2088 whose name does not start with the host triplet. If you think this
2089 configuration is useful to you, please write to autoconf@gnu.org." >&5
2090 echo "$as_me: 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." >&2;}
2093 ac_tool_warned=yes ;;
2100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: no acceptable C compiler found in \$PATH
2103 See \`config.log' for more details." >&2;}
2104 { (exit 1); exit 1; }; }
2106 # Provide some information about the compiler.
2107 echo "$as_me:$LINENO: checking for C compiler version" >&5
2108 ac_compiler=`set X $ac_compile; echo $2`
2109 { (ac_try="$ac_compiler --version >&5"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler --version >&5") 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119 { (ac_try="$ac_compiler -v >&5"
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2125 (eval "$ac_compiler -v >&5") 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2129 { (ac_try="$ac_compiler -V >&5"
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_compiler -V >&5") 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2140 cat >conftest.$ac_ext <<_ACEOF
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h. */
2155 ac_clean_files_save=$ac_clean_files
2156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2157 # Try to create an executable without -o first, disregard a.out.
2158 # It will help us diagnose broken compilers, and finding out an intuition
2160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164 # List of possible output files, starting from the most likely.
2165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2166 # only as a last resort. b.out is created by i960 compilers.
2167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2169 # The IRIX 6 linker writes into existing files which may not be
2170 # executable, retaining their permissions. Remove them first so a
2171 # subsequent execution test works.
2173 for ac_file in $ac_files
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2182 if { (ac_try="$ac_link_default"
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2188 (eval "$ac_link_default") 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2194 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2195 # so that the user can short-circuit this test for compilers unknown to
2197 for ac_file in $ac_files
2199 test -f "$ac_file" || continue
2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2204 # We found the default executable, but exeext='' is most
2208 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 # We set ac_cv_exeext here because the later test for it is not
2213 # safe: cross compilers may not add the suffix if given an `-o'
2214 # argument, so we may need to know it at that point already.
2215 # Even if this section looks crufty: it has the advantage of
2222 test "$ac_cv_exeext" = no && ac_cv_exeext=
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2228 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: C compiler cannot create executables
2231 See \`config.log' for more details." >&2;}
2232 { (exit 77); exit 77; }; }
2235 ac_exeext=$ac_cv_exeext
2236 { echo "$as_me:$LINENO: result: $ac_file" >&5
2237 echo "${ECHO_T}$ac_file" >&6; }
2239 # Check that the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2242 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2243 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2244 # If not cross compiling, check that we can run a simple program.
2245 if test "$cross_compiling" != yes; then
2246 if { ac_try='./$ac_file'
2247 { (case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252 (eval "$ac_try") 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2258 if test "$cross_compiling" = maybe; then
2261 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2271 { echo "$as_me:$LINENO: result: yes" >&5
2272 echo "${ECHO_T}yes" >&6; }
2274 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2275 ac_clean_files=$ac_clean_files_save
2276 # Check that the compiler produces executables we can run. If not, either
2277 # the compiler is broken, or we cross compile.
2278 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2279 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2280 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2281 echo "${ECHO_T}$cross_compiling" >&6; }
2283 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2284 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2285 if { (ac_try="$ac_link"
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291 (eval "$ac_link") 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; then
2295 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2297 # work properly (i.e., refer to `conftest.exe'), while it won't with
2299 for ac_file in conftest.exe conftest conftest.*; do
2300 test -f "$ac_file" || continue
2302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2303 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2309 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2316 rm -f conftest$ac_cv_exeext
2317 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2318 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2320 rm -f conftest.$ac_ext
2321 EXEEXT=$ac_cv_exeext
2323 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2324 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2325 if test "${ac_cv_objext+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 cat >conftest.$ac_ext <<_ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2343 rm -f conftest.o conftest.obj
2344 if { (ac_try="$ac_compile"
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350 (eval "$ac_compile") 2>&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; then
2354 for ac_file in conftest.o conftest.obj conftest.*; do
2355 test -f "$ac_file" || continue;
2357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2358 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2366 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2369 See \`config.log' for more details." >&2;}
2370 { (exit 1); exit 1; }; }
2373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2375 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2376 echo "${ECHO_T}$ac_cv_objext" >&6; }
2377 OBJEXT=$ac_cv_objext
2379 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2380 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2381 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 cat >conftest.$ac_ext <<_ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2402 rm -f conftest.$ac_objext
2403 if { (ac_try="$ac_compile"
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_compile") 2>conftest.er1
2411 grep -v '^ *+' conftest.er1 >conftest.err
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2417 { (case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_try") 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; } &&
2426 { ac_try='test -s conftest.$ac_objext'
2427 { (case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_try") 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2448 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2450 GCC=`test $ac_compiler_gnu = yes && echo yes`
2451 ac_test_CFLAGS=${CFLAGS+set}
2452 ac_save_CFLAGS=$CFLAGS
2453 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_cc_g+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 ac_save_c_werror_flag=$ac_c_werror_flag
2459 ac_c_werror_flag=yes
2462 cat >conftest.$ac_ext <<_ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2477 rm -f conftest.$ac_objext
2478 if { (ac_try="$ac_compile"
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_compile") 2>conftest.er1
2486 grep -v '^ *+' conftest.er1 >conftest.err
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2492 { (case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_try") 2>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_try") 2>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2532 rm -f conftest.$ac_objext
2533 if { (ac_try="$ac_compile"
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_compile") 2>conftest.er1
2541 grep -v '^ *+' conftest.er1 >conftest.err
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2547 { (case "(($ac_try" in
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_try") 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_try") 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2571 ac_c_werror_flag=$ac_save_c_werror_flag
2573 cat >conftest.$ac_ext <<_ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2588 rm -f conftest.$ac_objext
2589 if { (ac_try="$ac_compile"
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_compile") 2>conftest.er1
2597 grep -v '^ *+' conftest.er1 >conftest.err
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2603 { (case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_try") 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_try") 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_c_werror_flag=$ac_save_c_werror_flag
2639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2641 if test "$ac_test_CFLAGS" = set; then
2642 CFLAGS=$ac_save_CFLAGS
2643 elif test $ac_cv_prog_cc_g = yes; then
2644 if test "$GCC" = yes; then
2650 if test "$GCC" = yes; then
2656 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2657 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_cc_c89+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 ac_cv_prog_cc_c89=no
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2671 #include <sys/types.h>
2672 #include <sys/stat.h>
2673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2674 struct buf { int x; };
2675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2676 static char *e (p, i)
2682 static char *f (char * (*g) (char **, int), char **p, ...)
2687 s = g (p, va_arg (v,int));
2692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2693 function prototypes and stuff, but not '\xHH' hex character constants.
2694 These don't provoke an error unfortunately, instead are silently treated
2695 as 'x'. The following induces an error, until -std is added to get
2696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2697 array size at least. It's necessary to write '\x00'==0 to get something
2698 that's true only with -std. */
2699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2702 inside strings and character constants. */
2704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2706 int test (int i, double x);
2707 struct s1 {int (*f) (int a);};
2708 struct s2 {int (*f) (double a);};
2709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2723 CC="$ac_save_CC $ac_arg"
2724 rm -f conftest.$ac_objext
2725 if { (ac_try="$ac_compile"
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_compile") 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2739 { (case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_try") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_try") 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2758 ac_cv_prog_cc_c89=$ac_arg
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2766 rm -f core conftest.err conftest.$ac_objext
2767 test "x$ac_cv_prog_cc_c89" != "xno" && break
2769 rm -f conftest.$ac_ext
2774 case "x$ac_cv_prog_cc_c89" in
2776 { echo "$as_me:$LINENO: result: none needed" >&5
2777 echo "${ECHO_T}none needed" >&6; } ;;
2779 { echo "$as_me:$LINENO: result: unsupported" >&5
2780 echo "${ECHO_T}unsupported" >&6; } ;;
2782 CC="$CC $ac_cv_prog_cc_c89"
2783 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2784 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795 ac_cpp='$CXXCPP $CPPFLAGS'
2796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2799 if test -z "$CXX"; then
2800 if test -n "$CCC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 for ac_prog in clang++ llvm-g++ g++
2806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CXX+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 if test -n "$CXX"; then
2814 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 if test -n "$CXX"; then
2835 { echo "$as_me:$LINENO: result: $CXX" >&5
2836 echo "${ECHO_T}$CXX" >&6; }
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2843 test -n "$CXX" && break
2846 if test -z "$CXX"; then
2848 for ac_prog in clang++ llvm-g++ g++
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2854 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 if test -n "$ac_ct_CXX"; then
2858 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_ac_ct_CXX="$ac_prog"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2878 if test -n "$ac_ct_CXX"; then
2879 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2880 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2882 { echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6; }
2887 test -n "$ac_ct_CXX" && break
2890 if test "x$ac_ct_CXX" = x; then
2893 case $cross_compiling:$ac_tool_warned in
2895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2896 whose name does not start with the host triplet. If you think this
2897 configuration is useful to you, please write to autoconf@gnu.org." >&5
2898 echo "$as_me: 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." >&2;}
2901 ac_tool_warned=yes ;;
2909 # Provide some information about the compiler.
2910 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2911 ac_compiler=`set X $ac_compile; echo $2`
2912 { (ac_try="$ac_compiler --version >&5"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler --version >&5") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2922 { (ac_try="$ac_compiler -v >&5"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compiler -v >&5") 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932 { (ac_try="$ac_compiler -V >&5"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compiler -V >&5") 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2943 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2944 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2945 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 cat >conftest.$ac_ext <<_ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2966 rm -f conftest.$ac_objext
2967 if { (ac_try="$ac_compile"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_compile") 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2981 { (case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_try") 2>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; } &&
2990 { ac_try='test -s conftest.$ac_objext'
2991 { (case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_try") 2>&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3012 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3013 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3014 GXX=`test $ac_compiler_gnu = yes && echo yes`
3015 ac_test_CXXFLAGS=${CXXFLAGS+set}
3016 ac_save_CXXFLAGS=$CXXFLAGS
3017 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3018 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3019 if test "${ac_cv_prog_cxx_g+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3023 ac_cxx_werror_flag=yes
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3050 grep -v '^ *+' conftest.er1 >conftest.err
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } &&
3055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3056 { (case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_try") 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; } &&
3065 { ac_try='test -s conftest.$ac_objext'
3066 { (case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_try") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; }; then
3075 ac_cv_prog_cxx_g=yes
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3105 grep -v '^ *+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; } &&
3120 { ac_try='test -s conftest.$ac_objext'
3121 { (case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_try") 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3152 rm -f conftest.$ac_objext
3153 if { (ac_try="$ac_compile"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_compile") 2>conftest.er1
3161 grep -v '^ *+' conftest.er1 >conftest.err
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3167 { (case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_try") 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_try") 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_prog_cxx_g=yes
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3203 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3204 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3205 if test "$ac_test_CXXFLAGS" = set; then
3206 CXXFLAGS=$ac_save_CXXFLAGS
3207 elif test $ac_cv_prog_cxx_g = yes; then
3208 if test "$GXX" = yes; then
3214 if test "$GXX" = yes; then
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3232 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3233 # On Suns, sometimes $CPP names a directory.
3234 if test -n "$CPP" && test -d "$CPP"; then
3237 if test -z "$CPP"; then
3238 if test "${ac_cv_prog_CPP+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 # Double quotes because CPP needs to be expanded
3242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3245 for ac_c_preproc_warn_flag in '' yes
3247 # Use a header file that comes with gcc, so configuring glibc
3248 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers.
3251 # On the NeXT, cc -E runs the code through the compiler's parser,
3252 # not just through cpp. "Syntax error" is here to catch this case.
3253 cat >conftest.$ac_ext <<_ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3260 # include <limits.h>
3262 # include <assert.h>
3266 if { (ac_try="$ac_cpp conftest.$ac_ext"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } >/dev/null; then
3279 if test -s conftest.err; then
3280 ac_cpp_err=$ac_c_preproc_warn_flag
3281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3288 if test -z "$ac_cpp_err"; then
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 # Broken: fails on valid input.
3298 rm -f conftest.err conftest.$ac_ext
3300 # OK, works on sane cases. Now check whether nonexistent headers
3301 # can be detected and how.
3302 cat >conftest.$ac_ext <<_ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3308 #include <ac_nonexistent.h>
3310 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318 grep -v '^ *+' conftest.er1 >conftest.err
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } >/dev/null; then
3323 if test -s conftest.err; then
3324 ac_cpp_err=$ac_c_preproc_warn_flag
3325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3332 if test -z "$ac_cpp_err"; then
3333 # Broken: success on invalid input.
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 # Passes both tests.
3344 rm -f conftest.err conftest.$ac_ext
3347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3348 rm -f conftest.err conftest.$ac_ext
3349 if $ac_preproc_ok; then
3361 { echo "$as_me:$LINENO: result: $CPP" >&5
3362 echo "${ECHO_T}$CPP" >&6; }
3364 for ac_c_preproc_warn_flag in '' yes
3366 # Use a header file that comes with gcc, so configuring glibc
3367 # with a fresh cross-compiler works.
3368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369 # <limits.h> exists even on freestanding compilers.
3370 # On the NeXT, cc -E runs the code through the compiler's parser,
3371 # not just through cpp. "Syntax error" is here to catch this case.
3372 cat >conftest.$ac_ext <<_ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3379 # include <limits.h>
3381 # include <assert.h>
3385 if { (ac_try="$ac_cpp conftest.$ac_ext"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3393 grep -v '^ *+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null; then
3398 if test -s conftest.err; then
3399 ac_cpp_err=$ac_c_preproc_warn_flag
3400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3407 if test -z "$ac_cpp_err"; then
3410 echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3413 # Broken: fails on valid input.
3417 rm -f conftest.err conftest.$ac_ext
3419 # OK, works on sane cases. Now check whether nonexistent headers
3420 # can be detected and how.
3421 cat >conftest.$ac_ext <<_ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 #include <ac_nonexistent.h>
3429 if { (ac_try="$ac_cpp conftest.$ac_ext"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_c_preproc_warn_flag
3444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3451 if test -z "$ac_cpp_err"; then
3452 # Broken: success on invalid input.
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 # Passes both tests.
3463 rm -f conftest.err conftest.$ac_ext
3466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467 rm -f conftest.err conftest.$ac_ext
3468 if $ac_preproc_ok; then
3471 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3472 See \`config.log' for more details." >&5
3473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3474 See \`config.log' for more details." >&2;}
3475 { (exit 1); exit 1; }; }
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485 if test "$CXX" = "clang++" ; then
3486 { echo "$as_me:$LINENO: checking whether clang works" >&5
3487 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3489 ac_cpp='$CXXCPP $CPPFLAGS'
3490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3502 #if __has_include (<cxxabi.h>)
3505 #if __has_include (<unwind.h>)
3517 rm -f conftest.$ac_objext
3518 if { (ac_try="$ac_compile"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_compile") 2>conftest.er1
3526 grep -v '^ *+' conftest.er1 >conftest.err
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3532 { (case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_try") 2>&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest.$ac_objext'
3542 { (case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_try") 2>&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3552 { echo "$as_me:$LINENO: result: yes" >&5
3553 echo "${ECHO_T}yes" >&6; }
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3560 { echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6; }
3562 { { 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
3563 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;}
3564 { (exit 1); exit 1; }; }
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 if test -d ${srcdir}/projects/llvm-gcc ; then
3580 subdirs="$subdirs projects/llvm-gcc"
3584 if test -d ${srcdir}/projects/test-suite ; then
3585 subdirs="$subdirs projects/test-suite"
3589 if test -d ${srcdir}/projects/llvm-test ; then
3590 subdirs="$subdirs projects/llvm-test"
3594 if test -d ${srcdir}/projects/poolalloc ; then
3595 subdirs="$subdirs projects/poolalloc"
3599 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3600 subdirs="$subdirs projects/llvm-poolalloc"
3604 for i in `ls ${srcdir}/projects`
3606 if test -d ${srcdir}/projects/${i} ; then
3608 sample) subdirs="$subdirs projects/sample"
3610 privbracket) subdirs="$subdirs projects/privbracket"
3612 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3614 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3616 llvm-java) subdirs="$subdirs projects/llvm-java"
3618 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3620 safecode) subdirs="$subdirs projects/safecode"
3622 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3631 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3632 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3638 # Check whether --enable-polly was given.
3639 if test "${enable_polly+set}" = set; then
3640 enableval=$enable_polly;
3645 case "$enableval" in
3650 default) ENABLE_POLLY=1
3652 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3653 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3654 { (exit 1); exit 1; }; } ;;
3658 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3661 subdirs="$subdirs tools/polly"
3666 # Make sure we can run config.sub.
3667 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3668 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3669 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3670 { (exit 1); exit 1; }; }
3672 { echo "$as_me:$LINENO: checking build system type" >&5
3673 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3674 if test "${ac_cv_build+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_build_alias=$build_alias
3678 test "x$ac_build_alias" = x &&
3679 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3680 test "x$ac_build_alias" = x &&
3681 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3682 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3683 { (exit 1); exit 1; }; }
3684 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3685 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3686 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3687 { (exit 1); exit 1; }; }
3690 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3691 echo "${ECHO_T}$ac_cv_build" >&6; }
3692 case $ac_cv_build in
3694 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3695 echo "$as_me: error: invalid value of canonical build" >&2;}
3696 { (exit 1); exit 1; }; };;
3699 ac_save_IFS=$IFS; IFS='-'
3705 # Remember, the first character of IFS is used to create $*,
3706 # except with old shells:
3709 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3712 { echo "$as_me:$LINENO: checking host system type" >&5
3713 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3714 if test "${ac_cv_host+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 if test "x$host_alias" = x; then
3718 ac_cv_host=$ac_cv_build
3720 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3721 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3722 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3723 { (exit 1); exit 1; }; }
3727 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3728 echo "${ECHO_T}$ac_cv_host" >&6; }
3731 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3732 echo "$as_me: error: invalid value of canonical host" >&2;}
3733 { (exit 1); exit 1; }; };;
3736 ac_save_IFS=$IFS; IFS='-'
3742 # Remember, the first character of IFS is used to create $*,
3743 # except with old shells:
3746 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3749 { echo "$as_me:$LINENO: checking target system type" >&5
3750 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3751 if test "${ac_cv_target+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if test "x$target_alias" = x; then
3755 ac_cv_target=$ac_cv_host
3757 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3758 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3759 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3760 { (exit 1); exit 1; }; }
3764 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3765 echo "${ECHO_T}$ac_cv_target" >&6; }
3766 case $ac_cv_target in
3768 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3769 echo "$as_me: error: invalid value of canonical target" >&2;}
3770 { (exit 1); exit 1; }; };;
3772 target=$ac_cv_target
3773 ac_save_IFS=$IFS; IFS='-'
3779 # Remember, the first character of IFS is used to create $*,
3780 # except with old shells:
3783 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3786 # The aliases save the names the user supplied, while $host etc.
3787 # will get canonicalized.
3788 test -n "$target_alias" &&
3789 test "$program_prefix$program_suffix$program_transform_name" = \
3791 program_prefix=${target_alias}-
3793 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3794 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3795 if test "${llvm_cv_os_type+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 llvm_cv_link_all_option="-Wl,--whole-archive"
3801 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3802 llvm_cv_os_type="AIX"
3803 llvm_cv_platform_type="Unix" ;;
3805 llvm_cv_link_all_option="-Wl,--whole-archive"
3806 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3807 llvm_cv_os_type="IRIX"
3808 llvm_cv_platform_type="Unix" ;;
3810 llvm_cv_link_all_option="-Wl,--whole-archive"
3811 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812 llvm_cv_os_type="Cygwin"
3813 llvm_cv_platform_type="Unix" ;;
3815 llvm_cv_link_all_option="-Wl,-all_load"
3816 llvm_cv_no_link_all_option="-Wl,-noall_load"
3817 llvm_cv_os_type="Darwin"
3818 llvm_cv_platform_type="Unix" ;;
3820 llvm_cv_link_all_option="-Wl,-all_load"
3821 llvm_cv_no_link_all_option="-Wl,-noall_load"
3822 llvm_cv_os_type="Minix"
3823 llvm_cv_platform_type="Unix" ;;
3824 *-*-freebsd* | *-*-kfreebsd-gnu)
3825 llvm_cv_link_all_option="-Wl,--whole-archive"
3826 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3827 llvm_cv_os_type="FreeBSD"
3828 llvm_cv_platform_type="Unix" ;;
3830 llvm_cv_link_all_option="-Wl,--whole-archive"
3831 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832 llvm_cv_os_type="OpenBSD"
3833 llvm_cv_platform_type="Unix" ;;
3835 llvm_cv_link_all_option="-Wl,--whole-archive"
3836 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837 llvm_cv_os_type="NetBSD"
3838 llvm_cv_platform_type="Unix" ;;
3840 llvm_cv_link_all_option="-Wl,--whole-archive"
3841 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842 llvm_cv_os_type="DragonFly"
3843 llvm_cv_platform_type="Unix" ;;
3845 llvm_cv_link_all_option="-Wl,--whole-archive"
3846 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847 llvm_cv_os_type="HP-UX"
3848 llvm_cv_platform_type="Unix" ;;
3850 llvm_cv_link_all_option="-Wl,--whole-archive"
3851 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852 llvm_cv_os_type="Interix"
3853 llvm_cv_platform_type="Unix" ;;
3855 llvm_cv_link_all_option="-Wl,--whole-archive"
3856 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3857 llvm_cv_os_type="Linux"
3858 llvm_cv_platform_type="Unix" ;;
3860 llvm_cv_link_all_option="-Wl,--whole-archive"
3861 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3862 llvm_cv_os_type="GNU"
3863 llvm_cv_platform_type="Unix" ;;
3865 llvm_cv_link_all_option="-Wl,-z,allextract"
3866 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3867 llvm_cv_os_type="SunOS"
3868 llvm_cv_platform_type="Unix" ;;
3870 llvm_cv_link_all_option="-Wl,-z,allextract"
3871 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3872 llvm_cv_os_type="AuroraUX"
3873 llvm_cv_platform_type="Unix" ;;
3875 llvm_cv_link_all_option="-Wl,--whole-archive"
3876 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3877 llvm_cv_os_type="Win32"
3878 llvm_cv_platform_type="Win32" ;;
3880 llvm_cv_link_all_option="-Wl,--whole-archive"
3881 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3882 llvm_cv_os_type="MingW"
3883 llvm_cv_platform_type="Win32" ;;
3885 llvm_cv_link_all_option="-Wl,--whole-archive"
3886 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887 llvm_cv_os_type="Haiku"
3888 llvm_cv_platform_type="Unix" ;;
3890 llvm_cv_link_all_option="-Wl,--whole-archive"
3891 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3892 llvm_cv_os_type="Freestanding"
3893 llvm_cv_platform_type="Unix" ;;
3895 llvm_cv_link_all_option="-Wl,--whole-archive"
3896 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3897 llvm_cv_os_type="Freestanding"
3898 llvm_cv_platform_type="Unix" ;;
3900 llvm_cv_link_all_option=""
3901 llvm_cv_no_link_all_option=""
3902 llvm_cv_os_type="Unknown"
3903 llvm_cv_platform_type="Unknown" ;;
3906 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3907 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3909 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3910 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3911 if test "${llvm_cv_target_os_type+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 llvm_cv_target_os_type="AIX" ;;
3918 llvm_cv_target_os_type="IRIX" ;;
3920 llvm_cv_target_os_type="Cygwin" ;;
3922 llvm_cv_target_os_type="Darwin" ;;
3924 llvm_cv_target_os_type="Minix" ;;
3925 *-*-freebsd* | *-*-kfreebsd-gnu)
3926 llvm_cv_target_os_type="FreeBSD" ;;
3928 llvm_cv_target_os_type="OpenBSD" ;;
3930 llvm_cv_target_os_type="NetBSD" ;;
3932 llvm_cv_target_os_type="DragonFly" ;;
3934 llvm_cv_target_os_type="HP-UX" ;;
3936 llvm_cv_target_os_type="Interix" ;;
3938 llvm_cv_target_os_type="Linux" ;;
3940 llvm_cv_target_os_type="GNU" ;;
3942 llvm_cv_target_os_type="SunOS" ;;
3944 llvm_cv_target_os_type="AuroraUX" ;;
3946 llvm_cv_target_os_type="Win32" ;;
3948 llvm_cv_target_os_type="MingW" ;;
3950 llvm_cv_target_os_type="Haiku" ;;
3952 llvm_cv_target_os_type="RTEMS" ;;
3954 llvm_cv_target_os_type="NativeClient" ;;
3956 llvm_cv_target_os_type="Freestanding" ;;
3958 llvm_cv_target_os_type="Unknown" ;;
3961 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3962 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3964 if test "$llvm_cv_os_type" = "Unknown" ; then
3965 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3966 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3967 { (exit 1); exit 1; }; }
3972 HOST_OS=$llvm_cv_os_type
3974 TARGET_OS=$llvm_cv_target_os_type
3977 LINKALL=$llvm_cv_link_all_option
3979 NOLINKALL=$llvm_cv_no_link_all_option
3982 case $llvm_cv_platform_type in
3985 cat >>confdefs.h <<\_ACEOF
3986 #define LLVM_ON_UNIX 1
3996 cat >>confdefs.h <<\_ACEOF
3997 #define LLVM_ON_WIN32 1
4007 { echo "$as_me:$LINENO: checking target architecture" >&5
4008 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4009 if test "${llvm_cv_target_arch+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 i?86-*) llvm_cv_target_arch="x86" ;;
4014 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4015 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4016 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4017 arm*-*) llvm_cv_target_arch="ARM" ;;
4018 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4019 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4020 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4021 xcore-*) llvm_cv_target_arch="XCore" ;;
4022 msp430-*) llvm_cv_target_arch="MSP430" ;;
4023 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4024 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4025 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4026 *) llvm_cv_target_arch="Unknown" ;;
4029 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4030 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4032 if test "$llvm_cv_target_arch" = "Unknown" ; then
4033 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4034 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4037 case "$llvm_cv_target_arch" in
4038 x86) LLVM_NATIVE_ARCH="X86" ;;
4039 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4040 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4043 ARCH=$llvm_cv_target_arch
4047 i?86-*) host_arch="x86" ;;
4048 amd64-* | x86_64-*) host_arch="x86_64" ;;
4049 sparc*-*) host_arch="Sparc" ;;
4050 powerpc*-*) host_arch="PowerPC" ;;
4051 arm*-*) host_arch="ARM" ;;
4052 aarch64*-*) host_arch="AArch64" ;;
4053 mips-* | mips64-*) host_arch="Mips" ;;
4054 mipsel-* | mips64el-*) host_arch="Mips" ;;
4055 xcore-*) host_arch="XCore" ;;
4056 msp430-*) host_arch="MSP430" ;;
4057 hexagon-*) host_arch="Hexagon" ;;
4058 mblaze-*) host_arch="MBlaze" ;;
4059 *) host_arch="Unknown" ;;
4062 if test "$host_arch" = "Unknown" ; then
4063 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4064 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4067 HOST_ARCH=$host_arch
4072 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4073 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4074 if test "${ac_cv_path_GREP+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 # Extract the first word of "grep ggrep" to use in msg output
4078 if test -z "$GREP"; then
4079 set dummy grep ggrep; ac_prog_name=$2
4080 if test "${ac_cv_path_GREP+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 ac_path_GREP_found=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089 test -z "$as_dir" && as_dir=.
4090 for ac_prog in grep ggrep; do
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4093 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4094 # Check for GNU ac_path_GREP and select it if it is found.
4095 # Check for GNU $ac_path_GREP
4096 case `"$ac_path_GREP" --version 2>&1` in
4098 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4101 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4104 cat "conftest.in" "conftest.in" >"conftest.tmp"
4105 mv "conftest.tmp" "conftest.in"
4106 cp "conftest.in" "conftest.nl"
4107 echo 'GREP' >> "conftest.nl"
4108 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110 ac_count=`expr $ac_count + 1`
4111 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4112 # Best one so far, save it but keep looking for a better one
4113 ac_cv_path_GREP="$ac_path_GREP"
4114 ac_path_GREP_max=$ac_count
4116 # 10*(2^10) chars as input seems more than enough
4117 test $ac_count -gt 10 && break
4119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 $ac_path_GREP_found && break 3
4133 GREP="$ac_cv_path_GREP"
4134 if test -z "$GREP"; then
4135 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4137 { (exit 1); exit 1; }; }
4141 ac_cv_path_GREP=$GREP
4146 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4147 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4148 GREP="$ac_cv_path_GREP"
4151 { echo "$as_me:$LINENO: checking for egrep" >&5
4152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4153 if test "${ac_cv_path_EGREP+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4157 then ac_cv_path_EGREP="$GREP -E"
4159 # Extract the first word of "egrep" to use in msg output
4160 if test -z "$EGREP"; then
4161 set dummy egrep; ac_prog_name=$2
4162 if test "${ac_cv_path_EGREP+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 ac_path_EGREP_found=false
4166 # Loop through the user's path and test for each of PROGNAME-LIST
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4171 test -z "$as_dir" && as_dir=.
4172 for ac_prog in egrep; do
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4175 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4176 # Check for GNU ac_path_EGREP and select it if it is found.
4177 # Check for GNU $ac_path_EGREP
4178 case `"$ac_path_EGREP" --version 2>&1` in
4180 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4183 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4186 cat "conftest.in" "conftest.in" >"conftest.tmp"
4187 mv "conftest.tmp" "conftest.in"
4188 cp "conftest.in" "conftest.nl"
4189 echo 'EGREP' >> "conftest.nl"
4190 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192 ac_count=`expr $ac_count + 1`
4193 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4194 # Best one so far, save it but keep looking for a better one
4195 ac_cv_path_EGREP="$ac_path_EGREP"
4196 ac_path_EGREP_max=$ac_count
4198 # 10*(2^10) chars as input seems more than enough
4199 test $ac_count -gt 10 && break
4201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 $ac_path_EGREP_found && break 3
4215 EGREP="$ac_cv_path_EGREP"
4216 if test -z "$EGREP"; then
4217 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4218 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4219 { (exit 1); exit 1; }; }
4223 ac_cv_path_EGREP=$EGREP
4229 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4230 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4231 EGREP="$ac_cv_path_EGREP"
4234 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4236 if test "${ac_cv_header_stdc+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest.$ac_objext'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_header_stdc=yes
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_cv_header_stdc=no
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 if test $ac_cv_header_stdc = yes; then
4303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4304 cat >conftest.$ac_ext <<_ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4314 $EGREP "memchr" >/dev/null 2>&1; then
4317 ac_cv_header_stdc=no
4323 if test $ac_cv_header_stdc = yes; then
4324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4325 cat >conftest.$ac_ext <<_ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335 $EGREP "free" >/dev/null 2>&1; then
4338 ac_cv_header_stdc=no
4344 if test $ac_cv_header_stdc = yes; then
4345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4346 if test "$cross_compiling" = yes; then
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4357 #if ((' ' & 0x0FF) == 0x020)
4358 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4359 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4361 # define ISLOWER(c) \
4362 (('a' <= (c) && (c) <= 'i') \
4363 || ('j' <= (c) && (c) <= 'r') \
4364 || ('s' <= (c) && (c) <= 'z'))
4365 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4368 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4373 for (i = 0; i < 256; i++)
4374 if (XOR (islower (i), ISLOWER (i))
4375 || toupper (i) != TOUPPER (i))
4380 rm -f conftest$ac_exeext
4381 if { (ac_try="$ac_link"
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_link") 2>&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4391 { (case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_try") 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4402 echo "$as_me: program exited with status $ac_status" >&5
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4407 ac_cv_header_stdc=no
4409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4415 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4417 if test $ac_cv_header_stdc = yes; then
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 $ac_includes_default
4452 #include <$ac_header>
4454 rm -f conftest.$ac_objext
4455 if { (ac_try="$ac_compile"
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_compile") 2>conftest.er1
4463 grep -v '^ *+' conftest.er1 >conftest.err
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4469 { (case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_try") 2>&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_try") 2>&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 eval "$as_ac_Header=yes"
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 eval "$as_ac_Header=no"
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 ac_res=`eval echo '${'$as_ac_Header'}'`
4499 { echo "$as_me:$LINENO: result: $ac_res" >&5
4500 echo "${ECHO_T}$ac_res" >&6; }
4501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4502 cat >>confdefs.h <<_ACEOF
4503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4511 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4512 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4513 if test "${ac_cv_c_bigendian+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 # See if sys/param.h defines the BYTE_ORDER macro.
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 #include <sys/types.h>
4524 #include <sys/param.h>
4529 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4537 rm -f conftest.$ac_objext
4538 if { (ac_try="$ac_compile"
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_compile") 2>conftest.er1
4546 grep -v '^ *+' conftest.er1 >conftest.err
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4552 { (case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_try") 2>&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try='test -s conftest.$ac_objext'
4562 { (case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4567 (eval "$ac_try") 2>&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 # It does; now see whether it defined to BIG_ENDIAN or not.
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 #include <sys/types.h>
4579 #include <sys/param.h>
4584 #if BYTE_ORDER != BIG_ENDIAN
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_compile") 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_try") 2>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_cv_c_bigendian=yes
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 ac_cv_c_bigendian=no
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 # It does not; compile a test program.
4640 if test "$cross_compiling" = yes; then
4641 # try to guess the endianness by grepping values into an object file
4642 ac_cv_c_bigendian=unknown
4643 cat >conftest.$ac_ext <<_ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4650 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4651 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4652 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4653 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4654 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4658 _ascii (); _ebcdic ();
4663 rm -f conftest.$ac_objext
4664 if { (ac_try="$ac_compile"
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_compile") 2>conftest.er1
4672 grep -v '^ *+' conftest.er1 >conftest.err
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4678 { (case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_try") 2>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_try") 2>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4698 ac_cv_c_bigendian=yes
4700 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4701 if test "$ac_cv_c_bigendian" = unknown; then
4702 ac_cv_c_bigendian=no
4704 # finding both strings is unlikely to happen, but who knows?
4705 ac_cv_c_bigendian=unknown
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 cat >conftest.$ac_ext <<_ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 $ac_includes_default
4728 /* Are we little or big endian? From Harbison&Steele. */
4732 char c[sizeof (long int)];
4735 return u.c[sizeof (long int) - 1] == 1;
4741 rm -f conftest$ac_exeext
4742 if { (ac_try="$ac_link"
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_link") 2>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4752 { (case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_try") 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_cv_c_bigendian=no
4763 echo "$as_me: program exited with status $ac_status" >&5
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4768 ac_cv_c_bigendian=yes
4770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4779 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4780 case $ac_cv_c_bigendian in
4788 { { echo "$as_me:$LINENO: error: unknown endianness
4789 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4790 echo "$as_me: error: unknown endianness
4791 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4792 { (exit 1); exit 1; }; } ;;
4796 if test "$cross_compiling" = yes; then
4797 LLVM_CROSS_COMPILING=1
4800 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4801 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4802 if test "${ac_cv_build_exeext+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4806 ac_cv_build_exeext=.exe
4808 ac_build_prefix=${build_alias}-
4810 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4811 set dummy ${ac_build_prefix}gcc; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 if test -n "$BUILD_CC"; then
4818 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 BUILD_CC=$ac_cv_prog_BUILD_CC
4838 if test -n "$BUILD_CC"; then
4839 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4840 echo "${ECHO_T}$BUILD_CC" >&6; }
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4847 if test -z "$BUILD_CC"; then
4848 # Extract the first word of "gcc", so it can be a program name with args.
4849 set dummy gcc; ac_word=$2
4850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 if test -n "$BUILD_CC"; then
4856 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 ac_cv_prog_BUILD_CC="gcc"
4866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 BUILD_CC=$ac_cv_prog_BUILD_CC
4876 if test -n "$BUILD_CC"; then
4877 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4878 echo "${ECHO_T}$BUILD_CC" >&6; }
4880 { echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6; }
4885 if test -z "$BUILD_CC"; then
4886 # Extract the first word of "cc", so it can be a program name with args.
4887 set dummy cc; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 if test -n "$BUILD_CC"; then
4894 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4905 ac_prog_rejected=yes
4908 ac_cv_prog_BUILD_CC="cc"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 if test $ac_prog_rejected = yes; then
4917 # We found a bogon in the path, so make sure we never use it.
4918 set dummy $ac_cv_prog_BUILD_CC
4920 if test $# != 0; then
4921 # We chose a different compiler from the bogus one.
4922 # However, it has the same basename, so the bogon will be chosen
4923 # first if we set BUILD_CC to just the basename; use the full file name.
4925 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4930 BUILD_CC=$ac_cv_prog_BUILD_CC
4931 if test -n "$BUILD_CC"; then
4932 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4933 echo "${ECHO_T}$BUILD_CC" >&6; }
4935 { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4942 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4943 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4944 { (exit 1); exit 1; }; }
4945 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4947 echo 'int main () { return 0; }' > conftest.$ac_ext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4950 (eval $ac_build_link) 2>&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; then
4954 for file in conftest.*; do
4956 *.c | *.o | *.obj | *.dSYM) ;;
4957 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4961 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4962 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4963 { (exit 1); exit 1; }; }
4966 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4971 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4972 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4973 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4974 ac_build_exeext=$BUILD_EXEEXT
4976 ac_build_prefix=${build_alias}-
4977 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4978 set dummy ${ac_build_prefix}g++; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 if test -n "$BUILD_CXX"; then
4985 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4994 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5005 if test -n "$BUILD_CXX"; then
5006 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5007 echo "${ECHO_T}$BUILD_CXX" >&6; }
5009 { echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6; }
5014 if test -z "$BUILD_CXX"; then
5015 # Extract the first word of "g++", so it can be a program name with args.
5016 set dummy g++; ac_word=$2
5017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5019 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 if test -n "$BUILD_CXX"; then
5023 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_prog_BUILD_CXX="g++"
5033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5043 if test -n "$BUILD_CXX"; then
5044 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5045 echo "${ECHO_T}$BUILD_CXX" >&6; }
5047 { echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6; }
5052 if test -z "$BUILD_CXX"; then
5053 # Extract the first word of "c++", so it can be a program name with args.
5054 set dummy c++; ac_word=$2
5055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5057 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 if test -n "$BUILD_CXX"; then
5061 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5072 ac_prog_rejected=yes
5075 ac_cv_prog_BUILD_CXX="c++"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 if test $ac_prog_rejected = yes; then
5084 # We found a bogon in the path, so make sure we never use it.
5085 set dummy $ac_cv_prog_BUILD_CXX
5087 if test $# != 0; then
5088 # We chose a different compiler from the bogus one.
5089 # However, it has the same basename, so the bogon will be chosen
5090 # first if we set BUILD_CXX to just the basename; use the full file name.
5092 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5097 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5098 if test -n "$BUILD_CXX"; then
5099 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5100 echo "${ECHO_T}$BUILD_CXX" >&6; }
5102 { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5110 LLVM_CROSS_COMPILING=0
5114 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5125 # Check whether --enable-libcpp was given.
5126 if test "${enable_libcpp+set}" = set; then
5127 enableval=$enable_libcpp;
5132 case "$enableval" in
5133 yes) ENABLE_LIBCPP=1
5137 default) ENABLE_LIBCPP=0
5139 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5140 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5141 { (exit 1); exit 1; }; } ;;
5144 # Check whether --enable-cxx11 was given.
5145 if test "${enable_cxx11+set}" = set; then
5146 enableval=$enable_cxx11;
5151 case "$enableval" in
5156 default) ENABLE_CXX11=0
5158 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5159 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5160 { (exit 1); exit 1; }; } ;;
5164 # Check whether --enable-clang-arcmt was given.
5165 if test "${enable_clang_arcmt+set}" = set; then
5166 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5171 case "$enableval" in
5172 yes) ENABLE_CLANG_ARCMT=1
5174 no) ENABLE_CLANG_ARCMT=0
5176 default) ENABLE_CLANG_ARCMT=1
5178 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5183 clang_static_analyzer="yes"
5184 # Check whether --enable-clang-static-analyzer was given.
5185 if test "${enable_clang_static_analyzer+set}" = set; then
5186 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5191 case "$enableval" in
5192 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5194 no) ENABLE_CLANG_STATIC_ANALYZER=0
5196 default) ENABLE_CLANG_STATIC_ANALYZER=1
5198 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5200 { (exit 1); exit 1; }; } ;;
5203 # Check whether --enable-clang-rewriter was given.
5204 if test "${enable_clang_rewriter+set}" = set; then
5205 enableval=$enable_clang_rewriter;
5210 case "$enableval" in
5211 yes) ENABLE_CLANG_REWRITER=1
5214 if test ${clang_arcmt} != "no" ; then
5215 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5216 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5217 { (exit 1); exit 1; }; }
5219 if test ${clang_static_analyzer} != "no" ; then
5220 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5221 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5222 { (exit 1); exit 1; }; }
5224 ENABLE_CLANG_REWRITER=0
5227 default) ENABLE_CLANG_REWRITER=1
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 # Check whether --enable-optimized was given.
5235 if test "${enable_optimized+set}" = set; then
5236 enableval=$enable_optimized;
5241 if test ${enableval} = "no" ; then
5245 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5249 # Check whether --enable-profiling was given.
5250 if test "${enable_profiling+set}" = set; then
5251 enableval=$enable_profiling;
5256 if test ${enableval} = "no" ; then
5260 ENABLE_PROFILING=ENABLE_PROFILING=1
5264 # Check whether --enable-assertions was given.
5265 if test "${enable_assertions+set}" = set; then
5266 enableval=$enable_assertions;
5271 if test ${enableval} = "yes" ; then
5275 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5279 # Check whether --enable-werror was given.
5280 if test "${enable_werror+set}" = set; then
5281 enableval=$enable_werror;
5286 case "$enableval" in
5287 yes) ENABLE_WERROR=1
5291 default) ENABLE_WERROR=0
5293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5298 # Check whether --enable-expensive-checks was given.
5299 if test "${enable_expensive_checks+set}" = set; then
5300 enableval=$enable_expensive_checks;
5305 if test ${enableval} = "yes" ; then
5306 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5308 EXPENSIVE_CHECKS=yes
5311 ENABLE_EXPENSIVE_CHECKS=
5317 # Check whether --enable-debug-runtime was given.
5318 if test "${enable_debug_runtime+set}" = set; then
5319 enableval=$enable_debug_runtime;
5324 if test ${enableval} = "no" ; then
5328 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5332 # Check whether --enable-debug-symbols was given.
5333 if test "${enable_debug_symbols+set}" = set; then
5334 enableval=$enable_debug_symbols;
5339 if test ${enableval} = "no" ; then
5343 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5347 # Check whether --enable-keep-symbols was given.
5348 if test "${enable_keep_symbols+set}" = set; then
5349 enableval=$enable_keep_symbols;
5354 if test ${enableval} = "no" ; then
5358 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5362 # Check whether --enable-jit was given.
5363 if test "${enable_jit+set}" = set; then
5364 enableval=$enable_jit;
5369 if test ${enableval} = "no"
5374 case "$llvm_cv_target_arch" in
5375 x86) TARGET_HAS_JIT=1
5377 Sparc) TARGET_HAS_JIT=0
5379 PowerPC) TARGET_HAS_JIT=1
5381 x86_64) TARGET_HAS_JIT=1
5383 ARM) TARGET_HAS_JIT=1
5385 AArch64) TARGET_HAS_JIT=0
5387 Mips) TARGET_HAS_JIT=1
5389 XCore) TARGET_HAS_JIT=0
5391 MSP430) TARGET_HAS_JIT=0
5393 Hexagon) TARGET_HAS_JIT=0
5395 MBlaze) TARGET_HAS_JIT=0
5397 NVPTX) TARGET_HAS_JIT=0
5404 # Check whether --enable-docs was given.
5405 if test "${enable_docs+set}" = set; then
5406 enableval=$enable_docs;
5411 case "$enableval" in
5416 default) ENABLE_DOCS=1
5418 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5419 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5420 { (exit 1); exit 1; }; } ;;
5423 # Check whether --enable-doxygen was given.
5424 if test "${enable_doxygen+set}" = set; then
5425 enableval=$enable_doxygen;
5430 case "$enableval" in
5431 yes) ENABLE_DOXYGEN=1
5433 no) ENABLE_DOXYGEN=0
5435 default) ENABLE_DOXYGEN=0
5437 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5438 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5439 { (exit 1); exit 1; }; } ;;
5442 # Check whether --enable-threads was given.
5443 if test "${enable_threads+set}" = set; then
5444 enableval=$enable_threads;
5449 case "$enableval" in
5450 yes) LLVM_ENABLE_THREADS=1
5452 no) LLVM_ENABLE_THREADS=0
5454 default) LLVM_ENABLE_THREADS=1
5456 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5457 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5458 { (exit 1); exit 1; }; } ;;
5461 cat >>confdefs.h <<_ACEOF
5462 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5466 # Check whether --enable-pthreads was given.
5467 if test "${enable_pthreads+set}" = set; then
5468 enableval=$enable_pthreads;
5473 case "$enableval" in
5474 yes) ENABLE_PTHREADS=1
5476 no) ENABLE_PTHREADS=0
5478 default) ENABLE_PTHREADS=1
5480 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5481 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5482 { (exit 1); exit 1; }; } ;;
5485 # Check whether --enable-zlib was given.
5486 if test "${enable_zlib+set}" = set; then
5487 enableval=$enable_zlib;
5492 case "$enableval" in
5493 yes) LLVM_ENABLE_ZLIB=1
5495 no) LLVM_ENABLE_ZLIB=0
5497 default) LLVM_ENABLE_ZLIB=1
5499 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5500 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5501 { (exit 1); exit 1; }; } ;;
5504 cat >>confdefs.h <<_ACEOF
5505 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5509 # Check whether --enable-pic was given.
5510 if test "${enable_pic+set}" = set; then
5511 enableval=$enable_pic;
5516 case "$enableval" in
5521 default) ENABLE_PIC=1
5523 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5524 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5525 { (exit 1); exit 1; }; } ;;
5528 cat >>confdefs.h <<_ACEOF
5529 #define ENABLE_PIC $ENABLE_PIC
5533 # Check whether --enable-shared was given.
5534 if test "${enable_shared+set}" = set; then
5535 enableval=$enable_shared;
5540 case "$enableval" in
5541 yes) ENABLE_SHARED=1
5545 default) ENABLE_SHARED=0
5547 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5548 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5549 { (exit 1); exit 1; }; } ;;
5552 # Check whether --enable-embed-stdcxx was given.
5553 if test "${enable_embed_stdcxx+set}" = set; then
5554 enableval=$enable_embed_stdcxx;
5559 case "$enableval" in
5560 yes) ENABLE_EMBED_STDCXX=1
5562 no) ENABLE_EMBED_STDCXX=0
5564 default) ENABLE_EMBED_STDCXX=0
5566 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5567 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5568 { (exit 1); exit 1; }; } ;;
5571 # Check whether --enable-timestamps was given.
5572 if test "${enable_timestamps+set}" = set; then
5573 enableval=$enable_timestamps;
5578 case "$enableval" in
5579 yes) ENABLE_TIMESTAMPS=1
5581 no) ENABLE_TIMESTAMPS=0
5583 default) ENABLE_TIMESTAMPS=1
5585 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5586 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5587 { (exit 1); exit 1; }; } ;;
5590 cat >>confdefs.h <<_ACEOF
5591 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5596 # Check whether --enable-backtraces was given.
5597 if test "${enable_backtraces+set}" = set; then
5598 enableval=$enable_backtraces;
5603 case "$enableval" in
5604 yes) ENABLE_BACKTRACES=1
5606 no) ENABLE_BACKTRACES=0
5608 default) ENABLE_BACKTRACES=1
5610 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5611 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5612 { (exit 1); exit 1; }; } ;;
5615 cat >>confdefs.h <<_ACEOF
5616 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5621 # Check whether --enable-targets was given.
5622 if test "${enable_targets+set}" = set; then
5623 enableval=$enable_targets;
5628 if test "$enableval" = host-only ; then
5631 case "$enableval" in
5632 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5633 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5635 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5636 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5637 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5638 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5639 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5640 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5641 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5642 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5643 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5644 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5645 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5646 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5647 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5648 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5649 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5650 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5651 host) case "$llvm_cv_target_arch" in
5652 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5653 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5654 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5655 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5656 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5657 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5658 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5660 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5661 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5662 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5663 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5664 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5665 echo "$as_me: error: Can not set target to build" >&2;}
5666 { (exit 1); exit 1; }; } ;;
5668 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5669 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5670 { (exit 1); exit 1; }; } ;;
5676 # Check whether --enable-experimental-targets was given.
5677 if test "${enable_experimental_targets+set}" = set; then
5678 enableval=$enable_experimental_targets;
5684 if test ${enableval} != "disable"
5686 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5689 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5692 for a_target in $TARGETS_TO_BUILD; do
5693 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5695 cat >>confdefs.h <<_ACEOF
5696 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5699 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5700 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5701 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5702 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5703 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5704 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5706 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5707 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5710 cat >>confdefs.h <<_ACEOF
5711 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5715 cat >>confdefs.h <<_ACEOF
5716 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5729 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5731 cat >>confdefs.h <<_ACEOF
5732 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5736 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5738 cat >>confdefs.h <<_ACEOF
5739 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5746 LLVM_ENUM_TARGETS=""
5747 LLVM_ENUM_ASM_PRINTERS=""
5748 LLVM_ENUM_ASM_PARSERS=""
5749 LLVM_ENUM_DISASSEMBLERS=""
5750 for target_to_build in $TARGETS_TO_BUILD; do
5751 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5752 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5753 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5755 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5756 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5758 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5759 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5768 # Check whether --with-optimize-option was given.
5769 if test "${with_optimize_option+set}" = set; then
5770 withval=$with_optimize_option;
5775 { echo "$as_me:$LINENO: checking optimization flags" >&5
5776 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5779 case "$llvm_cv_os_type" in
5780 FreeBSD) optimize_option=-O2 ;;
5781 MingW) optimize_option=-O2 ;;
5782 *) optimize_option=-O3 ;;
5784 *) optimize_option="$withval" ;;
5786 OPTIMIZE_OPTION=$optimize_option
5788 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5789 echo "${ECHO_T}$optimize_option" >&6; }
5792 # Check whether --with-extra-options was given.
5793 if test "${with_extra_options+set}" = set; then
5794 withval=$with_extra_options;
5800 default) EXTRA_OPTIONS= ;;
5801 *) EXTRA_OPTIONS=$withval ;;
5803 EXTRA_OPTIONS=$EXTRA_OPTIONS
5807 # Check whether --with-extra-ld-options was given.
5808 if test "${with_extra_ld_options+set}" = set; then
5809 withval=$with_extra_ld_options;
5815 default) EXTRA_LD_OPTIONS= ;;
5816 *) EXTRA_LD_OPTIONS=$withval ;;
5818 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5821 # Check whether --enable-bindings was given.
5822 if test "${enable_bindings+set}" = set; then
5823 enableval=$enable_bindings;
5828 BINDINGS_TO_BUILD=""
5829 case "$enableval" in
5830 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5831 all ) BINDINGS_TO_BUILD="ocaml" ;;
5832 none | no) BINDINGS_TO_BUILD="" ;;
5833 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5834 case "$a_binding" in
5835 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5836 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5837 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5838 { (exit 1); exit 1; }; } ;;
5845 # Check whether --with-ocaml-libdir was given.
5846 if test "${with_ocaml_libdir+set}" = set; then
5847 withval=$with_ocaml_libdir;
5853 auto) with_ocaml_libdir="$withval" ;;
5854 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5855 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5856 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5857 { (exit 1); exit 1; }; } ;;
5861 # Check whether --with-clang-srcdir was given.
5862 if test "${with_clang_srcdir+set}" = set; then
5863 withval=$with_clang_srcdir;
5869 -) clang_src_root="" ;;
5870 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5871 *) clang_src_root="$ac_pwd/$withval" ;;
5873 CLANG_SRC_ROOT=$clang_src_root
5877 # Check whether --with-clang-resource-dir was given.
5878 if test "${with_clang_resource_dir+set}" = set; then
5879 withval=$with_clang_resource_dir;
5885 cat >>confdefs.h <<_ACEOF
5886 #define CLANG_RESOURCE_DIR "$withval"
5891 # Check whether --with-c-include-dirs was given.
5892 if test "${with_c_include_dirs+set}" = set; then
5893 withval=$with_c_include_dirs;
5899 cat >>confdefs.h <<_ACEOF
5900 #define C_INCLUDE_DIRS "$withval"
5904 # Clang normally uses the system c++ headers and libraries. With this option,
5905 # clang will use the ones provided by a gcc installation instead. This option should
5906 # be passed the same value that was used with --prefix when configuring gcc.
5908 # Check whether --with-gcc-toolchain was given.
5909 if test "${with_gcc_toolchain+set}" = set; then
5910 withval=$with_gcc_toolchain;
5916 cat >>confdefs.h <<_ACEOF
5917 #define GCC_INSTALL_PREFIX "$withval"
5922 # Check whether --with-default-sysroot was given.
5923 if test "${with_default_sysroot+set}" = set; then
5924 withval=$with_default_sysroot;
5930 cat >>confdefs.h <<_ACEOF
5931 #define DEFAULT_SYSROOT "$withval"
5936 # Check whether --with-binutils-include was given.
5937 if test "${with_binutils_include+set}" = set; then
5938 withval=$with_binutils_include;
5944 default) WITH_BINUTILS_INCDIR=default ;;
5945 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5946 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5947 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5948 { (exit 1); exit 1; }; } ;;
5950 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5951 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5953 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5954 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5955 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5956 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5957 { (exit 1); exit 1; }; };
5962 # Check whether --with-bug-report-url was given.
5963 if test "${with_bug_report_url+set}" = set; then
5964 withval=$with_bug_report_url;
5966 withval="http://llvm.org/bugs/"
5970 cat >>confdefs.h <<_ACEOF
5971 #define BUG_REPORT_URL "$withval"
5975 # Check whether --enable-libffi was given.
5976 if test "${enable_libffi+set}" = set; then
5977 enableval=$enable_libffi; case "$enableval" in
5978 yes) llvm_cv_enable_libffi="yes" ;;
5979 no) llvm_cv_enable_libffi="no" ;;
5980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5981 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5982 { (exit 1); exit 1; }; } ;;
5985 llvm_cv_enable_libffi=no
5990 # Check whether --with-internal-prefix was given.
5991 if test "${with_internal_prefix+set}" = set; then
5992 withval=$with_internal_prefix;
5997 INTERNAL_PREFIX=$withval
6001 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6002 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6003 if test "${lt_cv_path_NM+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 if test -n "$NM"; then
6007 # Let the user override the test.
6010 lt_nm_to_check="${ac_tool_prefix}nm"
6011 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6012 lt_nm_to_check="$lt_nm_to_check nm"
6014 for lt_tmp_nm in $lt_nm_to_check; do
6015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6016 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6018 test -z "$ac_dir" && ac_dir=.
6019 tmp_nm="$ac_dir/$lt_tmp_nm"
6020 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6021 # Check to see if the nm accepts a BSD-compat flag.
6022 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6023 # nm: unknown option "B" ignored
6024 # Tru64's nm complains that /dev/null is an invalid object file
6025 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6026 */dev/null* | *'Invalid file or object type'*)
6027 lt_cv_path_NM="$tmp_nm -B"
6031 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6033 lt_cv_path_NM="$tmp_nm -p"
6037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6038 continue # so that we can try to find one that supports BSD flags
6047 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6050 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6051 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6056 { echo "$as_me:$LINENO: checking for GNU make" >&5
6057 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6058 if test "${llvm_cv_gnu_make_command+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 llvm_cv_gnu_make_command=''
6062 for a in "$MAKE" make gmake gnumake ; do
6063 if test -z "$a" ; then continue ; fi ;
6064 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6066 llvm_cv_gnu_make_command=$a ;
6071 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6072 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6073 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6077 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6078 echo "${ECHO_T}\"Not found\"" >&6; };
6082 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6083 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6085 if test "$LN_S" = "ln -s"; then
6086 { echo "$as_me:$LINENO: result: yes" >&5
6087 echo "${ECHO_T}yes" >&6; }
6089 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6090 echo "${ECHO_T}no, using $LN_S" >&6; }
6093 # Extract the first word of "cmp", so it can be a program name with args.
6094 set dummy cmp; ac_word=$2
6095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097 if test "${ac_cv_path_CMP+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6125 if test -n "$CMP"; then
6126 { echo "$as_me:$LINENO: result: $CMP" >&5
6127 echo "${ECHO_T}$CMP" >&6; }
6129 { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6134 # Extract the first word of "cp", so it can be a program name with args.
6135 set dummy cp; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_path_CP+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6166 if test -n "$CP"; then
6167 { echo "$as_me:$LINENO: result: $CP" >&5
6168 echo "${ECHO_T}$CP" >&6; }
6170 { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6175 # Extract the first word of "date", so it can be a program name with args.
6176 set dummy date; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_path_DATE+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6206 DATE=$ac_cv_path_DATE
6207 if test -n "$DATE"; then
6208 { echo "$as_me:$LINENO: result: $DATE" >&5
6209 echo "${ECHO_T}$DATE" >&6; }
6211 { echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6; }
6216 # Extract the first word of "find", so it can be a program name with args.
6217 set dummy find; ac_word=$2
6218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220 if test "${ac_cv_path_FIND+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6235 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6247 FIND=$ac_cv_path_FIND
6248 if test -n "$FIND"; then
6249 { echo "$as_me:$LINENO: result: $FIND" >&5
6250 echo "${ECHO_T}$FIND" >&6; }
6252 { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6257 # Extract the first word of "grep", so it can be a program name with args.
6258 set dummy grep; ac_word=$2
6259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261 if test "${ac_cv_path_GREP+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6288 GREP=$ac_cv_path_GREP
6289 if test -n "$GREP"; then
6290 { echo "$as_me:$LINENO: result: $GREP" >&5
6291 echo "${ECHO_T}$GREP" >&6; }
6293 { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6298 # Extract the first word of "mkdir", so it can be a program name with args.
6299 set dummy mkdir; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_MKDIR+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6329 MKDIR=$ac_cv_path_MKDIR
6330 if test -n "$MKDIR"; then
6331 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6332 echo "${ECHO_T}$MKDIR" >&6; }
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6339 # Extract the first word of "mv", so it can be a program name with args.
6340 set dummy mv; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_path_MV+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6371 if test -n "$MV"; then
6372 { echo "$as_me:$LINENO: result: $MV" >&5
6373 echo "${ECHO_T}$MV" >&6; }
6375 { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6380 if test -n "$ac_tool_prefix"; then
6381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_prog_RANLIB+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 if test -n "$RANLIB"; then
6389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 RANLIB=$ac_cv_prog_RANLIB
6409 if test -n "$RANLIB"; then
6410 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6411 echo "${ECHO_T}$RANLIB" >&6; }
6413 { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6419 if test -z "$ac_cv_prog_RANLIB"; then
6420 ac_ct_RANLIB=$RANLIB
6421 # Extract the first word of "ranlib", so it can be a program name with args.
6422 set dummy ranlib; ac_word=$2
6423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 if test -n "$ac_ct_RANLIB"; then
6429 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_prog_ac_ct_RANLIB="ranlib"
6439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6449 if test -n "$ac_ct_RANLIB"; then
6450 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6451 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6453 { echo "$as_me:$LINENO: result: no" >&5
6454 echo "${ECHO_T}no" >&6; }
6457 if test "x$ac_ct_RANLIB" = x; then
6460 case $cross_compiling:$ac_tool_warned in
6462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6463 whose name does not start with the host triplet. If you think this
6464 configuration is useful to you, please write to autoconf@gnu.org." >&5
6465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6466 whose name does not start with the host triplet. If you think this
6467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6468 ac_tool_warned=yes ;;
6470 RANLIB=$ac_ct_RANLIB
6473 RANLIB="$ac_cv_prog_RANLIB"
6476 if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}ar; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_prog_AR+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 if test -n "$AR"; then
6485 ac_cv_prog_AR="$AR" # Let the user override the test.
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_AR="${ac_tool_prefix}ar"
6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 if test -n "$AR"; then
6506 { echo "$as_me:$LINENO: result: $AR" >&5
6507 echo "${ECHO_T}$AR" >&6; }
6509 { echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6; }
6515 if test -z "$ac_cv_prog_AR"; then
6517 # Extract the first word of "ar", so it can be a program name with args.
6518 set dummy ar; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 if test -n "$ac_ct_AR"; then
6525 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6534 ac_cv_prog_ac_ct_AR="ar"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6545 if test -n "$ac_ct_AR"; then
6546 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6547 echo "${ECHO_T}$ac_ct_AR" >&6; }
6549 { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6553 if test "x$ac_ct_AR" = x; then
6556 case $cross_compiling:$ac_tool_warned in
6558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet. If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&5
6561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6562 whose name does not start with the host triplet. If you think this
6563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6564 ac_tool_warned=yes ;;
6572 # Extract the first word of "rm", so it can be a program name with args.
6573 set dummy rm; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_path_RM+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6604 if test -n "$RM"; then
6605 { echo "$as_me:$LINENO: result: $RM" >&5
6606 echo "${ECHO_T}$RM" >&6; }
6608 { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6613 # Extract the first word of "sed", so it can be a program name with args.
6614 set dummy sed; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_SED+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6645 if test -n "$SED"; then
6646 { echo "$as_me:$LINENO: result: $SED" >&5
6647 echo "${ECHO_T}$SED" >&6; }
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6654 # Extract the first word of "tar", so it can be a program name with args.
6655 set dummy tar; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_TAR+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6686 if test -n "$TAR"; then
6687 { echo "$as_me:$LINENO: result: $TAR" >&5
6688 echo "${ECHO_T}$TAR" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6695 # Extract the first word of "pwd", so it can be a program name with args.
6696 set dummy pwd; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_BINPWD+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6726 BINPWD=$ac_cv_path_BINPWD
6727 if test -n "$BINPWD"; then
6728 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6729 echo "${ECHO_T}$BINPWD" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6737 # Extract the first word of "Graphviz", so it can be a program name with args.
6738 set dummy Graphviz; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6768 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6769 if test -n "$GRAPHVIZ"; then
6770 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6771 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6773 { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6778 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_GRAPHVIZ 1
6784 if test "$llvm_cv_os_type" = "MingW" ; then
6785 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6788 cat >>confdefs.h <<_ACEOF
6789 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6793 # Extract the first word of "dot", so it can be a program name with args.
6794 set dummy dot; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_path_DOT+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6825 if test -n "$DOT"; then
6826 { echo "$as_me:$LINENO: result: $DOT" >&5
6827 echo "${ECHO_T}$DOT" >&6; }
6829 { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6834 if test "$DOT" != "echo dot" ; then
6836 cat >>confdefs.h <<\_ACEOF
6840 if test "$llvm_cv_os_type" = "MingW" ; then
6841 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6844 cat >>confdefs.h <<_ACEOF
6845 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6849 # Extract the first word of "fdp", so it can be a program name with args.
6850 set dummy fdp; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_path_FDP+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6881 if test -n "$FDP"; then
6882 { echo "$as_me:$LINENO: result: $FDP" >&5
6883 echo "${ECHO_T}$FDP" >&6; }
6885 { echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6; }
6890 if test "$FDP" != "echo fdp" ; then
6892 cat >>confdefs.h <<\_ACEOF
6896 if test "$llvm_cv_os_type" = "MingW" ; then
6897 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6900 cat >>confdefs.h <<_ACEOF
6901 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6905 # Extract the first word of "neato", so it can be a program name with args.
6906 set dummy neato; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_NEATO+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6936 NEATO=$ac_cv_path_NEATO
6937 if test -n "$NEATO"; then
6938 { echo "$as_me:$LINENO: result: $NEATO" >&5
6939 echo "${ECHO_T}$NEATO" >&6; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6946 if test "$NEATO" != "echo neato" ; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define HAVE_NEATO 1
6952 if test "$llvm_cv_os_type" = "MingW" ; then
6953 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6956 cat >>confdefs.h <<_ACEOF
6957 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6961 # Extract the first word of "twopi", so it can be a program name with args.
6962 set dummy twopi; ac_word=$2
6963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965 if test "${ac_cv_path_TWOPI+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6980 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6992 TWOPI=$ac_cv_path_TWOPI
6993 if test -n "$TWOPI"; then
6994 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6995 echo "${ECHO_T}$TWOPI" >&6; }
6997 { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
7002 if test "$TWOPI" != "echo twopi" ; then
7004 cat >>confdefs.h <<\_ACEOF
7005 #define HAVE_TWOPI 1
7008 if test "$llvm_cv_os_type" = "MingW" ; then
7009 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7012 cat >>confdefs.h <<_ACEOF
7013 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7017 # Extract the first word of "circo", so it can be a program name with args.
7018 set dummy circo; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_CIRCO+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7048 CIRCO=$ac_cv_path_CIRCO
7049 if test -n "$CIRCO"; then
7050 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7051 echo "${ECHO_T}$CIRCO" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 if test "$CIRCO" != "echo circo" ; then
7060 cat >>confdefs.h <<\_ACEOF
7061 #define HAVE_CIRCO 1
7064 if test "$llvm_cv_os_type" = "MingW" ; then
7065 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7068 cat >>confdefs.h <<_ACEOF
7069 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7073 for ac_prog in gv gsview32
7075 # Extract the first word of "$ac_prog", so it can be a program name with args.
7076 set dummy $ac_prog; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_path_GV+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 if test -n "$GV"; then
7107 { echo "$as_me:$LINENO: result: $GV" >&5
7108 echo "${ECHO_T}$GV" >&6; }
7110 { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7115 test -n "$GV" && break
7117 test -n "$GV" || GV="echo gv"
7119 if test "$GV" != "echo gv" ; then
7121 cat >>confdefs.h <<\_ACEOF
7125 if test "$llvm_cv_os_type" = "MingW" ; then
7126 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7129 cat >>confdefs.h <<_ACEOF
7130 #define LLVM_PATH_GV "$GV${EXEEXT}"
7134 # Extract the first word of "dotty", so it can be a program name with args.
7135 set dummy dotty; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_path_DOTTY+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7165 DOTTY=$ac_cv_path_DOTTY
7166 if test -n "$DOTTY"; then
7167 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7168 echo "${ECHO_T}$DOTTY" >&6; }
7170 { echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6; }
7175 if test "$DOTTY" != "echo dotty" ; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define HAVE_DOTTY 1
7181 if test "$llvm_cv_os_type" = "MingW" ; then
7182 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7185 cat >>confdefs.h <<_ACEOF
7186 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7190 # Extract the first word of "xdot.py", so it can be a program name with args.
7191 set dummy xdot.py; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7221 XDOT_PY=$ac_cv_path_XDOT_PY
7222 if test -n "$XDOT_PY"; then
7223 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7224 echo "${ECHO_T}$XDOT_PY" >&6; }
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7231 if test "$XDOT_PY" != "echo xdot.py" ; then
7233 cat >>confdefs.h <<\_ACEOF
7234 #define HAVE_XDOT_PY 1
7237 if test "$llvm_cv_os_type" = "MingW" ; then
7238 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7241 cat >>confdefs.h <<_ACEOF
7242 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7247 # Find a good install program. We prefer a C program (faster),
7248 # so one script is as good as another. But avoid the broken or
7249 # incompatible versions:
7250 # SysV /etc/install, /usr/sbin/install
7251 # SunOS /usr/etc/install
7252 # IRIX /sbin/install
7254 # AmigaOS /C/install, which installs bootblocks on floppy discs
7255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7258 # OS/2's system install, which has a completely different semantic
7259 # ./install, which can be erroneously created by make from ./install.sh.
7260 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7262 if test -z "$INSTALL"; then
7263 if test "${ac_cv_path_install+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir=.
7271 # Account for people who put trailing slashes in PATH elements.
7273 ./ | .// | /cC/* | \
7274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7275 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7278 # OSF1 and SCO ODT 3.0 have their own names for install.
7279 # Don't use installbsd from OSF since it installs stuff as root
7281 for ac_prog in ginstall scoinst install; do
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7284 if test $ac_prog = install &&
7285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7286 # AIX install. It has an incompatible calling convention.
7288 elif test $ac_prog = install &&
7289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7290 # program-specific install script used by HP pwplus--don't use.
7293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7306 if test "${ac_cv_path_install+set}" = set; then
7307 INSTALL=$ac_cv_path_install
7309 # As a last resort, use the slow shell script. Don't cache a
7310 # value for INSTALL within a source directory, because that will
7311 # break other packages using the cache if that directory is
7312 # removed, or if the value is a relative name.
7313 INSTALL=$ac_install_sh
7316 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7317 echo "${ECHO_T}$INSTALL" >&6; }
7319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7320 # It thinks the first close brace ends the variable substitution.
7321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7328 [\\/$]* | ?:[\\/]* ) ;;
7329 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7332 # Extract the first word of "bzip2", so it can be a program name with args.
7333 set dummy bzip2; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_BZIP2+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 BZIP2=$ac_cv_path_BZIP2
7363 if test -n "$BZIP2"; then
7364 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7365 echo "${ECHO_T}$BZIP2" >&6; }
7367 { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7372 # Extract the first word of "cat", so it can be a program name with args.
7373 set dummy cat; ac_word=$2
7374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376 if test "${ac_cv_path_CAT+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 if test -n "$CAT"; then
7404 { echo "$as_me:$LINENO: result: $CAT" >&5
7405 echo "${ECHO_T}$CAT" >&6; }
7407 { echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6; }
7412 # Extract the first word of "doxygen", so it can be a program name with args.
7413 set dummy doxygen; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 DOXYGEN=$ac_cv_path_DOXYGEN
7443 if test -n "$DOXYGEN"; then
7444 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7445 echo "${ECHO_T}$DOXYGEN" >&6; }
7447 { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7452 # Extract the first word of "groff", so it can be a program name with args.
7453 set dummy groff; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_GROFF+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 GROFF=$ac_cv_path_GROFF
7483 if test -n "$GROFF"; then
7484 { echo "$as_me:$LINENO: result: $GROFF" >&5
7485 echo "${ECHO_T}$GROFF" >&6; }
7487 { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7492 # Extract the first word of "gzip", so it can be a program name with args.
7493 set dummy gzip; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 GZIPBIN=$ac_cv_path_GZIPBIN
7523 if test -n "$GZIPBIN"; then
7524 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7525 echo "${ECHO_T}$GZIPBIN" >&6; }
7527 { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7532 # Extract the first word of "pdfroff", so it can be a program name with args.
7533 set dummy pdfroff; ac_word=$2
7534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7536 if test "${ac_cv_path_PDFROFF+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 PDFROFF=$ac_cv_path_PDFROFF
7563 if test -n "$PDFROFF"; then
7564 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7565 echo "${ECHO_T}$PDFROFF" >&6; }
7567 { echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6; }
7572 # Extract the first word of "zip", so it can be a program name with args.
7573 set dummy zip; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_ZIP+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 if test -n "$ZIP"; then
7604 { echo "$as_me:$LINENO: result: $ZIP" >&5
7605 echo "${ECHO_T}$ZIP" >&6; }
7607 { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7612 for ac_prog in ocamlc
7614 # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_OCAMLC+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 OCAMLC=$ac_cv_path_OCAMLC
7645 if test -n "$OCAMLC"; then
7646 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7647 echo "${ECHO_T}$OCAMLC" >&6; }
7649 { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7654 test -n "$OCAMLC" && break
7657 for ac_prog in ocamlopt
7659 # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 OCAMLOPT=$ac_cv_path_OCAMLOPT
7690 if test -n "$OCAMLOPT"; then
7691 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7692 echo "${ECHO_T}$OCAMLOPT" >&6; }
7694 { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7699 test -n "$OCAMLOPT" && break
7702 for ac_prog in ocamldep
7704 # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 OCAMLDEP=$ac_cv_path_OCAMLDEP
7735 if test -n "$OCAMLDEP"; then
7736 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7737 echo "${ECHO_T}$OCAMLDEP" >&6; }
7739 { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7744 test -n "$OCAMLDEP" && break
7747 for ac_prog in ocamldoc
7749 # Extract the first word of "$ac_prog", so it can be a program name with args.
7750 set dummy $ac_prog; ac_word=$2
7751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7753 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7768 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 OCAMLDOC=$ac_cv_path_OCAMLDOC
7780 if test -n "$OCAMLDOC"; then
7781 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7782 echo "${ECHO_T}$OCAMLDOC" >&6; }
7784 { echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6; }
7789 test -n "$OCAMLDOC" && break
7792 for ac_prog in gas as
7794 # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_path_GAS+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 if test -n "$GAS"; then
7826 { echo "$as_me:$LINENO: result: $GAS" >&5
7827 echo "${ECHO_T}$GAS" >&6; }
7829 { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7834 test -n "$GAS" && break
7838 { echo "$as_me:$LINENO: checking for linker version" >&5
7839 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7840 if test "${llvm_cv_link_version+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 version_string="$(ld -v 2>&1 | head -1)"
7847 if (echo "$version_string" | grep -q "ld64"); then
7848 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7850 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7854 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7855 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7857 cat >>confdefs.h <<_ACEOF
7858 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7863 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7864 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7865 if test "${llvm_cv_link_use_r+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 ac_cpp='$CPP $CPPFLAGS'
7870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875 CFLAGS="$CFLAGS -Wl,-R."
7876 cat >conftest.$ac_ext <<_ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7891 rm -f conftest.$ac_objext conftest$ac_exeext
7892 if { (ac_try="$ac_link"
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_link") 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7906 { (case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_try") 2>&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7925 llvm_cv_link_use_r=yes
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 llvm_cv_link_use_r=no
7933 rm -f core conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7945 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7946 if test "$llvm_cv_link_use_r" = yes ; then
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_LINK_R 1
7955 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7956 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7957 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7967 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7968 cat >conftest.$ac_ext <<_ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7983 rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (ac_try="$ac_link"
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_link") 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7998 { (case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_try") 2>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8017 llvm_cv_link_use_export_dynamic=yes
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 llvm_cv_link_use_export_dynamic=no
8025 rm -f core conftest.err conftest.$ac_objext \
8026 conftest$ac_exeext conftest.$ac_ext
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8037 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8038 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8040 cat >>confdefs.h <<\_ACEOF
8041 #define HAVE_LINK_EXPORT_DYNAMIC 1
8047 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8048 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8049 if test "${llvm_cv_link_use_version_script+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 ac_cpp='$CPP $CPPFLAGS'
8054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060 # The following code is from the autoconf manual,
8061 # "11.13: Limitations of Usual Tools".
8062 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8063 # Use mktemp if possible; otherwise fall back on mkdir,
8064 # with $RANDOM to make collisions less likely.
8068 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8070 test -n "$tmp" && test -d "$tmp"
8072 tmp=$TMPDIR/foo$$-$RANDOM
8073 (umask 077 && mkdir "$tmp")
8076 echo "{" > "$tmp/export.map"
8077 echo " global: main;" >> "$tmp/export.map"
8078 echo " local: *;" >> "$tmp/export.map"
8079 echo "};" >> "$tmp/export.map"
8081 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (ac_try="$ac_link"
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_link") 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8131 llvm_cv_link_use_version_script=yes
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 llvm_cv_link_use_version_script=no
8139 rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 rm "$tmp/export.map"
8145 ac_cpp='$CPP $CPPFLAGS'
8146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8152 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8153 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8154 if test "$llvm_cv_link_use_version_script" = yes ; then
8155 HAVE_LINK_VERSION_SCRIPT=1
8162 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8163 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8164 if test "${ac_cv_c_const+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8177 /* FIXME: Include the comments suggested by Paul. */
8179 /* Ultrix mips cc rejects this. */
8180 typedef int charset[2];
8182 /* SunOS 4.1.1 cc rejects this. */
8183 char const *const *ccp;
8185 /* NEC SVR4.0.2 mips cc rejects this. */
8186 struct point {int x, y;};
8187 static struct point const zero = {0,0};
8188 /* AIX XL C 1.02.0.0 rejects this.
8189 It does not let you subtract one const X* pointer from another in
8190 an arm of an if-expression whose if-part is not a constant
8192 const char *g = "string";
8193 ccp = &g + (g ? g-g : 0);
8194 /* HPUX 7.0 cc rejects these. */
8197 ccp = (char const *const *) p;
8198 { /* SCO 3.2v4 cc rejects this. */
8200 char const *s = 0 ? (char *) 0 : (char const *) 0;
8205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8207 const int *foo = &x[0];
8210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8211 typedef const int *iptr;
8215 { /* AIX XL C 1.02.0.0 rejects this saying
8216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8217 struct s { int j; const int *ap[3]; };
8218 struct s *b; b->j = 5;
8220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8224 return !x[0] && !zero.x;
8231 rm -f conftest.$ac_objext
8232 if { (ac_try="$ac_compile"
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_compile") 2>conftest.er1
8240 grep -v '^ *+' conftest.er1 >conftest.err
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246 { (case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_try") 2>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8276 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8277 if test $ac_cv_c_const = no; then
8279 cat >>confdefs.h <<\_ACEOF
8291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8292 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8293 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8294 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331 { (case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_try") 2>&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8350 eval "$as_ac_Header=yes"
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 eval "$as_ac_Header=no"
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 ac_res=`eval echo '${'$as_ac_Header'}'`
8361 { echo "$as_me:$LINENO: result: $ac_res" >&5
8362 echo "${ECHO_T}$ac_res" >&6; }
8363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8364 cat >>confdefs.h <<_ACEOF
8365 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8368 ac_header_dirent=$ac_hdr; break
8372 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8373 if test $ac_header_dirent = dirent.h; then
8374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8376 if test "${ac_cv_search_opendir+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 ac_func_search_save_LIBS=$LIBS
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8387 /* Override any GCC internal prototype to avoid an error.
8388 Use char because int might match the return type of a GCC
8389 builtin and then its argument prototype would still apply. */
8402 for ac_lib in '' dir; do
8403 if test -z "$ac_lib"; then
8404 ac_res="none required"
8407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (ac_try="$ac_link"
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_link") 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8443 ac_cv_search_opendir=$ac_res
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8451 rm -f core conftest.err conftest.$ac_objext \
8453 if test "${ac_cv_search_opendir+set}" = set; then
8457 if test "${ac_cv_search_opendir+set}" = set; then
8460 ac_cv_search_opendir=no
8463 LIBS=$ac_func_search_save_LIBS
8465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8467 ac_res=$ac_cv_search_opendir
8468 if test "$ac_res" != no; then
8469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8474 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8475 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8476 if test "${ac_cv_search_opendir+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 ac_func_search_save_LIBS=$LIBS
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8487 /* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8502 for ac_lib in '' x; do
8503 if test -z "$ac_lib"; then
8504 ac_res="none required"
8507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (ac_try="$ac_link"
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_link") 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_try") 2>&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8543 ac_cv_search_opendir=$ac_res
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8551 rm -f core conftest.err conftest.$ac_objext \
8553 if test "${ac_cv_search_opendir+set}" = set; then
8557 if test "${ac_cv_search_opendir+set}" = set; then
8560 ac_cv_search_opendir=no
8563 LIBS=$ac_func_search_save_LIBS
8565 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8566 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8567 ac_res=$ac_cv_search_opendir
8568 if test "$ac_res" != no; then
8569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8576 for ac_header in dlfcn.h
8578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 ac_res=`eval echo '${'$as_ac_Header'}'`
8586 { echo "$as_me:$LINENO: result: $ac_res" >&5
8587 echo "${ECHO_T}$ac_res" >&6; }
8589 # Is the header compilable?
8590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8598 $ac_includes_default
8599 #include <$ac_header>
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8610 grep -v '^ *+' conftest.er1 >conftest.err
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_try") 2>&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8635 ac_header_compiler=yes
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_header_compiler=no
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 echo "${ECHO_T}$ac_header_compiler" >&6; }
8647 # Is the header present?
8648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8650 cat >conftest.$ac_ext <<_ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #include <$ac_header>
8658 if { (ac_try="$ac_cpp conftest.$ac_ext"
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8666 grep -v '^ *+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } >/dev/null; then
8671 if test -s conftest.err; then
8672 ac_cpp_err=$ac_c_preproc_warn_flag
8673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8680 if test -z "$ac_cpp_err"; then
8681 ac_header_preproc=yes
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 ac_header_preproc=no
8689 rm -f conftest.err conftest.$ac_ext
8690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691 echo "${ECHO_T}$ac_header_preproc" >&6; }
8693 # So? What about this header?
8694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700 ac_header_preproc=yes
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8716 ## ------------------------------------ ##
8717 ## Report this to http://llvm.org/bugs/ ##
8718 ## ------------------------------------ ##
8720 ) | sed "s/^/$as_me: WARNING: /" >&2
8723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 eval "$as_ac_Header=\$ac_header_preproc"
8730 ac_res=`eval echo '${'$as_ac_Header'}'`
8731 { echo "$as_me:$LINENO: result: $ac_res" >&5
8732 echo "${ECHO_T}$ac_res" >&6; }
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736 cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8744 # Check whether --enable-ltdl-install was given.
8745 if test "${enable_ltdl_install+set}" = set; then
8746 enableval=$enable_ltdl_install;
8752 if test x"${enable_ltdl_install-no}" != xno; then
8754 INSTALL_LTDL_FALSE='#'
8756 INSTALL_LTDL_TRUE='#'
8762 if test x"${enable_ltdl_convenience-no}" != xno; then
8763 CONVENIENCE_LTDL_TRUE=
8764 CONVENIENCE_LTDL_FALSE='#'
8766 CONVENIENCE_LTDL_TRUE='#'
8767 CONVENIENCE_LTDL_FALSE=
8771 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8774 libname_spec='lib$name'
8782 shlibpath_overrides_runpath=unknown
8784 dynamic_linker="$host_os ld.so"
8785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786 if test "$GCC" = yes; then
8787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789 # if the path contains ";" then we assume it to be the separator
8790 # otherwise default to the standard path separator (i.e. ":") - it is
8791 # assumed that no part of a normal pathname contains ";" but that should
8792 # okay in the real world where ";" in dirpaths is itself problematic.
8793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8800 need_lib_prefix=unknown
8801 hardcode_into_libs=no
8803 # when you set need_version to no, make sure it does not cause -set_version
8804 # flags to be left without arguments
8805 need_version=unknown
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811 shlibpath_var=LIBPATH
8813 # AIX 3 has no versioning support, so we append a major version to the name.
8814 soname_spec='${libname}${release}${shared_ext}$major'
8821 hardcode_into_libs=yes
8822 if test "$host_cpu" = ia64; then
8823 # AIX 5 supports IA64
8824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825 shlibpath_var=LD_LIBRARY_PATH
8827 # With GCC up to 2.95.x, collect2 would create an import file
8828 # for dependence libraries. The import file would start with
8829 # the line `#! .'. This would cause the generated library to
8830 # depend on `.', always an invalid library. This was fixed in
8831 # development snapshots of GCC prior to 3.0.
8833 aix4 | aix4.[01] | aix4.[01].*)
8834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8836 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844 # soname into executable. Probably we can add versioning support to
8845 # collect2, so additional links can be useful in future.
8846 if test "$aix_use_runtimelinking" = yes; then
8847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848 # instead of lib<name>.a to let people know that these are not
8849 # typical AIX shared libraries.
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 # We preserve .a as extension for shared libraries through AIX4.2
8853 # and later when we are not doing run time linking.
8854 library_names_spec='${libname}${release}.a $libname.a'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LIBPATH
8862 library_names_spec='$libname.ixlibrary $libname.a'
8863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864 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'
8868 library_names_spec='${libname}${shared_ext}'
8869 dynamic_linker="$host_os ld.so"
8870 shlibpath_var=LIBRARY_PATH
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882 # the default ld.so.conf also contains /usr/contrib/lib and
8883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884 # libtool to hard-code these into programs
8887 cygwin* | mingw* | pw32*)
8888 version_type=windows
8893 case $GCC,$host_os in
8894 yes,cygwin* | yes,mingw* | yes,pw32*)
8895 library_names_spec='$libname.dll.a'
8896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897 postinstall_cmds='base_file=`basename \${file}`~
8898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899 dldir=$destdir/`dirname \$dlpath`~
8900 test -d \$dldir || mkdir -p \$dldir~
8901 $install_prog $dir/$dlname \$dldir/$dlname~
8902 chmod a+x \$dldir/$dlname'
8903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904 dlpath=$dir/\$dldll~
8906 shlibpath_overrides_runpath=yes
8910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8915 # MinGW DLLs use traditional 'lib' prefix
8916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919 # It is most probably a Windows format PATH printed by
8920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921 # path with ; separators, and with drive letters. We can handle the
8922 # drive letters (cygwin fileutils understands them), so leave them,
8923 # especially as we might pass files found there to a mingw objdump,
8924 # which wouldn't understand a cygwinified path. Ahh.
8925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8931 # pw32 DLLs use 'pw' prefix rather than 'lib'
8932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8941 dynamic_linker='Win32 ld.exe'
8942 # FIXME: first we should search . and the directory the executable is in
8946 darwin* | rhapsody*)
8947 dynamic_linker="$host_os dyld"
8951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952 soname_spec='${libname}${release}${major}$shared_ext'
8953 shlibpath_overrides_runpath=yes
8954 shlibpath_var=DYLD_LIBRARY_PATH
8955 shrext_cmds='.dylib'
8956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957 if test "$GCC" = yes; then
8958 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"`
8960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 hardcode_into_libs=yes
8987 dynamic_linker='GNU ld.so'
8990 freebsd* | dragonfly*)
8991 # DragonFly does not have aout. When/if they implement a new
8992 # versioning mechanism, adjust this.
8993 if test -x /usr/bin/objformat; then
8994 objformat=`/usr/bin/objformat`
8997 freebsd[123].*) objformat=aout ;;
9001 version_type=freebsd-$objformat
9002 case $version_type in
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9013 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9018 freebsd3.[01]* | freebsdelf3.[01]*)
9019 shlibpath_overrides_runpath=yes
9020 hardcode_into_libs=yes
9022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024 shlibpath_overrides_runpath=no
9025 hardcode_into_libs=yes
9027 freebsd*) # from 4.6 on
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 hardcode_into_libs=yes
9044 hpux9* | hpux10* | hpux11*)
9045 # Give a soname corresponding to the major version so that dld.sl refuses to
9046 # link against other versions.
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.so"
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 if test "X$HPUX_IA64_MODE" = X32; then
9060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9068 hardcode_into_libs=yes
9069 dynamic_linker="$host_os dld.sl"
9070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9079 dynamic_linker="$host_os dld.sl"
9080 shlibpath_var=SHLIB_PATH
9081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
9086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087 postinstall_cmds='chmod 555 $lib'
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9102 irix5* | irix6* | nonstopux*)
9104 nonstopux*) version_type=nonstopux ;;
9106 if test "$lt_cv_prog_gnu_ld" = yes; then
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9117 irix5* | nonstopux*)
9121 case $LD in # libtool.m4 will add one of these switches to LD
9122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123 libsuff= shlibsuff= libmagic=32-bit;;
9124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125 libsuff=32 shlibsuff=N32 libmagic=N32;;
9126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128 *) libsuff= shlibsuff= libmagic=never-match;;
9132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136 hardcode_into_libs=yes
9139 # No shared lib support for Linux oldld, aout, or coff.
9140 linux*oldld* | linux*aout* | linux*coff*)
9144 # This must be Linux ELF.
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 # This implies no fast_install, which is unacceptable.
9155 # Some rework will be needed to allow for fast_install
9156 # before this can be enabled.
9157 hardcode_into_libs=yes
9159 # Append ld.so.conf contents to the search path
9160 if test -f /etc/ld.so.conf; then
9161 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' ' '`
9162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9165 # We used to test for /lib/ld.so.1 and disable shared libraries on
9166 # powerpc, because MkLinux only supported shared libraries with the
9167 # GNU dynamic linker. Since this was broken with cross compilers,
9168 # most powerpc-linux boxes support dynamic linking these days and
9169 # people can always --disable-shared, the test was removed, and we
9170 # assume the GNU/Linux dynamic linker is in use.
9171 dynamic_linker='GNU/Linux ld.so'
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=no
9182 hardcode_into_libs=yes
9183 dynamic_linker='GNU ld.so'
9190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193 dynamic_linker='NetBSD (a.out) ld.so'
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 dynamic_linker='NetBSD ld.elf_so'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9223 sys_lib_dlsearch_path_spec="/usr/lib"
9225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228 *) need_version=no ;;
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9235 openbsd2.[89] | openbsd2.[89].*)
9236 shlibpath_overrides_runpath=no
9239 shlibpath_overrides_runpath=yes
9243 shlibpath_overrides_runpath=yes
9248 libname_spec='$name'
9251 library_names_spec='$libname${shared_ext} $libname.a'
9252 dynamic_linker='OS/2 ld.exe'
9253 shlibpath_var=LIBPATH
9256 osf3* | osf4* | osf5*)
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=yes
9275 hardcode_into_libs=yes
9276 # ldd complains unless libraries are executable
9277 postinstall_cmds='chmod +x $lib'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=yes
9286 if test "$with_gnu_ld" = yes; then
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 case $host_vendor in
9299 shlibpath_overrides_runpath=no
9301 export_dynamic_flag_spec='${wl}-Blargedynsym'
9302 runpath_var=LD_RUN_PATH
9310 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9317 if test -d /usr/nec ;then
9319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320 soname_spec='$libname${shared_ext}.$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326 version_type=freebsd-elf
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 hardcode_into_libs=yes
9333 if test "$with_gnu_ld" = yes; then
9334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335 shlibpath_overrides_runpath=no
9337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338 shlibpath_overrides_runpath=yes
9341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9345 sys_lib_dlsearch_path_spec='/usr/lib'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360 echo "${ECHO_T}$dynamic_linker" >&6; }
9361 test "$dynamic_linker" = no && can_build_shared=no
9363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364 if test "$GCC" = yes; then
9365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9369 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9370 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9371 if test "${libltdl_cv_shlibext+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 eval libltdl_cv_shlibext=$shrext_cmds
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9380 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9381 if test -n "$libltdl_cv_shlibext"; then
9383 cat >>confdefs.h <<_ACEOF
9384 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9390 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9391 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9392 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 libltdl_cv_shlibpath_var="$shlibpath_var"
9397 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9398 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9399 if test -n "$libltdl_cv_shlibpath_var"; then
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9408 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9409 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9410 if test "${libltdl_cv_sys_search_path+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9415 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9416 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9417 if test -n "$libltdl_cv_sys_search_path"; then
9419 for dir in $libltdl_cv_sys_search_path; do
9420 if test -z "$sys_search_path"; then
9421 sys_search_path="$dir"
9423 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9427 cat >>confdefs.h <<_ACEOF
9428 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9433 { echo "$as_me:$LINENO: checking for objdir" >&5
9434 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9435 if test "${libltdl_cv_objdir+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 libltdl_cv_objdir="$objdir"
9439 if test -n "$objdir"; then
9442 rm -f .libs 2>/dev/null
9443 mkdir .libs 2>/dev/null
9444 if test -d .libs; then
9445 libltdl_cv_objdir=.libs
9447 # MS-DOS does not allow filenames that begin with a dot.
9448 libltdl_cv_objdir=_libs
9450 rmdir .libs 2>/dev/null
9454 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9455 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9457 cat >>confdefs.h <<_ACEOF
9458 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9466 # Check for command to grab the raw symbol name followed by C symbol from nm.
9467 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 # These are sane defaults that work on at least a few old systems.
9474 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9476 # Character class describing NM global symbol codes.
9477 symcode='[BCDEGRST]'
9479 # Regexp to match symbols that can be accessed directly from C.
9480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9482 # Transform an extracted symbol line into a proper C declaration
9483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9485 # Transform an extracted symbol line into symbol name and symbol address
9486 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'"
9488 # Define system-specific variables.
9493 cygwin* | mingw* | pw32*)
9494 symcode='[ABCDGISTW]'
9496 hpux*) # Its linker distinguishes data from code symbols
9497 if test "$host_cpu" = ia64; then
9498 symcode='[ABCDEGRST]'
9500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9501 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'"
9504 if test "$host_cpu" = ia64; then
9505 symcode='[ABCDGIRSTW]'
9506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9507 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'"
9511 symcode='[BCDEGRST]'
9514 symcode='[BCDEGQRST]'
9525 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9533 # Handle CRLF in mingw tool chain
9537 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9541 # If we're using GNU nm, then use its standard symbol codes.
9542 case `$NM -V 2>&1` in
9543 *GNU* | *'with BFD'*)
9544 symcode='[ABCDGIRSTW]' ;;
9547 # Try without a prefix undercore, then with it.
9548 for ac_symprfx in "" "_"; do
9550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9551 symxfrm="\\1 $ac_symprfx\\2 \\2"
9553 # Write the raw and C identifiers.
9554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9556 # Check to see that the pipe works correctly.
9560 cat > conftest.$ac_ext <<EOF
9565 void nm_test_func(){}
9569 int main(){nm_test_var='a';nm_test_func();return(0);}
9572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573 (eval $ac_compile) 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; then
9577 # Now try to grab the symbols.
9579 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && test -s "$nlist"; then
9584 # Try sorting and uniquifying the output.
9585 if sort "$nlist" | uniq > "$nlist"T; then
9586 mv -f "$nlist"T "$nlist"
9591 # Make sure that we snagged all the symbols we need.
9592 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9593 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9594 cat <<EOF > conftest.$ac_ext
9600 # Now generate the symbol file.
9601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9603 cat <<EOF >> conftest.$ac_ext
9604 #if defined (__STDC__) && __STDC__
9605 # define lt_ptr_t void *
9607 # define lt_ptr_t char *
9611 /* The mapping between symbol names and symbols. */
9616 lt_preloaded_symbols[] =
9619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9620 cat <<\EOF >> conftest.$ac_ext
9628 # Now try linking the two files.
9629 mv conftest.$ac_objext conftstm.$ac_objext
9630 lt_save_LIBS="$LIBS"
9631 lt_save_CFLAGS="$CFLAGS"
9632 LIBS="conftstm.$ac_objext"
9633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635 (eval $ac_link) 2>&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9641 LIBS="$lt_save_LIBS"
9642 CFLAGS="$lt_save_CFLAGS"
9644 echo "cannot find nm_test_func in $nlist" >&5
9647 echo "cannot find nm_test_var in $nlist" >&5
9650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9653 echo "$progname: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9656 rm -f conftest* conftst*
9658 # Do not use the global_symbol_pipe unless it works.
9659 if test "$pipe_works" = yes; then
9662 lt_cv_sys_global_symbol_pipe=
9668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9669 lt_cv_sys_global_symbol_to_cdecl=
9671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9672 { echo "$as_me:$LINENO: result: failed" >&5
9673 echo "${ECHO_T}failed" >&6; }
9675 { echo "$as_me:$LINENO: result: ok" >&5
9676 echo "${ECHO_T}ok" >&6; }
9680 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9681 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9682 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9686 libltdl_cv_preloaded_symbols=yes
9688 libltdl_cv_preloaded_symbols=no
9692 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9693 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9694 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9696 cat >>confdefs.h <<\_ACEOF
9697 #define HAVE_PRELOADED_SYMBOLS 1
9705 ac_cpp='$CPP $CPPFLAGS'
9706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9711 { echo "$as_me:$LINENO: checking for shl_load" >&5
9712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9713 if test "${ac_cv_func_shl_load+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724 #define shl_load innocuous_shl_load
9726 /* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char shl_load (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9732 # include <limits.h>
9734 # include <assert.h>
9739 /* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
9746 /* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749 #if defined __stub_shl_load || defined __stub___shl_load
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776 { (case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_try") 2>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_func_shl_load=yes
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_cv_func_shl_load=no
9803 rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9806 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9808 if test $ac_cv_func_shl_load = yes; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_SHL_LOAD 1
9815 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 ac_check_lib_save_LIBS=$LIBS
9822 cat >conftest.$ac_ext <<_ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_lib_dld_shl_load=yes
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_cv_lib_dld_shl_load=no
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9891 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9892 if test $ac_cv_lib_dld_shl_load = yes; then
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_SHL_LOAD 1
9898 LIBADD_DL="$LIBADD_DL -ldld"
9900 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 ac_check_lib_save_LIBS=$LIBS
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9914 /* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (ac_try="$ac_link"
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_link") 2>conftest.er1
9938 grep -v '^ *+' conftest.er1 >conftest.err
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944 { (case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_try") 2>&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_try") 2>&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
9963 ac_cv_lib_dl_dlopen=yes
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 ac_cv_lib_dl_dlopen=no
9971 rm -f core conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9977 if test $ac_cv_lib_dl_dlopen = yes; then
9979 cat >>confdefs.h <<\_ACEOF
9980 #define HAVE_LIBDL 1
9983 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018 { (case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_try") 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_LIBDL 1
10041 libltdl_cv_func_dlopen="yes"
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 ac_check_lib_save_LIBS=$LIBS
10052 LIBS="-lsvld $LIBS"
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10060 /* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (ac_try="$ac_link"
10077 case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_link") 2>conftest.er1
10084 grep -v '^ *+' conftest.er1 >conftest.err
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090 { (case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_try") 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest$ac_exeext'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_lib_svld_dlopen=yes
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_cv_lib_svld_dlopen=no
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10121 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10123 if test $ac_cv_lib_svld_dlopen = yes; then
10125 cat >>confdefs.h <<\_ACEOF
10126 #define HAVE_LIBDL 1
10129 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10131 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10132 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10133 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 ac_check_lib_save_LIBS=$LIBS
10138 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10145 /* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
10155 return dld_link ();
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10169 grep -v '^ *+' conftest.er1 >conftest.err
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_lib_dld_dld_link=yes
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 ac_cv_lib_dld_dld_link=no
10202 rm -f core conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10208 if test $ac_cv_lib_dld_dld_link = yes; then
10210 cat >>confdefs.h <<\_ACEOF
10214 LIBADD_DL="$LIBADD_DL -ldld"
10216 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10217 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10218 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 cat >conftest.$ac_ext <<_ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10229 #define _dyld_func_lookup innocuous__dyld_func_lookup
10231 /* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char _dyld_func_lookup (); below.
10233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234 <limits.h> exists even on freestanding compilers. */
10237 # include <limits.h>
10239 # include <assert.h>
10242 #undef _dyld_func_lookup
10244 /* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10250 char _dyld_func_lookup ();
10251 /* The GNU C library defines this for functions which it implements
10252 to always fail with ENOSYS. Some functions are actually named
10253 something starting with __ and the normal name is an alias. */
10254 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10261 return _dyld_func_lookup ();
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (ac_try="$ac_link"
10268 case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_link") 2>conftest.er1
10275 grep -v '^ *+' conftest.er1 >conftest.err
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281 { (case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_try") 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest$ac_exeext'
10291 { (case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_try") 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ac_cv_func__dyld_func_lookup=yes
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 ac_cv_func__dyld_func_lookup=no
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10311 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10312 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10313 if test $ac_cv_func__dyld_func_lookup = yes; then
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_DYLD 1
10330 rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10342 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10344 lt_save_LIBS="$LIBS"
10345 LIBS="$LIBS $LIBADD_DL"
10347 for ac_func in dlerror
10349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 cat >conftest.$ac_ext <<_ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10363 #define $ac_func innocuous_$ac_func
10365 /* System header to define __stub macros and hopefully few prototypes,
10366 which can conflict with char $ac_func (); below.
10367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368 <limits.h> exists even on freestanding compilers. */
10371 # include <limits.h>
10373 # include <assert.h>
10378 /* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
10385 /* The GNU C library defines this for functions which it implements
10386 to always fail with ENOSYS. Some functions are actually named
10387 something starting with __ and the normal name is an alias. */
10388 #if defined __stub_$ac_func || defined __stub___$ac_func
10395 return $ac_func ();
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10409 grep -v '^ *+' conftest.er1 >conftest.err
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415 { (case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_try") 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_try") 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 eval "$as_ac_var=yes"
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 eval "$as_ac_var=no"
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10445 ac_res=`eval echo '${'$as_ac_var'}'`
10446 { echo "$as_me:$LINENO: result: $ac_res" >&5
10447 echo "${ECHO_T}$ac_res" >&6; }
10448 if test `eval echo '${'$as_ac_var'}'` = yes; then
10449 cat >>confdefs.h <<_ACEOF
10450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10456 LIBS="$lt_save_LIBS"
10459 ac_cpp='$CPP $CPPFLAGS'
10460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10467 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10468 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 ac_cv_sys_symbol_underscore=no
10472 cat > conftest.$ac_ext <<EOF
10473 void nm_test_func(){}
10474 int main(){nm_test_func;return 0;}
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; then
10481 # Now try to grab the symbols.
10482 ac_nlist=conftest.nm
10483 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10484 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } && test -s "$ac_nlist"; then
10488 # See whether the symbols have a leading underscore.
10489 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10490 ac_cv_sys_symbol_underscore=yes
10492 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10495 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10499 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10502 echo "configure: failed program was:" >&5
10508 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10509 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10512 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10513 if test x"$libltdl_cv_func_dlopen" = xyes ||
10514 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10515 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10516 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10517 if test "${libltdl_cv_need_uscore+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 libltdl_cv_need_uscore=unknown
10522 LIBS="$LIBS $LIBADD_DL"
10523 if test "$cross_compiling" = yes; then :
10524 libltdl_cv_need_uscore=cross
10526 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527 lt_status=$lt_dlunknown
10528 cat > conftest.$ac_ext <<EOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10539 # define LT_DLGLOBAL RTLD_GLOBAL
10542 # define LT_DLGLOBAL DL_GLOBAL
10544 # define LT_DLGLOBAL 0
10548 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549 find out it does not work in some platform. */
10550 #ifndef LT_DLLAZY_OR_NOW
10552 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10555 # define LT_DLLAZY_OR_NOW DL_LAZY
10558 # define LT_DLLAZY_OR_NOW RTLD_NOW
10561 # define LT_DLLAZY_OR_NOW DL_NOW
10563 # define LT_DLLAZY_OR_NOW 0
10571 extern "C" void exit (int);
10574 void fnord() { int i=42;}
10577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578 int status = $lt_dlunknown;
10582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10583 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584 /* dlclose (self); */
10592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593 (eval $ac_link) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10597 (./conftest; exit; ) >&5 2>/dev/null
10599 case x$lt_status in
10600 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10601 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10602 x$lt_dlunknown|x*) ;;
10605 # compilation failed
10614 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10615 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10619 if test x"$libltdl_cv_need_uscore" = xyes; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define NEED_USCORE 1
10628 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10629 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10630 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 # PORTME does your system automatically load deplibs for dlopen?
10634 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10635 # For now, we just catch OSes we know something about -- in the
10636 # future, we'll try test this programmatically.
10637 libltdl_cv_sys_dlopen_deplibs=unknown
10639 aix3*|aix4.1.*|aix4.2.*)
10640 # Unknown whether this is true for these versions of AIX, but
10641 # we want this `case' here to explicitly catch those versions.
10642 libltdl_cv_sys_dlopen_deplibs=unknown
10645 libltdl_cv_sys_dlopen_deplibs=yes
10648 # Assuming the user has installed a libdl from somewhere, this is true
10649 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10650 libltdl_cv_sys_dlopen_deplibs=yes
10652 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10653 # GNU and its variants, using gnu ld.so (Glibc)
10654 libltdl_cv_sys_dlopen_deplibs=yes
10657 libltdl_cv_sys_dlopen_deplibs=yes
10660 libltdl_cv_sys_dlopen_deplibs=yes
10662 irix[12345]*|irix6.[01]*)
10663 # Catch all versions of IRIX before 6.2, and indicate that we don't
10664 # know how it worked for any of those versions.
10665 libltdl_cv_sys_dlopen_deplibs=unknown
10668 # The case above catches anything before 6.2, and it's known that
10669 # at 6.2 and later dlopen does load deplibs.
10670 libltdl_cv_sys_dlopen_deplibs=yes
10673 libltdl_cv_sys_dlopen_deplibs=yes
10676 libltdl_cv_sys_dlopen_deplibs=yes
10679 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10680 # it did *not* use an RPATH in a shared library to find objects the
10681 # library depends on, so we explicitly say `no'.
10682 libltdl_cv_sys_dlopen_deplibs=no
10684 osf5.0|osf5.0a|osf5.1)
10685 # dlopen *does* load deplibs and with the right loader patch applied
10686 # it even uses RPATH in a shared library to search for shared objects
10687 # that the library depends on, but there's no easy way to know if that
10688 # patch is installed. Since this is the case, all we can really
10689 # say is unknown -- it depends on the patch being installed. If
10690 # it is, this changes to `yes'. Without it, it would be `no'.
10691 libltdl_cv_sys_dlopen_deplibs=unknown
10694 # the two cases above should catch all versions of osf <= 5.1. Read
10695 # the comments above for what we know about them.
10696 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10697 # is used to find them so we can finally say `yes'.
10698 libltdl_cv_sys_dlopen_deplibs=yes
10701 libltdl_cv_sys_dlopen_deplibs=yes
10703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10704 libltdl_cv_sys_dlopen_deplibs=yes
10709 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10710 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10711 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10713 cat >>confdefs.h <<\_ACEOF
10714 #define LTDL_DLOPEN_DEPLIBS 1
10720 for ac_header in argz.h
10722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 ac_res=`eval echo '${'$as_ac_Header'}'`
10730 { echo "$as_me:$LINENO: result: $ac_res" >&5
10731 echo "${ECHO_T}$ac_res" >&6; }
10733 # Is the header compilable?
10734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 $ac_includes_default
10743 #include <$ac_header>
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10754 grep -v '^ *+' conftest.er1 >conftest.err
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760 { (case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_try") 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_header_compiler=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_header_compiler=no
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10789 echo "${ECHO_T}$ac_header_compiler" >&6; }
10791 # Is the header present?
10792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 #include <$ac_header>
10802 if { (ac_try="$ac_cpp conftest.$ac_ext"
10803 case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10824 if test -z "$ac_cpp_err"; then
10825 ac_header_preproc=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_header_preproc=no
10833 rm -f conftest.err conftest.$ac_ext
10834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835 echo "${ECHO_T}$ac_header_preproc" >&6; }
10837 # So? What about this header?
10838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844 ac_header_preproc=yes
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10860 ## ------------------------------------ ##
10861 ## Report this to http://llvm.org/bugs/ ##
10862 ## ------------------------------------ ##
10864 ) | sed "s/^/$as_me: WARNING: /" >&2
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 eval "$as_ac_Header=\$ac_header_preproc"
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10889 { echo "$as_me:$LINENO: checking for error_t" >&5
10890 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10891 if test "${ac_cv_type_error_t+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 cat >conftest.$ac_ext <<_ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10904 typedef error_t ac__type_new_;
10908 if ((ac__type_new_ *) 0)
10910 if (sizeof (ac__type_new_))
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 ac_cv_type_error_t=yes
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10955 ac_cv_type_error_t=no
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10962 if test $ac_cv_type_error_t = yes; then
10964 cat >>confdefs.h <<_ACEOF
10965 #define HAVE_ERROR_T 1
10971 cat >>confdefs.h <<\_ACEOF
10972 #define error_t int
10983 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 cat >conftest.$ac_ext <<_ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10999 #define $ac_func innocuous_$ac_func
11001 /* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below.
11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004 <limits.h> exists even on freestanding compilers. */
11007 # include <limits.h>
11009 # include <assert.h>
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11021 /* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024 #if defined __stub_$ac_func || defined __stub___$ac_func
11031 return $ac_func ();
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_try") 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest$ac_exeext'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 eval "$as_ac_var=yes"
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 eval "$as_ac_var=no"
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11081 ac_res=`eval echo '${'$as_ac_var'}'`
11082 { echo "$as_me:$LINENO: result: $ac_res" >&5
11083 echo "${ECHO_T}$ac_res" >&6; }
11084 if test `eval echo '${'$as_ac_var'}'` = yes; then
11085 cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11119 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11133 # Is the header compilable?
11134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 $ac_includes_default
11143 #include <$ac_header>
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11154 grep -v '^ *+' conftest.er1 >conftest.err
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_header_compiler=yes
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_header_compiler=no
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189 echo "${ECHO_T}$ac_header_compiler" >&6; }
11191 # Is the header present?
11192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 #include <$ac_header>
11202 if { (ac_try="$ac_cpp conftest.$ac_ext"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null; then
11215 if test -s conftest.err; then
11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11224 if test -z "$ac_cpp_err"; then
11225 ac_header_preproc=yes
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_header_preproc=no
11233 rm -f conftest.err conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235 echo "${ECHO_T}$ac_header_preproc" >&6; }
11237 # So? What about this header?
11238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244 ac_header_preproc=yes
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11260 ## ------------------------------------ ##
11261 ## Report this to http://llvm.org/bugs/ ##
11262 ## ------------------------------------ ##
11264 ) | sed "s/^/$as_me: WARNING: /" >&2
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 eval "$as_ac_Header=\$ac_header_preproc"
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11292 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11305 # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 $ac_includes_default
11315 #include <$ac_header>
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_header_compiler=yes
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_header_compiler=no
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361 echo "${ECHO_T}$ac_header_compiler" >&6; }
11363 # Is the header present?
11364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 #include <$ac_header>
11374 if { (ac_try="$ac_cpp conftest.$ac_ext"
11375 case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11382 grep -v '^ *+' conftest.er1 >conftest.err
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } >/dev/null; then
11387 if test -s conftest.err; then
11388 ac_cpp_err=$ac_c_preproc_warn_flag
11389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11396 if test -z "$ac_cpp_err"; then
11397 ac_header_preproc=yes
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 ac_header_preproc=no
11405 rm -f conftest.err conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407 echo "${ECHO_T}$ac_header_preproc" >&6; }
11409 # So? What about this header?
11410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11416 ac_header_preproc=yes
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11426 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11432 ## ------------------------------------ ##
11433 ## Report this to http://llvm.org/bugs/ ##
11434 ## ------------------------------------ ##
11436 ) | sed "s/^/$as_me: WARNING: /" >&2
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 eval "$as_ac_Header=\$ac_header_preproc"
11446 ac_res=`eval echo '${'$as_ac_Header'}'`
11447 { echo "$as_me:$LINENO: result: $ac_res" >&5
11448 echo "${ECHO_T}$ac_res" >&6; }
11451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11452 cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11462 for ac_header in string.h strings.h
11464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472 { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11475 # Is the header compilable?
11476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11478 cat >conftest.$ac_ext <<_ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11484 $ac_includes_default
11485 #include <$ac_header>
11487 rm -f conftest.$ac_objext
11488 if { (ac_try="$ac_compile"
11489 case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_compile") 2>conftest.er1
11496 grep -v '^ *+' conftest.er1 >conftest.err
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_try") 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_header_compiler=yes
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_header_compiler=no
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 #include <$ac_header>
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11552 grep -v '^ *+' conftest.er1 >conftest.err
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null; then
11557 if test -s conftest.err; then
11558 ac_cpp_err=$ac_c_preproc_warn_flag
11559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11566 if test -z "$ac_cpp_err"; then
11567 ac_header_preproc=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_header_preproc=no
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11579 # So? What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586 ac_header_preproc=yes
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11602 ## ------------------------------------ ##
11603 ## Report this to http://llvm.org/bugs/ ##
11604 ## ------------------------------------ ##
11606 ) | sed "s/^/$as_me: WARNING: /" >&2
11609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 eval "$as_ac_Header=\$ac_header_preproc"
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617 { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622 cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11633 for ac_func in strchr index
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649 #define $ac_func innocuous_$ac_func
11651 /* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char $ac_func (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11657 # include <limits.h>
11659 # include <assert.h>
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11671 /* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11681 return $ac_func ();
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 eval "$as_ac_var=yes"
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 eval "$as_ac_var=no"
11728 rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11744 for ac_func in strrchr rindex
11746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760 #define $ac_func innocuous_$ac_func
11762 /* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
11768 # include <limits.h>
11770 # include <assert.h>
11775 /* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11782 /* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785 #if defined __stub_$ac_func || defined __stub___$ac_func
11792 return $ac_func ();
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_link") 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812 { (case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_try") 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest$ac_exeext'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 eval "$as_ac_var=yes"
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 eval "$as_ac_var=no"
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11842 ac_res=`eval echo '${'$as_ac_var'}'`
11843 { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11845 if test `eval echo '${'$as_ac_var'}'` = yes; then
11846 cat >>confdefs.h <<_ACEOF
11847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11855 for ac_func in memcpy bcopy
11857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 cat >conftest.$ac_ext <<_ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11871 #define $ac_func innocuous_$ac_func
11873 /* System header to define __stub macros and hopefully few prototypes,
11874 which can conflict with char $ac_func (); below.
11875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876 <limits.h> exists even on freestanding compilers. */
11879 # include <limits.h>
11881 # include <assert.h>
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11893 /* The GNU C library defines this for functions which it implements
11894 to always fail with ENOSYS. Some functions are actually named
11895 something starting with __ and the normal name is an alias. */
11896 #if defined __stub_$ac_func || defined __stub___$ac_func
11903 return $ac_func ();
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 eval "$as_ac_var=yes"
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 eval "$as_ac_var=no"
11950 rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11953 ac_res=`eval echo '${'$as_ac_var'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11966 for ac_func in memmove strcmp
11968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 cat >conftest.$ac_ext <<_ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11982 #define $ac_func innocuous_$ac_func
11984 /* System header to define __stub macros and hopefully few prototypes,
11985 which can conflict with char $ac_func (); below.
11986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987 <limits.h> exists even on freestanding compilers. */
11990 # include <limits.h>
11992 # include <assert.h>
11997 /* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12004 /* The GNU C library defines this for functions which it implements
12005 to always fail with ENOSYS. Some functions are actually named
12006 something starting with __ and the normal name is an alias. */
12007 #if defined __stub_$ac_func || defined __stub___$ac_func
12014 return $ac_func ();
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (ac_try="$ac_link"
12021 case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_link") 2>conftest.er1
12028 grep -v '^ *+' conftest.er1 >conftest.err
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest$ac_exeext'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 eval "$as_ac_var=yes"
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 eval "$as_ac_var=no"
12061 rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12064 ac_res=`eval echo '${'$as_ac_var'}'`
12065 { echo "$as_me:$LINENO: result: $ac_res" >&5
12066 echo "${ECHO_T}$ac_res" >&6; }
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12078 for ac_func in closedir opendir readdir
12080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12094 #define $ac_func innocuous_$ac_func
12096 /* System header to define __stub macros and hopefully few prototypes,
12097 which can conflict with char $ac_func (); below.
12098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099 <limits.h> exists even on freestanding compilers. */
12102 # include <limits.h>
12104 # include <assert.h>
12109 /* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12116 /* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
12119 #if defined __stub_$ac_func || defined __stub___$ac_func
12126 return $ac_func ();
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_link") 2>conftest.er1
12140 grep -v '^ *+' conftest.er1 >conftest.err
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } &&
12145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12146 { (case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_try") 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest$ac_exeext'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 eval "$as_ac_var=yes"
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 eval "$as_ac_var=no"
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12176 ac_res=`eval echo '${'$as_ac_var'}'`
12177 { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12179 if test `eval echo '${'$as_ac_var'}'` = yes; then
12180 cat >>confdefs.h <<_ACEOF
12181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12189 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12190 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12203 if test "$GCC" != "yes" && test "$ICC" != "yes"
12205 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12206 echo "$as_me: error: gcc|icc required but not found" >&2;}
12207 { (exit 1); exit 1; }; }
12210 if test "$GXX" != "yes" && test "$IXX" != "yes"
12212 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12213 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12214 { (exit 1); exit 1; }; }
12217 if test "$GCC" = "yes"
12219 cat >conftest.$ac_ext <<_ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12227 #if !defined(__GNUC__) || __GNUC__ < 3
12228 #error Unsupported GCC version
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest.$ac_objext'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12273 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12274 { (exit 1); exit 1; }; }
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 if test -z "$llvm_cv_gnu_make_command"
12282 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12283 echo "$as_me: error: GNU Make required but not found" >&2;}
12284 { (exit 1); exit 1; }; }
12287 { echo "$as_me:$LINENO: result: ok" >&5
12288 echo "${ECHO_T}ok" >&6; }
12290 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12291 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12292 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12294 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12296 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12300 NO_MAYBE_UNINITIALIZED=
12301 if test "$GXX" = "yes"
12303 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12305 if test -z "$NO_MAYBE_UNINITIALIZED"
12307 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12311 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12312 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12315 # Check whether --with-python was given.
12316 if test "${with_python+set}" = set; then
12317 withval=$with_python; PYTHON="$withval"
12321 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12322 { echo "$as_me:$LINENO: checking for python" >&5
12323 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12324 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12325 echo "${ECHO_T}user defined: $with_python" >&6; }
12327 if test -n "$PYTHON" ; then
12328 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12329 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12332 # Extract the first word of "python python2 python26", so it can be a program name with args.
12333 set dummy python python2 python26; ac_word=$2
12334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12336 if test "${ac_cv_path_PYTHON+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12351 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12360 echo "${ECHO_T}not found" >&6; }
12361 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12362 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12363 { (exit 1); exit 1; }; }"
12367 PYTHON=$ac_cv_path_PYTHON
12368 if test -n "$PYTHON"; then
12369 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12370 echo "${ECHO_T}$PYTHON" >&6; }
12372 { echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6; }
12379 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12380 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12381 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12382 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12383 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12384 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12385 if test "$ac_python_version_major" -eq "2" \
12386 && test "$ac_python_version_minor" -ge "5" ; then
12387 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12388 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12390 { echo "$as_me:$LINENO: result: not found" >&5
12391 echo "${ECHO_T}not found" >&6; }
12392 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12393 See \`config.log' for more details." >&5
12394 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12395 See \`config.log' for more details." >&2;}
12396 { (exit 1); exit 1; }; }
12401 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12402 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12403 if test "${ac_cv_lib_m_sin+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 ac_check_lib_save_LIBS=$LIBS
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (ac_try="$ac_link"
12432 case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_link") 2>conftest.er1
12439 grep -v '^ *+' conftest.er1 >conftest.err
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12445 { (case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_try") 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest$ac_exeext'
12455 { (case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_try") 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_cv_lib_m_sin=yes
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12472 rm -f core conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12474 LIBS=$ac_check_lib_save_LIBS
12476 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12477 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12478 if test $ac_cv_lib_m_sin = yes; then
12479 cat >>confdefs.h <<_ACEOF
12480 #define HAVE_LIBM 1
12487 if test "$llvm_cv_os_type" = "MingW" ; then
12489 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12490 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12491 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 ac_check_lib_save_LIBS=$LIBS
12495 LIBS="-limagehlp $LIBS"
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>conftest.er1
12521 grep -v '^ *+' conftest.er1 >conftest.err
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527 { (case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_try") 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest$ac_exeext'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_cv_lib_imagehlp_main=yes
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 ac_cv_lib_imagehlp_main=no
12554 rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12558 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12559 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12560 if test $ac_cv_lib_imagehlp_main = yes; then
12561 cat >>confdefs.h <<_ACEOF
12562 #define HAVE_LIBIMAGEHLP 1
12565 LIBS="-limagehlp $LIBS"
12570 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12571 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12572 if test "${ac_cv_lib_psapi_main+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-lpsapi $LIBS"
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (ac_try="$ac_link"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_link") 2>conftest.er1
12602 grep -v '^ *+' conftest.er1 >conftest.err
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest$ac_exeext'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 ac_cv_lib_psapi_main=yes
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ac_cv_lib_psapi_main=no
12635 rm -f core conftest.err conftest.$ac_objext \
12636 conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_check_lib_save_LIBS
12639 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12640 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12641 if test $ac_cv_lib_psapi_main = yes; then
12642 cat >>confdefs.h <<_ACEOF
12643 #define HAVE_LIBPSAPI 1
12646 LIBS="-lpsapi $LIBS"
12652 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12653 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12654 if test "${ac_cv_search_dlopen+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 ac_func_search_save_LIBS=$LIBS
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12680 for ac_lib in '' dl; do
12681 if test -z "$ac_lib"; then
12682 ac_res="none required"
12685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (ac_try="$ac_link"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_link") 2>conftest.er1
12696 grep -v '^ *+' conftest.er1 >conftest.err
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702 { (case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_try") 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest$ac_exeext'
12712 { (case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_try") 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_cv_search_dlopen=$ac_res
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12729 rm -f core conftest.err conftest.$ac_objext \
12731 if test "${ac_cv_search_dlopen+set}" = set; then
12735 if test "${ac_cv_search_dlopen+set}" = set; then
12738 ac_cv_search_dlopen=no
12740 rm conftest.$ac_ext
12741 LIBS=$ac_func_search_save_LIBS
12743 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12744 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12745 ac_res=$ac_cv_search_dlopen
12746 if test "$ac_res" != no; then
12747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12749 cat >>confdefs.h <<\_ACEOF
12750 #define HAVE_DLOPEN 1
12754 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12755 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12759 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12760 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12761 if test "${ac_cv_search_clock_gettime+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 ac_func_search_save_LIBS=$LIBS
12765 cat >conftest.$ac_ext <<_ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12772 /* Override any GCC internal prototype to avoid an error.
12773 Use char because int might match the return type of a GCC
12774 builtin and then its argument prototype would still apply. */
12778 char clock_gettime ();
12782 return clock_gettime ();
12787 for ac_lib in '' rt; do
12788 if test -z "$ac_lib"; then
12789 ac_res="none required"
12792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (ac_try="$ac_link"
12796 case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_link") 2>conftest.er1
12803 grep -v '^ *+' conftest.er1 >conftest.err
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12809 { (case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_try") 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest$ac_exeext'
12819 { (case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_try") 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_search_clock_gettime=$ac_res
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12836 rm -f core conftest.err conftest.$ac_objext \
12838 if test "${ac_cv_search_clock_gettime+set}" = set; then
12842 if test "${ac_cv_search_clock_gettime+set}" = set; then
12845 ac_cv_search_clock_gettime=no
12847 rm conftest.$ac_ext
12848 LIBS=$ac_func_search_save_LIBS
12850 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12851 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12852 ac_res=$ac_cv_search_clock_gettime
12853 if test "$ac_res" != no; then
12854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12859 if test "$llvm_cv_enable_libffi" = "yes" ; then
12860 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12861 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12862 if test "${ac_cv_search_ffi_call+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 ac_func_search_save_LIBS=$LIBS
12866 cat >conftest.$ac_ext <<_ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12873 /* Override any GCC internal prototype to avoid an error.
12874 Use char because int might match the return type of a GCC
12875 builtin and then its argument prototype would still apply. */
12883 return ffi_call ();
12888 for ac_lib in '' ffi; do
12889 if test -z "$ac_lib"; then
12890 ac_res="none required"
12893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (ac_try="$ac_link"
12897 case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_link") 2>conftest.er1
12904 grep -v '^ *+' conftest.er1 >conftest.err
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12910 { (case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915 (eval "$ac_try") 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest$ac_exeext'
12920 { (case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_try") 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_cv_search_ffi_call=$ac_res
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12937 rm -f core conftest.err conftest.$ac_objext \
12939 if test "${ac_cv_search_ffi_call+set}" = set; then
12943 if test "${ac_cv_search_ffi_call+set}" = set; then
12946 ac_cv_search_ffi_call=no
12948 rm conftest.$ac_ext
12949 LIBS=$ac_func_search_save_LIBS
12951 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12952 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12953 ac_res=$ac_cv_search_ffi_call
12954 if test "$ac_res" != no; then
12955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12957 cat >>confdefs.h <<\_ACEOF
12958 #define HAVE_FFI_CALL 1
12962 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12963 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12964 { (exit 1); exit 1; }; }
12969 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12970 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12971 if test "${ac_cv_search_mallinfo+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 ac_func_search_save_LIBS=$LIBS
12975 cat >conftest.$ac_ext <<_ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12982 /* Override any GCC internal prototype to avoid an error.
12983 Use char because int might match the return type of a GCC
12984 builtin and then its argument prototype would still apply. */
12992 return mallinfo ();
12997 for ac_lib in '' malloc; do
12998 if test -z "$ac_lib"; then
12999 ac_res="none required"
13002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13004 rm -f conftest.$ac_objext conftest$ac_exeext
13005 if { (ac_try="$ac_link"
13006 case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_link") 2>conftest.er1
13013 grep -v '^ *+' conftest.er1 >conftest.err
13015 cat conftest.err >&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } &&
13018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13019 { (case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; } &&
13028 { ac_try='test -s conftest$ac_exeext'
13029 { (case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_try") 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_cv_search_mallinfo=$ac_res
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13046 rm -f core conftest.err conftest.$ac_objext \
13048 if test "${ac_cv_search_mallinfo+set}" = set; then
13052 if test "${ac_cv_search_mallinfo+set}" = set; then
13055 ac_cv_search_mallinfo=no
13057 rm conftest.$ac_ext
13058 LIBS=$ac_func_search_save_LIBS
13060 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13061 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13062 ac_res=$ac_cv_search_mallinfo
13063 if test "$ac_res" != no; then
13064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13066 cat >>confdefs.h <<\_ACEOF
13067 #define HAVE_MALLINFO 1
13073 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13075 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13076 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13077 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 ac_check_lib_save_LIBS=$LIBS
13081 LIBS="-lpthread $LIBS"
13082 cat >conftest.$ac_ext <<_ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13089 /* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13095 char pthread_mutex_init ();
13099 return pthread_mutex_init ();
13104 rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest$ac_exeext'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_cv_lib_pthread_pthread_mutex_init=yes
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ac_cv_lib_pthread_pthread_mutex_init=no
13146 rm -f core conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13150 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13151 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13152 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13153 cat >>confdefs.h <<_ACEOF
13154 #define HAVE_LIBPTHREAD 1
13157 LIBS="-lpthread $LIBS"
13161 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13162 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13163 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 ac_func_search_save_LIBS=$LIBS
13167 cat >conftest.$ac_ext <<_ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13174 /* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13180 char pthread_mutex_lock ();
13184 return pthread_mutex_lock ();
13189 for ac_lib in '' pthread; do
13190 if test -z "$ac_lib"; then
13191 ac_res="none required"
13194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (ac_try="$ac_link"
13198 case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_link") 2>conftest.er1
13205 grep -v '^ *+' conftest.er1 >conftest.err
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211 { (case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_try") 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest$ac_exeext'
13221 { (case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_try") 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_cv_search_pthread_mutex_lock=$ac_res
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13238 rm -f core conftest.err conftest.$ac_objext \
13240 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13244 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13247 ac_cv_search_pthread_mutex_lock=no
13249 rm conftest.$ac_ext
13250 LIBS=$ac_func_search_save_LIBS
13252 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13253 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13254 ac_res=$ac_cv_search_pthread_mutex_lock
13255 if test "$ac_res" != no; then
13256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13258 cat >>confdefs.h <<\_ACEOF
13259 #define HAVE_PTHREAD_MUTEX_LOCK 1
13264 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13265 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13266 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 ac_func_search_save_LIBS=$LIBS
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13277 /* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13283 char pthread_rwlock_init ();
13287 return pthread_rwlock_init ();
13292 for ac_lib in '' pthread; do
13293 if test -z "$ac_lib"; then
13294 ac_res="none required"
13297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13299 rm -f conftest.$ac_objext conftest$ac_exeext
13300 if { (ac_try="$ac_link"
13301 case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_link") 2>conftest.er1
13308 grep -v '^ *+' conftest.er1 >conftest.err
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13314 { (case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_try") 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try='test -s conftest$ac_exeext'
13324 { (case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_try") 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
13333 ac_cv_search_pthread_rwlock_init=$ac_res
13335 echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13341 rm -f core conftest.err conftest.$ac_objext \
13343 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13347 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13350 ac_cv_search_pthread_rwlock_init=no
13352 rm conftest.$ac_ext
13353 LIBS=$ac_func_search_save_LIBS
13355 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13356 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13357 ac_res=$ac_cv_search_pthread_rwlock_init
13358 if test "$ac_res" != no; then
13359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13361 cat >>confdefs.h <<\_ACEOF
13362 #define HAVE_PTHREAD_RWLOCK_INIT 1
13367 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13368 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13369 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 ac_func_search_save_LIBS=$LIBS
13373 cat >conftest.$ac_ext <<_ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h. */
13380 /* Override any GCC internal prototype to avoid an error.
13381 Use char because int might match the return type of a GCC
13382 builtin and then its argument prototype would still apply. */
13386 char pthread_getspecific ();
13390 return pthread_getspecific ();
13395 for ac_lib in '' pthread; do
13396 if test -z "$ac_lib"; then
13397 ac_res="none required"
13400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13402 rm -f conftest.$ac_objext conftest$ac_exeext
13403 if { (ac_try="$ac_link"
13404 case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_link") 2>conftest.er1
13411 grep -v '^ *+' conftest.er1 >conftest.err
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest$ac_exeext'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_search_pthread_getspecific=$ac_res
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13444 rm -f core conftest.err conftest.$ac_objext \
13446 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13450 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13453 ac_cv_search_pthread_getspecific=no
13455 rm conftest.$ac_ext
13456 LIBS=$ac_func_search_save_LIBS
13458 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13459 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13460 ac_res=$ac_cv_search_pthread_getspecific
13461 if test "$ac_res" != no; then
13462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13464 cat >>confdefs.h <<\_ACEOF
13465 #define HAVE_PTHREAD_GETSPECIFIC 1
13472 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13474 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13475 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13476 if test "${ac_cv_lib_z_compress2+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 ac_check_lib_save_LIBS=$LIBS
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13488 /* Override any GCC internal prototype to avoid an error.
13489 Use char because int might match the return type of a GCC
13490 builtin and then its argument prototype would still apply. */
13498 return compress2 ();
13503 rm -f conftest.$ac_objext conftest$ac_exeext
13504 if { (ac_try="$ac_link"
13505 case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_link") 2>conftest.er1
13512 grep -v '^ *+' conftest.er1 >conftest.err
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest$ac_exeext'
13528 { (case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 ac_cv_lib_z_compress2=yes
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_cv_lib_z_compress2=no
13545 rm -f core conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext conftest.$ac_ext
13547 LIBS=$ac_check_lib_save_LIBS
13549 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13550 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13551 if test $ac_cv_lib_z_compress2 = yes; then
13552 cat >>confdefs.h <<_ACEOF
13553 #define HAVE_LIBZ 1
13563 # Check whether --with-udis86 was given.
13564 if test "${with_udis86+set}" = set; then
13565 withval=$with_udis86;
13570 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13573 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13574 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13575 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 ac_check_lib_save_LIBS=$LIBS
13579 LIBS="-ludis86 $LIBS"
13580 cat >conftest.$ac_ext <<_ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13587 /* Override any GCC internal prototype to avoid an error.
13588 Use char because int might match the return type of a GCC
13589 builtin and then its argument prototype would still apply. */
13602 rm -f conftest.$ac_objext conftest$ac_exeext
13603 if { (ac_try="$ac_link"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_link") 2>conftest.er1
13611 grep -v '^ *+' conftest.er1 >conftest.err
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest$ac_exeext'
13627 { (case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_try") 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_cv_lib_udis86_ud_init=yes
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 ac_cv_lib_udis86_ud_init=no
13644 rm -f core conftest.err conftest.$ac_objext \
13645 conftest$ac_exeext conftest.$ac_ext
13646 LIBS=$ac_check_lib_save_LIBS
13648 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13649 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13650 if test $ac_cv_lib_udis86_ud_init = yes; then
13651 cat >>confdefs.h <<_ACEOF
13652 #define HAVE_LIBUDIS86 1
13655 LIBS="-ludis86 $LIBS"
13659 echo "Error! You need to have libudis86 around."
13671 cat >>confdefs.h <<_ACEOF
13672 #define USE_UDIS86 $USE_UDIS86
13677 # Check whether --with-oprofile was given.
13678 if test "${with_oprofile+set}" = set; then
13679 withval=$with_oprofile;
13683 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13684 no) llvm_cv_oppath=
13687 *) llvm_cv_oppath="${withval}/lib/oprofile"
13688 CPPFLAGS="-I${withval}/include";;
13690 case $llvm_cv_os_type in
13692 if test -n "$llvm_cv_oppath" ; then
13693 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13694 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13695 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13696 if test "${ac_cv_search_bfd_init+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 ac_func_search_save_LIBS=$LIBS
13700 cat >conftest.$ac_ext <<_ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13707 /* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13717 return bfd_init ();
13722 for ac_lib in '' bfd; do
13723 if test -z "$ac_lib"; then
13724 ac_res="none required"
13727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13729 rm -f conftest.$ac_objext conftest$ac_exeext
13730 if { (ac_try="$ac_link"
13731 case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_link") 2>conftest.er1
13738 grep -v '^ *+' conftest.er1 >conftest.err
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13744 { (case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_try") 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest$ac_exeext'
13754 { (case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_try") 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_cv_search_bfd_init=$ac_res
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13771 rm -f core conftest.err conftest.$ac_objext \
13773 if test "${ac_cv_search_bfd_init+set}" = set; then
13777 if test "${ac_cv_search_bfd_init+set}" = set; then
13780 ac_cv_search_bfd_init=no
13782 rm conftest.$ac_ext
13783 LIBS=$ac_func_search_save_LIBS
13785 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13786 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13787 ac_res=$ac_cv_search_bfd_init
13788 if test "$ac_res" != no; then
13789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13793 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13794 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13795 if test "${ac_cv_search_op_open_agent+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 ac_func_search_save_LIBS=$LIBS
13799 cat >conftest.$ac_ext <<_ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13806 /* Override any GCC internal prototype to avoid an error.
13807 Use char because int might match the return type of a GCC
13808 builtin and then its argument prototype would still apply. */
13812 char op_open_agent ();
13816 return op_open_agent ();
13821 for ac_lib in '' opagent; do
13822 if test -z "$ac_lib"; then
13823 ac_res="none required"
13826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13828 rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (ac_try="$ac_link"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_link") 2>conftest.er1
13837 grep -v '^ *+' conftest.er1 >conftest.err
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843 { (case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_try") 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest$ac_exeext'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_cv_search_op_open_agent=$ac_res
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13870 rm -f core conftest.err conftest.$ac_objext \
13872 if test "${ac_cv_search_op_open_agent+set}" = set; then
13876 if test "${ac_cv_search_op_open_agent+set}" = set; then
13879 ac_cv_search_op_open_agent=no
13881 rm conftest.$ac_ext
13882 LIBS=$ac_func_search_save_LIBS
13884 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13885 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13886 ac_res=$ac_cv_search_op_open_agent
13887 if test "$ac_res" != no; then
13888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13892 echo "Error! You need to have libopagent around."
13897 if test "${ac_cv_header_opagent_h+set}" = set; then
13898 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13899 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13900 if test "${ac_cv_header_opagent_h+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13904 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13906 # Is the header compilable?
13907 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13908 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13909 cat >conftest.$ac_ext <<_ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13915 $ac_includes_default
13916 #include <opagent.h>
13918 rm -f conftest.$ac_objext
13919 if { (ac_try="$ac_compile"
13920 case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_compile") 2>conftest.er1
13927 grep -v '^ *+' conftest.er1 >conftest.err
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13933 { (case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_try") 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest.$ac_objext'
13943 { (case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_try") 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_header_compiler=yes
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957 ac_header_compiler=no
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13962 echo "${ECHO_T}$ac_header_compiler" >&6; }
13964 # Is the header present?
13965 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13966 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #include <opagent.h>
13975 if { (ac_try="$ac_cpp conftest.$ac_ext"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13983 grep -v '^ *+' conftest.er1 >conftest.err
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } >/dev/null; then
13988 if test -s conftest.err; then
13989 ac_cpp_err=$ac_c_preproc_warn_flag
13990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13997 if test -z "$ac_cpp_err"; then
13998 ac_header_preproc=yes
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ac_header_preproc=no
14006 rm -f conftest.err conftest.$ac_ext
14007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14008 echo "${ECHO_T}$ac_header_preproc" >&6; }
14010 # So? What about this header?
14011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14013 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14014 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14016 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14017 ac_header_preproc=yes
14020 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14021 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14023 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14025 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14027 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14029 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14031 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14033 ## ------------------------------------ ##
14034 ## Report this to http://llvm.org/bugs/ ##
14035 ## ------------------------------------ ##
14037 ) | sed "s/^/$as_me: WARNING: /" >&2
14040 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14041 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_opagent_h+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 ac_cv_header_opagent_h=$ac_header_preproc
14047 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14048 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14051 if test $ac_cv_header_opagent_h = yes; then
14055 echo "Error! You need to have opagent.h around."
14063 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14064 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14065 { (exit 1); exit 1; }; } ;;
14076 cat >>confdefs.h <<_ACEOF
14077 #define LLVM_USE_OPROFILE $USE_OPROFILE
14082 # Check whether --with-intel-jitevents was given.
14083 if test "${with_intel_jitevents+set}" = set; then
14084 withval=$with_intel_jitevents;
14086 yes) USE_INTEL_JITEVENTS=1
14088 no) USE_INTEL_JITEVENTS=0
14090 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14091 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14092 { (exit 1); exit 1; }; };;
14095 case $llvm_cv_os_type in
14096 Linux|Win32|Cygwin|MingW) ;;
14097 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14098 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14099 { (exit 1); exit 1; }; };;
14102 case "$llvm_cv_target_arch" in
14104 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14105 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14106 { (exit 1); exit 1; }; };;
14111 USE_INTEL_JITEVENTS=0
14117 cat >>confdefs.h <<_ACEOF
14118 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14122 for ac_prog in xml2-config
14124 # Extract the first word of "$ac_prog", so it can be a program name with args.
14125 set dummy $ac_prog; ac_word=$2
14126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14128 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 if test -n "$XML2CONFIG"; then
14132 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135 for as_dir in $PATH
14138 test -z "$as_dir" && as_dir=.
14139 for ac_exec_ext in '' $ac_executable_extensions; do
14140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14141 ac_cv_prog_XML2CONFIG="$ac_prog"
14142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14152 if test -n "$XML2CONFIG"; then
14153 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14154 echo "${ECHO_T}$XML2CONFIG" >&6; }
14156 { echo "$as_me:$LINENO: result: no" >&5
14157 echo "${ECHO_T}no" >&6; }
14161 test -n "$XML2CONFIG" && break
14165 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14166 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14167 if test "x$XML2CONFIG" = "x"; then
14168 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14169 echo "${ECHO_T}xml2-config not found" >&6; }
14171 LIBXML2_INC=`$XML2CONFIG --cflags`
14172 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14173 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14174 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14175 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14176 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 ac_check_lib_save_LIBS=$LIBS
14180 LIBS="-lxml2 $LIBS"
14181 cat >conftest.$ac_ext <<_ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14188 /* Override any GCC internal prototype to avoid an error.
14189 Use char because int might match the return type of a GCC
14190 builtin and then its argument prototype would still apply. */
14194 char xmlReadFile ();
14198 return xmlReadFile ();
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (ac_try="$ac_link"
14205 case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_link") 2>conftest.er1
14212 grep -v '^ *+' conftest.er1 >conftest.err
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try='test -s conftest$ac_exeext'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_lib_xml2_xmlReadFile=yes
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14242 ac_cv_lib_xml2_xmlReadFile=no
14245 rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14247 LIBS=$ac_check_lib_save_LIBS
14249 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14250 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14251 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14253 cat >>confdefs.h <<\_ACEOF
14254 #define CLANG_HAVE_LIBXML 1
14257 LIBXML2_LIBS="-lxml2"
14270 ac_header_dirent=no
14271 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14272 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14273 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14274 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 cat >conftest.$ac_ext <<_ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 #include <sys/types.h>
14296 rm -f conftest.$ac_objext
14297 if { (ac_try="$ac_compile"
14298 case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_compile") 2>conftest.er1
14305 grep -v '^ *+' conftest.er1 >conftest.err
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311 { (case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_try") 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 eval "$as_ac_Header=yes"
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 eval "$as_ac_Header=no"
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 ac_res=`eval echo '${'$as_ac_Header'}'`
14341 { echo "$as_me:$LINENO: result: $ac_res" >&5
14342 echo "${ECHO_T}$ac_res" >&6; }
14343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14344 cat >>confdefs.h <<_ACEOF
14345 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14348 ac_header_dirent=$ac_hdr; break
14352 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14353 if test $ac_header_dirent = dirent.h; then
14354 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14355 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14356 if test "${ac_cv_search_opendir+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 ac_func_search_save_LIBS=$LIBS
14360 cat >conftest.$ac_ext <<_ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14367 /* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
14382 for ac_lib in '' dir; do
14383 if test -z "$ac_lib"; then
14384 ac_res="none required"
14387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_link") 2>conftest.er1
14398 grep -v '^ *+' conftest.er1 >conftest.err
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404 { (case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_try") 2>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } &&
14413 { ac_try='test -s conftest$ac_exeext'
14414 { (case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_try") 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_cv_search_opendir=$ac_res
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14431 rm -f core conftest.err conftest.$ac_objext \
14433 if test "${ac_cv_search_opendir+set}" = set; then
14437 if test "${ac_cv_search_opendir+set}" = set; then
14440 ac_cv_search_opendir=no
14442 rm conftest.$ac_ext
14443 LIBS=$ac_func_search_save_LIBS
14445 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14447 ac_res=$ac_cv_search_opendir
14448 if test "$ac_res" != no; then
14449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14454 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14455 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14456 if test "${ac_cv_search_opendir+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 ac_func_search_save_LIBS=$LIBS
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14467 /* Override any GCC internal prototype to avoid an error.
14468 Use char because int might match the return type of a GCC
14469 builtin and then its argument prototype would still apply. */
14482 for ac_lib in '' x; do
14483 if test -z "$ac_lib"; then
14484 ac_res="none required"
14487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14489 rm -f conftest.$ac_objext conftest$ac_exeext
14490 if { (ac_try="$ac_link"
14491 case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_link") 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14504 { (case "(($ac_try" in
14505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509 (eval "$ac_try") 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; } &&
14513 { ac_try='test -s conftest$ac_exeext'
14514 { (case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14523 ac_cv_search_opendir=$ac_res
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14531 rm -f core conftest.err conftest.$ac_objext \
14533 if test "${ac_cv_search_opendir+set}" = set; then
14537 if test "${ac_cv_search_opendir+set}" = set; then
14540 ac_cv_search_opendir=no
14542 rm conftest.$ac_ext
14543 LIBS=$ac_func_search_save_LIBS
14545 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14546 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14547 ac_res=$ac_cv_search_opendir
14548 if test "$ac_res" != no; then
14549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14555 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14556 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14557 if test "${ac_cv_header_mmap_anon+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 ac_cpp='$CPP $CPPFLAGS'
14562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14566 cat >conftest.$ac_ext <<_ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14572 #include <sys/mman.h>
14573 #include <unistd.h>
14578 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14583 rm -f conftest.$ac_objext
14584 if { (ac_try="$ac_compile"
14585 case "(($ac_try" in
14586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 *) ac_try_echo=$ac_try;;
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 (eval "$ac_compile") 2>conftest.er1
14592 grep -v '^ *+' conftest.er1 >conftest.err
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14598 { (case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_try") 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; } &&
14607 { ac_try='test -s conftest.$ac_objext'
14608 { (case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_try") 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_cv_header_mmap_anon=yes
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_cv_header_mmap_anon=no
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14627 ac_cpp='$CPP $CPPFLAGS'
14628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14634 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14635 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14636 if test "$ac_cv_header_mmap_anon" = yes; then
14638 cat >>confdefs.h <<\_ACEOF
14639 #define HAVE_MMAP_ANONYMOUS 1
14644 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14645 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14646 if test "${ac_cv_header_stat_broken+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 cat >conftest.$ac_ext <<_ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 #include <sys/types.h>
14656 #include <sys/stat.h>
14658 #if defined S_ISBLK && defined S_IFDIR
14659 # if S_ISBLK (S_IFDIR)
14664 #if defined S_ISBLK && defined S_IFCHR
14665 # if S_ISBLK (S_IFCHR)
14670 #if defined S_ISLNK && defined S_IFREG
14671 # if S_ISLNK (S_IFREG)
14676 #if defined S_ISSOCK && defined S_IFREG
14677 # if S_ISSOCK (S_IFREG)
14683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14684 $EGREP "You lose" >/dev/null 2>&1; then
14685 ac_cv_header_stat_broken=yes
14687 ac_cv_header_stat_broken=no
14692 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14693 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14694 if test $ac_cv_header_stat_broken = yes; then
14696 cat >>confdefs.h <<\_ACEOF
14697 #define STAT_MACROS_BROKEN 1
14702 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14703 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14704 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 cat >conftest.$ac_ext <<_ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 #include <sys/types.h>
14714 #include <sys/wait.h>
14715 #ifndef WEXITSTATUS
14716 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14719 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14727 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14732 rm -f conftest.$ac_objext
14733 if { (ac_try="$ac_compile"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_compile") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest.$ac_objext'
14757 { (case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_try") 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_cv_header_sys_wait_h=yes
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 ac_cv_header_sys_wait_h=no
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14777 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14778 if test $ac_cv_header_sys_wait_h = yes; then
14780 cat >>confdefs.h <<\_ACEOF
14781 #define HAVE_SYS_WAIT_H 1
14786 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14787 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14788 if test "${ac_cv_header_time+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 cat >conftest.$ac_ext <<_ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 #include <sys/types.h>
14798 #include <sys/time.h>
14804 if ((struct tm *) 0)
14810 rm -f conftest.$ac_objext
14811 if { (ac_try="$ac_compile"
14812 case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_compile") 2>conftest.er1
14819 grep -v '^ *+' conftest.er1 >conftest.err
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
14824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14825 { (case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_try") 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try='test -s conftest.$ac_objext'
14835 { (case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_try") 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 ac_cv_header_time=yes
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_cv_header_time=no
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14855 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14856 if test $ac_cv_header_time = yes; then
14858 cat >>confdefs.h <<\_ACEOF
14859 #define TIME_WITH_SYS_TIME 1
14872 for ac_header in cxxabi.h dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 ac_res=`eval echo '${'$as_ac_Header'}'`
14882 { echo "$as_me:$LINENO: result: $ac_res" >&5
14883 echo "${ECHO_T}$ac_res" >&6; }
14885 # Is the header compilable?
14886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14888 cat >conftest.$ac_ext <<_ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h. */
14894 $ac_includes_default
14895 #include <$ac_header>
14897 rm -f conftest.$ac_objext
14898 if { (ac_try="$ac_compile"
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_compile") 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); } &&
14911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14912 { (case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_try") 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_try") 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 ac_header_compiler=yes
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14936 ac_header_compiler=no
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941 echo "${ECHO_T}$ac_header_compiler" >&6; }
14943 # Is the header present?
14944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 #include <$ac_header>
14954 if { (ac_try="$ac_cpp conftest.$ac_ext"
14955 case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14962 grep -v '^ *+' conftest.er1 >conftest.err
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } >/dev/null; then
14967 if test -s conftest.err; then
14968 ac_cpp_err=$ac_c_preproc_warn_flag
14969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14976 if test -z "$ac_cpp_err"; then
14977 ac_header_preproc=yes
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 ac_header_preproc=no
14985 rm -f conftest.err conftest.$ac_ext
14986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 echo "${ECHO_T}$ac_header_preproc" >&6; }
14989 # So? What about this header?
14990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14996 ac_header_preproc=yes
14999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15012 ## ------------------------------------ ##
15013 ## Report this to http://llvm.org/bugs/ ##
15014 ## ------------------------------------ ##
15016 ) | sed "s/^/$as_me: WARNING: /" >&2
15019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 eval "$as_ac_Header=\$ac_header_preproc"
15026 ac_res=`eval echo '${'$as_ac_Header'}'`
15027 { echo "$as_me:$LINENO: result: $ac_res" >&5
15028 echo "${ECHO_T}$ac_res" >&6; }
15031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15032 cat >>confdefs.h <<_ACEOF
15033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15046 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 ac_res=`eval echo '${'$as_ac_Header'}'`
15056 { echo "$as_me:$LINENO: result: $ac_res" >&5
15057 echo "${ECHO_T}$ac_res" >&6; }
15059 # Is the header compilable?
15060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 $ac_includes_default
15069 #include <$ac_header>
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_compile") 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest.$ac_objext'
15096 { (case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_try") 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_header_compiler=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ac_header_compiler=no
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15115 echo "${ECHO_T}$ac_header_compiler" >&6; }
15117 # Is the header present?
15118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 #include <$ac_header>
15128 if { (ac_try="$ac_cpp conftest.$ac_ext"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } >/dev/null; then
15141 if test -s conftest.err; then
15142 ac_cpp_err=$ac_c_preproc_warn_flag
15143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15150 if test -z "$ac_cpp_err"; then
15151 ac_header_preproc=yes
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 ac_header_preproc=no
15159 rm -f conftest.err conftest.$ac_ext
15160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15161 echo "${ECHO_T}$ac_header_preproc" >&6; }
15163 # So? What about this header?
15164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15170 ac_header_preproc=yes
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15186 ## ------------------------------------ ##
15187 ## Report this to http://llvm.org/bugs/ ##
15188 ## ------------------------------------ ##
15190 ) | sed "s/^/$as_me: WARNING: /" >&2
15193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 eval "$as_ac_Header=\$ac_header_preproc"
15200 ac_res=`eval echo '${'$as_ac_Header'}'`
15201 { echo "$as_me:$LINENO: result: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15206 cat >>confdefs.h <<_ACEOF
15207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15216 for ac_header in utime.h windows.h
15218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 ac_res=`eval echo '${'$as_ac_Header'}'`
15226 { echo "$as_me:$LINENO: result: $ac_res" >&5
15227 echo "${ECHO_T}$ac_res" >&6; }
15229 # Is the header compilable?
15230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15232 cat >conftest.$ac_ext <<_ACEOF
15235 cat confdefs.h >>conftest.$ac_ext
15236 cat >>conftest.$ac_ext <<_ACEOF
15237 /* end confdefs.h. */
15238 $ac_includes_default
15239 #include <$ac_header>
15241 rm -f conftest.$ac_objext
15242 if { (ac_try="$ac_compile"
15243 case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_compile") 2>conftest.er1
15250 grep -v '^ *+' conftest.er1 >conftest.err
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15256 { (case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_try") 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; } &&
15265 { ac_try='test -s conftest.$ac_objext'
15266 { (case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_try") 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 ac_header_compiler=yes
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15280 ac_header_compiler=no
15283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15285 echo "${ECHO_T}$ac_header_compiler" >&6; }
15287 # Is the header present?
15288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 #include <$ac_header>
15298 if { (ac_try="$ac_cpp conftest.$ac_ext"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } >/dev/null; then
15311 if test -s conftest.err; then
15312 ac_cpp_err=$ac_c_preproc_warn_flag
15313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15320 if test -z "$ac_cpp_err"; then
15321 ac_header_preproc=yes
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15326 ac_header_preproc=no
15329 rm -f conftest.err conftest.$ac_ext
15330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15331 echo "${ECHO_T}$ac_header_preproc" >&6; }
15333 # So? What about this header?
15334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15340 ac_header_preproc=yes
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15356 ## ------------------------------------ ##
15357 ## Report this to http://llvm.org/bugs/ ##
15358 ## ------------------------------------ ##
15360 ) | sed "s/^/$as_me: WARNING: /" >&2
15363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 eval "$as_ac_Header=\$ac_header_preproc"
15370 ac_res=`eval echo '${'$as_ac_Header'}'`
15371 { echo "$as_me:$LINENO: result: $ac_res" >&5
15372 echo "${ECHO_T}$ac_res" >&6; }
15375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15376 cat >>confdefs.h <<_ACEOF
15377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15389 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 ac_res=`eval echo '${'$as_ac_Header'}'`
15399 { echo "$as_me:$LINENO: result: $ac_res" >&5
15400 echo "${ECHO_T}$ac_res" >&6; }
15402 # Is the header compilable?
15403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 $ac_includes_default
15412 #include <$ac_header>
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_compile") 2>conftest.er1
15423 grep -v '^ *+' conftest.er1 >conftest.err
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429 { (case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_try") 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_try") 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 ac_header_compiler=yes
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_header_compiler=no
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6; }
15460 # Is the header present?
15461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 #include <$ac_header>
15471 if { (ac_try="$ac_cpp conftest.$ac_ext"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } >/dev/null; then
15484 if test -s conftest.err; then
15485 ac_cpp_err=$ac_c_preproc_warn_flag
15486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15493 if test -z "$ac_cpp_err"; then
15494 ac_header_preproc=yes
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 ac_header_preproc=no
15502 rm -f conftest.err conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504 echo "${ECHO_T}$ac_header_preproc" >&6; }
15506 # So? What about this header?
15507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513 ac_header_preproc=yes
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15529 ## ------------------------------------ ##
15530 ## Report this to http://llvm.org/bugs/ ##
15531 ## ------------------------------------ ##
15533 ) | sed "s/^/$as_me: WARNING: /" >&2
15536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 eval "$as_ac_Header=\$ac_header_preproc"
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544 { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15561 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 ac_res=`eval echo '${'$as_ac_Header'}'`
15571 { echo "$as_me:$LINENO: result: $ac_res" >&5
15572 echo "${ECHO_T}$ac_res" >&6; }
15574 # Is the header compilable?
15575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15584 #include <$ac_header>
15586 rm -f conftest.$ac_objext
15587 if { (ac_try="$ac_compile"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_compile") 2>conftest.er1
15595 grep -v '^ *+' conftest.er1 >conftest.err
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
15600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15601 { (case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_try") 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_try") 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 ac_header_compiler=yes
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15625 ac_header_compiler=no
15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630 echo "${ECHO_T}$ac_header_compiler" >&6; }
15632 # Is the header present?
15633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15635 cat >conftest.$ac_ext <<_ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h. */
15641 #include <$ac_header>
15643 if { (ac_try="$ac_cpp conftest.$ac_ext"
15644 case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } >/dev/null; then
15656 if test -s conftest.err; then
15657 ac_cpp_err=$ac_c_preproc_warn_flag
15658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15665 if test -z "$ac_cpp_err"; then
15666 ac_header_preproc=yes
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 ac_header_preproc=no
15674 rm -f conftest.err conftest.$ac_ext
15675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676 echo "${ECHO_T}$ac_header_preproc" >&6; }
15678 # So? What about this header?
15679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685 ac_header_preproc=yes
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15701 ## ------------------------------------ ##
15702 ## Report this to http://llvm.org/bugs/ ##
15703 ## ------------------------------------ ##
15705 ) | sed "s/^/$as_me: WARNING: /" >&2
15708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 eval "$as_ac_Header=\$ac_header_preproc"
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15721 cat >>confdefs.h <<_ACEOF
15722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15730 for ac_header in valgrind/valgrind.h
15732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 ac_res=`eval echo '${'$as_ac_Header'}'`
15740 { echo "$as_me:$LINENO: result: $ac_res" >&5
15741 echo "${ECHO_T}$ac_res" >&6; }
15743 # Is the header compilable?
15744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15746 cat >conftest.$ac_ext <<_ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 $ac_includes_default
15753 #include <$ac_header>
15755 rm -f conftest.$ac_objext
15756 if { (ac_try="$ac_compile"
15757 case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_compile") 2>conftest.er1
15764 grep -v '^ *+' conftest.er1 >conftest.err
15766 cat conftest.err >&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } &&
15769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15770 { (case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_try") 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; } &&
15779 { ac_try='test -s conftest.$ac_objext'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 ac_header_compiler=yes
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 ac_header_compiler=no
15797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15799 echo "${ECHO_T}$ac_header_compiler" >&6; }
15801 # Is the header present?
15802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15804 cat >conftest.$ac_ext <<_ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 #include <$ac_header>
15812 if { (ac_try="$ac_cpp conftest.$ac_ext"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15820 grep -v '^ *+' conftest.er1 >conftest.err
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } >/dev/null; then
15825 if test -s conftest.err; then
15826 ac_cpp_err=$ac_c_preproc_warn_flag
15827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15834 if test -z "$ac_cpp_err"; then
15835 ac_header_preproc=yes
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 ac_header_preproc=no
15843 rm -f conftest.err conftest.$ac_ext
15844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15845 echo "${ECHO_T}$ac_header_preproc" >&6; }
15847 # So? What about this header?
15848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15854 ac_header_preproc=yes
15857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15870 ## ------------------------------------ ##
15871 ## Report this to http://llvm.org/bugs/ ##
15872 ## ------------------------------------ ##
15874 ) | sed "s/^/$as_me: WARNING: /" >&2
15877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 eval "$as_ac_Header=\$ac_header_preproc"
15884 ac_res=`eval echo '${'$as_ac_Header'}'`
15885 { echo "$as_me:$LINENO: result: $ac_res" >&5
15886 echo "${ECHO_T}$ac_res" >&6; }
15889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15890 cat >>confdefs.h <<_ACEOF
15891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15899 for ac_header in fenv.h
15901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 ac_res=`eval echo '${'$as_ac_Header'}'`
15909 { echo "$as_me:$LINENO: result: $ac_res" >&5
15910 echo "${ECHO_T}$ac_res" >&6; }
15912 # Is the header compilable?
15913 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 $ac_includes_default
15922 #include <$ac_header>
15924 rm -f conftest.$ac_objext
15925 if { (ac_try="$ac_compile"
15926 case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_compile") 2>conftest.er1
15933 grep -v '^ *+' conftest.er1 >conftest.err
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } &&
15938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15939 { (case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_try") 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
15949 { (case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_try") 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_header_compiler=yes
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ac_header_compiler=no
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15968 echo "${ECHO_T}$ac_header_compiler" >&6; }
15970 # Is the header present?
15971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 #include <$ac_header>
15981 if { (ac_try="$ac_cpp conftest.$ac_ext"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } >/dev/null; then
15994 if test -s conftest.err; then
15995 ac_cpp_err=$ac_c_preproc_warn_flag
15996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16003 if test -z "$ac_cpp_err"; then
16004 ac_header_preproc=yes
16006 echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16009 ac_header_preproc=no
16012 rm -f conftest.err conftest.$ac_ext
16013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16014 echo "${ECHO_T}$ac_header_preproc" >&6; }
16016 # So? What about this header?
16017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16023 ac_header_preproc=yes
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16039 ## ------------------------------------ ##
16040 ## Report this to http://llvm.org/bugs/ ##
16041 ## ------------------------------------ ##
16043 ) | sed "s/^/$as_me: WARNING: /" >&2
16046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16051 eval "$as_ac_Header=\$ac_header_preproc"
16053 ac_res=`eval echo '${'$as_ac_Header'}'`
16054 { echo "$as_me:$LINENO: result: $ac_res" >&5
16055 echo "${ECHO_T}$ac_res" >&6; }
16058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16059 cat >>confdefs.h <<_ACEOF
16060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16067 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16068 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16069 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16072 cat >conftest.$ac_ext <<_ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h. */
16083 #ifndef FE_ALL_EXCEPT
16084 char *p = (char *) FE_ALL_EXCEPT;
16092 rm -f conftest.$ac_objext
16093 if { (ac_try="$ac_compile"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_compile") 2>conftest.er1
16101 grep -v '^ *+' conftest.er1 >conftest.err
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
16106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16107 { (case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_try") 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; } &&
16116 { ac_try='test -s conftest.$ac_objext'
16117 { (case "(($ac_try" in
16118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119 *) ac_try_echo=$ac_try;;
16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122 (eval "$ac_try") 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_cv_have_decl_FE_ALL_EXCEPT=no
16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16137 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16138 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16140 cat >>confdefs.h <<_ACEOF
16141 #define HAVE_DECL_FE_ALL_EXCEPT 1
16146 cat >>confdefs.h <<_ACEOF
16147 #define HAVE_DECL_FE_ALL_EXCEPT 0
16152 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16153 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16154 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 cat >conftest.$ac_ext <<_ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16169 char *p = (char *) FE_INEXACT;
16177 rm -f conftest.$ac_objext
16178 if { (ac_try="$ac_compile"
16179 case "(($ac_try" in
16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181 *) ac_try_echo=$ac_try;;
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184 (eval "$ac_compile") 2>conftest.er1
16186 grep -v '^ *+' conftest.er1 >conftest.err
16188 cat conftest.err >&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
16191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16192 { (case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_try") 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try='test -s conftest.$ac_objext'
16202 { (case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207 (eval "$ac_try") 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_cv_have_decl_FE_INEXACT=yes
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 ac_cv_have_decl_FE_INEXACT=no
16219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16221 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16222 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16223 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16225 cat >>confdefs.h <<_ACEOF
16226 #define HAVE_DECL_FE_INEXACT 1
16231 cat >>confdefs.h <<_ACEOF
16232 #define HAVE_DECL_FE_INEXACT 0
16239 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16241 for ac_header in pthread.h
16243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 ac_res=`eval echo '${'$as_ac_Header'}'`
16251 { echo "$as_me:$LINENO: result: $ac_res" >&5
16252 echo "${ECHO_T}$ac_res" >&6; }
16254 # Is the header compilable?
16255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16257 cat >conftest.$ac_ext <<_ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263 $ac_includes_default
16264 #include <$ac_header>
16266 rm -f conftest.$ac_objext
16267 if { (ac_try="$ac_compile"
16268 case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_compile") 2>conftest.er1
16275 grep -v '^ *+' conftest.er1 >conftest.err
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
16280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; } &&
16290 { ac_try='test -s conftest.$ac_objext'
16291 { (case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296 (eval "$ac_try") 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 ac_header_compiler=yes
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ac_header_compiler=no
16308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16310 echo "${ECHO_T}$ac_header_compiler" >&6; }
16312 # Is the header present?
16313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16315 cat >conftest.$ac_ext <<_ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16321 #include <$ac_header>
16323 if { (ac_try="$ac_cpp conftest.$ac_ext"
16324 case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16331 grep -v '^ *+' conftest.er1 >conftest.err
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } >/dev/null; then
16336 if test -s conftest.err; then
16337 ac_cpp_err=$ac_c_preproc_warn_flag
16338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16345 if test -z "$ac_cpp_err"; then
16346 ac_header_preproc=yes
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 ac_header_preproc=no
16354 rm -f conftest.err conftest.$ac_ext
16355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16356 echo "${ECHO_T}$ac_header_preproc" >&6; }
16358 # So? What about this header?
16359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16365 ac_header_preproc=yes
16368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16381 ## ------------------------------------ ##
16382 ## Report this to http://llvm.org/bugs/ ##
16383 ## ------------------------------------ ##
16385 ) | sed "s/^/$as_me: WARNING: /" >&2
16388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 eval "$as_ac_Header=\$ac_header_preproc"
16395 ac_res=`eval echo '${'$as_ac_Header'}'`
16396 { echo "$as_me:$LINENO: result: $ac_res" >&5
16397 echo "${ECHO_T}$ac_res" >&6; }
16400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16401 cat >>confdefs.h <<_ACEOF
16402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16417 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16419 for ac_header in zlib.h
16421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16428 ac_res=`eval echo '${'$as_ac_Header'}'`
16429 { echo "$as_me:$LINENO: result: $ac_res" >&5
16430 echo "${ECHO_T}$ac_res" >&6; }
16432 # Is the header compilable?
16433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16435 cat >conftest.$ac_ext <<_ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16441 $ac_includes_default
16442 #include <$ac_header>
16444 rm -f conftest.$ac_objext
16445 if { (ac_try="$ac_compile"
16446 case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_compile") 2>conftest.er1
16453 grep -v '^ *+' conftest.er1 >conftest.err
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
16458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16459 { (case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_try") 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; } &&
16468 { ac_try='test -s conftest.$ac_objext'
16469 { (case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_try") 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478 ac_header_compiler=yes
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16483 ac_header_compiler=no
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16488 echo "${ECHO_T}$ac_header_compiler" >&6; }
16490 # Is the header present?
16491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16493 cat >conftest.$ac_ext <<_ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16499 #include <$ac_header>
16501 if { (ac_try="$ac_cpp conftest.$ac_ext"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } >/dev/null; then
16514 if test -s conftest.err; then
16515 ac_cpp_err=$ac_c_preproc_warn_flag
16516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16523 if test -z "$ac_cpp_err"; then
16524 ac_header_preproc=yes
16526 echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16529 ac_header_preproc=no
16532 rm -f conftest.err conftest.$ac_ext
16533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16534 echo "${ECHO_T}$ac_header_preproc" >&6; }
16536 # So? What about this header?
16537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16543 ac_header_preproc=yes
16546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16559 ## ------------------------------------ ##
16560 ## Report this to http://llvm.org/bugs/ ##
16561 ## ------------------------------------ ##
16563 ) | sed "s/^/$as_me: WARNING: /" >&2
16566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 eval "$as_ac_Header=\$ac_header_preproc"
16573 ac_res=`eval echo '${'$as_ac_Header'}'`
16574 { echo "$as_me:$LINENO: result: $ac_res" >&5
16575 echo "${ECHO_T}$ac_res" >&6; }
16578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16579 cat >>confdefs.h <<_ACEOF
16580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16596 if test "$llvm_cv_enable_libffi" = "yes" ; then
16599 for ac_header in ffi.h ffi/ffi.h
16601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 ac_res=`eval echo '${'$as_ac_Header'}'`
16609 { echo "$as_me:$LINENO: result: $ac_res" >&5
16610 echo "${ECHO_T}$ac_res" >&6; }
16612 # Is the header compilable?
16613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16615 cat >conftest.$ac_ext <<_ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 $ac_includes_default
16622 #include <$ac_header>
16624 rm -f conftest.$ac_objext
16625 if { (ac_try="$ac_compile"
16626 case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_compile") 2>conftest.er1
16633 grep -v '^ *+' conftest.er1 >conftest.err
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16639 { (case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_try") 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; } &&
16648 { ac_try='test -s conftest.$ac_objext'
16649 { (case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_try") 2>&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_header_compiler=yes
16660 echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16663 ac_header_compiler=no
16666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16668 echo "${ECHO_T}$ac_header_compiler" >&6; }
16670 # Is the header present?
16671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16673 cat >conftest.$ac_ext <<_ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 #include <$ac_header>
16681 if { (ac_try="$ac_cpp conftest.$ac_ext"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16689 grep -v '^ *+' conftest.er1 >conftest.err
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } >/dev/null; then
16694 if test -s conftest.err; then
16695 ac_cpp_err=$ac_c_preproc_warn_flag
16696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16703 if test -z "$ac_cpp_err"; then
16704 ac_header_preproc=yes
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16709 ac_header_preproc=no
16712 rm -f conftest.err conftest.$ac_ext
16713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16714 echo "${ECHO_T}$ac_header_preproc" >&6; }
16716 # So? What about this header?
16717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16723 ac_header_preproc=yes
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16739 ## ------------------------------------ ##
16740 ## Report this to http://llvm.org/bugs/ ##
16741 ## ------------------------------------ ##
16743 ) | sed "s/^/$as_me: WARNING: /" >&2
16746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 eval "$as_ac_Header=\$ac_header_preproc"
16753 ac_res=`eval echo '${'$as_ac_Header'}'`
16754 { echo "$as_me:$LINENO: result: $ac_res" >&5
16755 echo "${ECHO_T}$ac_res" >&6; }
16758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16759 cat >>confdefs.h <<_ACEOF
16760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16770 for ac_header in CrashReporterClient.h
16772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 ac_res=`eval echo '${'$as_ac_Header'}'`
16780 { echo "$as_me:$LINENO: result: $ac_res" >&5
16781 echo "${ECHO_T}$ac_res" >&6; }
16783 # Is the header compilable?
16784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16786 cat >conftest.$ac_ext <<_ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792 $ac_includes_default
16793 #include <$ac_header>
16795 rm -f conftest.$ac_objext
16796 if { (ac_try="$ac_compile"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_compile") 2>conftest.er1
16804 grep -v '^ *+' conftest.er1 >conftest.err
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810 { (case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_try") 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest.$ac_objext'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_header_compiler=yes
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ac_header_compiler=no
16837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16839 echo "${ECHO_T}$ac_header_compiler" >&6; }
16841 # Is the header present?
16842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16844 cat >conftest.$ac_ext <<_ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 #include <$ac_header>
16852 if { (ac_try="$ac_cpp conftest.$ac_ext"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } >/dev/null; then
16865 if test -s conftest.err; then
16866 ac_cpp_err=$ac_c_preproc_warn_flag
16867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16874 if test -z "$ac_cpp_err"; then
16875 ac_header_preproc=yes
16877 echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16880 ac_header_preproc=no
16883 rm -f conftest.err conftest.$ac_ext
16884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16885 echo "${ECHO_T}$ac_header_preproc" >&6; }
16887 # So? What about this header?
16888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16894 ac_header_preproc=yes
16897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16910 ## ------------------------------------ ##
16911 ## Report this to http://llvm.org/bugs/ ##
16912 ## ------------------------------------ ##
16914 ) | sed "s/^/$as_me: WARNING: /" >&2
16917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 eval "$as_ac_Header=\$ac_header_preproc"
16924 ac_res=`eval echo '${'$as_ac_Header'}'`
16925 { echo "$as_me:$LINENO: result: $ac_res" >&5
16926 echo "${ECHO_T}$ac_res" >&6; }
16929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16930 cat >>confdefs.h <<_ACEOF
16931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16939 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16940 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16949 extern const char *__crashreporter_info__;
16951 __crashreporter_info__ = "test";
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>conftest.er1
16966 grep -v '^ *+' conftest.er1 >conftest.err
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972 { (case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_try") 2>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest$ac_exeext'
16982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16992 { echo "$as_me:$LINENO: result: yes" >&5
16993 echo "${ECHO_T}yes" >&6; }
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_CRASHREPORTER_INFO 1
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17005 { echo "$as_me:$LINENO: result: no" >&5
17006 echo "${ECHO_T}no" >&6; }
17008 cat >>confdefs.h <<\_ACEOF
17009 #define HAVE_CRASHREPORTER_INFO 0
17015 rm -f core conftest.err conftest.$ac_objext \
17016 conftest$ac_exeext conftest.$ac_ext
17020 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17021 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17022 if test "${ac_cv_huge_val_sanity+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 ac_cpp='$CXXCPP $CPPFLAGS'
17028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17032 ac_save_CXXFLAGS=$CXXFLAGS
17033 CXXFLAGS="$CXXFLAGS -pedantic"
17034 if test "$cross_compiling" = yes; then
17035 ac_cv_huge_val_sanity=yes
17037 cat >conftest.$ac_ext <<_ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17047 double x = HUGE_VAL; return x != x;
17052 rm -f conftest$ac_exeext
17053 if { (ac_try="$ac_link"
17054 case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_link") 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17063 { (case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_try") 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_huge_val_sanity=yes
17074 echo "$as_me: program exited with status $ac_status" >&5
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 ( exit $ac_status )
17079 ac_cv_huge_val_sanity=no
17081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17085 CXXFLAGS=$ac_save_CXXFLAGS
17087 ac_cpp='$CPP $CPPFLAGS'
17088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17094 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17095 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17096 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17099 { echo "$as_me:$LINENO: checking for pid_t" >&5
17100 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17101 if test "${ac_cv_type_pid_t+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 cat >conftest.$ac_ext <<_ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17110 $ac_includes_default
17111 typedef pid_t ac__type_new_;
17115 if ((ac__type_new_ *) 0)
17117 if (sizeof (ac__type_new_))
17123 rm -f conftest.$ac_objext
17124 if { (ac_try="$ac_compile"
17125 case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_compile") 2>conftest.er1
17132 grep -v '^ *+' conftest.er1 >conftest.err
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_try") 2>&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_type_pid_t=yes
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17162 ac_cv_type_pid_t=no
17165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17167 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17168 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17169 if test $ac_cv_type_pid_t = yes; then
17173 cat >>confdefs.h <<_ACEOF
17179 { echo "$as_me:$LINENO: checking for size_t" >&5
17180 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17181 if test "${ac_cv_type_size_t+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17191 typedef size_t ac__type_new_;
17195 if ((ac__type_new_ *) 0)
17197 if (sizeof (ac__type_new_))
17203 rm -f conftest.$ac_objext
17204 if { (ac_try="$ac_compile"
17205 case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_compile") 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest.$ac_objext'
17228 { (case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_try") 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_cv_type_size_t=yes
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ac_cv_type_size_t=no
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17248 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17249 if test $ac_cv_type_size_t = yes; then
17253 cat >>confdefs.h <<_ACEOF
17254 #define size_t unsigned int
17260 cat >>confdefs.h <<_ACEOF
17261 #define RETSIGTYPE void
17264 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17265 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17266 if test "${ac_cv_struct_tm+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 cat >conftest.$ac_ext <<_ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 #include <sys/types.h>
17281 struct tm *tp; tp->tm_sec;
17286 rm -f conftest.$ac_objext
17287 if { (ac_try="$ac_compile"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_compile") 2>conftest.er1
17295 grep -v '^ *+' conftest.er1 >conftest.err
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17301 { (case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_try") 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest.$ac_objext'
17311 { (case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_try") 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 ac_cv_struct_tm=time.h
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17325 ac_cv_struct_tm=sys/time.h
17328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17330 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17331 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17332 if test $ac_cv_struct_tm = sys/time.h; then
17334 cat >>confdefs.h <<\_ACEOF
17335 #define TM_IN_SYS_TIME 1
17340 { echo "$as_me:$LINENO: checking for int64_t" >&5
17341 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17342 if test "${ac_cv_type_int64_t+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 cat >conftest.$ac_ext <<_ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 $ac_includes_default
17352 typedef int64_t ac__type_new_;
17356 if ((ac__type_new_ *) 0)
17358 if (sizeof (ac__type_new_))
17364 rm -f conftest.$ac_objext
17365 if { (ac_try="$ac_compile"
17366 case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_compile") 2>conftest.er1
17373 grep -v '^ *+' conftest.er1 >conftest.err
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
17378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17379 { (case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_try") 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; } &&
17388 { ac_try='test -s conftest.$ac_objext'
17389 { (case "(($ac_try" in
17390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17391 *) ac_try_echo=$ac_try;;
17393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394 (eval "$ac_try") 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; }; then
17398 ac_cv_type_int64_t=yes
17400 echo "$as_me: failed program was:" >&5
17401 sed 's/^/| /' conftest.$ac_ext >&5
17403 ac_cv_type_int64_t=no
17406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17408 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17409 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17410 if test $ac_cv_type_int64_t = yes; then
17412 cat >>confdefs.h <<_ACEOF
17413 #define HAVE_INT64_T 1
17418 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17419 echo "$as_me: error: Type int64_t required but not found" >&2;}
17420 { (exit 1); exit 1; }; }
17423 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17424 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17425 if test "${ac_cv_type_uint64_t+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17428 cat >conftest.$ac_ext <<_ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17434 $ac_includes_default
17435 typedef uint64_t ac__type_new_;
17439 if ((ac__type_new_ *) 0)
17441 if (sizeof (ac__type_new_))
17447 rm -f conftest.$ac_objext
17448 if { (ac_try="$ac_compile"
17449 case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_compile") 2>conftest.er1
17456 grep -v '^ *+' conftest.er1 >conftest.err
17458 cat conftest.err >&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
17461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17462 { (case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_try") 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest.$ac_objext'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_type_uint64_t=yes
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 ac_cv_type_uint64_t=no
17489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17491 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17492 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17493 if test $ac_cv_type_uint64_t = yes; then
17495 cat >>confdefs.h <<_ACEOF
17496 #define HAVE_UINT64_T 1
17501 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17502 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17503 if test "${ac_cv_type_u_int64_t+set}" = set; then
17504 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 cat >conftest.$ac_ext <<_ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17512 $ac_includes_default
17513 typedef u_int64_t ac__type_new_;
17517 if ((ac__type_new_ *) 0)
17519 if (sizeof (ac__type_new_))
17525 rm -f conftest.$ac_objext
17526 if { (ac_try="$ac_compile"
17527 case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_compile") 2>conftest.er1
17534 grep -v '^ *+' conftest.er1 >conftest.err
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17540 { (case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_try") 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest.$ac_objext'
17550 { (case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_try") 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_type_u_int64_t=yes
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17564 ac_cv_type_u_int64_t=no
17567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17569 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17570 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17571 if test $ac_cv_type_u_int64_t = yes; then
17573 cat >>confdefs.h <<_ACEOF
17574 #define HAVE_U_INT64_T 1
17579 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17580 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17581 { (exit 1); exit 1; }; }
17595 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 cat >conftest.$ac_ext <<_ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17611 #define $ac_func innocuous_$ac_func
17613 /* System header to define __stub macros and hopefully few prototypes,
17614 which can conflict with char $ac_func (); below.
17615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17616 <limits.h> exists even on freestanding compilers. */
17619 # include <limits.h>
17621 # include <assert.h>
17626 /* Override any GCC internal prototype to avoid an error.
17627 Use char because int might match the return type of a GCC
17628 builtin and then its argument prototype would still apply. */
17633 /* The GNU C library defines this for functions which it implements
17634 to always fail with ENOSYS. Some functions are actually named
17635 something starting with __ and the normal name is an alias. */
17636 #if defined __stub_$ac_func || defined __stub___$ac_func
17643 return $ac_func ();
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (ac_try="$ac_link"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_link") 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663 { (case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_try") 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest$ac_exeext'
17673 { (case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_try") 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 eval "$as_ac_var=yes"
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 eval "$as_ac_var=no"
17690 rm -f core conftest.err conftest.$ac_objext \
17691 conftest$ac_exeext conftest.$ac_ext
17693 ac_res=`eval echo '${'$as_ac_var'}'`
17694 { echo "$as_me:$LINENO: result: $ac_res" >&5
17695 echo "${ECHO_T}$ac_res" >&6; }
17696 if test `eval echo '${'$as_ac_var'}'` = yes; then
17697 cat >>confdefs.h <<_ACEOF
17698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17708 for ac_func in powf fmodf strtof round
17710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 cat >conftest.$ac_ext <<_ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17724 #define $ac_func innocuous_$ac_func
17726 /* System header to define __stub macros and hopefully few prototypes,
17727 which can conflict with char $ac_func (); below.
17728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17729 <limits.h> exists even on freestanding compilers. */
17732 # include <limits.h>
17734 # include <assert.h>
17739 /* Override any GCC internal prototype to avoid an error.
17740 Use char because int might match the return type of a GCC
17741 builtin and then its argument prototype would still apply. */
17746 /* The GNU C library defines this for functions which it implements
17747 to always fail with ENOSYS. Some functions are actually named
17748 something starting with __ and the normal name is an alias. */
17749 #if defined __stub_$ac_func || defined __stub___$ac_func
17756 return $ac_func ();
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (ac_try="$ac_link"
17763 case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_link") 2>conftest.er1
17770 grep -v '^ *+' conftest.er1 >conftest.err
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17776 { (case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_try") 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try='test -s conftest$ac_exeext'
17786 { (case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_try") 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 eval "$as_ac_var=yes"
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 eval "$as_ac_var=no"
17803 rm -f core conftest.err conftest.$ac_objext \
17804 conftest$ac_exeext conftest.$ac_ext
17806 ac_res=`eval echo '${'$as_ac_var'}'`
17807 { echo "$as_me:$LINENO: result: $ac_res" >&5
17808 echo "${ECHO_T}$ac_res" >&6; }
17809 if test `eval echo '${'$as_ac_var'}'` = yes; then
17810 cat >>confdefs.h <<_ACEOF
17811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17822 for ac_func in log log2 log10 exp exp2
17824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 cat >conftest.$ac_ext <<_ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17838 #define $ac_func innocuous_$ac_func
17840 /* System header to define __stub macros and hopefully few prototypes,
17841 which can conflict with char $ac_func (); below.
17842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17843 <limits.h> exists even on freestanding compilers. */
17846 # include <limits.h>
17848 # include <assert.h>
17853 /* Override any GCC internal prototype to avoid an error.
17854 Use char because int might match the return type of a GCC
17855 builtin and then its argument prototype would still apply. */
17860 /* The GNU C library defines this for functions which it implements
17861 to always fail with ENOSYS. Some functions are actually named
17862 something starting with __ and the normal name is an alias. */
17863 #if defined __stub_$ac_func || defined __stub___$ac_func
17870 return $ac_func ();
17875 rm -f conftest.$ac_objext conftest$ac_exeext
17876 if { (ac_try="$ac_link"
17877 case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_link") 2>conftest.er1
17884 grep -v '^ *+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
17889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17890 { (case "(($ac_try" in
17891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892 *) ac_try_echo=$ac_try;;
17894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17895 (eval "$ac_try") 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try='test -s conftest$ac_exeext'
17900 { (case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_try") 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 eval "$as_ac_var=yes"
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17914 eval "$as_ac_var=no"
17917 rm -f core conftest.err conftest.$ac_objext \
17918 conftest$ac_exeext conftest.$ac_ext
17920 ac_res=`eval echo '${'$as_ac_var'}'`
17921 { echo "$as_me:$LINENO: result: $ac_res" >&5
17922 echo "${ECHO_T}$ac_res" >&6; }
17923 if test `eval echo '${'$as_ac_var'}'` = yes; then
17924 cat >>confdefs.h <<_ACEOF
17925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17936 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17944 cat >conftest.$ac_ext <<_ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17952 #define $ac_func innocuous_$ac_func
17954 /* System header to define __stub macros and hopefully few prototypes,
17955 which can conflict with char $ac_func (); below.
17956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17957 <limits.h> exists even on freestanding compilers. */
17960 # include <limits.h>
17962 # include <assert.h>
17967 /* Override any GCC internal prototype to avoid an error.
17968 Use char because int might match the return type of a GCC
17969 builtin and then its argument prototype would still apply. */
17974 /* The GNU C library defines this for functions which it implements
17975 to always fail with ENOSYS. Some functions are actually named
17976 something starting with __ and the normal name is an alias. */
17977 #if defined __stub_$ac_func || defined __stub___$ac_func
17984 return $ac_func ();
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (ac_try="$ac_link"
17991 case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_link") 2>conftest.er1
17998 grep -v '^ *+' conftest.er1 >conftest.err
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18004 { (case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_try") 2>&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; } &&
18013 { ac_try='test -s conftest$ac_exeext'
18014 { (case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_try") 2>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 eval "$as_ac_var=yes"
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18028 eval "$as_ac_var=no"
18031 rm -f core conftest.err conftest.$ac_objext \
18032 conftest$ac_exeext conftest.$ac_ext
18034 ac_res=`eval echo '${'$as_ac_var'}'`
18035 { echo "$as_me:$LINENO: result: $ac_res" >&5
18036 echo "${ECHO_T}$ac_res" >&6; }
18037 if test `eval echo '${'$as_ac_var'}'` = yes; then
18038 cat >>confdefs.h <<_ACEOF
18039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18048 for ac_func in isatty mkdtemp mkstemp
18050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 cat >conftest.$ac_ext <<_ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18064 #define $ac_func innocuous_$ac_func
18066 /* System header to define __stub macros and hopefully few prototypes,
18067 which can conflict with char $ac_func (); below.
18068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18069 <limits.h> exists even on freestanding compilers. */
18072 # include <limits.h>
18074 # include <assert.h>
18079 /* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18086 /* The GNU C library defines this for functions which it implements
18087 to always fail with ENOSYS. Some functions are actually named
18088 something starting with __ and the normal name is an alias. */
18089 #if defined __stub_$ac_func || defined __stub___$ac_func
18096 return $ac_func ();
18101 rm -f conftest.$ac_objext conftest$ac_exeext
18102 if { (ac_try="$ac_link"
18103 case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_link") 2>conftest.er1
18110 grep -v '^ *+' conftest.er1 >conftest.err
18112 cat conftest.err >&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18116 { (case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_try") 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest$ac_exeext'
18126 { (case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_try") 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 eval "$as_ac_var=yes"
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 eval "$as_ac_var=no"
18143 rm -f core conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18146 ac_res=`eval echo '${'$as_ac_var'}'`
18147 { echo "$as_me:$LINENO: result: $ac_res" >&5
18148 echo "${ECHO_T}$ac_res" >&6; }
18149 if test `eval echo '${'$as_ac_var'}'` = yes; then
18150 cat >>confdefs.h <<_ACEOF
18151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18164 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18172 cat >conftest.$ac_ext <<_ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18180 #define $ac_func innocuous_$ac_func
18182 /* System header to define __stub macros and hopefully few prototypes,
18183 which can conflict with char $ac_func (); below.
18184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18185 <limits.h> exists even on freestanding compilers. */
18188 # include <limits.h>
18190 # include <assert.h>
18195 /* Override any GCC internal prototype to avoid an error.
18196 Use char because int might match the return type of a GCC
18197 builtin and then its argument prototype would still apply. */
18202 /* The GNU C library defines this for functions which it implements
18203 to always fail with ENOSYS. Some functions are actually named
18204 something starting with __ and the normal name is an alias. */
18205 #if defined __stub_$ac_func || defined __stub___$ac_func
18212 return $ac_func ();
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (ac_try="$ac_link"
18219 case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_link") 2>conftest.er1
18226 grep -v '^ *+' conftest.er1 >conftest.err
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232 { (case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_try") 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_try") 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 eval "$as_ac_var=yes"
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 eval "$as_ac_var=no"
18259 rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18262 ac_res=`eval echo '${'$as_ac_var'}'`
18263 { echo "$as_me:$LINENO: result: $ac_res" >&5
18264 echo "${ECHO_T}$ac_res" >&6; }
18265 if test `eval echo '${'$as_ac_var'}'` = yes; then
18266 cat >>confdefs.h <<_ACEOF
18267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18277 for ac_func in strerror strerror_r setenv arc4random
18279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18285 cat >conftest.$ac_ext <<_ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18293 #define $ac_func innocuous_$ac_func
18295 /* System header to define __stub macros and hopefully few prototypes,
18296 which can conflict with char $ac_func (); below.
18297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298 <limits.h> exists even on freestanding compilers. */
18301 # include <limits.h>
18303 # include <assert.h>
18308 /* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18315 /* The GNU C library defines this for functions which it implements
18316 to always fail with ENOSYS. Some functions are actually named
18317 something starting with __ and the normal name is an alias. */
18318 #if defined __stub_$ac_func || defined __stub___$ac_func
18325 return $ac_func ();
18330 rm -f conftest.$ac_objext conftest$ac_exeext
18331 if { (ac_try="$ac_link"
18332 case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_link") 2>conftest.er1
18339 grep -v '^ *+' conftest.er1 >conftest.err
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
18344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18345 { (case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_try") 2>&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest$ac_exeext'
18355 { (case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_try") 2>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 eval "$as_ac_var=yes"
18366 echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18369 eval "$as_ac_var=no"
18372 rm -f core conftest.err conftest.$ac_objext \
18373 conftest$ac_exeext conftest.$ac_ext
18375 ac_res=`eval echo '${'$as_ac_var'}'`
18376 { echo "$as_me:$LINENO: result: $ac_res" >&5
18377 echo "${ECHO_T}$ac_res" >&6; }
18378 if test `eval echo '${'$as_ac_var'}'` = yes; then
18379 cat >>confdefs.h <<_ACEOF
18380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18390 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18398 cat >conftest.$ac_ext <<_ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18406 #define $ac_func innocuous_$ac_func
18408 /* System header to define __stub macros and hopefully few prototypes,
18409 which can conflict with char $ac_func (); below.
18410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18411 <limits.h> exists even on freestanding compilers. */
18414 # include <limits.h>
18416 # include <assert.h>
18421 /* Override any GCC internal prototype to avoid an error.
18422 Use char because int might match the return type of a GCC
18423 builtin and then its argument prototype would still apply. */
18428 /* The GNU C library defines this for functions which it implements
18429 to always fail with ENOSYS. Some functions are actually named
18430 something starting with __ and the normal name is an alias. */
18431 #if defined __stub_$ac_func || defined __stub___$ac_func
18438 return $ac_func ();
18443 rm -f conftest.$ac_objext conftest$ac_exeext
18444 if { (ac_try="$ac_link"
18445 case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_link") 2>conftest.er1
18452 grep -v '^ *+' conftest.er1 >conftest.err
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest$ac_exeext'
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 eval "$as_ac_var=yes"
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18482 eval "$as_ac_var=no"
18485 rm -f core conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
18488 ac_res=`eval echo '${'$as_ac_var'}'`
18489 { echo "$as_me:$LINENO: result: $ac_res" >&5
18490 echo "${ECHO_T}$ac_res" >&6; }
18491 if test `eval echo '${'$as_ac_var'}'` = yes; then
18492 cat >>confdefs.h <<_ACEOF
18493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18504 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18507 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 cat >conftest.$ac_ext <<_ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18520 #define $ac_func innocuous_$ac_func
18522 /* System header to define __stub macros and hopefully few prototypes,
18523 which can conflict with char $ac_func (); below.
18524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18525 <limits.h> exists even on freestanding compilers. */
18528 # include <limits.h>
18530 # include <assert.h>
18535 /* Override any GCC internal prototype to avoid an error.
18536 Use char because int might match the return type of a GCC
18537 builtin and then its argument prototype would still apply. */
18542 /* The GNU C library defines this for functions which it implements
18543 to always fail with ENOSYS. Some functions are actually named
18544 something starting with __ and the normal name is an alias. */
18545 #if defined __stub_$ac_func || defined __stub___$ac_func
18552 return $ac_func ();
18557 rm -f conftest.$ac_objext conftest$ac_exeext
18558 if { (ac_try="$ac_link"
18559 case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_link") 2>conftest.er1
18566 grep -v '^ *+' conftest.er1 >conftest.err
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
18571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18572 { (case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_try") 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try='test -s conftest$ac_exeext'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591 eval "$as_ac_var=yes"
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 eval "$as_ac_var=no"
18599 rm -f core conftest.err conftest.$ac_objext \
18600 conftest$ac_exeext conftest.$ac_ext
18602 ac_res=`eval echo '${'$as_ac_var'}'`
18603 { echo "$as_me:$LINENO: result: $ac_res" >&5
18604 echo "${ECHO_T}$ac_res" >&6; }
18605 if test `eval echo '${'$as_ac_var'}'` = yes; then
18606 cat >>confdefs.h <<_ACEOF
18607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18613 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18614 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18615 if test "${llvm_cv_c_printf_a+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 ac_cpp='$CPP $CPPFLAGS'
18620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18624 if test "$cross_compiling" = yes; then
18625 llvmac_cv_c_printf_a=no
18627 cat >conftest.$ac_ext <<_ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18636 #include <stdlib.h>
18642 volatile double A, B;
18646 sprintf(Buffer, "%a", A);
18650 if (A != 0x1.999999999999ap-4)
18657 rm -f conftest$ac_exeext
18658 if { (ac_try="$ac_link"
18659 case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_link") 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } && { ac_try='./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 llvm_cv_c_printf_a=yes
18679 echo "$as_me: program exited with status $ac_status" >&5
18680 echo "$as_me: failed program was:" >&5
18681 sed 's/^/| /' conftest.$ac_ext >&5
18683 ( exit $ac_status )
18684 llvmac_cv_c_printf_a=no
18686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18691 ac_cpp='$CPP $CPPFLAGS'
18692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18697 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18698 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18699 if test "$llvm_cv_c_printf_a" = "yes"; then
18701 cat >>confdefs.h <<\_ACEOF
18702 #define HAVE_PRINTF_A 1
18709 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18710 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18711 if test "${ac_cv_func_rand48+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 ac_cpp='$CXXCPP $CPPFLAGS'
18717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18721 cat >conftest.$ac_ext <<_ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 #include <stdlib.h>
18731 srand48(0);lrand48();drand48();
18736 rm -f conftest.$ac_objext
18737 if { (ac_try="$ac_compile"
18738 case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_compile") 2>conftest.er1
18745 grep -v '^ *+' conftest.er1 >conftest.err
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18751 { (case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_try") 2>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest.$ac_objext'
18761 { (case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_try") 2>&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 ac_cv_func_rand48=yes
18772 echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18775 ac_cv_func_rand48=no
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18780 ac_cpp='$CPP $CPPFLAGS'
18781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18787 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18788 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18790 if test "$ac_cv_func_rand48" = "yes" ; then
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_RAND48 1
18799 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18800 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18801 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 $ac_includes_default
18815 char *p = (char *) strerror_s;
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_compile") 2>conftest.er1
18832 grep -v '^ *+' conftest.er1 >conftest.err
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } &&
18837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18838 { (case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_try") 2>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest.$ac_objext'
18848 { (case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_try") 2>&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_have_decl_strerror_s=yes
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_cv_have_decl_strerror_s=no
18865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18868 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18869 if test $ac_cv_have_decl_strerror_s = yes; then
18871 cat >>confdefs.h <<_ACEOF
18872 #define HAVE_DECL_STRERROR_S 1
18877 cat >>confdefs.h <<_ACEOF
18878 #define HAVE_DECL_STRERROR_S 0
18886 if test "$llvm_cv_os_type" = "MingW" ; then
18887 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18888 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18889 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 ac_check_lib_save_LIBS=$LIBS
18894 cat >conftest.$ac_ext <<_ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h. */
18901 /* Override any GCC internal prototype to avoid an error.
18902 Use char because int might match the return type of a GCC
18903 builtin and then its argument prototype would still apply. */
18916 rm -f conftest.$ac_objext conftest$ac_exeext
18917 if { (ac_try="$ac_link"
18918 case "(($ac_try" in
18919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18920 *) ac_try_echo=$ac_try;;
18922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18923 (eval "$ac_link") 2>conftest.er1
18925 grep -v '^ *+' conftest.er1 >conftest.err
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18931 { (case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_try") 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try='test -s conftest$ac_exeext'
18941 { (case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_try") 2>&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18950 ac_cv_lib_gcc__alloca=yes
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 ac_cv_lib_gcc__alloca=no
18958 rm -f core conftest.err conftest.$ac_objext \
18959 conftest$ac_exeext conftest.$ac_ext
18960 LIBS=$ac_check_lib_save_LIBS
18962 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18963 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18964 if test $ac_cv_lib_gcc__alloca = yes; then
18966 cat >>confdefs.h <<\_ACEOF
18967 #define HAVE__ALLOCA 1
18972 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18973 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18974 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18977 ac_check_lib_save_LIBS=$LIBS
18979 cat >conftest.$ac_ext <<_ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18986 /* Override any GCC internal prototype to avoid an error.
18987 Use char because int might match the return type of a GCC
18988 builtin and then its argument prototype would still apply. */
18996 return __alloca ();
19001 rm -f conftest.$ac_objext conftest$ac_exeext
19002 if { (ac_try="$ac_link"
19003 case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_link") 2>conftest.er1
19010 grep -v '^ *+' conftest.er1 >conftest.err
19012 cat conftest.err >&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); } &&
19015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19016 { (case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_try") 2>&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; } &&
19025 { ac_try='test -s conftest$ac_exeext'
19026 { (case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_try") 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035 ac_cv_lib_gcc___alloca=yes
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 ac_cv_lib_gcc___alloca=no
19043 rm -f core conftest.err conftest.$ac_objext \
19044 conftest$ac_exeext conftest.$ac_ext
19045 LIBS=$ac_check_lib_save_LIBS
19047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19048 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19049 if test $ac_cv_lib_gcc___alloca = yes; then
19051 cat >>confdefs.h <<\_ACEOF
19052 #define HAVE___ALLOCA 1
19057 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19058 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19059 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 ac_check_lib_save_LIBS=$LIBS
19064 cat >conftest.$ac_ext <<_ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h. */
19071 /* Override any GCC internal prototype to avoid an error.
19072 Use char because int might match the return type of a GCC
19073 builtin and then its argument prototype would still apply. */
19081 return __chkstk ();
19086 rm -f conftest.$ac_objext conftest$ac_exeext
19087 if { (ac_try="$ac_link"
19088 case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_link") 2>conftest.er1
19095 grep -v '^ *+' conftest.er1 >conftest.err
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19101 { (case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_try") 2>&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest$ac_exeext'
19111 { (case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_try") 2>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_lib_gcc___chkstk=yes
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ac_cv_lib_gcc___chkstk=no
19128 rm -f core conftest.err conftest.$ac_objext \
19129 conftest$ac_exeext conftest.$ac_ext
19130 LIBS=$ac_check_lib_save_LIBS
19132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19133 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19134 if test $ac_cv_lib_gcc___chkstk = yes; then
19136 cat >>confdefs.h <<\_ACEOF
19137 #define HAVE___CHKSTK 1
19142 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19143 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19144 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 ac_check_lib_save_LIBS=$LIBS
19149 cat >conftest.$ac_ext <<_ACEOF
19152 cat confdefs.h >>conftest.$ac_ext
19153 cat >>conftest.$ac_ext <<_ACEOF
19154 /* end confdefs.h. */
19156 /* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19166 return ___chkstk ();
19171 rm -f conftest.$ac_objext conftest$ac_exeext
19172 if { (ac_try="$ac_link"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_link") 2>conftest.er1
19180 grep -v '^ *+' conftest.er1 >conftest.err
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19186 { (case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_try") 2>&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; } &&
19195 { ac_try='test -s conftest$ac_exeext'
19196 { (case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_try") 2>&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ac_cv_lib_gcc____chkstk=yes
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19210 ac_cv_lib_gcc____chkstk=no
19213 rm -f core conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
19215 LIBS=$ac_check_lib_save_LIBS
19217 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19218 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19219 if test $ac_cv_lib_gcc____chkstk = yes; then
19221 cat >>confdefs.h <<\_ACEOF
19222 #define HAVE____CHKSTK 1
19228 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19229 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19230 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19233 ac_check_lib_save_LIBS=$LIBS
19235 cat >conftest.$ac_ext <<_ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19242 /* Override any GCC internal prototype to avoid an error.
19243 Use char because int might match the return type of a GCC
19244 builtin and then its argument prototype would still apply. */
19252 return __ashldi3 ();
19257 rm -f conftest.$ac_objext conftest$ac_exeext
19258 if { (ac_try="$ac_link"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_link") 2>conftest.er1
19266 grep -v '^ *+' conftest.er1 >conftest.err
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } &&
19271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19272 { (case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_try") 2>&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; } &&
19281 { ac_try='test -s conftest$ac_exeext'
19282 { (case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_try") 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291 ac_cv_lib_gcc___ashldi3=yes
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19296 ac_cv_lib_gcc___ashldi3=no
19299 rm -f core conftest.err conftest.$ac_objext \
19300 conftest$ac_exeext conftest.$ac_ext
19301 LIBS=$ac_check_lib_save_LIBS
19303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19304 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19305 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19307 cat >>confdefs.h <<\_ACEOF
19308 #define HAVE___ASHLDI3 1
19313 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19314 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19315 if test "${ac_cv_lib_gcc___ashrdi3+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. */
19337 return __ashrdi3 ();
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___ashrdi3=yes
19378 echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19381 ac_cv_lib_gcc___ashrdi3=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___ashrdi3" >&5
19389 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19390 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19392 cat >>confdefs.h <<\_ACEOF
19393 #define HAVE___ASHRDI3 1
19398 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19399 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19400 if test "${ac_cv_lib_gcc___divdi3+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 __divdi3 ();
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___divdi3=yes
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19466 ac_cv_lib_gcc___divdi3=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___divdi3" >&5
19474 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19475 if test $ac_cv_lib_gcc___divdi3 = yes; then
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE___DIVDI3 1
19483 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19484 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19485 if test "${ac_cv_lib_gcc___fixdfdi+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 __fixdfdi ();
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___fixdfdi=yes
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 ac_cv_lib_gcc___fixdfdi=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___fixdfdi" >&5
19559 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19560 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE___FIXDFDI 1
19568 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19569 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19570 if test "${ac_cv_lib_gcc___fixsfdi+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 __fixsfdi ();
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___fixsfdi=yes
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 ac_cv_lib_gcc___fixsfdi=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___fixsfdi" >&5
19644 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19645 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE___FIXSFDI 1
19653 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19654 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19655 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 ac_check_lib_save_LIBS=$LIBS
19660 cat >conftest.$ac_ext <<_ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19667 /* Override any GCC internal prototype to avoid an error.
19668 Use char because int might match the return type of a GCC
19669 builtin and then its argument prototype would still apply. */
19673 char __floatdidf ();
19677 return __floatdidf ();
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (ac_try="$ac_link"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19691 grep -v '^ *+' conftest.er1 >conftest.err
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19697 { (case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_try") 2>&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try='test -s conftest$ac_exeext'
19707 { (case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_try") 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 ac_cv_lib_gcc___floatdidf=yes
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_cv_lib_gcc___floatdidf=no
19724 rm -f core conftest.err conftest.$ac_objext \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19729 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19730 if test $ac_cv_lib_gcc___floatdidf = yes; then
19732 cat >>confdefs.h <<\_ACEOF
19733 #define HAVE___FLOATDIDF 1
19738 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19739 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19740 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 ac_check_lib_save_LIBS=$LIBS
19745 cat >conftest.$ac_ext <<_ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19752 /* Override any GCC internal prototype to avoid an error.
19753 Use char because int might match the return type of a GCC
19754 builtin and then its argument prototype would still apply. */
19762 return __lshrdi3 ();
19767 rm -f conftest.$ac_objext conftest$ac_exeext
19768 if { (ac_try="$ac_link"
19769 case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_link") 2>conftest.er1
19776 grep -v '^ *+' conftest.er1 >conftest.err
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
19781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19782 { (case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_try") 2>&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; } &&
19791 { ac_try='test -s conftest$ac_exeext'
19792 { (case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_try") 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_cv_lib_gcc___lshrdi3=yes
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 ac_cv_lib_gcc___lshrdi3=no
19809 rm -f core conftest.err conftest.$ac_objext \
19810 conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_check_lib_save_LIBS
19813 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19814 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19815 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19817 cat >>confdefs.h <<\_ACEOF
19818 #define HAVE___LSHRDI3 1
19823 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19824 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19825 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 ac_check_lib_save_LIBS=$LIBS
19830 cat >conftest.$ac_ext <<_ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19837 /* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
19847 return __moddi3 ();
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (ac_try="$ac_link"
19854 case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_link") 2>conftest.er1
19861 grep -v '^ *+' conftest.er1 >conftest.err
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } &&
19866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19867 { (case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_try") 2>&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest$ac_exeext'
19877 { (case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_try") 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; }; then
19886 ac_cv_lib_gcc___moddi3=yes
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19891 ac_cv_lib_gcc___moddi3=no
19894 rm -f core conftest.err conftest.$ac_objext \
19895 conftest$ac_exeext conftest.$ac_ext
19896 LIBS=$ac_check_lib_save_LIBS
19898 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19899 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19900 if test $ac_cv_lib_gcc___moddi3 = yes; then
19902 cat >>confdefs.h <<\_ACEOF
19903 #define HAVE___MODDI3 1
19908 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19909 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19910 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 ac_check_lib_save_LIBS=$LIBS
19915 cat >conftest.$ac_ext <<_ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19922 /* Override any GCC internal prototype to avoid an error.
19923 Use char because int might match the return type of a GCC
19924 builtin and then its argument prototype would still apply. */
19932 return __udivdi3 ();
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_link") 2>conftest.er1
19946 grep -v '^ *+' conftest.er1 >conftest.err
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19952 { (case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_try") 2>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest$ac_exeext'
19962 { (case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_try") 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_cv_lib_gcc___udivdi3=yes
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19976 ac_cv_lib_gcc___udivdi3=no
19979 rm -f core conftest.err conftest.$ac_objext \
19980 conftest$ac_exeext conftest.$ac_ext
19981 LIBS=$ac_check_lib_save_LIBS
19983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19984 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19985 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19987 cat >>confdefs.h <<\_ACEOF
19988 #define HAVE___UDIVDI3 1
19993 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19994 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19995 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 ac_check_lib_save_LIBS=$LIBS
20000 cat >conftest.$ac_ext <<_ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20007 /* Override any GCC internal prototype to avoid an error.
20008 Use char because int might match the return type of a GCC
20009 builtin and then its argument prototype would still apply. */
20017 return __umoddi3 ();
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (ac_try="$ac_link"
20024 case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_link") 2>conftest.er1
20031 grep -v '^ *+' conftest.er1 >conftest.err
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20037 { (case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_try") 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest$ac_exeext'
20047 { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_try") 2>&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 ac_cv_lib_gcc___umoddi3=yes
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 ac_cv_lib_gcc___umoddi3=no
20064 rm -f core conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
20066 LIBS=$ac_check_lib_save_LIBS
20068 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20069 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20070 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20072 cat >>confdefs.h <<\_ACEOF
20073 #define HAVE___UMODDI3 1
20079 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20080 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20081 if test "${ac_cv_lib_gcc___main+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. */
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___main=yes
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_cv_lib_gcc___main=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___main" >&5
20155 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20156 if test $ac_cv_lib_gcc___main = yes; then
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE___MAIN 1
20164 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20165 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20166 if test "${ac_cv_lib_gcc___cmpdi2+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 __cmpdi2 ();
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___cmpdi2=yes
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_cv_lib_gcc___cmpdi2=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___cmpdi2" >&5
20240 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20241 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20243 cat >>confdefs.h <<\_ACEOF
20244 #define HAVE___CMPDI2 1
20251 if test "$llvm_cv_os_type" = "MingW" ; then
20252 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20253 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20254 cat >conftest.$ac_ext <<_ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20262 #include <windows.h>
20263 #include <imagehlp.h>
20264 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20265 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20269 rm -f conftest.$ac_objext
20270 if { (ac_try="$ac_compile"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20278 grep -v '^ *+' conftest.er1 >conftest.err
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } &&
20283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20284 { (case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_try") 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest.$ac_objext'
20294 { (case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_try") 2>&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; }; then
20304 { echo "$as_me:$LINENO: result: yes" >&5
20305 echo "${ECHO_T}yes" >&6; }
20306 llvm_cv_win32_elmcb_pcstr="PCSTR"
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20313 { echo "$as_me:$LINENO: result: no" >&5
20314 echo "${ECHO_T}no" >&6; }
20315 llvm_cv_win32_elmcb_pcstr="PSTR"
20319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20321 cat >>confdefs.h <<_ACEOF
20322 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20329 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20330 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20331 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 ac_cpp='$CXXCPP $CPPFLAGS'
20337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20341 cat >conftest.$ac_ext <<_ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20356 rm -f conftest.$ac_objext
20357 if { (ac_try="$ac_compile"
20358 case "(($ac_try" in
20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360 *) ac_try_echo=$ac_try;;
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363 (eval "$ac_compile") 2>conftest.er1
20365 grep -v '^ *+' conftest.er1 >conftest.err
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
20370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20371 { (case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_try") 2>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; } &&
20380 { ac_try='test -s conftest.$ac_objext'
20381 { (case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_try") 2>&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20390 ac_cv_func_isnan_in_math_h=yes
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20395 ac_cv_func_isnan_in_math_h=no
20398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20400 ac_cpp='$CPP $CPPFLAGS'
20401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20407 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20408 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20411 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20413 cat >>confdefs.h <<\_ACEOF
20414 #define HAVE_ISNAN_IN_MATH_H 1
20420 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20421 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20422 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 ac_cpp='$CXXCPP $CPPFLAGS'
20428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20432 cat >conftest.$ac_ext <<_ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h. */
20447 rm -f conftest.$ac_objext
20448 if { (ac_try="$ac_compile"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_compile") 2>conftest.er1
20456 grep -v '^ *+' conftest.er1 >conftest.err
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20462 { (case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_try") 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; } &&
20471 { ac_try='test -s conftest.$ac_objext'
20472 { (case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_try") 2>&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 ac_cv_func_isnan_in_cmath=yes
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20486 ac_cv_func_isnan_in_cmath=no
20489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20491 ac_cpp='$CPP $CPPFLAGS'
20492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20498 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20499 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20501 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20503 cat >>confdefs.h <<\_ACEOF
20504 #define HAVE_ISNAN_IN_CMATH 1
20510 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20511 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20512 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20517 ac_cpp='$CXXCPP $CPPFLAGS'
20518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20522 cat >conftest.$ac_ext <<_ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20532 float f; std::isnan(f);
20537 rm -f conftest.$ac_objext
20538 if { (ac_try="$ac_compile"
20539 case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_compile") 2>conftest.er1
20546 grep -v '^ *+' conftest.er1 >conftest.err
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
20551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20552 { (case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest.$ac_objext'
20562 { (case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_try") 2>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571 ac_cv_func_std_isnan_in_cmath=yes
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 ac_cv_func_std_isnan_in_cmath=no
20579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 ac_cpp='$CPP $CPPFLAGS'
20582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20589 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20591 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20593 cat >>confdefs.h <<\_ACEOF
20594 #define HAVE_STD_ISNAN_IN_CMATH 1
20602 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20603 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20604 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20609 ac_cpp='$CXXCPP $CPPFLAGS'
20610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20629 rm -f conftest.$ac_objext
20630 if { (ac_try="$ac_compile"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_compile") 2>conftest.er1
20638 grep -v '^ *+' conftest.er1 >conftest.err
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
20653 { ac_try='test -s conftest.$ac_objext'
20654 { (case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_try") 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 ac_cv_func_isinf_in_math_h=yes
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20668 ac_cv_func_isinf_in_math_h=no
20671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20673 ac_cpp='$CPP $CPPFLAGS'
20674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20680 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20681 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20683 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_ISINF_IN_MATH_H 1
20692 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20693 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20694 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 ac_cpp='$CXXCPP $CPPFLAGS'
20700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20719 rm -f conftest.$ac_objext
20720 if { (ac_try="$ac_compile"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_compile") 2>conftest.er1
20728 grep -v '^ *+' conftest.er1 >conftest.err
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20734 { (case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_try") 2>&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; } &&
20743 { ac_try='test -s conftest.$ac_objext'
20744 { (case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_try") 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20753 ac_cv_func_isinf_in_cmath=yes
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 ac_cv_func_isinf_in_cmath=no
20761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20763 ac_cpp='$CPP $CPPFLAGS'
20764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20770 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20771 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20773 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_ISINF_IN_CMATH 1
20782 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20783 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20784 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 ac_cpp='$CXXCPP $CPPFLAGS'
20790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20794 cat >conftest.$ac_ext <<_ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20804 float f; std::isinf(f);
20809 rm -f conftest.$ac_objext
20810 if { (ac_try="$ac_compile"
20811 case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_compile") 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20824 { (case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_try") 2>&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; } &&
20833 { ac_try='test -s conftest.$ac_objext'
20834 { (case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_try") 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 ac_cv_func_std_isinf_in_cmath=yes
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ac_cv_func_std_isinf_in_cmath=no
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20860 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20861 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20863 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20865 cat >>confdefs.h <<\_ACEOF
20866 #define HAVE_STD_ISINF_IN_CMATH 1
20872 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20873 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20874 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20879 ac_cpp='$CXXCPP $CPPFLAGS'
20880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20884 cat >conftest.$ac_ext <<_ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20890 #include <ieeefp.h>
20894 float f; finite(f);
20899 rm -f conftest.$ac_objext
20900 if { (ac_try="$ac_compile"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_compile") 2>conftest.er1
20908 grep -v '^ *+' conftest.er1 >conftest.err
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } &&
20913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20914 { (case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_try") 2>&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; } &&
20923 { ac_try='test -s conftest.$ac_objext'
20924 { (case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_try") 2>&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; }; then
20933 ac_cv_func_finite_in_ieeefp_h=yes
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 ac_cv_func_finite_in_ieeefp_h=no
20941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943 ac_cpp='$CPP $CPPFLAGS'
20944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20950 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20951 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20953 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20955 cat >>confdefs.h <<\_ACEOF
20956 #define HAVE_FINITE_IN_IEEEFP_H 1
20963 if test "$llvm_cv_platform_type" = "Unix" ; then
20966 for ac_header in stdlib.h unistd.h
20968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 ac_res=`eval echo '${'$as_ac_Header'}'`
20976 { echo "$as_me:$LINENO: result: $ac_res" >&5
20977 echo "${ECHO_T}$ac_res" >&6; }
20979 # Is the header compilable?
20980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20982 cat >conftest.$ac_ext <<_ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 $ac_includes_default
20989 #include <$ac_header>
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_compile") 2>conftest.er1
21000 grep -v '^ *+' conftest.er1 >conftest.err
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21006 { (case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_try") 2>&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest.$ac_objext'
21016 { (case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_try") 2>&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_header_compiler=yes
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 ac_header_compiler=no
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21035 echo "${ECHO_T}$ac_header_compiler" >&6; }
21037 # Is the header present?
21038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 #include <$ac_header>
21048 if { (ac_try="$ac_cpp conftest.$ac_ext"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } >/dev/null; then
21061 if test -s conftest.err; then
21062 ac_cpp_err=$ac_c_preproc_warn_flag
21063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21070 if test -z "$ac_cpp_err"; then
21071 ac_header_preproc=yes
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21076 ac_header_preproc=no
21079 rm -f conftest.err conftest.$ac_ext
21080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21081 echo "${ECHO_T}$ac_header_preproc" >&6; }
21083 # So? What about this header?
21084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21090 ac_header_preproc=yes
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21106 ## ------------------------------------ ##
21107 ## Report this to http://llvm.org/bugs/ ##
21108 ## ------------------------------------ ##
21110 ) | sed "s/^/$as_me: WARNING: /" >&2
21113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 eval "$as_ac_Header=\$ac_header_preproc"
21120 ac_res=`eval echo '${'$as_ac_Header'}'`
21121 { echo "$as_me:$LINENO: result: $ac_res" >&5
21122 echo "${ECHO_T}$ac_res" >&6; }
21125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21126 cat >>confdefs.h <<_ACEOF
21127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21135 for ac_func in getpagesize
21137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 cat >conftest.$ac_ext <<_ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21151 #define $ac_func innocuous_$ac_func
21153 /* System header to define __stub macros and hopefully few prototypes,
21154 which can conflict with char $ac_func (); below.
21155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21156 <limits.h> exists even on freestanding compilers. */
21159 # include <limits.h>
21161 # include <assert.h>
21166 /* Override any GCC internal prototype to avoid an error.
21167 Use char because int might match the return type of a GCC
21168 builtin and then its argument prototype would still apply. */
21173 /* The GNU C library defines this for functions which it implements
21174 to always fail with ENOSYS. Some functions are actually named
21175 something starting with __ and the normal name is an alias. */
21176 #if defined __stub_$ac_func || defined __stub___$ac_func
21183 return $ac_func ();
21188 rm -f conftest.$ac_objext conftest$ac_exeext
21189 if { (ac_try="$ac_link"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_link") 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } &&
21202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21203 { (case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_try") 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; } &&
21212 { ac_try='test -s conftest$ac_exeext'
21213 { (case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218 (eval "$ac_try") 2>&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; }; then
21222 eval "$as_ac_var=yes"
21224 echo "$as_me: failed program was:" >&5
21225 sed 's/^/| /' conftest.$ac_ext >&5
21227 eval "$as_ac_var=no"
21230 rm -f core conftest.err conftest.$ac_objext \
21231 conftest$ac_exeext conftest.$ac_ext
21233 ac_res=`eval echo '${'$as_ac_var'}'`
21234 { echo "$as_me:$LINENO: result: $ac_res" >&5
21235 echo "${ECHO_T}$ac_res" >&6; }
21236 if test `eval echo '${'$as_ac_var'}'` = yes; then
21237 cat >>confdefs.h <<_ACEOF
21238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21244 { echo "$as_me:$LINENO: checking for working mmap" >&5
21245 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21246 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 if test "$cross_compiling" = yes; then
21250 ac_cv_func_mmap_fixed_mapped=no
21252 cat >conftest.$ac_ext <<_ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21258 $ac_includes_default
21259 /* malloc might have been renamed as rpl_malloc. */
21262 /* Thanks to Mike Haertel and Jim Avera for this test.
21263 Here is a matrix of mmap possibilities:
21264 mmap private not fixed
21265 mmap private fixed at somewhere currently unmapped
21266 mmap private fixed at somewhere already mapped
21267 mmap shared not fixed
21268 mmap shared fixed at somewhere currently unmapped
21269 mmap shared fixed at somewhere already mapped
21270 For private mappings, we should verify that changes cannot be read()
21271 back from the file, nor mmap's back from the file at a different
21272 address. (There have been systems where private was not correctly
21273 implemented like the infamous i386 svr4.0, and systems where the
21274 VM page cache was not coherent with the file system buffer cache
21275 like early versions of FreeBSD and possibly contemporary NetBSD.)
21276 For shared mappings, we should conversely verify that changes get
21277 propagated back to all the places they're supposed to be.
21279 Grep wants private fixed already mapped.
21280 The main things grep needs to know about mmap are:
21281 * does it exist and is it safe to write into the mmap'd area
21282 * how to use it (BSD variants) */
21285 #include <sys/mman.h>
21287 #if !STDC_HEADERS && !HAVE_STDLIB_H
21291 /* This mess was copied from the GNU getpagesize.h. */
21292 #if !HAVE_GETPAGESIZE
21293 /* Assume that all systems that can run configure have sys/param.h. */
21294 # if !HAVE_SYS_PARAM_H
21295 # define HAVE_SYS_PARAM_H 1
21298 # ifdef _SC_PAGESIZE
21299 # define getpagesize() sysconf(_SC_PAGESIZE)
21300 # else /* no _SC_PAGESIZE */
21301 # if HAVE_SYS_PARAM_H
21302 # include <sys/param.h>
21303 # ifdef EXEC_PAGESIZE
21304 # define getpagesize() EXEC_PAGESIZE
21305 # else /* no EXEC_PAGESIZE */
21307 # define getpagesize() NBPG * CLSIZE
21310 # endif /* no CLSIZE */
21311 # else /* no NBPG */
21313 # define getpagesize() NBPC
21314 # else /* no NBPC */
21316 # define getpagesize() PAGESIZE
21317 # endif /* PAGESIZE */
21318 # endif /* no NBPC */
21319 # endif /* no NBPG */
21320 # endif /* no EXEC_PAGESIZE */
21321 # else /* no HAVE_SYS_PARAM_H */
21322 # define getpagesize() 8192 /* punt totally */
21323 # endif /* no HAVE_SYS_PARAM_H */
21324 # endif /* no _SC_PAGESIZE */
21326 #endif /* no HAVE_GETPAGESIZE */
21331 char *data, *data2, *data3;
21335 pagesize = getpagesize ();
21337 /* First, make a file with some known garbage in it. */
21338 data = (char *) malloc (pagesize);
21341 for (i = 0; i < pagesize; ++i)
21342 *(data + i) = rand ();
21344 fd = creat ("conftest.mmap", 0600);
21347 if (write (fd, data, pagesize) != pagesize)
21351 /* Next, try to mmap the file at a fixed address which already has
21352 something else allocated at it. If we can, also make sure that
21353 we see the same garbage. */
21354 fd = open ("conftest.mmap", O_RDWR);
21357 data2 = (char *) malloc (2 * pagesize);
21360 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21361 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21362 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21364 for (i = 0; i < pagesize; ++i)
21365 if (*(data + i) != *(data2 + i))
21368 /* Finally, make sure that changes to the mapped area do not
21369 percolate back to the file as seen by read(). (This is a bug on
21370 some variants of i386 svr4.0.) */
21371 for (i = 0; i < pagesize; ++i)
21372 *(data2 + i) = *(data2 + i) + 1;
21373 data3 = (char *) malloc (pagesize);
21376 if (read (fd, data3, pagesize) != pagesize)
21378 for (i = 0; i < pagesize; ++i)
21379 if (*(data + i) != *(data3 + i))
21385 rm -f conftest$ac_exeext
21386 if { (ac_try="$ac_link"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_link") 2>&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21396 { (case "(($ac_try" in
21397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398 *) ac_try_echo=$ac_try;;
21400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21401 (eval "$ac_try") 2>&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; }; then
21405 ac_cv_func_mmap_fixed_mapped=yes
21407 echo "$as_me: program exited with status $ac_status" >&5
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ( exit $ac_status )
21412 ac_cv_func_mmap_fixed_mapped=no
21414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21419 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21420 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21421 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21423 cat >>confdefs.h <<\_ACEOF
21424 #define HAVE_MMAP 1
21428 rm -f conftest.mmap
21430 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21431 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21432 if test "${ac_cv_func_mmap_file+set}" = set; then
21433 echo $ECHO_N "(cached) $ECHO_C" >&6
21436 ac_cpp='$CPP $CPPFLAGS'
21437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21441 if test "$cross_compiling" = yes; then
21442 ac_cv_func_mmap_file=no
21444 cat >conftest.$ac_ext <<_ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21452 #include <sys/types.h>
21453 #include <sys/mman.h>
21461 fd = creat ("foo",0777);
21462 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21464 return (fd != (int) MAP_FAILED);
21469 rm -f conftest$ac_exeext
21470 if { (ac_try="$ac_link"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_link") 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21480 { (case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_try") 2>&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; }; then
21489 ac_cv_func_mmap_file=yes
21491 echo "$as_me: program exited with status $ac_status" >&5
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21495 ( exit $ac_status )
21496 ac_cv_func_mmap_file=no
21498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21503 ac_cpp='$CPP $CPPFLAGS'
21504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21510 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21511 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21512 if test "$ac_cv_func_mmap_file" = yes; then
21514 cat >>confdefs.h <<\_ACEOF
21515 #define HAVE_MMAP_FILE
21522 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21523 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21524 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 if test "$llvm_cv_os_type" = "Interix" ; then
21528 ac_cv_need_dev_zero_for_mmap=yes
21530 ac_cv_need_dev_zero_for_mmap=no
21534 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21535 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21536 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21538 cat >>confdefs.h <<\_ACEOF
21539 #define NEED_DEV_ZERO_FOR_MMAP 1
21544 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21546 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21547 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21549 if test "$ac_cv_func_mmap_file" = "no"
21551 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21552 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21556 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21557 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21559 ac_cpp='$CXXCPP $CPPFLAGS'
21560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21564 cat >conftest.$ac_ext <<_ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21573 volatile unsigned long val = 1;
21574 __sync_synchronize();
21575 __sync_val_compare_and_swap(&val, 1, 0);
21576 __sync_add_and_fetch(&val, 1);
21577 __sync_sub_and_fetch(&val, 1);
21583 rm -f conftest.$ac_objext conftest$ac_exeext
21584 if { (ac_try="$ac_link"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_link") 2>conftest.er1
21592 grep -v '^ *+' conftest.er1 >conftest.err
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
21597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21598 { (case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_try") 2>&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; } &&
21607 { ac_try='test -s conftest$ac_exeext'
21608 { (case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613 (eval "$ac_try") 2>&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; }; then
21618 { echo "$as_me:$LINENO: result: yes" >&5
21619 echo "${ECHO_T}yes" >&6; }
21621 cat >>confdefs.h <<\_ACEOF
21622 #define LLVM_HAS_ATOMICS 1
21627 echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21631 { echo "$as_me:$LINENO: result: no" >&5
21632 echo "${ECHO_T}no" >&6; }
21634 cat >>confdefs.h <<\_ACEOF
21635 #define LLVM_HAS_ATOMICS 0
21638 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21639 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21643 rm -f core conftest.err conftest.$ac_objext \
21644 conftest$ac_exeext conftest.$ac_ext
21646 ac_cpp='$CPP $CPPFLAGS'
21647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21653 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21654 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21655 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21656 if test "${llvm_cv_linux_mixed+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 ac_cpp='$CPP $CPPFLAGS'
21661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21665 cat >conftest.$ac_ext <<_ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21672 error: Not x86-64 even if uname says so!
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_compile") 2>conftest.er1
21692 grep -v '^ *+' conftest.er1 >conftest.err
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } &&
21697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; } &&
21707 { ac_try='test -s conftest.$ac_objext'
21708 { (case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_try") 2>&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; }; then
21717 llvm_cv_linux_mixed=no
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 llvm_cv_linux_mixed=yes
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727 ac_cpp='$CPP $CPPFLAGS'
21728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21734 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21735 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21737 if test "$llvm_cv_linux_mixed" = "yes"; then
21738 llvm_cv_target_arch="x86"
21744 for ac_func in __dso_handle
21746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 cat >conftest.$ac_ext <<_ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21760 #define $ac_func innocuous_$ac_func
21762 /* System header to define __stub macros and hopefully few prototypes,
21763 which can conflict with char $ac_func (); below.
21764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21765 <limits.h> exists even on freestanding compilers. */
21768 # include <limits.h>
21770 # include <assert.h>
21775 /* Override any GCC internal prototype to avoid an error.
21776 Use char because int might match the return type of a GCC
21777 builtin and then its argument prototype would still apply. */
21782 /* The GNU C library defines this for functions which it implements
21783 to always fail with ENOSYS. Some functions are actually named
21784 something starting with __ and the normal name is an alias. */
21785 #if defined __stub_$ac_func || defined __stub___$ac_func
21792 return $ac_func ();
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>conftest.er1
21806 grep -v '^ *+' conftest.er1 >conftest.err
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } &&
21811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21812 { (case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817 (eval "$ac_try") 2>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } &&
21821 { ac_try='test -s 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 eval "$as_ac_var=yes"
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21836 eval "$as_ac_var=no"
21839 rm -f core conftest.err conftest.$ac_objext \
21840 conftest$ac_exeext conftest.$ac_ext
21842 ac_res=`eval echo '${'$as_ac_var'}'`
21843 { echo "$as_me:$LINENO: result: $ac_res" >&5
21844 echo "${ECHO_T}$ac_res" >&6; }
21845 if test `eval echo '${'$as_ac_var'}'` = yes; then
21846 cat >>confdefs.h <<_ACEOF
21847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21854 SHLIBEXT=$libltdl_cv_shlibext
21857 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21860 if test "${prefix}" = "NONE" ; then
21861 prefix="/usr/local"
21863 eval LLVM_PREFIX="${prefix}";
21864 eval LLVM_BINDIR="${prefix}/bin";
21865 eval LLVM_LIBDIR="${prefix}/lib";
21866 eval LLVM_DATADIR="${prefix}/share/llvm";
21867 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21868 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21869 eval LLVM_INCLUDEDIR="${prefix}/include";
21870 eval LLVM_INFODIR="${prefix}/info";
21871 eval LLVM_MANDIR="${prefix}/man";
21872 LLVM_CONFIGTIME=`date`
21884 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21885 LLVM_CONFIGTIME="(timestamp not enabled)"
21889 cat >>confdefs.h <<_ACEOF
21890 #define LLVM_PREFIX "$LLVM_PREFIX"
21894 cat >>confdefs.h <<_ACEOF
21895 #define LLVM_BINDIR "$LLVM_BINDIR"
21899 cat >>confdefs.h <<_ACEOF
21900 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21904 cat >>confdefs.h <<_ACEOF
21905 #define LLVM_DATADIR "$LLVM_DATADIR"
21909 cat >>confdefs.h <<_ACEOF
21910 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21914 cat >>confdefs.h <<_ACEOF
21915 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21919 cat >>confdefs.h <<_ACEOF
21920 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21924 cat >>confdefs.h <<_ACEOF
21925 #define LLVM_INFODIR "$LLVM_INFODIR"
21929 cat >>confdefs.h <<_ACEOF
21930 #define LLVM_MANDIR "$LLVM_MANDIR"
21934 cat >>confdefs.h <<_ACEOF
21935 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21939 cat >>confdefs.h <<_ACEOF
21940 #define LLVM_HOSTTRIPLE "$host"
21944 cat >>confdefs.h <<_ACEOF
21945 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21949 if test "$BINDINGS_TO_BUILD" = auto ; then
21950 BINDINGS_TO_BUILD=""
21951 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21952 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21955 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21961 binding_prereqs_failed=0
21962 for a_binding in $BINDINGS_TO_BUILD ; do
21963 case "$a_binding" in
21965 if test "x$OCAMLC" = x ; then
21966 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21967 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21968 binding_prereqs_failed=1
21970 if test "x$OCAMLDEP" = x ; then
21971 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21972 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21973 binding_prereqs_failed=1
21975 if test "x$OCAMLOPT" = x ; then
21976 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21977 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21979 if test "x$with_ocaml_libdir" != xauto ; then
21980 OCAML_LIBDIR=$with_ocaml_libdir
21983 ocaml_stdlib="`"$OCAMLC" -where`"
21984 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21986 # ocaml stdlib is beneath our prefix; use stdlib
21987 OCAML_LIBDIR=$ocaml_stdlib
21990 # ocaml stdlib is outside our prefix; use libdir/ocaml
21991 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21998 if test "$binding_prereqs_failed" = 1 ; then
21999 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22000 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22001 { (exit 1); exit 1; }; }
22004 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22005 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22006 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22010 ac_cpp='$CXXCPP $CPPFLAGS'
22011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22015 oldcxxflags="$CXXFLAGS"
22016 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22032 rm -f conftest.$ac_objext
22033 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22041 grep -v '^ *+' conftest.er1 >conftest.err
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } &&
22046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22047 { (case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_try") 2>&5
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; } &&
22056 { ac_try='test -s conftest.$ac_objext'
22057 { (case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_try") 2>&5
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; }; then
22066 llvm_cv_cxx_visibility_inlines_hidden=yes
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22071 llvm_cv_cxx_visibility_inlines_hidden=no
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 CXXFLAGS="$oldcxxflags"
22077 ac_cpp='$CPP $CPPFLAGS'
22078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22084 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22085 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22086 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22087 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22090 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22095 if test "$llvm_cv_link_use_r" = "yes" ; then
22102 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22103 RDYNAMIC="-Wl,-export-dynamic"
22110 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22117 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22119 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22121 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22123 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22125 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22128 ac_config_files="$ac_config_files Makefile.config"
22131 ac_config_files="$ac_config_files llvm.spec"
22134 ac_config_files="$ac_config_files docs/doxygen.cfg"
22137 if test "${clang_src_root}" = ""; then
22138 clang_src_root="$srcdir/tools/clang"
22140 if test -f ${clang_src_root}/README.txt; then
22141 configh="include/clang/Config/config.h"
22142 doxy="docs/doxygen.cfg"
22143 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22145 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22149 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22152 test "x$program_prefix" = "xNONE" && program_prefix=""
22156 ac_config_commands="$ac_config_commands setup"
22158 ac_config_commands="$ac_config_commands Makefile"
22161 ac_config_commands="$ac_config_commands Makefile.common"
22164 ac_config_commands="$ac_config_commands examples/Makefile"
22167 ac_config_commands="$ac_config_commands lib/Makefile"
22170 ac_config_commands="$ac_config_commands runtime/Makefile"
22173 ac_config_commands="$ac_config_commands test/Makefile"
22176 ac_config_commands="$ac_config_commands test/Makefile.tests"
22179 ac_config_commands="$ac_config_commands unittests/Makefile"
22182 ac_config_commands="$ac_config_commands tools/Makefile"
22185 ac_config_commands="$ac_config_commands utils/Makefile"
22188 ac_config_commands="$ac_config_commands projects/Makefile"
22191 ac_config_commands="$ac_config_commands bindings/Makefile"
22194 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22198 cat >confcache <<\_ACEOF
22199 # This file is a shell script that caches the results of configure
22200 # tests run on this system so they can be shared between configure
22201 # scripts and configure runs, see configure's option --config-cache.
22202 # It is not useful on other systems. If it contains results you don't
22203 # want to keep, you may remove or edit it.
22205 # config.status only pays attention to the cache file if you give it
22206 # the --recheck option to rerun configure.
22208 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22209 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22210 # following values.
22214 # The following way of writing the cache mishandles newlines in values,
22215 # but we know of no workaround that is simple, portable, and efficient.
22216 # So, we kill variables containing newlines.
22217 # Ultrix sh set writes to stderr and can't be redirected directly,
22218 # and sets the high bit in the cache file unless we assign to the vars.
22220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22221 eval ac_val=\$$ac_var
22225 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22226 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22229 _ | IFS | as_nl) ;; #(
22230 *) $as_unset $ac_var ;;
22236 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22237 *${as_nl}ac_space=\ *)
22238 # `set' does not quote correctly, so add quotes (double-quote
22239 # substitution turns \\\\ into \\, and sed turns \\ into \).
22242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22245 # `set' quotes correctly as required by POSIX, so do not add quotes.
22246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22260 if test -w "$cache_file"; then
22261 test "x$cache_file" != "x/dev/null" &&
22262 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22263 echo "$as_me: updating cache $cache_file" >&6;}
22264 cat confcache >$cache_file
22266 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22267 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22272 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22273 # Let make expand exec_prefix.
22274 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22276 DEFS=-DHAVE_CONFIG_H
22280 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22281 # 1. Remove the extension, and $U if already installed.
22282 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22283 ac_i=`echo "$ac_i" | sed "$ac_script"`
22284 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22285 # will be set to the directory where LIBOBJS objects are built.
22286 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22287 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22289 LIBOBJS=$ac_libobjs
22291 LTLIBOBJS=$ac_ltlibobjs
22294 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22295 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22296 Usually this means the macro was only invoked conditionally." >&5
22297 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22298 Usually this means the macro was only invoked conditionally." >&2;}
22299 { (exit 1); exit 1; }; }
22301 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22302 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22303 Usually this means the macro was only invoked conditionally." >&5
22304 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22305 Usually this means the macro was only invoked conditionally." >&2;}
22306 { (exit 1); exit 1; }; }
22309 : ${CONFIG_STATUS=./config.status}
22310 ac_clean_files_save=$ac_clean_files
22311 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22312 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22313 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22314 cat >$CONFIG_STATUS <<_ACEOF
22316 # Generated by $as_me.
22317 # Run this file to recreate the current configuration.
22318 # Compiler output produced by configure, useful for debugging
22319 # configure, is in config.log if it exists.
22322 ac_cs_recheck=false
22324 SHELL=\${CONFIG_SHELL-$SHELL}
22327 cat >>$CONFIG_STATUS <<\_ACEOF
22328 ## --------------------- ##
22329 ## M4sh Initialization. ##
22330 ## --------------------- ##
22332 # Be Bourne compatible
22333 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22336 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22337 # is contrary to our usage. Disable this feature.
22338 alias -g '${1+"$@"}'='"$@"'
22339 setopt NO_GLOB_SUBST
22341 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22343 BIN_SH=xpg4; export BIN_SH # for Tru64
22344 DUALCASE=1; export DUALCASE # for MKS sh
22348 # Avoid depending upon Character Ranges.
22349 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22350 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22351 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22352 as_cr_digits='0123456789'
22353 as_cr_alnum=$as_cr_Letters$as_cr_digits
22355 # The user is always right.
22356 if test "${PATH_SEPARATOR+set}" != set; then
22357 echo "#! /bin/sh" >conf$$.sh
22358 echo "exit 0" >>conf$$.sh
22360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22368 # Support unset when possible.
22369 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22377 # We need space, tab and new line, in precisely that order. Quoting is
22378 # there to prevent editors from complaining about space-tab.
22379 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22380 # splitting by setting IFS to empty value.)
22385 # Find who we are. Look in the path if we contain no directory separator.
22387 *[\\/]* ) as_myself=$0 ;;
22388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22389 for as_dir in $PATH
22392 test -z "$as_dir" && as_dir=.
22393 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22399 # We did not find ourselves, most probably we were run as `sh COMMAND'
22400 # in which case we are not to be found in the path.
22401 if test "x$as_myself" = x; then
22404 if test ! -f "$as_myself"; then
22405 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22406 { (exit 1); exit 1; }
22409 # Work around bugs in pre-3.0 UWIN ksh.
22410 for as_var in ENV MAIL MAILPATH
22411 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22419 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22420 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22421 LC_TELEPHONE LC_TIME
22423 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22424 eval $as_var=C; export $as_var
22426 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22430 # Required to use basename.
22431 if expr a : '\(a\)' >/dev/null 2>&1 &&
22432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22439 as_basename=basename
22445 # Name of the executable.
22446 as_me=`$as_basename -- "$0" ||
22447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22448 X"$0" : 'X\(//\)$' \| \
22449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22451 sed '/^.*\/\([^/][^/]*\)\/*$/{
22470 as_lineno_1=$LINENO
22471 as_lineno_2=$LINENO
22472 test "x$as_lineno_1" != "x$as_lineno_2" &&
22473 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22475 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22476 # uniformly replaced by the line number. The first 'sed' inserts a
22477 # line-number line after each line using $LINENO; the second 'sed'
22478 # does the real work. The second script uses 'N' to pair each
22479 # line-number line with the line containing $LINENO, and appends
22480 # trailing '-' during substitution so that $LINENO is not a special
22481 # case at line end.
22482 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22483 # scripts with optimization help from Paolo Bonzini. Blame Lee
22484 # E. McMahon (1931-1989) for sed's syntax. :-)
22496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22499 ' >$as_me.lineno &&
22500 chmod +x "$as_me.lineno" ||
22501 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22502 { (exit 1); exit 1; }; }
22504 # Don't try to exec as it changes $[0], causing all sort of problems
22505 # (the dirname of $[0] is not the place where we might find the
22506 # original and so on. Autoconf is especially sensitive to this).
22507 . "./$as_me.lineno"
22508 # Exit status is that of the last command.
22513 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22519 ECHO_C= ECHO_N= ECHO_T=
22520 case `echo -n x` in
22522 case `echo 'x\c'` in
22523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22530 if expr a : '\(a\)' >/dev/null 2>&1 &&
22531 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22537 rm -f conf$$ conf$$.exe conf$$.file
22538 if test -d conf$$.dir; then
22539 rm -f conf$$.dir/conf$$.file
22545 if ln -s conf$$.file conf$$ 2>/dev/null; then
22547 # ... but there are two gotchas:
22548 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22549 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22550 # In both cases, we have to default to `cp -p'.
22551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22553 elif ln conf$$.file conf$$ 2>/dev/null; then
22558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22559 rmdir conf$$.dir 2>/dev/null
22561 if mkdir -p . 2>/dev/null; then
22564 test -d ./-p && rmdir ./-p
22568 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22569 # systems may use methods other than mode bits to determine executability.
22570 cat >conf$$.file <<_ASEOF
22574 chmod +x conf$$.file
22575 if test -x conf$$.file >/dev/null 2>&1; then
22576 as_executable_p="test -x"
22582 # Sed expression to map a string onto a valid CPP name.
22583 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22585 # Sed expression to map a string onto a valid variable name.
22586 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22591 # Save the log message, to keep $[0] and so on meaningful, and to
22592 # report actual input values of CONFIG_FILES etc. instead of their
22593 # values after options handling.
22595 This file was extended by LLVM $as_me 3.3svn, which was
22596 generated by GNU Autoconf 2.60. Invocation command line was
22598 CONFIG_FILES = $CONFIG_FILES
22599 CONFIG_HEADERS = $CONFIG_HEADERS
22600 CONFIG_LINKS = $CONFIG_LINKS
22601 CONFIG_COMMANDS = $CONFIG_COMMANDS
22604 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22609 cat >>$CONFIG_STATUS <<_ACEOF
22610 # Files that config.status was made for.
22611 config_files="$ac_config_files"
22612 config_headers="$ac_config_headers"
22613 config_commands="$ac_config_commands"
22617 cat >>$CONFIG_STATUS <<\_ACEOF
22619 \`$as_me' instantiates files from templates according to the
22620 current configuration.
22622 Usage: $0 [OPTIONS] [FILE]...
22624 -h, --help print this help, then exit
22625 -V, --version print version number, then exit
22626 -q, --quiet do not print progress messages
22627 -d, --debug don't remove temporary files
22628 --recheck update $as_me by reconfiguring in the same conditions
22629 --file=FILE[:TEMPLATE]
22630 instantiate the configuration file FILE
22631 --header=FILE[:TEMPLATE]
22632 instantiate the configuration header FILE
22634 Configuration files:
22637 Configuration headers:
22640 Configuration commands:
22643 Report bugs to <bug-autoconf@gnu.org>."
22646 cat >>$CONFIG_STATUS <<_ACEOF
22648 LLVM config.status 3.3svn
22649 configured by $0, generated by GNU Autoconf 2.60,
22650 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22652 Copyright (C) 2006 Free Software Foundation, Inc.
22653 This config.status script is free software; the Free Software Foundation
22654 gives unlimited permission to copy, distribute and modify it."
22661 cat >>$CONFIG_STATUS <<\_ACEOF
22662 # If no file are specified by the user, then we need to provide default
22663 # value. By we need to know if files were specified by the user.
22669 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22681 # Handling of the options.
22682 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22684 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22685 echo "$ac_cs_version"; exit ;;
22686 --debug | --debu | --deb | --de | --d | -d )
22688 --file | --fil | --fi | --f )
22690 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22691 ac_need_defaults=false;;
22692 --header | --heade | --head | --hea )
22694 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22695 ac_need_defaults=false;;
22697 # Conflict between --help and --header
22698 { echo "$as_me: error: ambiguous option: $1
22699 Try \`$0 --help' for more information." >&2
22700 { (exit 1); exit 1; }; };;
22701 --help | --hel | -h )
22702 echo "$ac_cs_usage"; exit ;;
22703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22707 # This is an error.
22708 -*) { echo "$as_me: error: unrecognized option: $1
22709 Try \`$0 --help' for more information." >&2
22710 { (exit 1); exit 1; }; } ;;
22712 *) ac_config_targets="$ac_config_targets $1"
22713 ac_need_defaults=false ;;
22719 ac_configure_extra_args=
22721 if $ac_cs_silent; then
22723 ac_configure_extra_args="$ac_configure_extra_args --silent"
22727 cat >>$CONFIG_STATUS <<_ACEOF
22728 if \$ac_cs_recheck; then
22729 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22730 CONFIG_SHELL=$SHELL
22731 export CONFIG_SHELL
22732 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22736 cat >>$CONFIG_STATUS <<\_ACEOF
22740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22741 ## Running $as_me. ##
22747 cat >>$CONFIG_STATUS <<_ACEOF
22751 llvm_src="${srcdir}"
22755 cat >>$CONFIG_STATUS <<\_ACEOF
22757 # Handling of arguments.
22758 for ac_config_target in $ac_config_targets
22760 case $ac_config_target in
22761 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22762 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22763 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22764 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22765 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22766 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22767 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22768 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22769 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22770 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22771 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22772 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22773 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22774 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22775 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22776 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22777 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22778 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22779 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22780 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22781 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22782 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22783 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22784 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22785 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22786 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22787 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22789 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22790 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22791 { (exit 1); exit 1; }; };;
22796 # If the user did not use the arguments to specify the items to instantiate,
22797 # then the envvar interface is used. Set only those that are not.
22798 # We use the long form for the default assignment because of an extremely
22799 # bizarre bug on SunOS 4.1.3.
22800 if $ac_need_defaults; then
22801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22803 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22806 # Have a temporary directory for convenience. Make it in the build tree
22807 # simply because there is no reason against having it here, and in addition,
22808 # creating and moving files from /tmp can sometimes cause problems.
22809 # Hook for its removal unless debugging.
22810 # Note that there is a small window in which the directory will not be cleaned:
22811 # after its creation but before its name has been assigned to `$tmp'.
22815 trap 'exit_status=$?
22816 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22818 trap '{ (exit 1); exit 1; }' 1 2 13 15
22820 # Create a (secure) tmp directory for tmp files.
22823 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22824 test -n "$tmp" && test -d "$tmp"
22827 tmp=./conf$$-$RANDOM
22828 (umask 077 && mkdir "$tmp")
22831 echo "$me: cannot create a temporary directory in ." >&2
22832 { (exit 1); exit 1; }
22836 # Set up the sed scripts for CONFIG_FILES section.
22839 # No need to generate the scripts if there are no CONFIG_FILES.
22840 # This happens for instance when ./config.status config.h
22841 if test -n "$CONFIG_FILES"; then
22848 for ac_last_try in false false false false false :; do
22849 cat >conf$$subs.sed <<_ACEOF
22850 SHELL!$SHELL$ac_delim
22851 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22852 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22853 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22854 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22855 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22856 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22857 exec_prefix!$exec_prefix$ac_delim
22858 prefix!$prefix$ac_delim
22859 program_transform_name!$program_transform_name$ac_delim
22860 bindir!$bindir$ac_delim
22861 sbindir!$sbindir$ac_delim
22862 libexecdir!$libexecdir$ac_delim
22863 datarootdir!$datarootdir$ac_delim
22864 datadir!$datadir$ac_delim
22865 sysconfdir!$sysconfdir$ac_delim
22866 sharedstatedir!$sharedstatedir$ac_delim
22867 localstatedir!$localstatedir$ac_delim
22868 includedir!$includedir$ac_delim
22869 oldincludedir!$oldincludedir$ac_delim
22870 docdir!$docdir$ac_delim
22871 infodir!$infodir$ac_delim
22872 htmldir!$htmldir$ac_delim
22873 dvidir!$dvidir$ac_delim
22874 pdfdir!$pdfdir$ac_delim
22875 psdir!$psdir$ac_delim
22876 libdir!$libdir$ac_delim
22877 localedir!$localedir$ac_delim
22878 mandir!$mandir$ac_delim
22879 DEFS!$DEFS$ac_delim
22880 ECHO_C!$ECHO_C$ac_delim
22881 ECHO_N!$ECHO_N$ac_delim
22882 ECHO_T!$ECHO_T$ac_delim
22883 LIBS!$LIBS$ac_delim
22884 build_alias!$build_alias$ac_delim
22885 host_alias!$host_alias$ac_delim
22886 target_alias!$target_alias$ac_delim
22887 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22889 CFLAGS!$CFLAGS$ac_delim
22890 LDFLAGS!$LDFLAGS$ac_delim
22891 CPPFLAGS!$CPPFLAGS$ac_delim
22892 ac_ct_CC!$ac_ct_CC$ac_delim
22893 EXEEXT!$EXEEXT$ac_delim
22894 OBJEXT!$OBJEXT$ac_delim
22896 CXXFLAGS!$CXXFLAGS$ac_delim
22897 ac_ct_CXX!$ac_ct_CXX$ac_delim
22899 subdirs!$subdirs$ac_delim
22900 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22901 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22902 build!$build$ac_delim
22903 build_cpu!$build_cpu$ac_delim
22904 build_vendor!$build_vendor$ac_delim
22905 build_os!$build_os$ac_delim
22906 host!$host$ac_delim
22907 host_cpu!$host_cpu$ac_delim
22908 host_vendor!$host_vendor$ac_delim
22909 host_os!$host_os$ac_delim
22910 target!$target$ac_delim
22911 target_cpu!$target_cpu$ac_delim
22912 target_vendor!$target_vendor$ac_delim
22913 target_os!$target_os$ac_delim
22915 HOST_OS!$HOST_OS$ac_delim
22916 TARGET_OS!$TARGET_OS$ac_delim
22917 LINKALL!$LINKALL$ac_delim
22918 NOLINKALL!$NOLINKALL$ac_delim
22919 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22920 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22921 ARCH!$ARCH$ac_delim
22922 HOST_ARCH!$HOST_ARCH$ac_delim
22923 ENDIAN!$ENDIAN$ac_delim
22924 GREP!$GREP$ac_delim
22925 EGREP!$EGREP$ac_delim
22926 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22927 BUILD_CC!$BUILD_CC$ac_delim
22928 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22929 BUILD_CXX!$BUILD_CXX$ac_delim
22930 CVSBUILD!$CVSBUILD$ac_delim
22931 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22932 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22933 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22934 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22935 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22936 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22937 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22938 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22939 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22940 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22941 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22942 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22943 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22944 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22946 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22949 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22951 elif $ac_last_try; then
22952 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22953 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22954 { (exit 1); exit 1; }; }
22956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22960 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22961 if test -n "$ac_eof"; then
22962 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22963 ac_eof=`expr $ac_eof + 1`
22966 cat >>$CONFIG_STATUS <<_ACEOF
22967 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22971 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22972 s/^/s,@/; s/!/@,|#_!!_#|/
22975 s/'"$ac_delim"'$/,g/; t
22977 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22978 ' >>$CONFIG_STATUS <conf$$subs.sed
22979 rm -f conf$$subs.sed
22980 cat >>$CONFIG_STATUS <<_ACEOF
22986 for ac_last_try in false false false false false :; do
22987 cat >conf$$subs.sed <<_ACEOF
22988 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22989 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22990 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22991 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22992 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22993 ENABLE_PIC!$ENABLE_PIC$ac_delim
22994 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22995 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22996 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22997 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22998 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22999 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23000 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23001 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23002 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23003 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23004 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23005 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23006 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23007 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23008 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23010 ifGNUmake!$ifGNUmake$ac_delim
23011 LN_S!$LN_S$ac_delim
23014 DATE!$DATE$ac_delim
23015 FIND!$FIND$ac_delim
23016 MKDIR!$MKDIR$ac_delim
23018 RANLIB!$RANLIB$ac_delim
23023 BINPWD!$BINPWD$ac_delim
23024 GRAPHVIZ!$GRAPHVIZ$ac_delim
23027 NEATO!$NEATO$ac_delim
23028 TWOPI!$TWOPI$ac_delim
23029 CIRCO!$CIRCO$ac_delim
23031 DOTTY!$DOTTY$ac_delim
23032 XDOT_PY!$XDOT_PY$ac_delim
23033 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23034 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23035 INSTALL_DATA!$INSTALL_DATA$ac_delim
23036 BZIP2!$BZIP2$ac_delim
23038 DOXYGEN!$DOXYGEN$ac_delim
23039 GROFF!$GROFF$ac_delim
23040 GZIPBIN!$GZIPBIN$ac_delim
23041 PDFROFF!$PDFROFF$ac_delim
23043 OCAMLC!$OCAMLC$ac_delim
23044 OCAMLOPT!$OCAMLOPT$ac_delim
23045 OCAMLDEP!$OCAMLDEP$ac_delim
23046 OCAMLDOC!$OCAMLDOC$ac_delim
23048 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23049 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23050 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23051 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23052 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23053 LIBADD_DL!$LIBADD_DL$ac_delim
23054 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23055 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23056 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23057 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23058 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23059 PYTHON!$PYTHON$ac_delim
23060 USE_UDIS86!$USE_UDIS86$ac_delim
23061 USE_OPROFILE!$USE_OPROFILE$ac_delim
23062 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23063 XML2CONFIG!$XML2CONFIG$ac_delim
23064 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23065 LIBXML2_INC!$LIBXML2_INC$ac_delim
23066 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23067 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23068 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23069 MMAP_FILE!$MMAP_FILE$ac_delim
23070 SHLIBEXT!$SHLIBEXT$ac_delim
23071 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23072 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23073 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23074 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23075 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23076 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23077 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23078 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23079 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23080 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23081 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23082 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23083 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23084 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23087 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23089 elif $ac_last_try; then
23090 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23091 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23092 { (exit 1); exit 1; }; }
23094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23098 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23099 if test -n "$ac_eof"; then
23100 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23101 ac_eof=`expr $ac_eof + 1`
23104 cat >>$CONFIG_STATUS <<_ACEOF
23105 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23109 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23110 s/^/s,@/; s/!/@,|#_!!_#|/
23113 s/'"$ac_delim"'$/,g/; t
23115 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23116 ' >>$CONFIG_STATUS <conf$$subs.sed
23117 rm -f conf$$subs.sed
23118 cat >>$CONFIG_STATUS <<_ACEOF
23124 for ac_last_try in false false false false false :; do
23125 cat >conf$$subs.sed <<_ACEOF
23126 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23127 RPATH!$RPATH$ac_delim
23128 RDYNAMIC!$RDYNAMIC$ac_delim
23129 program_prefix!$program_prefix$ac_delim
23130 LIBOBJS!$LIBOBJS$ac_delim
23131 LTLIBOBJS!$LTLIBOBJS$ac_delim
23134 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23136 elif $ac_last_try; then
23137 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23138 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23139 { (exit 1); exit 1; }; }
23141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23145 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23146 if test -n "$ac_eof"; then
23147 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23148 ac_eof=`expr $ac_eof + 1`
23151 cat >>$CONFIG_STATUS <<_ACEOF
23152 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23156 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23157 s/^/s,@/; s/!/@,|#_!!_#|/
23160 s/'"$ac_delim"'$/,g/; t
23162 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23163 ' >>$CONFIG_STATUS <conf$$subs.sed
23164 rm -f conf$$subs.sed
23165 cat >>$CONFIG_STATUS <<_ACEOF
23172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23174 # trailing colons and then remove the whole line if VPATH becomes empty
23175 # (actually we leave an empty line to preserve line numbers).
23176 if test "x$srcdir" = x.; then
23177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23178 s/:*\$(srcdir):*/:/
23179 s/:*\${srcdir}:*/:/
23181 s/^\([^=]*=[ ]*\):*/\1/
23187 cat >>$CONFIG_STATUS <<\_ACEOF
23188 fi # test -n "$CONFIG_FILES"
23191 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23194 :[FHLC]) ac_mode=$ac_tag; continue;;
23196 case $ac_mode$ac_tag in
23198 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23199 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23200 { (exit 1); exit 1; }; };;
23201 :[FH]-) ac_tag=-:-;;
23202 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23219 -) ac_f="$tmp/stdin";;
23220 *) # Look for the file first in the build tree, then in the source tree
23221 # (if the path is not absolute). The absolute path cannot be DOS-style,
23222 # because $ac_f cannot contain `:'.
23226 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23228 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23229 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23230 { (exit 1); exit 1; }; };;
23232 ac_file_inputs="$ac_file_inputs $ac_f"
23235 # Let's still pretend it is `configure' which instantiates (i.e., don't
23236 # use $as_me), people would be surprised to read:
23237 # /* config.h. Generated by config.status. */
23238 configure_input="Generated from "`IFS=:
23239 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23240 if test x"$ac_file" != x-; then
23241 configure_input="$ac_file. $configure_input"
23242 { echo "$as_me:$LINENO: creating $ac_file" >&5
23243 echo "$as_me: creating $ac_file" >&6;}
23247 *:-:* | *:-) cat >"$tmp/stdin";;
23252 ac_dir=`$as_dirname -- "$ac_file" ||
23253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23254 X"$ac_file" : 'X\(//\)[^/]' \| \
23255 X"$ac_file" : 'X\(//\)$' \| \
23256 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23262 /^X\(\/\/\)[^/].*/{
23277 -*) as_dir=./$as_dir;;
23279 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23283 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23284 *) as_qdir=$as_dir;;
23286 as_dirs="'$as_qdir' $as_dirs"
23287 as_dir=`$as_dirname -- "$as_dir" ||
23288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23289 X"$as_dir" : 'X\(//\)[^/]' \| \
23290 X"$as_dir" : 'X\(//\)$' \| \
23291 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23297 /^X\(\/\/\)[^/].*/{
23310 test -d "$as_dir" && break
23312 test -z "$as_dirs" || eval "mkdir $as_dirs"
23313 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23314 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23315 { (exit 1); exit 1; }; }; }
23319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23322 # A ".." for each directory in $ac_dir_suffix.
23323 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23324 case $ac_top_builddir_sub in
23325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23329 ac_abs_top_builddir=$ac_pwd
23330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23331 # for backward compatibility:
23332 ac_top_builddir=$ac_top_build_prefix
23335 .) # We are building in place.
23337 ac_top_srcdir=$ac_top_builddir_sub
23338 ac_abs_top_srcdir=$ac_pwd ;;
23339 [\\/]* | ?:[\\/]* ) # Absolute name.
23340 ac_srcdir=$srcdir$ac_dir_suffix;
23341 ac_top_srcdir=$srcdir
23342 ac_abs_top_srcdir=$srcdir ;;
23343 *) # Relative name.
23344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23345 ac_top_srcdir=$ac_top_build_prefix$srcdir
23346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23358 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23359 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23363 cat >>$CONFIG_STATUS <<\_ACEOF
23364 # If the template does not know about datarootdir, expand it.
23365 # FIXME: This hack should be removed a few years after 2.60.
23366 ac_datarootdir_hack=; ac_datarootdir_seen=
23368 case `sed -n '/datarootdir/ {
23377 ' $ac_file_inputs` in
23378 *datarootdir*) ac_datarootdir_seen=yes;;
23379 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23380 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23381 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23383 cat >>$CONFIG_STATUS <<_ACEOF
23384 ac_datarootdir_hack='
23385 s&@datadir@&$datadir&g
23386 s&@docdir@&$docdir&g
23387 s&@infodir@&$infodir&g
23388 s&@localedir@&$localedir&g
23389 s&@mandir@&$mandir&g
23390 s&\\\${datarootdir}&$datarootdir&g' ;;
23394 # Neutralize VPATH when `$srcdir' = `.'.
23395 # Shell code in configure.ac might set extrasub.
23396 # FIXME: do we really want to maintain this feature?
23397 cat >>$CONFIG_STATUS <<_ACEOF
23401 cat >>$CONFIG_STATUS <<\_ACEOF
23403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23404 s&@configure_input@&$configure_input&;t t
23405 s&@top_builddir@&$ac_top_builddir_sub&;t t
23406 s&@srcdir@&$ac_srcdir&;t t
23407 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23408 s&@top_srcdir@&$ac_top_srcdir&;t t
23409 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23410 s&@builddir@&$ac_builddir&;t t
23411 s&@abs_builddir@&$ac_abs_builddir&;t t
23412 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23413 s&@INSTALL@&$ac_INSTALL&;t t
23414 $ac_datarootdir_hack
23415 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23417 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23418 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23419 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23420 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23421 which seems to be undefined. Please make sure it is defined." >&5
23422 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23423 which seems to be undefined. Please make sure it is defined." >&2;}
23427 -) cat "$tmp/out"; rm -f "$tmp/out";;
23428 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23437 # Transform confdefs.h into a sed script `conftest.defines', that
23438 # substitutes the proper values into config.h.in to produce config.h.
23439 rm -f conftest.defines conftest.tail
23440 # First, append a space to every undef/define line, to ease matching.
23441 echo 's/$/ /' >conftest.defines
23442 # Then, protect against being on the right side of a sed subst, or in
23443 # an unquoted here document, in config.status. If some macros were
23444 # called several times there might be several #defines for the same
23445 # symbol, which is useless. But do not sort them, since the last
23446 # AC_DEFINE must be honored.
23447 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23448 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23449 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23450 # PARAMS is the parameter list in the macro definition--in most cases, it's
23451 # just an empty string.
23452 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23453 ac_dB='\\)[ (].*,\\1define\\2'
23461 s/^[ ]*#[ ]*define[ ][ ]*//
23466 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23467 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23468 ' >>conftest.defines
23470 # Remove the space that was appended to ease matching.
23471 # Then replace #undef with comments. This is necessary, for
23472 # example, in the case of _POSIX_SOURCE, which is predefined and required
23473 # on some systems where configure will not decide to define it.
23474 # (The regexp can be short, since the line contains either #define or #undef.)
23476 s,^[ #]*u.*,/* & */,' >>conftest.defines
23478 # Break up conftest.defines:
23479 ac_max_sed_lines=50
23481 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23482 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23483 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23485 ac_in='$ac_file_inputs'
23486 ac_out='"$tmp/out1"'
23487 ac_nxt='"$tmp/out2"'
23491 # Write a here document:
23492 cat >>$CONFIG_STATUS <<_ACEOF
23493 # First, check the format of the line:
23494 cat >"\$tmp/defines.sed" <<\\CEOF
23495 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23496 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23500 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23502 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23503 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23504 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23505 grep . conftest.tail >/dev/null || break
23506 rm -f conftest.defines
23507 mv conftest.tail conftest.defines
23509 rm -f conftest.defines conftest.tail
23511 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23512 cat >>$CONFIG_STATUS <<\_ACEOF
23513 if test x"$ac_file" != x-; then
23514 echo "/* $configure_input */" >"$tmp/config.h"
23515 cat "$ac_result" >>"$tmp/config.h"
23516 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23517 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23518 echo "$as_me: $ac_file is unchanged" >&6;}
23521 mv "$tmp/config.h" $ac_file
23524 echo "/* $configure_input */"
23530 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23531 echo "$as_me: executing $ac_file commands" >&6;}
23536 case $ac_file$ac_mode in
23537 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23538 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23539 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23540 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23541 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23542 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23543 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23544 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23545 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23546 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23547 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23548 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23549 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23550 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23551 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23552 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23553 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23554 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23555 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23556 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23557 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23558 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23559 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23560 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23561 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23562 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23568 { (exit 0); exit 0; }
23570 chmod +x $CONFIG_STATUS
23571 ac_clean_files=$ac_clean_files_save
23574 # configure is writing to config.log, and then calls config.status.
23575 # config.status does its own redirection, appending to config.log.
23576 # Unfortunately, on DOS this fails, as config.log is still kept open
23577 # by configure, so config.status won't be able to write to it; its
23578 # output is simply discarded. So we exec the FD to /dev/null,
23579 # effectively closing config.log, so it can be properly (re)opened and
23580 # appended to by config.status. When coming back to configure, we
23581 # need to make the FD available again.
23582 if test "$no_create" != yes; then
23584 ac_config_status_args=
23585 test "$silent" = yes &&
23586 ac_config_status_args="$ac_config_status_args --quiet"
23588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23591 # would make configure fail if this is the last instruction.
23592 $ac_cs_success || { (exit 1); exit 1; }
23596 # CONFIG_SUBDIRS section.
23598 if test "$no_recursion" != yes; then
23600 # Remove --cache-file and --srcdir arguments so they do not pile up.
23601 ac_sub_configure_args=
23603 eval "set x $ac_configure_args"
23607 if test -n "$ac_prev"; then
23612 -cache-file | --cache-file | --cache-fil | --cache-fi \
23613 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23614 ac_prev=cache_file ;;
23615 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23616 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23619 --config-cache | -C)
23621 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23623 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23625 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23627 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23631 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23633 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23637 # Always prepend --prefix to ensure using the same prefix
23638 # in subdir configurations.
23639 ac_arg="--prefix=$prefix"
23641 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23643 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23646 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23648 # Do not complain, so a configure script can configure whichever
23649 # parts of a large source tree are present.
23650 test -d "$srcdir/$ac_dir" || continue
23652 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23653 echo "$as_me:$LINENO: $ac_msg" >&5
23657 -*) as_dir=./$as_dir;;
23659 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23663 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23664 *) as_qdir=$as_dir;;
23666 as_dirs="'$as_qdir' $as_dirs"
23667 as_dir=`$as_dirname -- "$as_dir" ||
23668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23669 X"$as_dir" : 'X\(//\)[^/]' \| \
23670 X"$as_dir" : 'X\(//\)$' \| \
23671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23677 /^X\(\/\/\)[^/].*/{
23690 test -d "$as_dir" && break
23692 test -z "$as_dirs" || eval "mkdir $as_dirs"
23693 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23694 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23695 { (exit 1); exit 1; }; }; }
23699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23701 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23702 # A ".." for each directory in $ac_dir_suffix.
23703 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23704 case $ac_top_builddir_sub in
23705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23709 ac_abs_top_builddir=$ac_pwd
23710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23711 # for backward compatibility:
23712 ac_top_builddir=$ac_top_build_prefix
23715 .) # We are building in place.
23717 ac_top_srcdir=$ac_top_builddir_sub
23718 ac_abs_top_srcdir=$ac_pwd ;;
23719 [\\/]* | ?:[\\/]* ) # Absolute name.
23720 ac_srcdir=$srcdir$ac_dir_suffix;
23721 ac_top_srcdir=$srcdir
23722 ac_abs_top_srcdir=$srcdir ;;
23723 *) # Relative name.
23724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23725 ac_top_srcdir=$ac_top_build_prefix$srcdir
23726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23733 # Check for guested configure; otherwise get Cygnus style configure.
23734 if test -f "$ac_srcdir/configure.gnu"; then
23735 ac_sub_configure=$ac_srcdir/configure.gnu
23736 elif test -f "$ac_srcdir/configure"; then
23737 ac_sub_configure=$ac_srcdir/configure
23738 elif test -f "$ac_srcdir/configure.in"; then
23739 # This should be Cygnus configure.
23740 ac_sub_configure=$ac_aux_dir/configure
23742 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23743 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23747 # The recursion is here.
23748 if test -n "$ac_sub_configure"; then
23749 # Make the cache file name correct relative to the subdirectory.
23750 case $cache_file in
23751 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23752 *) # Relative name.
23753 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23756 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23757 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23758 # The eval makes quoting arguments work.
23759 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23760 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23761 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23762 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23763 { (exit 1); exit 1; }; }