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
14871 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 ac_res=`eval echo '${'$as_ac_Header'}'`
14881 { echo "$as_me:$LINENO: result: $ac_res" >&5
14882 echo "${ECHO_T}$ac_res" >&6; }
14884 # Is the header compilable?
14885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14887 cat >conftest.$ac_ext <<_ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14893 $ac_includes_default
14894 #include <$ac_header>
14896 rm -f conftest.$ac_objext
14897 if { (ac_try="$ac_compile"
14898 case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_compile") 2>conftest.er1
14905 grep -v '^ *+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14911 { (case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_try") 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; } &&
14920 { ac_try='test -s conftest.$ac_objext'
14921 { (case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_try") 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 ac_header_compiler=yes
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_header_compiler=no
14938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14940 echo "${ECHO_T}$ac_header_compiler" >&6; }
14942 # Is the header present?
14943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14945 cat >conftest.$ac_ext <<_ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 #include <$ac_header>
14953 if { (ac_try="$ac_cpp conftest.$ac_ext"
14954 case "(($ac_try" in
14955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14961 grep -v '^ *+' conftest.er1 >conftest.err
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } >/dev/null; then
14966 if test -s conftest.err; then
14967 ac_cpp_err=$ac_c_preproc_warn_flag
14968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14975 if test -z "$ac_cpp_err"; then
14976 ac_header_preproc=yes
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ac_header_preproc=no
14984 rm -f conftest.err conftest.$ac_ext
14985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14986 echo "${ECHO_T}$ac_header_preproc" >&6; }
14988 # So? What about this header?
14989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14995 ac_header_preproc=yes
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15011 ## ------------------------------------ ##
15012 ## Report this to http://llvm.org/bugs/ ##
15013 ## ------------------------------------ ##
15015 ) | sed "s/^/$as_me: WARNING: /" >&2
15018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 eval "$as_ac_Header=\$ac_header_preproc"
15025 ac_res=`eval echo '${'$as_ac_Header'}'`
15026 { echo "$as_me:$LINENO: result: $ac_res" >&5
15027 echo "${ECHO_T}$ac_res" >&6; }
15030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15031 cat >>confdefs.h <<_ACEOF
15032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15045 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 ac_res=`eval echo '${'$as_ac_Header'}'`
15055 { echo "$as_me:$LINENO: result: $ac_res" >&5
15056 echo "${ECHO_T}$ac_res" >&6; }
15058 # Is the header compilable?
15059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 $ac_includes_default
15068 #include <$ac_header>
15070 rm -f conftest.$ac_objext
15071 if { (ac_try="$ac_compile"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_compile") 2>conftest.er1
15079 grep -v '^ *+' conftest.er1 >conftest.err
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15085 { (case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_try") 2>&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest.$ac_objext'
15095 { (case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_try") 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_header_compiler=yes
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 ac_header_compiler=no
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15114 echo "${ECHO_T}$ac_header_compiler" >&6; }
15116 # Is the header present?
15117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15119 cat >conftest.$ac_ext <<_ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 #include <$ac_header>
15127 if { (ac_try="$ac_cpp conftest.$ac_ext"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15135 grep -v '^ *+' conftest.er1 >conftest.err
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } >/dev/null; then
15140 if test -s conftest.err; then
15141 ac_cpp_err=$ac_c_preproc_warn_flag
15142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15149 if test -z "$ac_cpp_err"; then
15150 ac_header_preproc=yes
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 ac_header_preproc=no
15158 rm -f conftest.err conftest.$ac_ext
15159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15160 echo "${ECHO_T}$ac_header_preproc" >&6; }
15162 # So? What about this header?
15163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15169 ac_header_preproc=yes
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15185 ## ------------------------------------ ##
15186 ## Report this to http://llvm.org/bugs/ ##
15187 ## ------------------------------------ ##
15189 ) | sed "s/^/$as_me: WARNING: /" >&2
15192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 eval "$as_ac_Header=\$ac_header_preproc"
15199 ac_res=`eval echo '${'$as_ac_Header'}'`
15200 { echo "$as_me:$LINENO: result: $ac_res" >&5
15201 echo "${ECHO_T}$ac_res" >&6; }
15204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15205 cat >>confdefs.h <<_ACEOF
15206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15215 for ac_header in utime.h windows.h
15217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 ac_res=`eval echo '${'$as_ac_Header'}'`
15225 { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15228 # Is the header compilable?
15229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 $ac_includes_default
15238 #include <$ac_header>
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_compile") 2>conftest.er1
15249 grep -v '^ *+' conftest.er1 >conftest.err
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest.$ac_objext'
15265 { (case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_try") 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_header_compiler=yes
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ac_header_compiler=no
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 echo "${ECHO_T}$ac_header_compiler" >&6; }
15286 # Is the header present?
15287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <$ac_header>
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev/null; then
15310 if test -s conftest.err; then
15311 ac_cpp_err=$ac_c_preproc_warn_flag
15312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15319 if test -z "$ac_cpp_err"; then
15320 ac_header_preproc=yes
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ac_header_preproc=no
15328 rm -f conftest.err conftest.$ac_ext
15329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330 echo "${ECHO_T}$ac_header_preproc" >&6; }
15332 # So? What about this header?
15333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339 ac_header_preproc=yes
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15355 ## ------------------------------------ ##
15356 ## Report this to http://llvm.org/bugs/ ##
15357 ## ------------------------------------ ##
15359 ) | sed "s/^/$as_me: WARNING: /" >&2
15362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 eval "$as_ac_Header=\$ac_header_preproc"
15369 ac_res=`eval echo '${'$as_ac_Header'}'`
15370 { echo "$as_me:$LINENO: result: $ac_res" >&5
15371 echo "${ECHO_T}$ac_res" >&6; }
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375 cat >>confdefs.h <<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15388 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 ac_res=`eval echo '${'$as_ac_Header'}'`
15398 { echo "$as_me:$LINENO: result: $ac_res" >&5
15399 echo "${ECHO_T}$ac_res" >&6; }
15401 # Is the header compilable?
15402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15404 cat >conftest.$ac_ext <<_ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 $ac_includes_default
15411 #include <$ac_header>
15413 rm -f conftest.$ac_objext
15414 if { (ac_try="$ac_compile"
15415 case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_compile") 2>conftest.er1
15422 grep -v '^ *+' conftest.er1 >conftest.err
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15428 { (case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_try") 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_try") 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_header_compiler=yes
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_header_compiler=no
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457 echo "${ECHO_T}$ac_header_compiler" >&6; }
15459 # Is the header present?
15460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 #include <$ac_header>
15470 if { (ac_try="$ac_cpp conftest.$ac_ext"
15471 case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478 grep -v '^ *+' conftest.er1 >conftest.err
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } >/dev/null; then
15483 if test -s conftest.err; then
15484 ac_cpp_err=$ac_c_preproc_warn_flag
15485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15492 if test -z "$ac_cpp_err"; then
15493 ac_header_preproc=yes
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ac_header_preproc=no
15501 rm -f conftest.err conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15503 echo "${ECHO_T}$ac_header_preproc" >&6; }
15505 # So? What about this header?
15506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15512 ac_header_preproc=yes
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15528 ## ------------------------------------ ##
15529 ## Report this to http://llvm.org/bugs/ ##
15530 ## ------------------------------------ ##
15532 ) | sed "s/^/$as_me: WARNING: /" >&2
15535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 eval "$as_ac_Header=\$ac_header_preproc"
15542 ac_res=`eval echo '${'$as_ac_Header'}'`
15543 { echo "$as_me:$LINENO: result: $ac_res" >&5
15544 echo "${ECHO_T}$ac_res" >&6; }
15547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15548 cat >>confdefs.h <<_ACEOF
15549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15560 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 ac_res=`eval echo '${'$as_ac_Header'}'`
15570 { echo "$as_me:$LINENO: result: $ac_res" >&5
15571 echo "${ECHO_T}$ac_res" >&6; }
15573 # Is the header compilable?
15574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15576 cat >conftest.$ac_ext <<_ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 $ac_includes_default
15583 #include <$ac_header>
15585 rm -f conftest.$ac_objext
15586 if { (ac_try="$ac_compile"
15587 case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_compile") 2>conftest.er1
15594 grep -v '^ *+' conftest.er1 >conftest.err
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
15599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600 { (case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_try") 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; } &&
15609 { ac_try='test -s conftest.$ac_objext'
15610 { (case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_try") 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 ac_header_compiler=yes
15621 echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624 ac_header_compiler=no
15627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15629 echo "${ECHO_T}$ac_header_compiler" >&6; }
15631 # Is the header present?
15632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 #include <$ac_header>
15642 if { (ac_try="$ac_cpp conftest.$ac_ext"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } >/dev/null; then
15655 if test -s conftest.err; then
15656 ac_cpp_err=$ac_c_preproc_warn_flag
15657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15664 if test -z "$ac_cpp_err"; then
15665 ac_header_preproc=yes
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 ac_header_preproc=no
15673 rm -f conftest.err conftest.$ac_ext
15674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15675 echo "${ECHO_T}$ac_header_preproc" >&6; }
15677 # So? What about this header?
15678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15684 ac_header_preproc=yes
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700 ## ------------------------------------ ##
15701 ## Report this to http://llvm.org/bugs/ ##
15702 ## ------------------------------------ ##
15704 ) | sed "s/^/$as_me: WARNING: /" >&2
15707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 eval "$as_ac_Header=\$ac_header_preproc"
15714 ac_res=`eval echo '${'$as_ac_Header'}'`
15715 { echo "$as_me:$LINENO: result: $ac_res" >&5
15716 echo "${ECHO_T}$ac_res" >&6; }
15719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15720 cat >>confdefs.h <<_ACEOF
15721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15729 for ac_header in valgrind/valgrind.h
15731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 ac_res=`eval echo '${'$as_ac_Header'}'`
15739 { echo "$as_me:$LINENO: result: $ac_res" >&5
15740 echo "${ECHO_T}$ac_res" >&6; }
15742 # Is the header compilable?
15743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15745 cat >conftest.$ac_ext <<_ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 $ac_includes_default
15752 #include <$ac_header>
15754 rm -f conftest.$ac_objext
15755 if { (ac_try="$ac_compile"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_compile") 2>conftest.er1
15763 grep -v '^ *+' conftest.er1 >conftest.err
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
15768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest.$ac_objext'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 ac_header_compiler=yes
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 ac_header_compiler=no
15796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15798 echo "${ECHO_T}$ac_header_compiler" >&6; }
15800 # Is the header present?
15801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 #include <$ac_header>
15811 if { (ac_try="$ac_cpp conftest.$ac_ext"
15812 case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15819 grep -v '^ *+' conftest.er1 >conftest.err
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } >/dev/null; then
15824 if test -s conftest.err; then
15825 ac_cpp_err=$ac_c_preproc_warn_flag
15826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15833 if test -z "$ac_cpp_err"; then
15834 ac_header_preproc=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 ac_header_preproc=no
15842 rm -f conftest.err conftest.$ac_ext
15843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15844 echo "${ECHO_T}$ac_header_preproc" >&6; }
15846 # So? What about this header?
15847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15853 ac_header_preproc=yes
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15869 ## ------------------------------------ ##
15870 ## Report this to http://llvm.org/bugs/ ##
15871 ## ------------------------------------ ##
15873 ) | sed "s/^/$as_me: WARNING: /" >&2
15876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 eval "$as_ac_Header=\$ac_header_preproc"
15883 ac_res=`eval echo '${'$as_ac_Header'}'`
15884 { echo "$as_me:$LINENO: result: $ac_res" >&5
15885 echo "${ECHO_T}$ac_res" >&6; }
15888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15889 cat >>confdefs.h <<_ACEOF
15890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15898 for ac_header in fenv.h
15900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 ac_res=`eval echo '${'$as_ac_Header'}'`
15908 { echo "$as_me:$LINENO: result: $ac_res" >&5
15909 echo "${ECHO_T}$ac_res" >&6; }
15911 # Is the header compilable?
15912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15914 cat >conftest.$ac_ext <<_ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 $ac_includes_default
15921 #include <$ac_header>
15923 rm -f conftest.$ac_objext
15924 if { (ac_try="$ac_compile"
15925 case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930 (eval "$ac_compile") 2>conftest.er1
15932 grep -v '^ *+' conftest.er1 >conftest.err
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } &&
15937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15938 { (case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_try") 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try='test -s conftest.$ac_objext'
15948 { (case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_try") 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15957 ac_header_compiler=yes
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 ac_header_compiler=no
15965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15967 echo "${ECHO_T}$ac_header_compiler" >&6; }
15969 # Is the header present?
15970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 #include <$ac_header>
15980 if { (ac_try="$ac_cpp conftest.$ac_ext"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } >/dev/null; then
15993 if test -s conftest.err; then
15994 ac_cpp_err=$ac_c_preproc_warn_flag
15995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16002 if test -z "$ac_cpp_err"; then
16003 ac_header_preproc=yes
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008 ac_header_preproc=no
16011 rm -f conftest.err conftest.$ac_ext
16012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013 echo "${ECHO_T}$ac_header_preproc" >&6; }
16015 # So? What about this header?
16016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16022 ac_header_preproc=yes
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16038 ## ------------------------------------ ##
16039 ## Report this to http://llvm.org/bugs/ ##
16040 ## ------------------------------------ ##
16042 ) | sed "s/^/$as_me: WARNING: /" >&2
16045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16048 echo $ECHO_N "(cached) $ECHO_C" >&6
16050 eval "$as_ac_Header=\$ac_header_preproc"
16052 ac_res=`eval echo '${'$as_ac_Header'}'`
16053 { echo "$as_me:$LINENO: result: $ac_res" >&5
16054 echo "${ECHO_T}$ac_res" >&6; }
16057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16058 cat >>confdefs.h <<_ACEOF
16059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16066 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16067 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16068 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 cat >conftest.$ac_ext <<_ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16082 #ifndef FE_ALL_EXCEPT
16083 char *p = (char *) FE_ALL_EXCEPT;
16091 rm -f conftest.$ac_objext
16092 if { (ac_try="$ac_compile"
16093 case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_compile") 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16106 { (case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_try") 2>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; } &&
16115 { ac_try='test -s conftest.$ac_objext'
16116 { (case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_try") 2>&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130 ac_cv_have_decl_FE_ALL_EXCEPT=no
16133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16136 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16137 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16139 cat >>confdefs.h <<_ACEOF
16140 #define HAVE_DECL_FE_ALL_EXCEPT 1
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_DECL_FE_ALL_EXCEPT 0
16151 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16152 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16153 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16168 char *p = (char *) FE_INEXACT;
16176 rm -f conftest.$ac_objext
16177 if { (ac_try="$ac_compile"
16178 case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_compile") 2>conftest.er1
16185 grep -v '^ *+' conftest.er1 >conftest.err
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16191 { (case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_try") 2>&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; } &&
16200 { ac_try='test -s conftest.$ac_objext'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_cv_have_decl_FE_INEXACT=yes
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_cv_have_decl_FE_INEXACT=no
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16220 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16221 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16222 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16224 cat >>confdefs.h <<_ACEOF
16225 #define HAVE_DECL_FE_INEXACT 1
16230 cat >>confdefs.h <<_ACEOF
16231 #define HAVE_DECL_FE_INEXACT 0
16238 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16240 for ac_header in pthread.h
16242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 ac_res=`eval echo '${'$as_ac_Header'}'`
16250 { echo "$as_me:$LINENO: result: $ac_res" >&5
16251 echo "${ECHO_T}$ac_res" >&6; }
16253 # Is the header compilable?
16254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16256 cat >conftest.$ac_ext <<_ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262 $ac_includes_default
16263 #include <$ac_header>
16265 rm -f conftest.$ac_objext
16266 if { (ac_try="$ac_compile"
16267 case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_compile") 2>conftest.er1
16274 grep -v '^ *+' conftest.er1 >conftest.err
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16280 { (case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_try") 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest.$ac_objext'
16290 { (case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_try") 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 ac_header_compiler=yes
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_header_compiler=no
16307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16309 echo "${ECHO_T}$ac_header_compiler" >&6; }
16311 # Is the header present?
16312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16314 cat >conftest.$ac_ext <<_ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 #include <$ac_header>
16322 if { (ac_try="$ac_cpp conftest.$ac_ext"
16323 case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16330 grep -v '^ *+' conftest.er1 >conftest.err
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } >/dev/null; then
16335 if test -s conftest.err; then
16336 ac_cpp_err=$ac_c_preproc_warn_flag
16337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16344 if test -z "$ac_cpp_err"; then
16345 ac_header_preproc=yes
16347 echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16350 ac_header_preproc=no
16353 rm -f conftest.err conftest.$ac_ext
16354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16355 echo "${ECHO_T}$ac_header_preproc" >&6; }
16357 # So? What about this header?
16358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16364 ac_header_preproc=yes
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16380 ## ------------------------------------ ##
16381 ## Report this to http://llvm.org/bugs/ ##
16382 ## ------------------------------------ ##
16384 ) | sed "s/^/$as_me: WARNING: /" >&2
16387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 eval "$as_ac_Header=\$ac_header_preproc"
16394 ac_res=`eval echo '${'$as_ac_Header'}'`
16395 { echo "$as_me:$LINENO: result: $ac_res" >&5
16396 echo "${ECHO_T}$ac_res" >&6; }
16399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16400 cat >>confdefs.h <<_ACEOF
16401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16416 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16418 for ac_header in zlib.h
16420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 ac_res=`eval echo '${'$as_ac_Header'}'`
16428 { echo "$as_me:$LINENO: result: $ac_res" >&5
16429 echo "${ECHO_T}$ac_res" >&6; }
16431 # Is the header compilable?
16432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16434 cat >conftest.$ac_ext <<_ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 $ac_includes_default
16441 #include <$ac_header>
16443 rm -f conftest.$ac_objext
16444 if { (ac_try="$ac_compile"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_compile") 2>conftest.er1
16452 grep -v '^ *+' conftest.er1 >conftest.err
16454 cat conftest.err >&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } &&
16457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16458 { (case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_try") 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; } &&
16467 { ac_try='test -s conftest.$ac_objext'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
16477 ac_header_compiler=yes
16479 echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16482 ac_header_compiler=no
16485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16487 echo "${ECHO_T}$ac_header_compiler" >&6; }
16489 # Is the header present?
16490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16492 cat >conftest.$ac_ext <<_ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 #include <$ac_header>
16500 if { (ac_try="$ac_cpp conftest.$ac_ext"
16501 case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16508 grep -v '^ *+' conftest.er1 >conftest.err
16510 cat conftest.err >&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } >/dev/null; then
16513 if test -s conftest.err; then
16514 ac_cpp_err=$ac_c_preproc_warn_flag
16515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16522 if test -z "$ac_cpp_err"; then
16523 ac_header_preproc=yes
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16528 ac_header_preproc=no
16531 rm -f conftest.err conftest.$ac_ext
16532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16533 echo "${ECHO_T}$ac_header_preproc" >&6; }
16535 # So? What about this header?
16536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16542 ac_header_preproc=yes
16545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16558 ## ------------------------------------ ##
16559 ## Report this to http://llvm.org/bugs/ ##
16560 ## ------------------------------------ ##
16562 ) | sed "s/^/$as_me: WARNING: /" >&2
16565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 eval "$as_ac_Header=\$ac_header_preproc"
16572 ac_res=`eval echo '${'$as_ac_Header'}'`
16573 { echo "$as_me:$LINENO: result: $ac_res" >&5
16574 echo "${ECHO_T}$ac_res" >&6; }
16577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16578 cat >>confdefs.h <<_ACEOF
16579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16595 if test "$llvm_cv_enable_libffi" = "yes" ; then
16598 for ac_header in ffi.h ffi/ffi.h
16600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16607 ac_res=`eval echo '${'$as_ac_Header'}'`
16608 { echo "$as_me:$LINENO: result: $ac_res" >&5
16609 echo "${ECHO_T}$ac_res" >&6; }
16611 # Is the header compilable?
16612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16614 cat >conftest.$ac_ext <<_ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16620 $ac_includes_default
16621 #include <$ac_header>
16623 rm -f conftest.$ac_objext
16624 if { (ac_try="$ac_compile"
16625 case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_compile") 2>conftest.er1
16632 grep -v '^ *+' conftest.er1 >conftest.err
16634 cat conftest.err >&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); } &&
16637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16638 { (case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_try") 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try='test -s conftest.$ac_objext'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 ac_header_compiler=yes
16659 echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16662 ac_header_compiler=no
16665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16667 echo "${ECHO_T}$ac_header_compiler" >&6; }
16669 # Is the header present?
16670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16672 cat >conftest.$ac_ext <<_ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16678 #include <$ac_header>
16680 if { (ac_try="$ac_cpp conftest.$ac_ext"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } >/dev/null; then
16693 if test -s conftest.err; then
16694 ac_cpp_err=$ac_c_preproc_warn_flag
16695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16702 if test -z "$ac_cpp_err"; then
16703 ac_header_preproc=yes
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 ac_header_preproc=no
16711 rm -f conftest.err conftest.$ac_ext
16712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16713 echo "${ECHO_T}$ac_header_preproc" >&6; }
16715 # So? What about this header?
16716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16722 ac_header_preproc=yes
16725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16738 ## ------------------------------------ ##
16739 ## Report this to http://llvm.org/bugs/ ##
16740 ## ------------------------------------ ##
16742 ) | sed "s/^/$as_me: WARNING: /" >&2
16745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 eval "$as_ac_Header=\$ac_header_preproc"
16752 ac_res=`eval echo '${'$as_ac_Header'}'`
16753 { echo "$as_me:$LINENO: result: $ac_res" >&5
16754 echo "${ECHO_T}$ac_res" >&6; }
16757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16758 cat >>confdefs.h <<_ACEOF
16759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16769 for ac_header in CrashReporterClient.h
16771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 ac_res=`eval echo '${'$as_ac_Header'}'`
16779 { echo "$as_me:$LINENO: result: $ac_res" >&5
16780 echo "${ECHO_T}$ac_res" >&6; }
16782 # Is the header compilable?
16783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16785 cat >conftest.$ac_ext <<_ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16791 $ac_includes_default
16792 #include <$ac_header>
16794 rm -f conftest.$ac_objext
16795 if { (ac_try="$ac_compile"
16796 case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_compile") 2>conftest.er1
16803 grep -v '^ *+' conftest.er1 >conftest.err
16805 cat conftest.err >&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16809 { (case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_try") 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try='test -s conftest.$ac_objext'
16819 { (case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_try") 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 ac_header_compiler=yes
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16833 ac_header_compiler=no
16836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16838 echo "${ECHO_T}$ac_header_compiler" >&6; }
16840 # Is the header present?
16841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 #include <$ac_header>
16851 if { (ac_try="$ac_cpp conftest.$ac_ext"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16859 grep -v '^ *+' conftest.er1 >conftest.err
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } >/dev/null; then
16864 if test -s conftest.err; then
16865 ac_cpp_err=$ac_c_preproc_warn_flag
16866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16873 if test -z "$ac_cpp_err"; then
16874 ac_header_preproc=yes
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_header_preproc=no
16882 rm -f conftest.err conftest.$ac_ext
16883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16884 echo "${ECHO_T}$ac_header_preproc" >&6; }
16886 # So? What about this header?
16887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16893 ac_header_preproc=yes
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16909 ## ------------------------------------ ##
16910 ## Report this to http://llvm.org/bugs/ ##
16911 ## ------------------------------------ ##
16913 ) | sed "s/^/$as_me: WARNING: /" >&2
16916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 eval "$as_ac_Header=\$ac_header_preproc"
16923 ac_res=`eval echo '${'$as_ac_Header'}'`
16924 { echo "$as_me:$LINENO: result: $ac_res" >&5
16925 echo "${ECHO_T}$ac_res" >&6; }
16928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16929 cat >>confdefs.h <<_ACEOF
16930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16938 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16939 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16940 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16948 extern const char *__crashreporter_info__;
16950 __crashreporter_info__ = "test";
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (ac_try="$ac_link"
16958 case "(($ac_try" in
16959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960 *) ac_try_echo=$ac_try;;
16962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16963 (eval "$ac_link") 2>conftest.er1
16965 grep -v '^ *+' conftest.er1 >conftest.err
16967 cat conftest.err >&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_try") 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16991 { echo "$as_me:$LINENO: result: yes" >&5
16992 echo "${ECHO_T}yes" >&6; }
16994 cat >>confdefs.h <<\_ACEOF
16995 #define HAVE_CRASHREPORTER_INFO 1
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17004 { echo "$as_me:$LINENO: result: no" >&5
17005 echo "${ECHO_T}no" >&6; }
17007 cat >>confdefs.h <<\_ACEOF
17008 #define HAVE_CRASHREPORTER_INFO 0
17014 rm -f core conftest.err conftest.$ac_objext \
17015 conftest$ac_exeext conftest.$ac_ext
17019 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17020 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17021 if test "${ac_cv_huge_val_sanity+set}" = set; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 ac_cpp='$CXXCPP $CPPFLAGS'
17027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17031 ac_save_CXXFLAGS=$CXXFLAGS
17032 CXXFLAGS="$CXXFLAGS -pedantic"
17033 if test "$cross_compiling" = yes; then
17034 ac_cv_huge_val_sanity=yes
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17046 double x = HUGE_VAL; return x != x;
17051 rm -f conftest$ac_exeext
17052 if { (ac_try="$ac_link"
17053 case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_link") 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17062 { (case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_try") 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_huge_val_sanity=yes
17073 echo "$as_me: program exited with status $ac_status" >&5
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 ( exit $ac_status )
17078 ac_cv_huge_val_sanity=no
17080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17084 CXXFLAGS=$ac_save_CXXFLAGS
17086 ac_cpp='$CPP $CPPFLAGS'
17087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17093 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17094 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17095 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17098 { echo "$as_me:$LINENO: checking for pid_t" >&5
17099 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17100 if test "${ac_cv_type_pid_t+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 cat >conftest.$ac_ext <<_ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109 $ac_includes_default
17110 typedef pid_t ac__type_new_;
17114 if ((ac__type_new_ *) 0)
17116 if (sizeof (ac__type_new_))
17122 rm -f conftest.$ac_objext
17123 if { (ac_try="$ac_compile"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_compile") 2>conftest.er1
17131 grep -v '^ *+' conftest.er1 >conftest.err
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } &&
17136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17137 { (case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_try") 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try='test -s conftest.$ac_objext'
17147 { (case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_try") 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 ac_cv_type_pid_t=yes
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17161 ac_cv_type_pid_t=no
17164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17166 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17167 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17168 if test $ac_cv_type_pid_t = yes; then
17172 cat >>confdefs.h <<_ACEOF
17178 { echo "$as_me:$LINENO: checking for size_t" >&5
17179 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17180 if test "${ac_cv_type_size_t+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 cat >conftest.$ac_ext <<_ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 $ac_includes_default
17190 typedef size_t ac__type_new_;
17194 if ((ac__type_new_ *) 0)
17196 if (sizeof (ac__type_new_))
17202 rm -f conftest.$ac_objext
17203 if { (ac_try="$ac_compile"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_compile") 2>conftest.er1
17211 grep -v '^ *+' conftest.er1 >conftest.err
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; } &&
17226 { ac_try='test -s conftest.$ac_objext'
17227 { (case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_try") 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_cv_type_size_t=yes
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ac_cv_type_size_t=no
17244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17247 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17248 if test $ac_cv_type_size_t = yes; then
17252 cat >>confdefs.h <<_ACEOF
17253 #define size_t unsigned int
17259 cat >>confdefs.h <<_ACEOF
17260 #define RETSIGTYPE void
17263 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17264 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17265 if test "${ac_cv_struct_tm+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 cat >conftest.$ac_ext <<_ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17274 #include <sys/types.h>
17280 struct tm *tp; tp->tm_sec;
17285 rm -f conftest.$ac_objext
17286 if { (ac_try="$ac_compile"
17287 case "(($ac_try" in
17288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289 *) ac_try_echo=$ac_try;;
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292 (eval "$ac_compile") 2>conftest.er1
17294 grep -v '^ *+' conftest.er1 >conftest.err
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17300 { (case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_try") 2>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try='test -s conftest.$ac_objext'
17310 { (case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_try") 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_cv_struct_tm=time.h
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 ac_cv_struct_tm=sys/time.h
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17330 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17331 if test $ac_cv_struct_tm = sys/time.h; then
17333 cat >>confdefs.h <<\_ACEOF
17334 #define TM_IN_SYS_TIME 1
17339 { echo "$as_me:$LINENO: checking for int64_t" >&5
17340 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17341 if test "${ac_cv_type_int64_t+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 $ac_includes_default
17351 typedef int64_t ac__type_new_;
17355 if ((ac__type_new_ *) 0)
17357 if (sizeof (ac__type_new_))
17363 rm -f conftest.$ac_objext
17364 if { (ac_try="$ac_compile"
17365 case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_compile") 2>conftest.er1
17372 grep -v '^ *+' conftest.er1 >conftest.err
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17378 { (case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_try") 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; } &&
17387 { ac_try='test -s conftest.$ac_objext'
17388 { (case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_try") 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 ac_cv_type_int64_t=yes
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402 ac_cv_type_int64_t=no
17405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17407 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17408 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17409 if test $ac_cv_type_int64_t = yes; then
17411 cat >>confdefs.h <<_ACEOF
17412 #define HAVE_INT64_T 1
17417 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17418 echo "$as_me: error: Type int64_t required but not found" >&2;}
17419 { (exit 1); exit 1; }; }
17422 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17423 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17424 if test "${ac_cv_type_uint64_t+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 $ac_includes_default
17434 typedef uint64_t ac__type_new_;
17438 if ((ac__type_new_ *) 0)
17440 if (sizeof (ac__type_new_))
17446 rm -f conftest.$ac_objext
17447 if { (ac_try="$ac_compile"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_compile") 2>conftest.er1
17455 grep -v '^ *+' conftest.er1 >conftest.err
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461 { (case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_try") 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest.$ac_objext'
17471 { (case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_try") 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_type_uint64_t=yes
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 ac_cv_type_uint64_t=no
17488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17491 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17492 if test $ac_cv_type_uint64_t = yes; then
17494 cat >>confdefs.h <<_ACEOF
17495 #define HAVE_UINT64_T 1
17500 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17501 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17502 if test "${ac_cv_type_u_int64_t+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17505 cat >conftest.$ac_ext <<_ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 $ac_includes_default
17512 typedef u_int64_t ac__type_new_;
17516 if ((ac__type_new_ *) 0)
17518 if (sizeof (ac__type_new_))
17524 rm -f conftest.$ac_objext
17525 if { (ac_try="$ac_compile"
17526 case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_compile") 2>conftest.er1
17533 grep -v '^ *+' conftest.er1 >conftest.err
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } &&
17538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17539 { (case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_try") 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; } &&
17548 { ac_try='test -s conftest.$ac_objext'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_cv_type_u_int64_t=yes
17560 echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17563 ac_cv_type_u_int64_t=no
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17569 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17570 if test $ac_cv_type_u_int64_t = yes; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define HAVE_U_INT64_T 1
17578 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17579 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17580 { (exit 1); exit 1; }; }
17594 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 cat >conftest.$ac_ext <<_ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17610 #define $ac_func innocuous_$ac_func
17612 /* System header to define __stub macros and hopefully few prototypes,
17613 which can conflict with char $ac_func (); below.
17614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17615 <limits.h> exists even on freestanding compilers. */
17618 # include <limits.h>
17620 # include <assert.h>
17625 /* Override any GCC internal prototype to avoid an error.
17626 Use char because int might match the return type of a GCC
17627 builtin and then its argument prototype would still apply. */
17632 /* The GNU C library defines this for functions which it implements
17633 to always fail with ENOSYS. Some functions are actually named
17634 something starting with __ and the normal name is an alias. */
17635 #if defined __stub_$ac_func || defined __stub___$ac_func
17642 return $ac_func ();
17647 rm -f conftest.$ac_objext conftest$ac_exeext
17648 if { (ac_try="$ac_link"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_link") 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17662 { (case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_try") 2>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest$ac_exeext'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 eval "$as_ac_var=yes"
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 eval "$as_ac_var=no"
17689 rm -f core conftest.err conftest.$ac_objext \
17690 conftest$ac_exeext conftest.$ac_ext
17692 ac_res=`eval echo '${'$as_ac_var'}'`
17693 { echo "$as_me:$LINENO: result: $ac_res" >&5
17694 echo "${ECHO_T}$ac_res" >&6; }
17695 if test `eval echo '${'$as_ac_var'}'` = yes; then
17696 cat >>confdefs.h <<_ACEOF
17697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17707 for ac_func in powf fmodf strtof round
17709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 cat >conftest.$ac_ext <<_ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17723 #define $ac_func innocuous_$ac_func
17725 /* System header to define __stub macros and hopefully few prototypes,
17726 which can conflict with char $ac_func (); below.
17727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17728 <limits.h> exists even on freestanding compilers. */
17731 # include <limits.h>
17733 # include <assert.h>
17738 /* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17745 /* The GNU C library defines this for functions which it implements
17746 to always fail with ENOSYS. Some functions are actually named
17747 something starting with __ and the normal name is an alias. */
17748 #if defined __stub_$ac_func || defined __stub___$ac_func
17755 return $ac_func ();
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (ac_try="$ac_link"
17762 case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_link") 2>conftest.er1
17769 grep -v '^ *+' conftest.er1 >conftest.err
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest$ac_exeext'
17785 { (case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_try") 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 eval "$as_ac_var=yes"
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 eval "$as_ac_var=no"
17802 rm -f core conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17805 ac_res=`eval echo '${'$as_ac_var'}'`
17806 { echo "$as_me:$LINENO: result: $ac_res" >&5
17807 echo "${ECHO_T}$ac_res" >&6; }
17808 if test `eval echo '${'$as_ac_var'}'` = yes; then
17809 cat >>confdefs.h <<_ACEOF
17810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17821 for ac_func in log log2 log10 exp exp2
17823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17827 echo $ECHO_N "(cached) $ECHO_C" >&6
17829 cat >conftest.$ac_ext <<_ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h. */
17835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17837 #define $ac_func innocuous_$ac_func
17839 /* System header to define __stub macros and hopefully few prototypes,
17840 which can conflict with char $ac_func (); below.
17841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17842 <limits.h> exists even on freestanding compilers. */
17845 # include <limits.h>
17847 # include <assert.h>
17852 /* Override any GCC internal prototype to avoid an error.
17853 Use char because int might match the return type of a GCC
17854 builtin and then its argument prototype would still apply. */
17859 /* The GNU C library defines this for functions which it implements
17860 to always fail with ENOSYS. Some functions are actually named
17861 something starting with __ and the normal name is an alias. */
17862 #if defined __stub_$ac_func || defined __stub___$ac_func
17869 return $ac_func ();
17874 rm -f conftest.$ac_objext conftest$ac_exeext
17875 if { (ac_try="$ac_link"
17876 case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881 (eval "$ac_link") 2>conftest.er1
17883 grep -v '^ *+' conftest.er1 >conftest.err
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
17888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17889 { (case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_try") 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest$ac_exeext'
17899 { (case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_try") 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 eval "$as_ac_var=yes"
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 eval "$as_ac_var=no"
17916 rm -f core conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17919 ac_res=`eval echo '${'$as_ac_var'}'`
17920 { echo "$as_me:$LINENO: result: $ac_res" >&5
17921 echo "${ECHO_T}$ac_res" >&6; }
17922 if test `eval echo '${'$as_ac_var'}'` = yes; then
17923 cat >>confdefs.h <<_ACEOF
17924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17935 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17943 cat >conftest.$ac_ext <<_ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17951 #define $ac_func innocuous_$ac_func
17953 /* System header to define __stub macros and hopefully few prototypes,
17954 which can conflict with char $ac_func (); below.
17955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17956 <limits.h> exists even on freestanding compilers. */
17959 # include <limits.h>
17961 # include <assert.h>
17966 /* Override any GCC internal prototype to avoid an error.
17967 Use char because int might match the return type of a GCC
17968 builtin and then its argument prototype would still apply. */
17973 /* The GNU C library defines this for functions which it implements
17974 to always fail with ENOSYS. Some functions are actually named
17975 something starting with __ and the normal name is an alias. */
17976 #if defined __stub_$ac_func || defined __stub___$ac_func
17983 return $ac_func ();
17988 rm -f conftest.$ac_objext conftest$ac_exeext
17989 if { (ac_try="$ac_link"
17990 case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_link") 2>conftest.er1
17997 grep -v '^ *+' conftest.er1 >conftest.err
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18003 { (case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_try") 2>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } &&
18012 { ac_try='test -s conftest$ac_exeext'
18013 { (case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_try") 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 eval "$as_ac_var=yes"
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 eval "$as_ac_var=no"
18030 rm -f core conftest.err conftest.$ac_objext \
18031 conftest$ac_exeext conftest.$ac_ext
18033 ac_res=`eval echo '${'$as_ac_var'}'`
18034 { echo "$as_me:$LINENO: result: $ac_res" >&5
18035 echo "${ECHO_T}$ac_res" >&6; }
18036 if test `eval echo '${'$as_ac_var'}'` = yes; then
18037 cat >>confdefs.h <<_ACEOF
18038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18047 for ac_func in isatty mkdtemp mkstemp
18049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 cat >conftest.$ac_ext <<_ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18063 #define $ac_func innocuous_$ac_func
18065 /* System header to define __stub macros and hopefully few prototypes,
18066 which can conflict with char $ac_func (); below.
18067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18068 <limits.h> exists even on freestanding compilers. */
18071 # include <limits.h>
18073 # include <assert.h>
18078 /* Override any GCC internal prototype to avoid an error.
18079 Use char because int might match the return type of a GCC
18080 builtin and then its argument prototype would still apply. */
18085 /* The GNU C library defines this for functions which it implements
18086 to always fail with ENOSYS. Some functions are actually named
18087 something starting with __ and the normal name is an alias. */
18088 #if defined __stub_$ac_func || defined __stub___$ac_func
18095 return $ac_func ();
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (ac_try="$ac_link"
18102 case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_link") 2>conftest.er1
18109 grep -v '^ *+' conftest.er1 >conftest.err
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18115 { (case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_try") 2>&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest$ac_exeext'
18125 { (case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_try") 2>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; }; then
18134 eval "$as_ac_var=yes"
18136 echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139 eval "$as_ac_var=no"
18142 rm -f core conftest.err conftest.$ac_objext \
18143 conftest$ac_exeext conftest.$ac_ext
18145 ac_res=`eval echo '${'$as_ac_var'}'`
18146 { echo "$as_me:$LINENO: result: $ac_res" >&5
18147 echo "${ECHO_T}$ac_res" >&6; }
18148 if test `eval echo '${'$as_ac_var'}'` = yes; then
18149 cat >>confdefs.h <<_ACEOF
18150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18163 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 cat >conftest.$ac_ext <<_ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h. */
18177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18179 #define $ac_func innocuous_$ac_func
18181 /* System header to define __stub macros and hopefully few prototypes,
18182 which can conflict with char $ac_func (); below.
18183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18184 <limits.h> exists even on freestanding compilers. */
18187 # include <limits.h>
18189 # include <assert.h>
18194 /* Override any GCC internal prototype to avoid an error.
18195 Use char because int might match the return type of a GCC
18196 builtin and then its argument prototype would still apply. */
18201 /* The GNU C library defines this for functions which it implements
18202 to always fail with ENOSYS. Some functions are actually named
18203 something starting with __ and the normal name is an alias. */
18204 #if defined __stub_$ac_func || defined __stub___$ac_func
18211 return $ac_func ();
18216 rm -f conftest.$ac_objext conftest$ac_exeext
18217 if { (ac_try="$ac_link"
18218 case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_link") 2>conftest.er1
18225 grep -v '^ *+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18231 { (case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_try") 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest$ac_exeext'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 eval "$as_ac_var=yes"
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255 eval "$as_ac_var=no"
18258 rm -f core conftest.err conftest.$ac_objext \
18259 conftest$ac_exeext conftest.$ac_ext
18261 ac_res=`eval echo '${'$as_ac_var'}'`
18262 { echo "$as_me:$LINENO: result: $ac_res" >&5
18263 echo "${ECHO_T}$ac_res" >&6; }
18264 if test `eval echo '${'$as_ac_var'}'` = yes; then
18265 cat >>confdefs.h <<_ACEOF
18266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18276 for ac_func in strerror strerror_r setenv arc4random
18278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 cat >conftest.$ac_ext <<_ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18292 #define $ac_func innocuous_$ac_func
18294 /* System header to define __stub macros and hopefully few prototypes,
18295 which can conflict with char $ac_func (); below.
18296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18297 <limits.h> exists even on freestanding compilers. */
18300 # include <limits.h>
18302 # include <assert.h>
18307 /* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
18314 /* The GNU C library defines this for functions which it implements
18315 to always fail with ENOSYS. Some functions are actually named
18316 something starting with __ and the normal name is an alias. */
18317 #if defined __stub_$ac_func || defined __stub___$ac_func
18324 return $ac_func ();
18329 rm -f conftest.$ac_objext conftest$ac_exeext
18330 if { (ac_try="$ac_link"
18331 case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_link") 2>conftest.er1
18338 grep -v '^ *+' conftest.er1 >conftest.err
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
18343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18344 { (case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_try") 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } &&
18353 { ac_try='test -s conftest$ac_exeext'
18354 { (case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_try") 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 eval "$as_ac_var=yes"
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 eval "$as_ac_var=no"
18371 rm -f core conftest.err conftest.$ac_objext \
18372 conftest$ac_exeext conftest.$ac_ext
18374 ac_res=`eval echo '${'$as_ac_var'}'`
18375 { echo "$as_me:$LINENO: result: $ac_res" >&5
18376 echo "${ECHO_T}$ac_res" >&6; }
18377 if test `eval echo '${'$as_ac_var'}'` = yes; then
18378 cat >>confdefs.h <<_ACEOF
18379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18389 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18405 #define $ac_func innocuous_$ac_func
18407 /* System header to define __stub macros and hopefully few prototypes,
18408 which can conflict with char $ac_func (); below.
18409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18410 <limits.h> exists even on freestanding compilers. */
18413 # include <limits.h>
18415 # include <assert.h>
18420 /* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18427 /* The GNU C library defines this for functions which it implements
18428 to always fail with ENOSYS. Some functions are actually named
18429 something starting with __ and the normal name is an alias. */
18430 #if defined __stub_$ac_func || defined __stub___$ac_func
18437 return $ac_func ();
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (ac_try="$ac_link"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_link") 2>conftest.er1
18451 grep -v '^ *+' conftest.er1 >conftest.err
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
18456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest$ac_exeext'
18467 { (case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_try") 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 eval "$as_ac_var=yes"
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 eval "$as_ac_var=no"
18484 rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext conftest.$ac_ext
18487 ac_res=`eval echo '${'$as_ac_var'}'`
18488 { echo "$as_me:$LINENO: result: $ac_res" >&5
18489 echo "${ECHO_T}$ac_res" >&6; }
18490 if test `eval echo '${'$as_ac_var'}'` = yes; then
18491 cat >>confdefs.h <<_ACEOF
18492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18503 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
18511 cat >conftest.$ac_ext <<_ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18519 #define $ac_func innocuous_$ac_func
18521 /* System header to define __stub macros and hopefully few prototypes,
18522 which can conflict with char $ac_func (); below.
18523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18524 <limits.h> exists even on freestanding compilers. */
18527 # include <limits.h>
18529 # include <assert.h>
18534 /* Override any GCC internal prototype to avoid an error.
18535 Use char because int might match the return type of a GCC
18536 builtin and then its argument prototype would still apply. */
18541 /* The GNU C library defines this for functions which it implements
18542 to always fail with ENOSYS. Some functions are actually named
18543 something starting with __ and the normal name is an alias. */
18544 #if defined __stub_$ac_func || defined __stub___$ac_func
18551 return $ac_func ();
18556 rm -f conftest.$ac_objext conftest$ac_exeext
18557 if { (ac_try="$ac_link"
18558 case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_link") 2>conftest.er1
18565 grep -v '^ *+' conftest.er1 >conftest.err
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
18570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18571 { (case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_try") 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; } &&
18580 { ac_try='test -s conftest$ac_exeext'
18581 { (case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_try") 2>&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18590 eval "$as_ac_var=yes"
18592 echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18595 eval "$as_ac_var=no"
18598 rm -f core conftest.err conftest.$ac_objext \
18599 conftest$ac_exeext conftest.$ac_ext
18601 ac_res=`eval echo '${'$as_ac_var'}'`
18602 { echo "$as_me:$LINENO: result: $ac_res" >&5
18603 echo "${ECHO_T}$ac_res" >&6; }
18604 if test `eval echo '${'$as_ac_var'}'` = yes; then
18605 cat >>confdefs.h <<_ACEOF
18606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18612 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18613 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18614 if test "${llvm_cv_c_printf_a+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18618 ac_cpp='$CPP $CPPFLAGS'
18619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18623 if test "$cross_compiling" = yes; then
18624 llvmac_cv_c_printf_a=no
18626 cat >conftest.$ac_ext <<_ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18635 #include <stdlib.h>
18641 volatile double A, B;
18645 sprintf(Buffer, "%a", A);
18649 if (A != 0x1.999999999999ap-4)
18656 rm -f conftest$ac_exeext
18657 if { (ac_try="$ac_link"
18658 case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_link") 2>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 llvm_cv_c_printf_a=yes
18678 echo "$as_me: program exited with status $ac_status" >&5
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 ( exit $ac_status )
18683 llvmac_cv_c_printf_a=no
18685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18690 ac_cpp='$CPP $CPPFLAGS'
18691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18696 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18697 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18698 if test "$llvm_cv_c_printf_a" = "yes"; then
18700 cat >>confdefs.h <<\_ACEOF
18701 #define HAVE_PRINTF_A 1
18708 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18709 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18710 if test "${ac_cv_func_rand48+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 ac_cpp='$CXXCPP $CPPFLAGS'
18716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18720 cat >conftest.$ac_ext <<_ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18726 #include <stdlib.h>
18730 srand48(0);lrand48();drand48();
18735 rm -f conftest.$ac_objext
18736 if { (ac_try="$ac_compile"
18737 case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_compile") 2>conftest.er1
18744 grep -v '^ *+' conftest.er1 >conftest.err
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest.$ac_objext'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 ac_cv_func_rand48=yes
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18774 ac_cv_func_rand48=no
18777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779 ac_cpp='$CPP $CPPFLAGS'
18780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18786 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18787 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18789 if test "$ac_cv_func_rand48" = "yes" ; then
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE_RAND48 1
18798 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18799 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18800 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 cat >conftest.$ac_ext <<_ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809 $ac_includes_default
18814 char *p = (char *) strerror_s;
18822 rm -f conftest.$ac_objext
18823 if { (ac_try="$ac_compile"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_compile") 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18837 { (case "(($ac_try" in
18838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839 *) ac_try_echo=$ac_try;;
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842 (eval "$ac_try") 2>&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest.$ac_objext'
18847 { (case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_try") 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_cv_have_decl_strerror_s=yes
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_cv_have_decl_strerror_s=no
18864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18866 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18867 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18868 if test $ac_cv_have_decl_strerror_s = yes; then
18870 cat >>confdefs.h <<_ACEOF
18871 #define HAVE_DECL_STRERROR_S 1
18876 cat >>confdefs.h <<_ACEOF
18877 #define HAVE_DECL_STRERROR_S 0
18885 if test "$llvm_cv_os_type" = "MingW" ; then
18886 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18887 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18888 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 ac_check_lib_save_LIBS=$LIBS
18893 cat >conftest.$ac_ext <<_ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (ac_try="$ac_link"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_link") 2>conftest.er1
18924 grep -v '^ *+' conftest.er1 >conftest.err
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest$ac_exeext'
18940 { (case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_try") 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_cv_lib_gcc__alloca=yes
18951 echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18954 ac_cv_lib_gcc__alloca=no
18957 rm -f core conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
18959 LIBS=$ac_check_lib_save_LIBS
18961 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18962 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18963 if test $ac_cv_lib_gcc__alloca = yes; then
18965 cat >>confdefs.h <<\_ACEOF
18966 #define HAVE__ALLOCA 1
18971 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18972 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18973 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 ac_check_lib_save_LIBS=$LIBS
18978 cat >conftest.$ac_ext <<_ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18985 /* Override any GCC internal prototype to avoid an error.
18986 Use char because int might match the return type of a GCC
18987 builtin and then its argument prototype would still apply. */
18995 return __alloca ();
19000 rm -f conftest.$ac_objext conftest$ac_exeext
19001 if { (ac_try="$ac_link"
19002 case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_link") 2>conftest.er1
19009 grep -v '^ *+' conftest.er1 >conftest.err
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19015 { (case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_try") 2>&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; } &&
19024 { ac_try='test -s conftest$ac_exeext'
19025 { (case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_try") 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_lib_gcc___alloca=yes
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 ac_cv_lib_gcc___alloca=no
19042 rm -f core conftest.err conftest.$ac_objext \
19043 conftest$ac_exeext conftest.$ac_ext
19044 LIBS=$ac_check_lib_save_LIBS
19046 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19047 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19048 if test $ac_cv_lib_gcc___alloca = yes; then
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE___ALLOCA 1
19056 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19057 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19058 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 ac_check_lib_save_LIBS=$LIBS
19063 cat >conftest.$ac_ext <<_ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19070 /* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19080 return __chkstk ();
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (ac_try="$ac_link"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_link") 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest$ac_exeext'
19110 { (case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_try") 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_cv_lib_gcc___chkstk=yes
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19124 ac_cv_lib_gcc___chkstk=no
19127 rm -f core conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19129 LIBS=$ac_check_lib_save_LIBS
19131 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19132 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19133 if test $ac_cv_lib_gcc___chkstk = yes; then
19135 cat >>confdefs.h <<\_ACEOF
19136 #define HAVE___CHKSTK 1
19141 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19142 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19143 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 ac_check_lib_save_LIBS=$LIBS
19148 cat >conftest.$ac_ext <<_ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19155 /* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19165 return ___chkstk ();
19170 rm -f conftest.$ac_objext conftest$ac_exeext
19171 if { (ac_try="$ac_link"
19172 case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_link") 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19185 { (case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_try") 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } &&
19194 { ac_try='test -s conftest$ac_exeext'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_lib_gcc____chkstk=yes
19206 echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19209 ac_cv_lib_gcc____chkstk=no
19212 rm -f core conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19216 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19217 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19218 if test $ac_cv_lib_gcc____chkstk = yes; then
19220 cat >>confdefs.h <<\_ACEOF
19221 #define HAVE____CHKSTK 1
19227 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19228 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19229 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 ac_check_lib_save_LIBS=$LIBS
19234 cat >conftest.$ac_ext <<_ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19241 /* Override any GCC internal prototype to avoid an error.
19242 Use char because int might match the return type of a GCC
19243 builtin and then its argument prototype would still apply. */
19251 return __ashldi3 ();
19256 rm -f conftest.$ac_objext conftest$ac_exeext
19257 if { (ac_try="$ac_link"
19258 case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263 (eval "$ac_link") 2>conftest.er1
19265 grep -v '^ *+' conftest.er1 >conftest.err
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
19270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19271 { (case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_try") 2>&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest$ac_exeext'
19281 { (case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_try") 2>&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 ac_cv_lib_gcc___ashldi3=yes
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 ac_cv_lib_gcc___ashldi3=no
19298 rm -f core conftest.err conftest.$ac_objext \
19299 conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19302 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19303 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19304 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19306 cat >>confdefs.h <<\_ACEOF
19307 #define HAVE___ASHLDI3 1
19312 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19313 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19314 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 ac_check_lib_save_LIBS=$LIBS
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19326 /* Override any GCC internal prototype to avoid an error.
19327 Use char because int might match the return type of a GCC
19328 builtin and then its argument prototype would still apply. */
19336 return __ashrdi3 ();
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (ac_try="$ac_link"
19343 case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_link") 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19356 { (case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_try") 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest$ac_exeext'
19366 { (case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_try") 2>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375 ac_cv_lib_gcc___ashrdi3=yes
19377 echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380 ac_cv_lib_gcc___ashrdi3=no
19383 rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19385 LIBS=$ac_check_lib_save_LIBS
19387 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19388 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19389 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19391 cat >>confdefs.h <<\_ACEOF
19392 #define HAVE___ASHRDI3 1
19397 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19398 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19399 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 ac_check_lib_save_LIBS=$LIBS
19404 cat >conftest.$ac_ext <<_ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19411 /* Override any GCC internal prototype to avoid an error.
19412 Use char because int might match the return type of a GCC
19413 builtin and then its argument prototype would still apply. */
19421 return __divdi3 ();
19426 rm -f conftest.$ac_objext conftest$ac_exeext
19427 if { (ac_try="$ac_link"
19428 case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_link") 2>conftest.er1
19435 grep -v '^ *+' conftest.er1 >conftest.err
19437 cat conftest.err >&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
19440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19441 { (case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_try") 2>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; } &&
19450 { ac_try='test -s conftest$ac_exeext'
19451 { (case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_try") 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_cv_lib_gcc___divdi3=yes
19462 echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19465 ac_cv_lib_gcc___divdi3=no
19468 rm -f core conftest.err conftest.$ac_objext \
19469 conftest$ac_exeext conftest.$ac_ext
19470 LIBS=$ac_check_lib_save_LIBS
19472 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19473 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19474 if test $ac_cv_lib_gcc___divdi3 = yes; then
19476 cat >>confdefs.h <<\_ACEOF
19477 #define HAVE___DIVDI3 1
19482 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19483 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19484 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 ac_check_lib_save_LIBS=$LIBS
19489 cat >conftest.$ac_ext <<_ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19496 /* Override any GCC internal prototype to avoid an error.
19497 Use char because int might match the return type of a GCC
19498 builtin and then its argument prototype would still apply. */
19506 return __fixdfdi ();
19511 rm -f conftest.$ac_objext conftest$ac_exeext
19512 if { (ac_try="$ac_link"
19513 case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_link") 2>conftest.er1
19520 grep -v '^ *+' conftest.er1 >conftest.err
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19526 { (case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_try") 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; } &&
19535 { ac_try='test -s conftest$ac_exeext'
19536 { (case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_try") 2>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 ac_cv_lib_gcc___fixdfdi=yes
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19550 ac_cv_lib_gcc___fixdfdi=no
19553 rm -f core conftest.err conftest.$ac_objext \
19554 conftest$ac_exeext conftest.$ac_ext
19555 LIBS=$ac_check_lib_save_LIBS
19557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19558 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19559 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19561 cat >>confdefs.h <<\_ACEOF
19562 #define HAVE___FIXDFDI 1
19567 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19568 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19569 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 ac_check_lib_save_LIBS=$LIBS
19574 cat >conftest.$ac_ext <<_ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19581 /* Override any GCC internal prototype to avoid an error.
19582 Use char because int might match the return type of a GCC
19583 builtin and then its argument prototype would still apply. */
19591 return __fixsfdi ();
19596 rm -f conftest.$ac_objext conftest$ac_exeext
19597 if { (ac_try="$ac_link"
19598 case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_link") 2>conftest.er1
19605 grep -v '^ *+' conftest.er1 >conftest.err
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19611 { (case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_try") 2>&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; } &&
19620 { ac_try='test -s conftest$ac_exeext'
19621 { (case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_try") 2>&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; }; then
19630 ac_cv_lib_gcc___fixsfdi=yes
19632 echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19635 ac_cv_lib_gcc___fixsfdi=no
19638 rm -f core conftest.err conftest.$ac_objext \
19639 conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_lib_save_LIBS
19642 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19643 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19644 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE___FIXSFDI 1
19652 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19653 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19654 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 ac_check_lib_save_LIBS=$LIBS
19659 cat >conftest.$ac_ext <<_ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h. */
19666 /* Override any GCC internal prototype to avoid an error.
19667 Use char because int might match the return type of a GCC
19668 builtin and then its argument prototype would still apply. */
19672 char __floatdidf ();
19676 return __floatdidf ();
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (ac_try="$ac_link"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_link") 2>conftest.er1
19690 grep -v '^ *+' conftest.er1 >conftest.err
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } &&
19695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19696 { (case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_try") 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try='test -s conftest$ac_exeext'
19706 { (case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_try") 2>&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 ac_cv_lib_gcc___floatdidf=yes
19717 echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19720 ac_cv_lib_gcc___floatdidf=no
19723 rm -f core conftest.err conftest.$ac_objext \
19724 conftest$ac_exeext conftest.$ac_ext
19725 LIBS=$ac_check_lib_save_LIBS
19727 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19728 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19729 if test $ac_cv_lib_gcc___floatdidf = yes; then
19731 cat >>confdefs.h <<\_ACEOF
19732 #define HAVE___FLOATDIDF 1
19737 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19738 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19739 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 ac_check_lib_save_LIBS=$LIBS
19744 cat >conftest.$ac_ext <<_ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19751 /* Override any GCC internal prototype to avoid an error.
19752 Use char because int might match the return type of a GCC
19753 builtin and then its argument prototype would still apply. */
19761 return __lshrdi3 ();
19766 rm -f conftest.$ac_objext conftest$ac_exeext
19767 if { (ac_try="$ac_link"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_link") 2>conftest.er1
19775 grep -v '^ *+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; } &&
19790 { ac_try='test -s conftest$ac_exeext'
19791 { (case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_try") 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_lib_gcc___lshrdi3=yes
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805 ac_cv_lib_gcc___lshrdi3=no
19808 rm -f core conftest.err conftest.$ac_objext \
19809 conftest$ac_exeext conftest.$ac_ext
19810 LIBS=$ac_check_lib_save_LIBS
19812 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19813 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19814 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19816 cat >>confdefs.h <<\_ACEOF
19817 #define HAVE___LSHRDI3 1
19822 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19823 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19824 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 ac_check_lib_save_LIBS=$LIBS
19829 cat >conftest.$ac_ext <<_ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19836 /* Override any GCC internal prototype to avoid an error.
19837 Use char because int might match the return type of a GCC
19838 builtin and then its argument prototype would still apply. */
19846 return __moddi3 ();
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_link") 2>conftest.er1
19860 grep -v '^ *+' conftest.er1 >conftest.err
19862 cat conftest.err >&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } &&
19865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19866 { (case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_try") 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; } &&
19875 { ac_try='test -s conftest$ac_exeext'
19876 { (case "(($ac_try" in
19877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878 *) ac_try_echo=$ac_try;;
19880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881 (eval "$ac_try") 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; }; then
19885 ac_cv_lib_gcc___moddi3=yes
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_lib_gcc___moddi3=no
19893 rm -f core conftest.err conftest.$ac_objext \
19894 conftest$ac_exeext conftest.$ac_ext
19895 LIBS=$ac_check_lib_save_LIBS
19897 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19898 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19899 if test $ac_cv_lib_gcc___moddi3 = yes; then
19901 cat >>confdefs.h <<\_ACEOF
19902 #define HAVE___MODDI3 1
19907 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19908 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19909 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 ac_check_lib_save_LIBS=$LIBS
19914 cat >conftest.$ac_ext <<_ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19921 /* Override any GCC internal prototype to avoid an error.
19922 Use char because int might match the return type of a GCC
19923 builtin and then its argument prototype would still apply. */
19931 return __udivdi3 ();
19936 rm -f conftest.$ac_objext conftest$ac_exeext
19937 if { (ac_try="$ac_link"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_link") 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest$ac_exeext'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 ac_cv_lib_gcc___udivdi3=yes
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 ac_cv_lib_gcc___udivdi3=no
19978 rm -f core conftest.err conftest.$ac_objext \
19979 conftest$ac_exeext conftest.$ac_ext
19980 LIBS=$ac_check_lib_save_LIBS
19982 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19983 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19984 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19986 cat >>confdefs.h <<\_ACEOF
19987 #define HAVE___UDIVDI3 1
19992 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19993 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19994 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19997 ac_check_lib_save_LIBS=$LIBS
19999 cat >conftest.$ac_ext <<_ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20006 /* Override any GCC internal prototype to avoid an error.
20007 Use char because int might match the return type of a GCC
20008 builtin and then its argument prototype would still apply. */
20016 return __umoddi3 ();
20021 rm -f conftest.$ac_objext conftest$ac_exeext
20022 if { (ac_try="$ac_link"
20023 case "(($ac_try" in
20024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025 *) ac_try_echo=$ac_try;;
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028 (eval "$ac_link") 2>conftest.er1
20030 grep -v '^ *+' conftest.er1 >conftest.err
20032 cat conftest.err >&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); } &&
20035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20036 { (case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_try") 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try='test -s conftest$ac_exeext'
20046 { (case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_try") 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ac_cv_lib_gcc___umoddi3=yes
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20060 ac_cv_lib_gcc___umoddi3=no
20063 rm -f core conftest.err conftest.$ac_objext \
20064 conftest$ac_exeext conftest.$ac_ext
20065 LIBS=$ac_check_lib_save_LIBS
20067 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20068 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20069 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20071 cat >>confdefs.h <<\_ACEOF
20072 #define HAVE___UMODDI3 1
20078 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20079 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20080 if test "${ac_cv_lib_gcc___main+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20083 ac_check_lib_save_LIBS=$LIBS
20085 cat >conftest.$ac_ext <<_ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20092 /* Override any GCC internal prototype to avoid an error.
20093 Use char because int might match the return type of a GCC
20094 builtin and then its argument prototype would still apply. */
20107 rm -f conftest.$ac_objext conftest$ac_exeext
20108 if { (ac_try="$ac_link"
20109 case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_link") 2>conftest.er1
20116 grep -v '^ *+' conftest.er1 >conftest.err
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } &&
20121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20122 { (case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_try") 2>&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; } &&
20131 { ac_try='test -s conftest$ac_exeext'
20132 { (case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20137 (eval "$ac_try") 2>&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; }; then
20141 ac_cv_lib_gcc___main=yes
20143 echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20146 ac_cv_lib_gcc___main=no
20149 rm -f core conftest.err conftest.$ac_objext \
20150 conftest$ac_exeext conftest.$ac_ext
20151 LIBS=$ac_check_lib_save_LIBS
20153 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20154 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20155 if test $ac_cv_lib_gcc___main = yes; then
20157 cat >>confdefs.h <<\_ACEOF
20158 #define HAVE___MAIN 1
20163 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20164 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20165 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 ac_check_lib_save_LIBS=$LIBS
20170 cat >conftest.$ac_ext <<_ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20177 /* Override any GCC internal prototype to avoid an error.
20178 Use char because int might match the return type of a GCC
20179 builtin and then its argument prototype would still apply. */
20187 return __cmpdi2 ();
20192 rm -f conftest.$ac_objext conftest$ac_exeext
20193 if { (ac_try="$ac_link"
20194 case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_link") 2>conftest.er1
20201 grep -v '^ *+' conftest.er1 >conftest.err
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } &&
20206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20207 { (case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_try") 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest$ac_exeext'
20217 { (case "(($ac_try" in
20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219 *) ac_try_echo=$ac_try;;
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222 (eval "$ac_try") 2>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; }; then
20226 ac_cv_lib_gcc___cmpdi2=yes
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20231 ac_cv_lib_gcc___cmpdi2=no
20234 rm -f core conftest.err conftest.$ac_objext \
20235 conftest$ac_exeext conftest.$ac_ext
20236 LIBS=$ac_check_lib_save_LIBS
20238 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20239 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20240 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20242 cat >>confdefs.h <<\_ACEOF
20243 #define HAVE___CMPDI2 1
20250 if test "$llvm_cv_os_type" = "MingW" ; then
20251 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20252 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20253 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20261 #include <windows.h>
20262 #include <imagehlp.h>
20263 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20264 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20268 rm -f conftest.$ac_objext
20269 if { (ac_try="$ac_compile"
20270 case "(($ac_try" in
20271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272 *) ac_try_echo=$ac_try;;
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275 (eval "$ac_compile") 2>conftest.er1
20277 grep -v '^ *+' conftest.er1 >conftest.err
20279 cat conftest.err >&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } &&
20282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20283 { (case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_try") 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; } &&
20292 { ac_try='test -s conftest.$ac_objext'
20293 { (case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_try") 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; }; then
20303 { echo "$as_me:$LINENO: result: yes" >&5
20304 echo "${ECHO_T}yes" >&6; }
20305 llvm_cv_win32_elmcb_pcstr="PCSTR"
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20312 { echo "$as_me:$LINENO: result: no" >&5
20313 echo "${ECHO_T}no" >&6; }
20314 llvm_cv_win32_elmcb_pcstr="PSTR"
20318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 cat >>confdefs.h <<_ACEOF
20321 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20328 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20329 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20330 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20335 ac_cpp='$CXXCPP $CPPFLAGS'
20336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20340 cat >conftest.$ac_ext <<_ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20355 rm -f conftest.$ac_objext
20356 if { (ac_try="$ac_compile"
20357 case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_compile") 2>conftest.er1
20364 grep -v '^ *+' conftest.er1 >conftest.err
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20370 { (case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_try") 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } &&
20379 { ac_try='test -s conftest.$ac_objext'
20380 { (case "(($ac_try" in
20381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382 *) ac_try_echo=$ac_try;;
20384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20385 (eval "$ac_try") 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20389 ac_cv_func_isnan_in_math_h=yes
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_cv_func_isnan_in_math_h=no
20397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399 ac_cpp='$CPP $CPPFLAGS'
20400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20406 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20407 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20410 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20412 cat >>confdefs.h <<\_ACEOF
20413 #define HAVE_ISNAN_IN_MATH_H 1
20419 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20420 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20421 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 ac_cpp='$CXXCPP $CPPFLAGS'
20427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20431 cat >conftest.$ac_ext <<_ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20446 rm -f conftest.$ac_objext
20447 if { (ac_try="$ac_compile"
20448 case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453 (eval "$ac_compile") 2>conftest.er1
20455 grep -v '^ *+' conftest.er1 >conftest.err
20457 cat conftest.err >&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } &&
20460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20461 { (case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_try") 2>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; } &&
20470 { ac_try='test -s conftest.$ac_objext'
20471 { (case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_try") 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 ac_cv_func_isnan_in_cmath=yes
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_cv_func_isnan_in_cmath=no
20488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490 ac_cpp='$CPP $CPPFLAGS'
20491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20497 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20498 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20500 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20502 cat >>confdefs.h <<\_ACEOF
20503 #define HAVE_ISNAN_IN_CMATH 1
20509 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20510 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20511 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 ac_cpp='$CXXCPP $CPPFLAGS'
20517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20521 cat >conftest.$ac_ext <<_ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20531 float f; std::isnan(f);
20536 rm -f conftest.$ac_objext
20537 if { (ac_try="$ac_compile"
20538 case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_compile") 2>conftest.er1
20545 grep -v '^ *+' conftest.er1 >conftest.err
20547 cat conftest.err >&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } &&
20550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20551 { (case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_try") 2>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; } &&
20560 { ac_try='test -s conftest.$ac_objext'
20561 { (case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_try") 2>&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; }; then
20570 ac_cv_func_std_isnan_in_cmath=yes
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 ac_cv_func_std_isnan_in_cmath=no
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 ac_cpp='$CPP $CPPFLAGS'
20581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20587 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20588 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20590 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20592 cat >>confdefs.h <<\_ACEOF
20593 #define HAVE_STD_ISNAN_IN_CMATH 1
20601 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20602 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20603 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 ac_cpp='$CXXCPP $CPPFLAGS'
20609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20613 cat >conftest.$ac_ext <<_ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_compile") 2>conftest.er1
20637 grep -v '^ *+' conftest.er1 >conftest.err
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } &&
20642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20643 { (case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_try") 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest.$ac_objext'
20653 { (case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_try") 2>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; }; then
20662 ac_cv_func_isinf_in_math_h=yes
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ac_cv_func_isinf_in_math_h=no
20670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20672 ac_cpp='$CPP $CPPFLAGS'
20673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20679 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20680 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20682 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20684 cat >>confdefs.h <<\_ACEOF
20685 #define HAVE_ISINF_IN_MATH_H 1
20691 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20692 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20693 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 ac_cpp='$CXXCPP $CPPFLAGS'
20699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20703 cat >conftest.$ac_ext <<_ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20718 rm -f conftest.$ac_objext
20719 if { (ac_try="$ac_compile"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_compile") 2>conftest.er1
20727 grep -v '^ *+' conftest.er1 >conftest.err
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } &&
20732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20733 { (case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_try") 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; } &&
20742 { ac_try='test -s conftest.$ac_objext'
20743 { (case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_try") 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_cv_func_isinf_in_cmath=yes
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_cv_func_isinf_in_cmath=no
20760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20762 ac_cpp='$CPP $CPPFLAGS'
20763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20769 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20770 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20772 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20774 cat >>confdefs.h <<\_ACEOF
20775 #define HAVE_ISINF_IN_CMATH 1
20781 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20782 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20783 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 ac_cpp='$CXXCPP $CPPFLAGS'
20789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20793 cat >conftest.$ac_ext <<_ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20803 float f; std::isinf(f);
20808 rm -f conftest.$ac_objext
20809 if { (ac_try="$ac_compile"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_compile") 2>conftest.er1
20817 grep -v '^ *+' conftest.er1 >conftest.err
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } &&
20822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20823 { (case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest.$ac_objext'
20833 { (case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_try") 2>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 ac_cv_func_std_isinf_in_cmath=yes
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 ac_cv_func_std_isinf_in_cmath=no
20850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852 ac_cpp='$CPP $CPPFLAGS'
20853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20859 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20860 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20862 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20864 cat >>confdefs.h <<\_ACEOF
20865 #define HAVE_STD_ISINF_IN_CMATH 1
20871 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20872 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20873 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 ac_cpp='$CXXCPP $CPPFLAGS'
20879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20883 cat >conftest.$ac_ext <<_ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20889 #include <ieeefp.h>
20893 float f; finite(f);
20898 rm -f conftest.$ac_objext
20899 if { (ac_try="$ac_compile"
20900 case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_compile") 2>conftest.er1
20907 grep -v '^ *+' conftest.er1 >conftest.err
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
20912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20913 { (case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_try") 2>&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
20923 { (case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_try") 2>&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; }; then
20932 ac_cv_func_finite_in_ieeefp_h=yes
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_cv_func_finite_in_ieeefp_h=no
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942 ac_cpp='$CPP $CPPFLAGS'
20943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20950 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20952 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define HAVE_FINITE_IN_IEEEFP_H 1
20962 if test "$llvm_cv_platform_type" = "Unix" ; then
20965 for ac_header in stdlib.h unistd.h
20967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20974 ac_res=`eval echo '${'$as_ac_Header'}'`
20975 { echo "$as_me:$LINENO: result: $ac_res" >&5
20976 echo "${ECHO_T}$ac_res" >&6; }
20978 # Is the header compilable?
20979 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 $ac_includes_default
20988 #include <$ac_header>
20990 rm -f conftest.$ac_objext
20991 if { (ac_try="$ac_compile"
20992 case "(($ac_try" in
20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994 *) ac_try_echo=$ac_try;;
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997 (eval "$ac_compile") 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21005 { (case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_try") 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; } &&
21014 { ac_try='test -s conftest.$ac_objext'
21015 { (case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_try") 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_header_compiler=yes
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ac_header_compiler=no
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21034 echo "${ECHO_T}$ac_header_compiler" >&6; }
21036 # Is the header present?
21037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21039 cat >conftest.$ac_ext <<_ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 #include <$ac_header>
21047 if { (ac_try="$ac_cpp conftest.$ac_ext"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21055 grep -v '^ *+' conftest.er1 >conftest.err
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } >/dev/null; then
21060 if test -s conftest.err; then
21061 ac_cpp_err=$ac_c_preproc_warn_flag
21062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21069 if test -z "$ac_cpp_err"; then
21070 ac_header_preproc=yes
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_header_preproc=no
21078 rm -f conftest.err conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21080 echo "${ECHO_T}$ac_header_preproc" >&6; }
21082 # So? What about this header?
21083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21089 ac_header_preproc=yes
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21105 ## ------------------------------------ ##
21106 ## Report this to http://llvm.org/bugs/ ##
21107 ## ------------------------------------ ##
21109 ) | sed "s/^/$as_me: WARNING: /" >&2
21112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21117 eval "$as_ac_Header=\$ac_header_preproc"
21119 ac_res=`eval echo '${'$as_ac_Header'}'`
21120 { echo "$as_me:$LINENO: result: $ac_res" >&5
21121 echo "${ECHO_T}$ac_res" >&6; }
21124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21125 cat >>confdefs.h <<_ACEOF
21126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21134 for ac_func in getpagesize
21136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21140 echo $ECHO_N "(cached) $ECHO_C" >&6
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21150 #define $ac_func innocuous_$ac_func
21152 /* System header to define __stub macros and hopefully few prototypes,
21153 which can conflict with char $ac_func (); below.
21154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21155 <limits.h> exists even on freestanding compilers. */
21158 # include <limits.h>
21160 # include <assert.h>
21165 /* Override any GCC internal prototype to avoid an error.
21166 Use char because int might match the return type of a GCC
21167 builtin and then its argument prototype would still apply. */
21172 /* The GNU C library defines this for functions which it implements
21173 to always fail with ENOSYS. Some functions are actually named
21174 something starting with __ and the normal name is an alias. */
21175 #if defined __stub_$ac_func || defined __stub___$ac_func
21182 return $ac_func ();
21187 rm -f conftest.$ac_objext conftest$ac_exeext
21188 if { (ac_try="$ac_link"
21189 case "(($ac_try" in
21190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191 *) ac_try_echo=$ac_try;;
21193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21194 (eval "$ac_link") 2>conftest.er1
21196 grep -v '^ *+' conftest.er1 >conftest.err
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21202 { (case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_try") 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; } &&
21211 { ac_try='test -s conftest$ac_exeext'
21212 { (case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_try") 2>&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; }; then
21221 eval "$as_ac_var=yes"
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 eval "$as_ac_var=no"
21229 rm -f core conftest.err conftest.$ac_objext \
21230 conftest$ac_exeext conftest.$ac_ext
21232 ac_res=`eval echo '${'$as_ac_var'}'`
21233 { echo "$as_me:$LINENO: result: $ac_res" >&5
21234 echo "${ECHO_T}$ac_res" >&6; }
21235 if test `eval echo '${'$as_ac_var'}'` = yes; then
21236 cat >>confdefs.h <<_ACEOF
21237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21243 { echo "$as_me:$LINENO: checking for working mmap" >&5
21244 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21245 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 if test "$cross_compiling" = yes; then
21249 ac_cv_func_mmap_fixed_mapped=no
21251 cat >conftest.$ac_ext <<_ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21257 $ac_includes_default
21258 /* malloc might have been renamed as rpl_malloc. */
21261 /* Thanks to Mike Haertel and Jim Avera for this test.
21262 Here is a matrix of mmap possibilities:
21263 mmap private not fixed
21264 mmap private fixed at somewhere currently unmapped
21265 mmap private fixed at somewhere already mapped
21266 mmap shared not fixed
21267 mmap shared fixed at somewhere currently unmapped
21268 mmap shared fixed at somewhere already mapped
21269 For private mappings, we should verify that changes cannot be read()
21270 back from the file, nor mmap's back from the file at a different
21271 address. (There have been systems where private was not correctly
21272 implemented like the infamous i386 svr4.0, and systems where the
21273 VM page cache was not coherent with the file system buffer cache
21274 like early versions of FreeBSD and possibly contemporary NetBSD.)
21275 For shared mappings, we should conversely verify that changes get
21276 propagated back to all the places they're supposed to be.
21278 Grep wants private fixed already mapped.
21279 The main things grep needs to know about mmap are:
21280 * does it exist and is it safe to write into the mmap'd area
21281 * how to use it (BSD variants) */
21284 #include <sys/mman.h>
21286 #if !STDC_HEADERS && !HAVE_STDLIB_H
21290 /* This mess was copied from the GNU getpagesize.h. */
21291 #if !HAVE_GETPAGESIZE
21292 /* Assume that all systems that can run configure have sys/param.h. */
21293 # if !HAVE_SYS_PARAM_H
21294 # define HAVE_SYS_PARAM_H 1
21297 # ifdef _SC_PAGESIZE
21298 # define getpagesize() sysconf(_SC_PAGESIZE)
21299 # else /* no _SC_PAGESIZE */
21300 # if HAVE_SYS_PARAM_H
21301 # include <sys/param.h>
21302 # ifdef EXEC_PAGESIZE
21303 # define getpagesize() EXEC_PAGESIZE
21304 # else /* no EXEC_PAGESIZE */
21306 # define getpagesize() NBPG * CLSIZE
21309 # endif /* no CLSIZE */
21310 # else /* no NBPG */
21312 # define getpagesize() NBPC
21313 # else /* no NBPC */
21315 # define getpagesize() PAGESIZE
21316 # endif /* PAGESIZE */
21317 # endif /* no NBPC */
21318 # endif /* no NBPG */
21319 # endif /* no EXEC_PAGESIZE */
21320 # else /* no HAVE_SYS_PARAM_H */
21321 # define getpagesize() 8192 /* punt totally */
21322 # endif /* no HAVE_SYS_PARAM_H */
21323 # endif /* no _SC_PAGESIZE */
21325 #endif /* no HAVE_GETPAGESIZE */
21330 char *data, *data2, *data3;
21334 pagesize = getpagesize ();
21336 /* First, make a file with some known garbage in it. */
21337 data = (char *) malloc (pagesize);
21340 for (i = 0; i < pagesize; ++i)
21341 *(data + i) = rand ();
21343 fd = creat ("conftest.mmap", 0600);
21346 if (write (fd, data, pagesize) != pagesize)
21350 /* Next, try to mmap the file at a fixed address which already has
21351 something else allocated at it. If we can, also make sure that
21352 we see the same garbage. */
21353 fd = open ("conftest.mmap", O_RDWR);
21356 data2 = (char *) malloc (2 * pagesize);
21359 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21360 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21361 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21363 for (i = 0; i < pagesize; ++i)
21364 if (*(data + i) != *(data2 + i))
21367 /* Finally, make sure that changes to the mapped area do not
21368 percolate back to the file as seen by read(). (This is a bug on
21369 some variants of i386 svr4.0.) */
21370 for (i = 0; i < pagesize; ++i)
21371 *(data2 + i) = *(data2 + i) + 1;
21372 data3 = (char *) malloc (pagesize);
21375 if (read (fd, data3, pagesize) != pagesize)
21377 for (i = 0; i < pagesize; ++i)
21378 if (*(data + i) != *(data3 + i))
21384 rm -f conftest$ac_exeext
21385 if { (ac_try="$ac_link"
21386 case "(($ac_try" in
21387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21388 *) ac_try_echo=$ac_try;;
21390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21391 (eval "$ac_link") 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21395 { (case "(($ac_try" in
21396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397 *) ac_try_echo=$ac_try;;
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400 (eval "$ac_try") 2>&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; }; then
21404 ac_cv_func_mmap_fixed_mapped=yes
21406 echo "$as_me: program exited with status $ac_status" >&5
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ( exit $ac_status )
21411 ac_cv_func_mmap_fixed_mapped=no
21413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21418 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21419 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21420 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21422 cat >>confdefs.h <<\_ACEOF
21423 #define HAVE_MMAP 1
21427 rm -f conftest.mmap
21429 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21430 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21431 if test "${ac_cv_func_mmap_file+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21435 ac_cpp='$CPP $CPPFLAGS'
21436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21440 if test "$cross_compiling" = yes; then
21441 ac_cv_func_mmap_file=no
21443 cat >conftest.$ac_ext <<_ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h. */
21451 #include <sys/types.h>
21452 #include <sys/mman.h>
21460 fd = creat ("foo",0777);
21461 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21463 return (fd != (int) MAP_FAILED);
21468 rm -f conftest$ac_exeext
21469 if { (ac_try="$ac_link"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_link") 2>&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21479 { (case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484 (eval "$ac_try") 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; }; then
21488 ac_cv_func_mmap_file=yes
21490 echo "$as_me: program exited with status $ac_status" >&5
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 ( exit $ac_status )
21495 ac_cv_func_mmap_file=no
21497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21502 ac_cpp='$CPP $CPPFLAGS'
21503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21509 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21510 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21511 if test "$ac_cv_func_mmap_file" = yes; then
21513 cat >>confdefs.h <<\_ACEOF
21514 #define HAVE_MMAP_FILE
21521 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21522 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21523 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 if test "$llvm_cv_os_type" = "Interix" ; then
21527 ac_cv_need_dev_zero_for_mmap=yes
21529 ac_cv_need_dev_zero_for_mmap=no
21533 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21534 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21535 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21537 cat >>confdefs.h <<\_ACEOF
21538 #define NEED_DEV_ZERO_FOR_MMAP 1
21543 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21545 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21546 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21548 if test "$ac_cv_func_mmap_file" = "no"
21550 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21551 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21555 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21556 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21558 ac_cpp='$CXXCPP $CPPFLAGS'
21559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21563 cat >conftest.$ac_ext <<_ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21572 volatile unsigned long val = 1;
21573 __sync_synchronize();
21574 __sync_val_compare_and_swap(&val, 1, 0);
21575 __sync_add_and_fetch(&val, 1);
21576 __sync_sub_and_fetch(&val, 1);
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (ac_try="$ac_link"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_link") 2>conftest.er1
21591 grep -v '^ *+' conftest.er1 >conftest.err
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
21596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21597 { (case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_try") 2>&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; } &&
21606 { ac_try='test -s conftest$ac_exeext'
21607 { (case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_try") 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21617 { echo "$as_me:$LINENO: result: yes" >&5
21618 echo "${ECHO_T}yes" >&6; }
21620 cat >>confdefs.h <<\_ACEOF
21621 #define LLVM_HAS_ATOMICS 1
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21630 { echo "$as_me:$LINENO: result: no" >&5
21631 echo "${ECHO_T}no" >&6; }
21633 cat >>confdefs.h <<\_ACEOF
21634 #define LLVM_HAS_ATOMICS 0
21637 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21638 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21642 rm -f core conftest.err conftest.$ac_objext \
21643 conftest$ac_exeext conftest.$ac_ext
21645 ac_cpp='$CPP $CPPFLAGS'
21646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21652 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21653 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21654 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21655 if test "${llvm_cv_linux_mixed+set}" = set; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 ac_cpp='$CPP $CPPFLAGS'
21660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21664 cat >conftest.$ac_ext <<_ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21671 error: Not x86-64 even if uname says so!
21682 rm -f conftest.$ac_objext
21683 if { (ac_try="$ac_compile"
21684 case "(($ac_try" in
21685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686 *) ac_try_echo=$ac_try;;
21688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21689 (eval "$ac_compile") 2>conftest.er1
21691 grep -v '^ *+' conftest.er1 >conftest.err
21693 cat conftest.err >&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } &&
21696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21697 { (case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_try") 2>&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; } &&
21706 { ac_try='test -s conftest.$ac_objext'
21707 { (case "(($ac_try" in
21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709 *) ac_try_echo=$ac_try;;
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712 (eval "$ac_try") 2>&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716 llvm_cv_linux_mixed=no
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 llvm_cv_linux_mixed=yes
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726 ac_cpp='$CPP $CPPFLAGS'
21727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21733 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21734 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21736 if test "$llvm_cv_linux_mixed" = "yes"; then
21737 llvm_cv_target_arch="x86"
21743 for ac_func in __dso_handle
21745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 cat >conftest.$ac_ext <<_ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21759 #define $ac_func innocuous_$ac_func
21761 /* System header to define __stub macros and hopefully few prototypes,
21762 which can conflict with char $ac_func (); below.
21763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21764 <limits.h> exists even on freestanding compilers. */
21767 # include <limits.h>
21769 # include <assert.h>
21774 /* Override any GCC internal prototype to avoid an error.
21775 Use char because int might match the return type of a GCC
21776 builtin and then its argument prototype would still apply. */
21781 /* The GNU C library defines this for functions which it implements
21782 to always fail with ENOSYS. Some functions are actually named
21783 something starting with __ and the normal name is an alias. */
21784 #if defined __stub_$ac_func || defined __stub___$ac_func
21791 return $ac_func ();
21796 rm -f conftest.$ac_objext conftest$ac_exeext
21797 if { (ac_try="$ac_link"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_link") 2>conftest.er1
21805 grep -v '^ *+' conftest.er1 >conftest.err
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } &&
21810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21811 { (case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_try") 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest$ac_exeext'
21821 { (case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_try") 2>&5
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; }; then
21830 eval "$as_ac_var=yes"
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 eval "$as_ac_var=no"
21838 rm -f core conftest.err conftest.$ac_objext \
21839 conftest$ac_exeext conftest.$ac_ext
21841 ac_res=`eval echo '${'$as_ac_var'}'`
21842 { echo "$as_me:$LINENO: result: $ac_res" >&5
21843 echo "${ECHO_T}$ac_res" >&6; }
21844 if test `eval echo '${'$as_ac_var'}'` = yes; then
21845 cat >>confdefs.h <<_ACEOF
21846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21853 SHLIBEXT=$libltdl_cv_shlibext
21856 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21859 if test "${prefix}" = "NONE" ; then
21860 prefix="/usr/local"
21862 eval LLVM_PREFIX="${prefix}";
21863 eval LLVM_BINDIR="${prefix}/bin";
21864 eval LLVM_LIBDIR="${prefix}/lib";
21865 eval LLVM_DATADIR="${prefix}/share/llvm";
21866 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21867 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21868 eval LLVM_INCLUDEDIR="${prefix}/include";
21869 eval LLVM_INFODIR="${prefix}/info";
21870 eval LLVM_MANDIR="${prefix}/man";
21871 LLVM_CONFIGTIME=`date`
21883 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21884 LLVM_CONFIGTIME="(timestamp not enabled)"
21888 cat >>confdefs.h <<_ACEOF
21889 #define LLVM_PREFIX "$LLVM_PREFIX"
21893 cat >>confdefs.h <<_ACEOF
21894 #define LLVM_BINDIR "$LLVM_BINDIR"
21898 cat >>confdefs.h <<_ACEOF
21899 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21903 cat >>confdefs.h <<_ACEOF
21904 #define LLVM_DATADIR "$LLVM_DATADIR"
21908 cat >>confdefs.h <<_ACEOF
21909 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21913 cat >>confdefs.h <<_ACEOF
21914 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21918 cat >>confdefs.h <<_ACEOF
21919 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21923 cat >>confdefs.h <<_ACEOF
21924 #define LLVM_INFODIR "$LLVM_INFODIR"
21928 cat >>confdefs.h <<_ACEOF
21929 #define LLVM_MANDIR "$LLVM_MANDIR"
21933 cat >>confdefs.h <<_ACEOF
21934 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21938 cat >>confdefs.h <<_ACEOF
21939 #define LLVM_HOSTTRIPLE "$host"
21943 cat >>confdefs.h <<_ACEOF
21944 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21948 if test "$BINDINGS_TO_BUILD" = auto ; then
21949 BINDINGS_TO_BUILD=""
21950 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21951 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21954 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21960 binding_prereqs_failed=0
21961 for a_binding in $BINDINGS_TO_BUILD ; do
21962 case "$a_binding" in
21964 if test "x$OCAMLC" = x ; then
21965 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21966 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21967 binding_prereqs_failed=1
21969 if test "x$OCAMLDEP" = x ; then
21970 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21971 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21972 binding_prereqs_failed=1
21974 if test "x$OCAMLOPT" = x ; then
21975 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21976 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21978 if test "x$with_ocaml_libdir" != xauto ; then
21979 OCAML_LIBDIR=$with_ocaml_libdir
21982 ocaml_stdlib="`"$OCAMLC" -where`"
21983 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21985 # ocaml stdlib is beneath our prefix; use stdlib
21986 OCAML_LIBDIR=$ocaml_stdlib
21989 # ocaml stdlib is outside our prefix; use libdir/ocaml
21990 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21997 if test "$binding_prereqs_failed" = 1 ; then
21998 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21999 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22000 { (exit 1); exit 1; }; }
22003 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22004 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22005 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22006 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 ac_cpp='$CXXCPP $CPPFLAGS'
22010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22014 oldcxxflags="$CXXFLAGS"
22015 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22016 cat >conftest.$ac_ext <<_ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h. */
22022 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22031 rm -f conftest.$ac_objext
22032 if { (ac_try="$ac_compile"
22033 case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_compile") 2>conftest.er1
22040 grep -v '^ *+' conftest.er1 >conftest.err
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } &&
22045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22046 { (case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_try") 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; } &&
22055 { ac_try='test -s conftest.$ac_objext'
22056 { (case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_try") 2>&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; }; then
22065 llvm_cv_cxx_visibility_inlines_hidden=yes
22067 echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22070 llvm_cv_cxx_visibility_inlines_hidden=no
22073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22074 CXXFLAGS="$oldcxxflags"
22076 ac_cpp='$CPP $CPPFLAGS'
22077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22083 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22084 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22085 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22086 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22089 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22094 if test "$llvm_cv_link_use_r" = "yes" ; then
22101 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22102 RDYNAMIC="-Wl,-export-dynamic"
22109 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22116 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22118 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22120 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22122 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22124 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22127 ac_config_files="$ac_config_files Makefile.config"
22130 ac_config_files="$ac_config_files llvm.spec"
22133 ac_config_files="$ac_config_files docs/doxygen.cfg"
22136 if test "${clang_src_root}" = ""; then
22137 clang_src_root="$srcdir/tools/clang"
22139 if test -f ${clang_src_root}/README.txt; then
22140 configh="include/clang/Config/config.h"
22141 doxy="docs/doxygen.cfg"
22142 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22144 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22148 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22151 test "x$program_prefix" = "xNONE" && program_prefix=""
22155 ac_config_commands="$ac_config_commands setup"
22157 ac_config_commands="$ac_config_commands Makefile"
22160 ac_config_commands="$ac_config_commands Makefile.common"
22163 ac_config_commands="$ac_config_commands examples/Makefile"
22166 ac_config_commands="$ac_config_commands lib/Makefile"
22169 ac_config_commands="$ac_config_commands runtime/Makefile"
22172 ac_config_commands="$ac_config_commands test/Makefile"
22175 ac_config_commands="$ac_config_commands test/Makefile.tests"
22178 ac_config_commands="$ac_config_commands unittests/Makefile"
22181 ac_config_commands="$ac_config_commands tools/Makefile"
22184 ac_config_commands="$ac_config_commands utils/Makefile"
22187 ac_config_commands="$ac_config_commands projects/Makefile"
22190 ac_config_commands="$ac_config_commands bindings/Makefile"
22193 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22197 cat >confcache <<\_ACEOF
22198 # This file is a shell script that caches the results of configure
22199 # tests run on this system so they can be shared between configure
22200 # scripts and configure runs, see configure's option --config-cache.
22201 # It is not useful on other systems. If it contains results you don't
22202 # want to keep, you may remove or edit it.
22204 # config.status only pays attention to the cache file if you give it
22205 # the --recheck option to rerun configure.
22207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22209 # following values.
22213 # The following way of writing the cache mishandles newlines in values,
22214 # but we know of no workaround that is simple, portable, and efficient.
22215 # So, we kill variables containing newlines.
22216 # Ultrix sh set writes to stderr and can't be redirected directly,
22217 # and sets the high bit in the cache file unless we assign to the vars.
22219 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22220 eval ac_val=\$$ac_var
22224 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22225 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22228 _ | IFS | as_nl) ;; #(
22229 *) $as_unset $ac_var ;;
22235 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22236 *${as_nl}ac_space=\ *)
22237 # `set' does not quote correctly, so add quotes (double-quote
22238 # substitution turns \\\\ into \\, and sed turns \\ into \).
22241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22244 # `set' quotes correctly as required by POSIX, so do not add quotes.
22245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22256 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22258 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22259 if test -w "$cache_file"; then
22260 test "x$cache_file" != "x/dev/null" &&
22261 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22262 echo "$as_me: updating cache $cache_file" >&6;}
22263 cat confcache >$cache_file
22265 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22266 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22271 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22272 # Let make expand exec_prefix.
22273 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22275 DEFS=-DHAVE_CONFIG_H
22279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22280 # 1. Remove the extension, and $U if already installed.
22281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22282 ac_i=`echo "$ac_i" | sed "$ac_script"`
22283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22284 # will be set to the directory where LIBOBJS objects are built.
22285 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22286 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22288 LIBOBJS=$ac_libobjs
22290 LTLIBOBJS=$ac_ltlibobjs
22293 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22294 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22295 Usually this means the macro was only invoked conditionally." >&5
22296 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22297 Usually this means the macro was only invoked conditionally." >&2;}
22298 { (exit 1); exit 1; }; }
22300 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22301 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22302 Usually this means the macro was only invoked conditionally." >&5
22303 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22304 Usually this means the macro was only invoked conditionally." >&2;}
22305 { (exit 1); exit 1; }; }
22308 : ${CONFIG_STATUS=./config.status}
22309 ac_clean_files_save=$ac_clean_files
22310 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22311 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22312 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22313 cat >$CONFIG_STATUS <<_ACEOF
22315 # Generated by $as_me.
22316 # Run this file to recreate the current configuration.
22317 # Compiler output produced by configure, useful for debugging
22318 # configure, is in config.log if it exists.
22321 ac_cs_recheck=false
22323 SHELL=\${CONFIG_SHELL-$SHELL}
22326 cat >>$CONFIG_STATUS <<\_ACEOF
22327 ## --------------------- ##
22328 ## M4sh Initialization. ##
22329 ## --------------------- ##
22331 # Be Bourne compatible
22332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22335 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22336 # is contrary to our usage. Disable this feature.
22337 alias -g '${1+"$@"}'='"$@"'
22338 setopt NO_GLOB_SUBST
22340 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22342 BIN_SH=xpg4; export BIN_SH # for Tru64
22343 DUALCASE=1; export DUALCASE # for MKS sh
22347 # Avoid depending upon Character Ranges.
22348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22351 as_cr_digits='0123456789'
22352 as_cr_alnum=$as_cr_Letters$as_cr_digits
22354 # The user is always right.
22355 if test "${PATH_SEPARATOR+set}" != set; then
22356 echo "#! /bin/sh" >conf$$.sh
22357 echo "exit 0" >>conf$$.sh
22359 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22367 # Support unset when possible.
22368 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22376 # We need space, tab and new line, in precisely that order. Quoting is
22377 # there to prevent editors from complaining about space-tab.
22378 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22379 # splitting by setting IFS to empty value.)
22384 # Find who we are. Look in the path if we contain no directory separator.
22386 *[\\/]* ) as_myself=$0 ;;
22387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22388 for as_dir in $PATH
22391 test -z "$as_dir" && as_dir=.
22392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22398 # We did not find ourselves, most probably we were run as `sh COMMAND'
22399 # in which case we are not to be found in the path.
22400 if test "x$as_myself" = x; then
22403 if test ! -f "$as_myself"; then
22404 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22405 { (exit 1); exit 1; }
22408 # Work around bugs in pre-3.0 UWIN ksh.
22409 for as_var in ENV MAIL MAILPATH
22410 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22418 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22419 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22420 LC_TELEPHONE LC_TIME
22422 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22423 eval $as_var=C; export $as_var
22425 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22429 # Required to use basename.
22430 if expr a : '\(a\)' >/dev/null 2>&1 &&
22431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22438 as_basename=basename
22444 # Name of the executable.
22445 as_me=`$as_basename -- "$0" ||
22446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22447 X"$0" : 'X\(//\)$' \| \
22448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22450 sed '/^.*\/\([^/][^/]*\)\/*$/{
22469 as_lineno_1=$LINENO
22470 as_lineno_2=$LINENO
22471 test "x$as_lineno_1" != "x$as_lineno_2" &&
22472 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22474 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22475 # uniformly replaced by the line number. The first 'sed' inserts a
22476 # line-number line after each line using $LINENO; the second 'sed'
22477 # does the real work. The second script uses 'N' to pair each
22478 # line-number line with the line containing $LINENO, and appends
22479 # trailing '-' during substitution so that $LINENO is not a special
22480 # case at line end.
22481 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22482 # scripts with optimization help from Paolo Bonzini. Blame Lee
22483 # E. McMahon (1931-1989) for sed's syntax. :-)
22495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22498 ' >$as_me.lineno &&
22499 chmod +x "$as_me.lineno" ||
22500 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22501 { (exit 1); exit 1; }; }
22503 # Don't try to exec as it changes $[0], causing all sort of problems
22504 # (the dirname of $[0] is not the place where we might find the
22505 # original and so on. Autoconf is especially sensitive to this).
22506 . "./$as_me.lineno"
22507 # Exit status is that of the last command.
22512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22518 ECHO_C= ECHO_N= ECHO_T=
22519 case `echo -n x` in
22521 case `echo 'x\c'` in
22522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22529 if expr a : '\(a\)' >/dev/null 2>&1 &&
22530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22536 rm -f conf$$ conf$$.exe conf$$.file
22537 if test -d conf$$.dir; then
22538 rm -f conf$$.dir/conf$$.file
22544 if ln -s conf$$.file conf$$ 2>/dev/null; then
22546 # ... but there are two gotchas:
22547 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22548 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22549 # In both cases, we have to default to `cp -p'.
22550 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22552 elif ln conf$$.file conf$$ 2>/dev/null; then
22557 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22558 rmdir conf$$.dir 2>/dev/null
22560 if mkdir -p . 2>/dev/null; then
22563 test -d ./-p && rmdir ./-p
22567 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22568 # systems may use methods other than mode bits to determine executability.
22569 cat >conf$$.file <<_ASEOF
22573 chmod +x conf$$.file
22574 if test -x conf$$.file >/dev/null 2>&1; then
22575 as_executable_p="test -x"
22581 # Sed expression to map a string onto a valid CPP name.
22582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22584 # Sed expression to map a string onto a valid variable name.
22585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22590 # Save the log message, to keep $[0] and so on meaningful, and to
22591 # report actual input values of CONFIG_FILES etc. instead of their
22592 # values after options handling.
22594 This file was extended by LLVM $as_me 3.3svn, which was
22595 generated by GNU Autoconf 2.60. Invocation command line was
22597 CONFIG_FILES = $CONFIG_FILES
22598 CONFIG_HEADERS = $CONFIG_HEADERS
22599 CONFIG_LINKS = $CONFIG_LINKS
22600 CONFIG_COMMANDS = $CONFIG_COMMANDS
22603 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22608 cat >>$CONFIG_STATUS <<_ACEOF
22609 # Files that config.status was made for.
22610 config_files="$ac_config_files"
22611 config_headers="$ac_config_headers"
22612 config_commands="$ac_config_commands"
22616 cat >>$CONFIG_STATUS <<\_ACEOF
22618 \`$as_me' instantiates files from templates according to the
22619 current configuration.
22621 Usage: $0 [OPTIONS] [FILE]...
22623 -h, --help print this help, then exit
22624 -V, --version print version number, then exit
22625 -q, --quiet do not print progress messages
22626 -d, --debug don't remove temporary files
22627 --recheck update $as_me by reconfiguring in the same conditions
22628 --file=FILE[:TEMPLATE]
22629 instantiate the configuration file FILE
22630 --header=FILE[:TEMPLATE]
22631 instantiate the configuration header FILE
22633 Configuration files:
22636 Configuration headers:
22639 Configuration commands:
22642 Report bugs to <bug-autoconf@gnu.org>."
22645 cat >>$CONFIG_STATUS <<_ACEOF
22647 LLVM config.status 3.3svn
22648 configured by $0, generated by GNU Autoconf 2.60,
22649 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22651 Copyright (C) 2006 Free Software Foundation, Inc.
22652 This config.status script is free software; the Free Software Foundation
22653 gives unlimited permission to copy, distribute and modify it."
22660 cat >>$CONFIG_STATUS <<\_ACEOF
22661 # If no file are specified by the user, then we need to provide default
22662 # value. By we need to know if files were specified by the user.
22668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22680 # Handling of the options.
22681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22684 echo "$ac_cs_version"; exit ;;
22685 --debug | --debu | --deb | --de | --d | -d )
22687 --file | --fil | --fi | --f )
22689 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22690 ac_need_defaults=false;;
22691 --header | --heade | --head | --hea )
22693 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22694 ac_need_defaults=false;;
22696 # Conflict between --help and --header
22697 { echo "$as_me: error: ambiguous option: $1
22698 Try \`$0 --help' for more information." >&2
22699 { (exit 1); exit 1; }; };;
22700 --help | --hel | -h )
22701 echo "$ac_cs_usage"; exit ;;
22702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22706 # This is an error.
22707 -*) { echo "$as_me: error: unrecognized option: $1
22708 Try \`$0 --help' for more information." >&2
22709 { (exit 1); exit 1; }; } ;;
22711 *) ac_config_targets="$ac_config_targets $1"
22712 ac_need_defaults=false ;;
22718 ac_configure_extra_args=
22720 if $ac_cs_silent; then
22722 ac_configure_extra_args="$ac_configure_extra_args --silent"
22726 cat >>$CONFIG_STATUS <<_ACEOF
22727 if \$ac_cs_recheck; then
22728 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22729 CONFIG_SHELL=$SHELL
22730 export CONFIG_SHELL
22731 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22735 cat >>$CONFIG_STATUS <<\_ACEOF
22739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22740 ## Running $as_me. ##
22746 cat >>$CONFIG_STATUS <<_ACEOF
22750 llvm_src="${srcdir}"
22754 cat >>$CONFIG_STATUS <<\_ACEOF
22756 # Handling of arguments.
22757 for ac_config_target in $ac_config_targets
22759 case $ac_config_target in
22760 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22761 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22762 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22763 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22764 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22765 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22766 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22767 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22768 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22769 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22770 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22771 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22772 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22773 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22774 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22775 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22776 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22777 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22778 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22779 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22780 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22781 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22782 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22783 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22784 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22785 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22786 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22788 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22789 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22790 { (exit 1); exit 1; }; };;
22795 # If the user did not use the arguments to specify the items to instantiate,
22796 # then the envvar interface is used. Set only those that are not.
22797 # We use the long form for the default assignment because of an extremely
22798 # bizarre bug on SunOS 4.1.3.
22799 if $ac_need_defaults; then
22800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22801 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22802 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22805 # Have a temporary directory for convenience. Make it in the build tree
22806 # simply because there is no reason against having it here, and in addition,
22807 # creating and moving files from /tmp can sometimes cause problems.
22808 # Hook for its removal unless debugging.
22809 # Note that there is a small window in which the directory will not be cleaned:
22810 # after its creation but before its name has been assigned to `$tmp'.
22814 trap 'exit_status=$?
22815 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22817 trap '{ (exit 1); exit 1; }' 1 2 13 15
22819 # Create a (secure) tmp directory for tmp files.
22822 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22823 test -n "$tmp" && test -d "$tmp"
22826 tmp=./conf$$-$RANDOM
22827 (umask 077 && mkdir "$tmp")
22830 echo "$me: cannot create a temporary directory in ." >&2
22831 { (exit 1); exit 1; }
22835 # Set up the sed scripts for CONFIG_FILES section.
22838 # No need to generate the scripts if there are no CONFIG_FILES.
22839 # This happens for instance when ./config.status config.h
22840 if test -n "$CONFIG_FILES"; then
22847 for ac_last_try in false false false false false :; do
22848 cat >conf$$subs.sed <<_ACEOF
22849 SHELL!$SHELL$ac_delim
22850 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22851 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22852 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22853 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22854 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22855 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22856 exec_prefix!$exec_prefix$ac_delim
22857 prefix!$prefix$ac_delim
22858 program_transform_name!$program_transform_name$ac_delim
22859 bindir!$bindir$ac_delim
22860 sbindir!$sbindir$ac_delim
22861 libexecdir!$libexecdir$ac_delim
22862 datarootdir!$datarootdir$ac_delim
22863 datadir!$datadir$ac_delim
22864 sysconfdir!$sysconfdir$ac_delim
22865 sharedstatedir!$sharedstatedir$ac_delim
22866 localstatedir!$localstatedir$ac_delim
22867 includedir!$includedir$ac_delim
22868 oldincludedir!$oldincludedir$ac_delim
22869 docdir!$docdir$ac_delim
22870 infodir!$infodir$ac_delim
22871 htmldir!$htmldir$ac_delim
22872 dvidir!$dvidir$ac_delim
22873 pdfdir!$pdfdir$ac_delim
22874 psdir!$psdir$ac_delim
22875 libdir!$libdir$ac_delim
22876 localedir!$localedir$ac_delim
22877 mandir!$mandir$ac_delim
22878 DEFS!$DEFS$ac_delim
22879 ECHO_C!$ECHO_C$ac_delim
22880 ECHO_N!$ECHO_N$ac_delim
22881 ECHO_T!$ECHO_T$ac_delim
22882 LIBS!$LIBS$ac_delim
22883 build_alias!$build_alias$ac_delim
22884 host_alias!$host_alias$ac_delim
22885 target_alias!$target_alias$ac_delim
22886 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22888 CFLAGS!$CFLAGS$ac_delim
22889 LDFLAGS!$LDFLAGS$ac_delim
22890 CPPFLAGS!$CPPFLAGS$ac_delim
22891 ac_ct_CC!$ac_ct_CC$ac_delim
22892 EXEEXT!$EXEEXT$ac_delim
22893 OBJEXT!$OBJEXT$ac_delim
22895 CXXFLAGS!$CXXFLAGS$ac_delim
22896 ac_ct_CXX!$ac_ct_CXX$ac_delim
22898 subdirs!$subdirs$ac_delim
22899 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22900 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22901 build!$build$ac_delim
22902 build_cpu!$build_cpu$ac_delim
22903 build_vendor!$build_vendor$ac_delim
22904 build_os!$build_os$ac_delim
22905 host!$host$ac_delim
22906 host_cpu!$host_cpu$ac_delim
22907 host_vendor!$host_vendor$ac_delim
22908 host_os!$host_os$ac_delim
22909 target!$target$ac_delim
22910 target_cpu!$target_cpu$ac_delim
22911 target_vendor!$target_vendor$ac_delim
22912 target_os!$target_os$ac_delim
22914 HOST_OS!$HOST_OS$ac_delim
22915 TARGET_OS!$TARGET_OS$ac_delim
22916 LINKALL!$LINKALL$ac_delim
22917 NOLINKALL!$NOLINKALL$ac_delim
22918 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22919 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22920 ARCH!$ARCH$ac_delim
22921 HOST_ARCH!$HOST_ARCH$ac_delim
22922 ENDIAN!$ENDIAN$ac_delim
22923 GREP!$GREP$ac_delim
22924 EGREP!$EGREP$ac_delim
22925 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22926 BUILD_CC!$BUILD_CC$ac_delim
22927 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22928 BUILD_CXX!$BUILD_CXX$ac_delim
22929 CVSBUILD!$CVSBUILD$ac_delim
22930 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22931 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22932 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22933 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22934 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22935 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22936 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22937 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22938 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22939 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22940 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22941 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22942 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22943 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22945 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22948 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22950 elif $ac_last_try; then
22951 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22952 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22953 { (exit 1); exit 1; }; }
22955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22959 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22960 if test -n "$ac_eof"; then
22961 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22962 ac_eof=`expr $ac_eof + 1`
22965 cat >>$CONFIG_STATUS <<_ACEOF
22966 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22970 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22971 s/^/s,@/; s/!/@,|#_!!_#|/
22974 s/'"$ac_delim"'$/,g/; t
22976 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22977 ' >>$CONFIG_STATUS <conf$$subs.sed
22978 rm -f conf$$subs.sed
22979 cat >>$CONFIG_STATUS <<_ACEOF
22985 for ac_last_try in false false false false false :; do
22986 cat >conf$$subs.sed <<_ACEOF
22987 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22988 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22989 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22990 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22991 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22992 ENABLE_PIC!$ENABLE_PIC$ac_delim
22993 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22994 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22995 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22996 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22997 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22998 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22999 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23000 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23001 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23002 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23003 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23004 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23005 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23006 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23007 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23009 ifGNUmake!$ifGNUmake$ac_delim
23010 LN_S!$LN_S$ac_delim
23013 DATE!$DATE$ac_delim
23014 FIND!$FIND$ac_delim
23015 MKDIR!$MKDIR$ac_delim
23017 RANLIB!$RANLIB$ac_delim
23022 BINPWD!$BINPWD$ac_delim
23023 GRAPHVIZ!$GRAPHVIZ$ac_delim
23026 NEATO!$NEATO$ac_delim
23027 TWOPI!$TWOPI$ac_delim
23028 CIRCO!$CIRCO$ac_delim
23030 DOTTY!$DOTTY$ac_delim
23031 XDOT_PY!$XDOT_PY$ac_delim
23032 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23033 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23034 INSTALL_DATA!$INSTALL_DATA$ac_delim
23035 BZIP2!$BZIP2$ac_delim
23037 DOXYGEN!$DOXYGEN$ac_delim
23038 GROFF!$GROFF$ac_delim
23039 GZIPBIN!$GZIPBIN$ac_delim
23040 PDFROFF!$PDFROFF$ac_delim
23042 OCAMLC!$OCAMLC$ac_delim
23043 OCAMLOPT!$OCAMLOPT$ac_delim
23044 OCAMLDEP!$OCAMLDEP$ac_delim
23045 OCAMLDOC!$OCAMLDOC$ac_delim
23047 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23048 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23049 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23050 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23051 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23052 LIBADD_DL!$LIBADD_DL$ac_delim
23053 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23054 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23055 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23056 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23057 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23058 PYTHON!$PYTHON$ac_delim
23059 USE_UDIS86!$USE_UDIS86$ac_delim
23060 USE_OPROFILE!$USE_OPROFILE$ac_delim
23061 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23062 XML2CONFIG!$XML2CONFIG$ac_delim
23063 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23064 LIBXML2_INC!$LIBXML2_INC$ac_delim
23065 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23066 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23067 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23068 MMAP_FILE!$MMAP_FILE$ac_delim
23069 SHLIBEXT!$SHLIBEXT$ac_delim
23070 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23071 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23072 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23073 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23074 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23075 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23076 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23077 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23078 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23079 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23080 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23081 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23082 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23083 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23086 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23088 elif $ac_last_try; then
23089 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23090 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23091 { (exit 1); exit 1; }; }
23093 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23097 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23098 if test -n "$ac_eof"; then
23099 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23100 ac_eof=`expr $ac_eof + 1`
23103 cat >>$CONFIG_STATUS <<_ACEOF
23104 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23108 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23109 s/^/s,@/; s/!/@,|#_!!_#|/
23112 s/'"$ac_delim"'$/,g/; t
23114 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23115 ' >>$CONFIG_STATUS <conf$$subs.sed
23116 rm -f conf$$subs.sed
23117 cat >>$CONFIG_STATUS <<_ACEOF
23123 for ac_last_try in false false false false false :; do
23124 cat >conf$$subs.sed <<_ACEOF
23125 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23126 RPATH!$RPATH$ac_delim
23127 RDYNAMIC!$RDYNAMIC$ac_delim
23128 program_prefix!$program_prefix$ac_delim
23129 LIBOBJS!$LIBOBJS$ac_delim
23130 LTLIBOBJS!$LTLIBOBJS$ac_delim
23133 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23135 elif $ac_last_try; then
23136 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23137 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23138 { (exit 1); exit 1; }; }
23140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23144 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23145 if test -n "$ac_eof"; then
23146 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23147 ac_eof=`expr $ac_eof + 1`
23150 cat >>$CONFIG_STATUS <<_ACEOF
23151 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23155 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23156 s/^/s,@/; s/!/@,|#_!!_#|/
23159 s/'"$ac_delim"'$/,g/; t
23161 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23162 ' >>$CONFIG_STATUS <conf$$subs.sed
23163 rm -f conf$$subs.sed
23164 cat >>$CONFIG_STATUS <<_ACEOF
23171 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23172 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23173 # trailing colons and then remove the whole line if VPATH becomes empty
23174 # (actually we leave an empty line to preserve line numbers).
23175 if test "x$srcdir" = x.; then
23176 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23177 s/:*\$(srcdir):*/:/
23178 s/:*\${srcdir}:*/:/
23180 s/^\([^=]*=[ ]*\):*/\1/
23186 cat >>$CONFIG_STATUS <<\_ACEOF
23187 fi # test -n "$CONFIG_FILES"
23190 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23193 :[FHLC]) ac_mode=$ac_tag; continue;;
23195 case $ac_mode$ac_tag in
23197 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23198 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23199 { (exit 1); exit 1; }; };;
23200 :[FH]-) ac_tag=-:-;;
23201 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23218 -) ac_f="$tmp/stdin";;
23219 *) # Look for the file first in the build tree, then in the source tree
23220 # (if the path is not absolute). The absolute path cannot be DOS-style,
23221 # because $ac_f cannot contain `:'.
23225 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23227 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23228 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23229 { (exit 1); exit 1; }; };;
23231 ac_file_inputs="$ac_file_inputs $ac_f"
23234 # Let's still pretend it is `configure' which instantiates (i.e., don't
23235 # use $as_me), people would be surprised to read:
23236 # /* config.h. Generated by config.status. */
23237 configure_input="Generated from "`IFS=:
23238 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23239 if test x"$ac_file" != x-; then
23240 configure_input="$ac_file. $configure_input"
23241 { echo "$as_me:$LINENO: creating $ac_file" >&5
23242 echo "$as_me: creating $ac_file" >&6;}
23246 *:-:* | *:-) cat >"$tmp/stdin";;
23251 ac_dir=`$as_dirname -- "$ac_file" ||
23252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23253 X"$ac_file" : 'X\(//\)[^/]' \| \
23254 X"$ac_file" : 'X\(//\)$' \| \
23255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23261 /^X\(\/\/\)[^/].*/{
23276 -*) as_dir=./$as_dir;;
23278 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23282 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23283 *) as_qdir=$as_dir;;
23285 as_dirs="'$as_qdir' $as_dirs"
23286 as_dir=`$as_dirname -- "$as_dir" ||
23287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23288 X"$as_dir" : 'X\(//\)[^/]' \| \
23289 X"$as_dir" : 'X\(//\)$' \| \
23290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23296 /^X\(\/\/\)[^/].*/{
23309 test -d "$as_dir" && break
23311 test -z "$as_dirs" || eval "mkdir $as_dirs"
23312 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23313 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23314 { (exit 1); exit 1; }; }; }
23318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23321 # A ".." for each directory in $ac_dir_suffix.
23322 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23323 case $ac_top_builddir_sub in
23324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23328 ac_abs_top_builddir=$ac_pwd
23329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23330 # for backward compatibility:
23331 ac_top_builddir=$ac_top_build_prefix
23334 .) # We are building in place.
23336 ac_top_srcdir=$ac_top_builddir_sub
23337 ac_abs_top_srcdir=$ac_pwd ;;
23338 [\\/]* | ?:[\\/]* ) # Absolute name.
23339 ac_srcdir=$srcdir$ac_dir_suffix;
23340 ac_top_srcdir=$srcdir
23341 ac_abs_top_srcdir=$srcdir ;;
23342 *) # Relative name.
23343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23344 ac_top_srcdir=$ac_top_build_prefix$srcdir
23345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23357 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23358 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23362 cat >>$CONFIG_STATUS <<\_ACEOF
23363 # If the template does not know about datarootdir, expand it.
23364 # FIXME: This hack should be removed a few years after 2.60.
23365 ac_datarootdir_hack=; ac_datarootdir_seen=
23367 case `sed -n '/datarootdir/ {
23376 ' $ac_file_inputs` in
23377 *datarootdir*) ac_datarootdir_seen=yes;;
23378 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23379 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23380 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23382 cat >>$CONFIG_STATUS <<_ACEOF
23383 ac_datarootdir_hack='
23384 s&@datadir@&$datadir&g
23385 s&@docdir@&$docdir&g
23386 s&@infodir@&$infodir&g
23387 s&@localedir@&$localedir&g
23388 s&@mandir@&$mandir&g
23389 s&\\\${datarootdir}&$datarootdir&g' ;;
23393 # Neutralize VPATH when `$srcdir' = `.'.
23394 # Shell code in configure.ac might set extrasub.
23395 # FIXME: do we really want to maintain this feature?
23396 cat >>$CONFIG_STATUS <<_ACEOF
23400 cat >>$CONFIG_STATUS <<\_ACEOF
23402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23403 s&@configure_input@&$configure_input&;t t
23404 s&@top_builddir@&$ac_top_builddir_sub&;t t
23405 s&@srcdir@&$ac_srcdir&;t t
23406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23407 s&@top_srcdir@&$ac_top_srcdir&;t t
23408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23409 s&@builddir@&$ac_builddir&;t t
23410 s&@abs_builddir@&$ac_abs_builddir&;t t
23411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23412 s&@INSTALL@&$ac_INSTALL&;t t
23413 $ac_datarootdir_hack
23414 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23416 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23417 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23418 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23419 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23420 which seems to be undefined. Please make sure it is defined." >&5
23421 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23422 which seems to be undefined. Please make sure it is defined." >&2;}
23426 -) cat "$tmp/out"; rm -f "$tmp/out";;
23427 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23436 # Transform confdefs.h into a sed script `conftest.defines', that
23437 # substitutes the proper values into config.h.in to produce config.h.
23438 rm -f conftest.defines conftest.tail
23439 # First, append a space to every undef/define line, to ease matching.
23440 echo 's/$/ /' >conftest.defines
23441 # Then, protect against being on the right side of a sed subst, or in
23442 # an unquoted here document, in config.status. If some macros were
23443 # called several times there might be several #defines for the same
23444 # symbol, which is useless. But do not sort them, since the last
23445 # AC_DEFINE must be honored.
23446 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23447 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23448 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23449 # PARAMS is the parameter list in the macro definition--in most cases, it's
23450 # just an empty string.
23451 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23452 ac_dB='\\)[ (].*,\\1define\\2'
23460 s/^[ ]*#[ ]*define[ ][ ]*//
23465 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23466 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23467 ' >>conftest.defines
23469 # Remove the space that was appended to ease matching.
23470 # Then replace #undef with comments. This is necessary, for
23471 # example, in the case of _POSIX_SOURCE, which is predefined and required
23472 # on some systems where configure will not decide to define it.
23473 # (The regexp can be short, since the line contains either #define or #undef.)
23475 s,^[ #]*u.*,/* & */,' >>conftest.defines
23477 # Break up conftest.defines:
23478 ac_max_sed_lines=50
23480 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23481 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23482 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23484 ac_in='$ac_file_inputs'
23485 ac_out='"$tmp/out1"'
23486 ac_nxt='"$tmp/out2"'
23490 # Write a here document:
23491 cat >>$CONFIG_STATUS <<_ACEOF
23492 # First, check the format of the line:
23493 cat >"\$tmp/defines.sed" <<\\CEOF
23494 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23495 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23499 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23501 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23502 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23503 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23504 grep . conftest.tail >/dev/null || break
23505 rm -f conftest.defines
23506 mv conftest.tail conftest.defines
23508 rm -f conftest.defines conftest.tail
23510 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23511 cat >>$CONFIG_STATUS <<\_ACEOF
23512 if test x"$ac_file" != x-; then
23513 echo "/* $configure_input */" >"$tmp/config.h"
23514 cat "$ac_result" >>"$tmp/config.h"
23515 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23516 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23517 echo "$as_me: $ac_file is unchanged" >&6;}
23520 mv "$tmp/config.h" $ac_file
23523 echo "/* $configure_input */"
23529 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23530 echo "$as_me: executing $ac_file commands" >&6;}
23535 case $ac_file$ac_mode in
23536 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23537 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23538 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23539 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23540 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23541 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23542 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23543 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23544 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23545 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23546 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23547 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23548 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23549 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23550 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23551 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23552 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23553 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23554 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23555 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23556 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23557 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23558 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23559 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23560 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23561 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23567 { (exit 0); exit 0; }
23569 chmod +x $CONFIG_STATUS
23570 ac_clean_files=$ac_clean_files_save
23573 # configure is writing to config.log, and then calls config.status.
23574 # config.status does its own redirection, appending to config.log.
23575 # Unfortunately, on DOS this fails, as config.log is still kept open
23576 # by configure, so config.status won't be able to write to it; its
23577 # output is simply discarded. So we exec the FD to /dev/null,
23578 # effectively closing config.log, so it can be properly (re)opened and
23579 # appended to by config.status. When coming back to configure, we
23580 # need to make the FD available again.
23581 if test "$no_create" != yes; then
23583 ac_config_status_args=
23584 test "$silent" = yes &&
23585 ac_config_status_args="$ac_config_status_args --quiet"
23587 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23589 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23590 # would make configure fail if this is the last instruction.
23591 $ac_cs_success || { (exit 1); exit 1; }
23595 # CONFIG_SUBDIRS section.
23597 if test "$no_recursion" != yes; then
23599 # Remove --cache-file and --srcdir arguments so they do not pile up.
23600 ac_sub_configure_args=
23602 eval "set x $ac_configure_args"
23606 if test -n "$ac_prev"; then
23611 -cache-file | --cache-file | --cache-fil | --cache-fi \
23612 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23613 ac_prev=cache_file ;;
23614 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23615 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23618 --config-cache | -C)
23620 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23622 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23624 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23626 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23630 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23632 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23636 # Always prepend --prefix to ensure using the same prefix
23637 # in subdir configurations.
23638 ac_arg="--prefix=$prefix"
23640 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23642 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23645 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23647 # Do not complain, so a configure script can configure whichever
23648 # parts of a large source tree are present.
23649 test -d "$srcdir/$ac_dir" || continue
23651 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23652 echo "$as_me:$LINENO: $ac_msg" >&5
23656 -*) as_dir=./$as_dir;;
23658 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23662 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23663 *) as_qdir=$as_dir;;
23665 as_dirs="'$as_qdir' $as_dirs"
23666 as_dir=`$as_dirname -- "$as_dir" ||
23667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23668 X"$as_dir" : 'X\(//\)[^/]' \| \
23669 X"$as_dir" : 'X\(//\)$' \| \
23670 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23676 /^X\(\/\/\)[^/].*/{
23689 test -d "$as_dir" && break
23691 test -z "$as_dirs" || eval "mkdir $as_dirs"
23692 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23693 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23694 { (exit 1); exit 1; }; }; }
23698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23700 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23701 # A ".." for each directory in $ac_dir_suffix.
23702 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23703 case $ac_top_builddir_sub in
23704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23708 ac_abs_top_builddir=$ac_pwd
23709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23710 # for backward compatibility:
23711 ac_top_builddir=$ac_top_build_prefix
23714 .) # We are building in place.
23716 ac_top_srcdir=$ac_top_builddir_sub
23717 ac_abs_top_srcdir=$ac_pwd ;;
23718 [\\/]* | ?:[\\/]* ) # Absolute name.
23719 ac_srcdir=$srcdir$ac_dir_suffix;
23720 ac_top_srcdir=$srcdir
23721 ac_abs_top_srcdir=$srcdir ;;
23722 *) # Relative name.
23723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23724 ac_top_srcdir=$ac_top_build_prefix$srcdir
23725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23732 # Check for guested configure; otherwise get Cygnus style configure.
23733 if test -f "$ac_srcdir/configure.gnu"; then
23734 ac_sub_configure=$ac_srcdir/configure.gnu
23735 elif test -f "$ac_srcdir/configure"; then
23736 ac_sub_configure=$ac_srcdir/configure
23737 elif test -f "$ac_srcdir/configure.in"; then
23738 # This should be Cygnus configure.
23739 ac_sub_configure=$ac_aux_dir/configure
23741 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23742 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23746 # The recursion is here.
23747 if test -n "$ac_sub_configure"; then
23748 # Make the cache file name correct relative to the subdirectory.
23749 case $cache_file in
23750 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23751 *) # Relative name.
23752 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23755 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23756 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23757 # The eval makes quoting arguments work.
23758 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23759 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23760 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23761 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23762 { (exit 1); exit 1; }; }