2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
696 ENABLE_EXPENSIVE_CHECKS
715 LLVM_ENUM_ASM_PRINTERS
716 LLVM_ENUM_ASM_PARSERS
717 LLVM_ENUM_DISASSEMBLERS
763 HAVE_LINK_VERSION_SCRIPT
766 CONVENIENCE_LTDL_TRUE
767 CONVENIENCE_LTDL_FALSE
770 NO_MISSING_FIELD_INITIALIZERS
771 COVERED_SWITCH_DEFAULT
772 NO_MAYBE_UNINITIALIZED
800 ENABLE_VISIBILITY_INLINES_HIDDEN
807 ac_precious_vars='build_alias
819 ac_subdirs_all='projects/llvm-gcc
823 projects/llvm-poolalloc
826 projects/llvm-stacker
834 # Initialize some variables set by options.
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
846 program_transform_name=s,x,x,
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 -enable-* | --enable-*)
954 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958 { (exit 1); exit 1; }; }
959 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960 eval enable_$ac_feature=\$ac_optarg ;;
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
975 -help | --help | --hel | --he | -h)
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 htmldir=$ac_optarg ;;
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1005 -libdir | --libdir | --libdi | --libd)
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1096 -psdir | --psdir | --psdi | --psd | --ps)
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 sbindir=$ac_optarg ;;
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 sharedstatedir=$ac_optarg ;;
1122 -site | --site | --sit)
1124 -site=* | --site=* | --sit=*)
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1151 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package| sed 's/-/_/g'`
1157 eval with_$ac_package=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163 { echo "$as_me: error: invalid package name: $ac_package" >&2
1164 { (exit 1); exit 1; }; }
1165 ac_package=`echo $ac_package | sed 's/-/_/g'`
1166 eval with_$ac_package=no ;;
1169 # Obsolete; use --with-x.
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188 { (exit 1); exit 1; }; }
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196 { (exit 1); exit 1; }; }
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 { echo "$as_me: error: missing argument to $ac_option" >&2
1214 { (exit 1); exit 1; }; }
1217 # Be sure to have absolute directory names.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229 { (exit 1); exit 1; }; }
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 { echo "$as_me: error: Working directory cannot be determined" >&2
1260 { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 { echo "$as_me: error: pwd does not report name of working directory" >&2
1263 { (exit 1); exit 1; }; }
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$0" : 'X\(//\)[^/]' \| \
1273 X"$0" : 'X\(//\)$' \| \
1274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303 { (exit 1); exit 1; }; }
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308 { (exit 1); exit 1; }; }
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-polly Use polly if available (default is YES)
1408 --enable-libcpp Use libc++ if available (default is NO)
1409 --enable-cxx11 Use c++11 if available (default is NO)
1410 --enable-split-dwarf Use split-dwarf if available (default is NO)
1411 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1412 --enable-clang-static-analyzer
1413 Enable building of clang Static Analyzer (default is
1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416 --enable-optimized Compile with optimizations enabled (default is NO)
1417 --enable-profiling Compile with profiling enabled (default is NO)
1418 --enable-assertions Compile with assertion checks enabled (default is
1420 --enable-werror Compile with -Werror enabled (default is NO)
1421 --enable-expensive-checks
1422 Compile with expensive debug checks enabled (default
1424 --enable-debug-runtime Build runtime libs with debug symbols (default is
1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1427 optimization is on and YES if it's off)
1428 --enable-keep-symbols Do not strip installed executables)
1429 --enable-jit Enable Just In Time Compiling (default is YES)
1430 --enable-docs Build documents (default is YES)
1431 --enable-doxygen Build doxygen documentation (default is NO)
1432 --enable-threads Use threads if available (default is YES)
1433 --enable-pthreads Use pthreads if available (default is YES)
1434 --enable-zlib Use zlib for compression/decompression if available
1436 --enable-pic Build LLVM with Position Independent Code (default
1438 --enable-shared Build a shared library and link tools against it
1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1441 Win32 DLL (default is NO)
1442 --enable-timestamps Enable embedding timestamp information in build
1444 --enable-backtraces Enable embedding backtraces on crash (default is
1446 --enable-targets Build specific host targets: all or
1447 target1,target2,... Valid targets are: host, x86,
1448 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449 xcore, msp430, nvptx, systemz, r600, and cpp
1451 --enable-experimental-targets
1452 Build experimental host targets: disable or
1453 target1,target2,... (default=disable)
1454 --enable-bindings Build specific language bindings:
1455 all,auto,none,{binding-name} (default=auto)
1456 --enable-libffi Check for the presence of libffi (default is NO)
1457 --enable-ltdl-install install libltdl
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-optimize-option Select the compiler options to use for optimized
1464 --with-extra-options Specify additional options to compile LLVM with
1465 --with-extra-ld-options Specify additional options to link LLVM with
1466 --with-ocaml-libdir Specify install location for ocaml bindings (default
1468 --with-clang-srcdir Directory to the out-of-tree Clang source
1469 --with-clang-resource-dir
1470 Relative directory from the Clang binary for
1472 --with-c-include-dirs Colon separated list of directories clang will
1474 --with-gcc-toolchain Directory where gcc is installed.
1475 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1476 --with-binutils-include Specify path to binutils/include/ containing
1477 plugin-api.h file for gold plugin.
1478 --with-bug-report-url Specify the URL where bug reports should be
1479 submitted (default=http://llvm.org/bugs/)
1480 --with-internal-prefix Installation directory for internal files
1481 --with-python path to python
1482 --with-udis86=<path> Use udis86 external x86 disassembler library
1483 --with-oprofile=<prefix>
1484 Tell OProfile >= 0.9.4 how to symbolize JIT output
1485 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1498 CXXCPP C++ preprocessor
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1503 Report bugs to <http://llvm.org/bugs/>.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1564 LLVM configure 3.4svn
1565 generated by GNU Autoconf 2.60
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1572 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by LLVM $as_me 3.4svn, which was
1581 generated by GNU Autoconf 2.60. Invocation command line was
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_must_keep_next=false
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 -* ) ac_must_keep_next=true ;;
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 echo "$ac_var='\''$ac_val'\''"
1744 if test -n "$ac_subst_files"; then
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1762 if test -s confdefs.h; then
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1853 # Check that the precious variables saved in the cache have kept the same
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858 eval ac_new_set=\$ac_env_${ac_var}_set
1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860 eval ac_new_val=\$ac_env_${ac_var}_value
1861 case $ac_old_set,$ac_new_set in
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1872 if test "x$ac_old_val" != "x$ac_new_val"; then
1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1876 echo "$as_me: former value: $ac_old_val" >&2;}
1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1878 echo "$as_me: current value: $ac_new_val" >&2;}
1879 ac_cache_corrupted=:
1882 # Pass precious variables to config.status.
1883 if test "$ac_new_set" = set; then
1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 *) ac_arg=$ac_var=$ac_new_val ;;
1888 case " $ac_configure_args " in
1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 if $ac_cache_corrupted; then
1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MAJOR 3
1939 cat >>confdefs.h <<\_ACEOF
1940 #define LLVM_VERSION_MINOR 4
1944 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1953 for ac_dir in autoconf "$srcdir"/autoconf; do
1954 if test -f "$ac_dir/install-sh"; then
1956 ac_install_sh="$ac_aux_dir/install-sh -c"
1958 elif test -f "$ac_dir/install.sh"; then
1960 ac_install_sh="$ac_aux_dir/install.sh -c"
1962 elif test -f "$ac_dir/shtool"; then
1964 ac_install_sh="$ac_aux_dir/shtool install -c"
1968 if test -z "$ac_aux_dir"; then
1969 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1970 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1971 { (exit 1); exit 1; }; }
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1984 if test ${srcdir} != "." ; then
1985 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1986 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1987 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1988 { (exit 1); exit 1; }; }
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 if test -n "$ac_tool_prefix"; then
2001 for ac_prog in clang llvm-gcc gcc
2003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$CC"; then
2011 ac_cv_prog_CC="$CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 if test -n "$CC"; then
2032 { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2040 test -n "$CC" && break
2043 if test -z "$CC"; then
2045 for ac_prog in clang llvm-gcc gcc
2047 # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy $ac_prog; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064 ac_cv_prog_ac_ct_CC="$ac_prog"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6; }
2079 { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2084 test -n "$ac_ct_CC" && break
2087 if test "x$ac_ct_CC" = x; then
2090 case $cross_compiling:$ac_tool_warned in
2092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet. If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&5
2095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet. If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2098 ac_tool_warned=yes ;;
2105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO: checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (ac_try="$ac_compiler --version >&5"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120 (eval "$ac_compiler --version >&5") 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (ac_try="$ac_compiler -v >&5"
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler -v >&5") 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (ac_try="$ac_compiler -V >&5"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler -V >&5") 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2145 cat >conftest.$ac_ext <<_ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2165 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169 # List of possible output files, starting from the most likely.
2170 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2171 # only as a last resort. b.out is created by i960 compilers.
2172 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2174 # The IRIX 6 linker writes into existing files which may not be
2175 # executable, retaining their permissions. Remove them first so a
2176 # subsequent execution test works.
2178 for ac_file in $ac_files
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2182 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2187 if { (ac_try="$ac_link_default"
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2193 (eval "$ac_link_default") 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; then
2197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2199 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2200 # so that the user can short-circuit this test for compilers unknown to
2202 for ac_file in $ac_files
2204 test -f "$ac_file" || continue
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2209 # We found the default executable, but exeext='' is most
2213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217 # We set ac_cv_exeext here because the later test for it is not
2218 # safe: cross compilers may not add the suffix if given an `-o'
2219 # argument, so we may need to know it at that point already.
2220 # Even if this section looks crufty: it has the advantage of
2227 test "$ac_cv_exeext" = no && ac_cv_exeext=
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237 { (exit 77); exit 77; }; }
2240 ac_exeext=$ac_cv_exeext
2241 { echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6; }
2244 # Check that the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251 if { ac_try='./$ac_file'
2252 { (case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_try") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2263 if test "$cross_compiling" = maybe; then
2266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check that the compiler produces executables we can run. If not, either
2282 # the compiler is broken, or we cross compile.
2283 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2285 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6; }
2288 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2290 if { (ac_try="$ac_link"
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296 (eval "$ac_link") 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2301 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2302 # work properly (i.e., refer to `conftest.exe'), while it won't with
2304 for ac_file in conftest.exe conftest conftest.*; do
2305 test -f "$ac_file" || continue
2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2321 rm -f conftest$ac_cv_exeext
2322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2325 rm -f conftest.$ac_ext
2326 EXEEXT=$ac_cv_exeext
2328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2330 if test "${ac_cv_objext+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 cat >conftest.$ac_ext <<_ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2348 rm -f conftest.o conftest.obj
2349 if { (ac_try="$ac_compile"
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compile") 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 for ac_file in conftest.o conftest.obj conftest.*; do
2360 test -f "$ac_file" || continue;
2362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381 echo "${ECHO_T}$ac_cv_objext" >&6; }
2382 OBJEXT=$ac_cv_objext
2384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2407 rm -f conftest.$ac_objext
2408 if { (ac_try="$ac_compile"
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_compile") 2>conftest.er1
2416 grep -v '^ *+' conftest.er1 >conftest.err
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2422 { (case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_try") 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_try") 2>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2455 GCC=`test $ac_compiler_gnu = yes && echo yes`
2456 ac_test_CFLAGS=${CFLAGS+set}
2457 ac_save_CFLAGS=$CFLAGS
2458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_cc_g+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 ac_save_c_werror_flag=$ac_c_werror_flag
2464 ac_c_werror_flag=yes
2467 cat >conftest.$ac_ext <<_ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2482 rm -f conftest.$ac_objext
2483 if { (ac_try="$ac_compile"
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_compile") 2>conftest.er1
2491 grep -v '^ *+' conftest.er1 >conftest.err
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2497 { (case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502 (eval "$ac_try") 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compile") 2>conftest.er1
2546 grep -v '^ *+' conftest.er1 >conftest.err
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2552 { (case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_try") 2>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2576 ac_c_werror_flag=$ac_save_c_werror_flag
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_compile") 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2608 { (case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_try") 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_try") 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_c_werror_flag=$ac_save_c_werror_flag
2644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2646 if test "$ac_test_CFLAGS" = set; then
2647 CFLAGS=$ac_save_CFLAGS
2648 elif test $ac_cv_prog_cc_g = yes; then
2649 if test "$GCC" = yes; then
2655 if test "$GCC" = yes; then
2661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_cc_c89+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 ac_cv_prog_cc_c89=no
2668 cat >conftest.$ac_ext <<_ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2692 s = g (p, va_arg (v,int));
2697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2698 function prototypes and stuff, but not '\xHH' hex character constants.
2699 These don't provoke an error unfortunately, instead are silently treated
2700 as 'x'. The following induces an error, until -std is added to get
2701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2702 array size at least. It's necessary to write '\x00'==0 to get something
2703 that's true only with -std. */
2704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2707 inside strings and character constants. */
2709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 CC="$ac_save_CC $ac_arg"
2729 rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2738 grep -v '^ *+' conftest.er1 >conftest.err
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2744 { (case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_try") 2>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_try") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 ac_cv_prog_cc_c89=$ac_arg
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f core conftest.err conftest.$ac_objext
2772 test "x$ac_cv_prog_cc_c89" != "xno" && break
2774 rm -f conftest.$ac_ext
2779 case "x$ac_cv_prog_cc_c89" in
2781 { echo "$as_me:$LINENO: result: none needed" >&5
2782 echo "${ECHO_T}none needed" >&6; } ;;
2784 { echo "$as_me:$LINENO: result: unsupported" >&5
2785 echo "${ECHO_T}unsupported" >&6; } ;;
2787 CC="$CC $ac_cv_prog_cc_c89"
2788 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 ac_cpp='$CXXCPP $CPPFLAGS'
2801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2804 if test -z "$CXX"; then
2805 if test -n "$CCC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in clang++ llvm-g++ g++
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -n "$CXX"; then
2819 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$CXX"; then
2840 { echo "$as_me:$LINENO: result: $CXX" >&5
2841 echo "${ECHO_T}$CXX" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2848 test -n "$CXX" && break
2851 if test -z "$CXX"; then
2853 for ac_prog in clang++ llvm-g++ g++
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 if test -n "$ac_ct_CXX"; then
2863 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_ac_ct_CXX="$ac_prog"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2883 if test -n "$ac_ct_CXX"; then
2884 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2885 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2887 { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2892 test -n "$ac_ct_CXX" && break
2895 if test "x$ac_ct_CXX" = x; then
2898 case $cross_compiling:$ac_tool_warned in
2900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2901 whose name does not start with the host triplet. If you think this
2902 configuration is useful to you, please write to autoconf@gnu.org." >&5
2903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2904 whose name does not start with the host triplet. If you think this
2905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2906 ac_tool_warned=yes ;;
2914 # Provide some information about the compiler.
2915 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2916 ac_compiler=`set X $ac_compile; echo $2`
2917 { (ac_try="$ac_compiler --version >&5"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_compiler --version >&5") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2927 { (ac_try="$ac_compiler -v >&5"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compiler -v >&5") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -V >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler -V >&5") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2948 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 cat >conftest.$ac_ext <<_ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2986 { (case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_try") 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3017 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3019 GXX=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3022 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3023 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3028 ac_cxx_werror_flag=yes
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compile") 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_prog_cxx_g=yes
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3116 { (case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_try") 2>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3172 { (case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_try") 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try='test -s conftest.$ac_objext'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_prog_cxx_g=yes
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211 CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213 if test "$GXX" = yes; then
3219 if test "$GXX" = yes; then
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3242 if test -z "$CPP"; then
3243 if test "${ac_cv_prog_CPP+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 # Double quotes because CPP needs to be expanded
3247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250 for ac_c_preproc_warn_flag in '' yes
3252 # Use a header file that comes with gcc, so configuring glibc
3253 # with a fresh cross-compiler works.
3254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255 # <limits.h> exists even on freestanding compilers.
3256 # On the NeXT, cc -E runs the code through the compiler's parser,
3257 # not just through cpp. "Syntax error" is here to catch this case.
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3265 # include <limits.h>
3267 # include <assert.h>
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293 if test -z "$ac_cpp_err"; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Broken: fails on valid input.
3303 rm -f conftest.err conftest.$ac_ext
3305 # OK, works on sane cases. Now check whether nonexistent headers
3306 # can be detected and how.
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include <ac_nonexistent.h>
3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3323 grep -v '^ *+' conftest.er1 >conftest.err
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } >/dev/null; then
3328 if test -s conftest.err; then
3329 ac_cpp_err=$ac_c_preproc_warn_flag
3330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3337 if test -z "$ac_cpp_err"; then
3338 # Broken: success on invalid input.
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 # Passes both tests.
3349 rm -f conftest.err conftest.$ac_ext
3352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3353 rm -f conftest.err conftest.$ac_ext
3354 if $ac_preproc_ok; then
3366 { echo "$as_me:$LINENO: result: $CPP" >&5
3367 echo "${ECHO_T}$CPP" >&6; }
3369 for ac_c_preproc_warn_flag in '' yes
3371 # Use a header file that comes with gcc, so configuring glibc
3372 # with a fresh cross-compiler works.
3373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374 # <limits.h> exists even on freestanding compilers.
3375 # On the NeXT, cc -E runs the code through the compiler's parser,
3376 # not just through cpp. "Syntax error" is here to catch this case.
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3384 # include <limits.h>
3386 # include <assert.h>
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412 if test -z "$ac_cpp_err"; then
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Broken: fails on valid input.
3422 rm -f conftest.err conftest.$ac_ext
3424 # OK, works on sane cases. Now check whether nonexistent headers
3425 # can be detected and how.
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <ac_nonexistent.h>
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_c_preproc_warn_flag
3449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456 if test -z "$ac_cpp_err"; then
3457 # Broken: success on invalid input.
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 # Passes both tests.
3468 rm -f conftest.err conftest.$ac_ext
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then
3476 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&5
3478 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&2;}
3480 { (exit 1); exit 1; }; }
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test "$CXX" = "clang++" ; then
3491 { echo "$as_me:$LINENO: checking whether clang works" >&5
3492 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3494 ac_cpp='$CXXCPP $CPPFLAGS'
3495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3507 #if __has_include (<cxxabi.h>)
3510 #if __has_include (<unwind.h>)
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_compile") 2>conftest.er1
3531 grep -v '^ *+' conftest.er1 >conftest.err
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3537 { (case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_try") 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3557 { echo "$as_me:$LINENO: result: yes" >&5
3558 echo "${ECHO_T}yes" >&6; }
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3565 { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3567 { { 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
3568 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;}
3569 { (exit 1); exit 1; }; }
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 if test -d ${srcdir}/projects/llvm-gcc ; then
3585 subdirs="$subdirs projects/llvm-gcc"
3589 if test -d ${srcdir}/projects/test-suite ; then
3590 subdirs="$subdirs projects/test-suite"
3594 if test -d ${srcdir}/projects/llvm-test ; then
3595 subdirs="$subdirs projects/llvm-test"
3599 if test -d ${srcdir}/projects/poolalloc ; then
3600 subdirs="$subdirs projects/poolalloc"
3604 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3605 subdirs="$subdirs projects/llvm-poolalloc"
3609 for i in `ls ${srcdir}/projects`
3611 if test -d ${srcdir}/projects/${i} ; then
3613 sample) subdirs="$subdirs projects/sample"
3615 privbracket) subdirs="$subdirs projects/privbracket"
3617 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3619 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3621 llvm-java) subdirs="$subdirs projects/llvm-java"
3623 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3625 safecode) subdirs="$subdirs projects/safecode"
3627 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3636 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3637 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3643 # Check whether --enable-polly was given.
3644 if test "${enable_polly+set}" = set; then
3645 enableval=$enable_polly;
3650 case "$enableval" in
3655 default) ENABLE_POLLY=1
3657 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3658 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3659 { (exit 1); exit 1; }; } ;;
3663 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3666 subdirs="$subdirs tools/polly"
3671 # Make sure we can run config.sub.
3672 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3673 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3674 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3675 { (exit 1); exit 1; }; }
3677 { echo "$as_me:$LINENO: checking build system type" >&5
3678 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3679 if test "${ac_cv_build+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 ac_build_alias=$build_alias
3683 test "x$ac_build_alias" = x &&
3684 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3685 test "x$ac_build_alias" = x &&
3686 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3687 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3688 { (exit 1); exit 1; }; }
3689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3690 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3691 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3692 { (exit 1); exit 1; }; }
3695 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3696 echo "${ECHO_T}$ac_cv_build" >&6; }
3697 case $ac_cv_build in
3699 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3700 echo "$as_me: error: invalid value of canonical build" >&2;}
3701 { (exit 1); exit 1; }; };;
3704 ac_save_IFS=$IFS; IFS='-'
3710 # Remember, the first character of IFS is used to create $*,
3711 # except with old shells:
3714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3717 { echo "$as_me:$LINENO: checking host system type" >&5
3718 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_host+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 if test "x$host_alias" = x; then
3723 ac_cv_host=$ac_cv_build
3725 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3726 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3727 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3728 { (exit 1); exit 1; }; }
3732 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3733 echo "${ECHO_T}$ac_cv_host" >&6; }
3736 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3737 echo "$as_me: error: invalid value of canonical host" >&2;}
3738 { (exit 1); exit 1; }; };;
3741 ac_save_IFS=$IFS; IFS='-'
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754 { echo "$as_me:$LINENO: checking target system type" >&5
3755 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3756 if test "${ac_cv_target+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 if test "x$target_alias" = x; then
3760 ac_cv_target=$ac_cv_host
3762 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3763 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3764 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3765 { (exit 1); exit 1; }; }
3769 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3770 echo "${ECHO_T}$ac_cv_target" >&6; }
3771 case $ac_cv_target in
3773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3774 echo "$as_me: error: invalid value of canonical target" >&2;}
3775 { (exit 1); exit 1; }; };;
3777 target=$ac_cv_target
3778 ac_save_IFS=$IFS; IFS='-'
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3791 # The aliases save the names the user supplied, while $host etc.
3792 # will get canonicalized.
3793 test -n "$target_alias" &&
3794 test "$program_prefix$program_suffix$program_transform_name" = \
3796 program_prefix=${target_alias}-
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3799 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3800 if test "${llvm_cv_os_type+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
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="AIX"
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="IRIX"
3813 llvm_cv_platform_type="Unix" ;;
3815 llvm_cv_link_all_option="-Wl,--whole-archive"
3816 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817 llvm_cv_os_type="Cygwin"
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="Darwin"
3823 llvm_cv_platform_type="Unix" ;;
3825 llvm_cv_link_all_option="-Wl,-all_load"
3826 llvm_cv_no_link_all_option="-Wl,-noall_load"
3827 llvm_cv_os_type="Minix"
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="FreeBSD"
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="GNU/kFreeBSD"
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="OpenBSD"
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="NetBSD"
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="DragonFly"
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="HP-UX"
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="Interix"
3863 llvm_cv_platform_type="Unix" ;;
3865 llvm_cv_link_all_option="-Wl,--whole-archive"
3866 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867 llvm_cv_os_type="Linux"
3868 llvm_cv_platform_type="Unix" ;;
3870 llvm_cv_link_all_option="-Wl,--whole-archive"
3871 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3872 llvm_cv_os_type="GNU"
3873 llvm_cv_platform_type="Unix" ;;
3875 llvm_cv_link_all_option="-Wl,-z,allextract"
3876 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3877 llvm_cv_os_type="SunOS"
3878 llvm_cv_platform_type="Unix" ;;
3880 llvm_cv_link_all_option="-Wl,-z,allextract"
3881 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3882 llvm_cv_os_type="AuroraUX"
3883 llvm_cv_platform_type="Unix" ;;
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="Win32"
3888 llvm_cv_platform_type="Win32" ;;
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="MingW"
3893 llvm_cv_platform_type="Win32" ;;
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="Haiku"
3898 llvm_cv_platform_type="Unix" ;;
3900 llvm_cv_link_all_option="-Wl,--whole-archive"
3901 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3902 llvm_cv_os_type="Freestanding"
3903 llvm_cv_platform_type="Unix" ;;
3905 llvm_cv_link_all_option="-Wl,--whole-archive"
3906 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3907 llvm_cv_os_type="Freestanding"
3908 llvm_cv_platform_type="Unix" ;;
3910 llvm_cv_link_all_option=""
3911 llvm_cv_no_link_all_option=""
3912 llvm_cv_os_type="Unknown"
3913 llvm_cv_platform_type="Unknown" ;;
3916 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3917 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3920 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3921 if test "${llvm_cv_target_os_type+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 llvm_cv_target_os_type="AIX" ;;
3928 llvm_cv_target_os_type="IRIX" ;;
3930 llvm_cv_target_os_type="Cygwin" ;;
3932 llvm_cv_target_os_type="Darwin" ;;
3934 llvm_cv_target_os_type="Minix" ;;
3936 llvm_cv_target_os_type="FreeBSD" ;;
3938 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3940 llvm_cv_target_os_type="OpenBSD" ;;
3942 llvm_cv_target_os_type="NetBSD" ;;
3944 llvm_cv_target_os_type="DragonFly" ;;
3946 llvm_cv_target_os_type="HP-UX" ;;
3948 llvm_cv_target_os_type="Interix" ;;
3950 llvm_cv_target_os_type="Linux" ;;
3952 llvm_cv_target_os_type="GNU" ;;
3954 llvm_cv_target_os_type="SunOS" ;;
3956 llvm_cv_target_os_type="AuroraUX" ;;
3958 llvm_cv_target_os_type="Win32" ;;
3960 llvm_cv_target_os_type="MingW" ;;
3962 llvm_cv_target_os_type="Haiku" ;;
3964 llvm_cv_target_os_type="RTEMS" ;;
3966 llvm_cv_target_os_type="NativeClient" ;;
3968 llvm_cv_target_os_type="Freestanding" ;;
3970 llvm_cv_target_os_type="Unknown" ;;
3973 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3974 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3976 if test "$llvm_cv_os_type" = "Unknown" ; then
3977 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3978 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3979 { (exit 1); exit 1; }; }
3984 HOST_OS=$llvm_cv_os_type
3986 TARGET_OS=$llvm_cv_target_os_type
3989 LINKALL=$llvm_cv_link_all_option
3991 NOLINKALL=$llvm_cv_no_link_all_option
3994 case $llvm_cv_platform_type in
3997 cat >>confdefs.h <<\_ACEOF
3998 #define LLVM_ON_UNIX 1
4008 cat >>confdefs.h <<\_ACEOF
4009 #define LLVM_ON_WIN32 1
4019 { echo "$as_me:$LINENO: checking target architecture" >&5
4020 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4021 if test "${llvm_cv_target_arch+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 i?86-*) llvm_cv_target_arch="x86" ;;
4026 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4027 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4028 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4029 arm*-*) llvm_cv_target_arch="ARM" ;;
4030 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4031 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4032 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4033 xcore-*) llvm_cv_target_arch="XCore" ;;
4034 msp430-*) llvm_cv_target_arch="MSP430" ;;
4035 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4036 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4037 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4038 *) llvm_cv_target_arch="Unknown" ;;
4041 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4042 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4044 if test "$llvm_cv_target_arch" = "Unknown" ; then
4045 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4046 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4049 case "$llvm_cv_target_arch" in
4050 x86) LLVM_NATIVE_ARCH="X86" ;;
4051 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4052 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4055 ARCH=$llvm_cv_target_arch
4059 i?86-*) host_arch="x86" ;;
4060 amd64-* | x86_64-*) host_arch="x86_64" ;;
4061 sparc*-*) host_arch="Sparc" ;;
4062 powerpc*-*) host_arch="PowerPC" ;;
4063 arm*-*) host_arch="ARM" ;;
4064 aarch64*-*) host_arch="AArch64" ;;
4065 mips-* | mips64-*) host_arch="Mips" ;;
4066 mipsel-* | mips64el-*) host_arch="Mips" ;;
4067 xcore-*) host_arch="XCore" ;;
4068 msp430-*) host_arch="MSP430" ;;
4069 hexagon-*) host_arch="Hexagon" ;;
4070 s390x-*) host_arch="SystemZ" ;;
4071 *) host_arch="Unknown" ;;
4074 if test "$host_arch" = "Unknown" ; then
4075 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4076 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4079 HOST_ARCH=$host_arch
4084 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4085 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4086 if test "${ac_cv_path_GREP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 # Extract the first word of "grep ggrep" to use in msg output
4090 if test -z "$GREP"; then
4091 set dummy grep ggrep; ac_prog_name=$2
4092 if test "${ac_cv_path_GREP+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 ac_path_GREP_found=false
4096 # Loop through the user's path and test for each of PROGNAME-LIST
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101 test -z "$as_dir" && as_dir=.
4102 for ac_prog in grep ggrep; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4105 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4106 # Check for GNU ac_path_GREP and select it if it is found.
4107 # Check for GNU $ac_path_GREP
4108 case `"$ac_path_GREP" --version 2>&1` in
4110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4113 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4116 cat "conftest.in" "conftest.in" >"conftest.tmp"
4117 mv "conftest.tmp" "conftest.in"
4118 cp "conftest.in" "conftest.nl"
4119 echo 'GREP' >> "conftest.nl"
4120 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122 ac_count=`expr $ac_count + 1`
4123 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4124 # Best one so far, save it but keep looking for a better one
4125 ac_cv_path_GREP="$ac_path_GREP"
4126 ac_path_GREP_max=$ac_count
4128 # 10*(2^10) chars as input seems more than enough
4129 test $ac_count -gt 10 && break
4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 $ac_path_GREP_found && break 3
4145 GREP="$ac_cv_path_GREP"
4146 if test -z "$GREP"; then
4147 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4148 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4149 { (exit 1); exit 1; }; }
4153 ac_cv_path_GREP=$GREP
4158 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4159 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4160 GREP="$ac_cv_path_GREP"
4163 { echo "$as_me:$LINENO: checking for egrep" >&5
4164 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4165 if test "${ac_cv_path_EGREP+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4169 then ac_cv_path_EGREP="$GREP -E"
4171 # Extract the first word of "egrep" to use in msg output
4172 if test -z "$EGREP"; then
4173 set dummy egrep; ac_prog_name=$2
4174 if test "${ac_cv_path_EGREP+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 ac_path_EGREP_found=false
4178 # Loop through the user's path and test for each of PROGNAME-LIST
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183 test -z "$as_dir" && as_dir=.
4184 for ac_prog in egrep; do
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4187 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4188 # Check for GNU ac_path_EGREP and select it if it is found.
4189 # Check for GNU $ac_path_EGREP
4190 case `"$ac_path_EGREP" --version 2>&1` in
4192 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4195 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4198 cat "conftest.in" "conftest.in" >"conftest.tmp"
4199 mv "conftest.tmp" "conftest.in"
4200 cp "conftest.in" "conftest.nl"
4201 echo 'EGREP' >> "conftest.nl"
4202 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204 ac_count=`expr $ac_count + 1`
4205 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4206 # Best one so far, save it but keep looking for a better one
4207 ac_cv_path_EGREP="$ac_path_EGREP"
4208 ac_path_EGREP_max=$ac_count
4210 # 10*(2^10) chars as input seems more than enough
4211 test $ac_count -gt 10 && break
4213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4217 $ac_path_EGREP_found && break 3
4227 EGREP="$ac_cv_path_EGREP"
4228 if test -z "$EGREP"; then
4229 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4230 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4231 { (exit 1); exit 1; }; }
4235 ac_cv_path_EGREP=$EGREP
4241 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4242 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4243 EGREP="$ac_cv_path_EGREP"
4246 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4248 if test "${ac_cv_header_stdc+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4270 rm -f conftest.$ac_objext
4271 if { (ac_try="$ac_compile"
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_compile") 2>conftest.er1
4279 grep -v '^ *+' conftest.er1 >conftest.err
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } &&
4284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4285 { (case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_try") 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_header_stdc=yes
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 ac_cv_header_stdc=no
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 if test $ac_cv_header_stdc = yes; then
4315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "memchr" >/dev/null 2>&1; then
4329 ac_cv_header_stdc=no
4335 if test $ac_cv_header_stdc = yes; then
4336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337 cat >conftest.$ac_ext <<_ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "free" >/dev/null 2>&1; then
4350 ac_cv_header_stdc=no
4356 if test $ac_cv_header_stdc = yes; then
4357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358 if test "$cross_compiling" = yes; then
4361 cat >conftest.$ac_ext <<_ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4369 #if ((' ' & 0x0FF) == 0x020)
4370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4373 # define ISLOWER(c) \
4374 (('a' <= (c) && (c) <= 'i') \
4375 || ('j' <= (c) && (c) <= 'r') \
4376 || ('s' <= (c) && (c) <= 'z'))
4377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4385 for (i = 0; i < 256; i++)
4386 if (XOR (islower (i), ISLOWER (i))
4387 || toupper (i) != TOUPPER (i))
4392 rm -f conftest$ac_exeext
4393 if { (ac_try="$ac_link"
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_link") 2>&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4403 { (case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_try") 2>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4414 echo "$as_me: program exited with status $ac_status" >&5
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4419 ac_cv_header_stdc=no
4421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4427 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4428 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4429 if test $ac_cv_header_stdc = yes; then
4431 cat >>confdefs.h <<\_ACEOF
4432 #define STDC_HEADERS 1
4437 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4447 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4448 inttypes.h stdint.h unistd.h
4450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 $ac_includes_default
4464 #include <$ac_header>
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_compile") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1 >conftest.err
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } &&
4480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4481 { (case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_try") 2>&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; } &&
4490 { ac_try='test -s conftest.$ac_objext'
4491 { (case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_try") 2>&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 eval "$as_ac_Header=yes"
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4505 eval "$as_ac_Header=no"
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 ac_res=`eval echo '${'$as_ac_Header'}'`
4511 { echo "$as_me:$LINENO: result: $ac_res" >&5
4512 echo "${ECHO_T}$ac_res" >&6; }
4513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4514 cat >>confdefs.h <<_ACEOF
4515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4523 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4524 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4525 if test "${ac_cv_c_bigendian+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 # See if sys/param.h defines the BYTE_ORDER macro.
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <sys/types.h>
4536 #include <sys/param.h>
4541 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_compile") 2>conftest.er1
4558 grep -v '^ *+' conftest.er1 >conftest.err
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_try") 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_try") 2>&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 # It does; now see whether it defined to BIG_ENDIAN or not.
4584 cat >conftest.$ac_ext <<_ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 #include <sys/types.h>
4591 #include <sys/param.h>
4596 #if BYTE_ORDER != BIG_ENDIAN
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compile") 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4619 { (case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_try") 2>&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634 (eval "$ac_try") 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_c_bigendian=yes
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 ac_cv_c_bigendian=no
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 # It does not; compile a test program.
4652 if test "$cross_compiling" = yes; then
4653 # try to guess the endianness by grepping values into an object file
4654 ac_cv_c_bigendian=unknown
4655 cat >conftest.$ac_ext <<_ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4662 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4663 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4664 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4665 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4666 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4670 _ascii (); _ebcdic ();
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4684 grep -v '^ *+' conftest.er1 >conftest.err
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4690 { (case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_try") 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705 (eval "$ac_try") 2>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4710 ac_cv_c_bigendian=yes
4712 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4713 if test "$ac_cv_c_bigendian" = unknown; then
4714 ac_cv_c_bigendian=no
4716 # finding both strings is unlikely to happen, but who knows?
4717 ac_cv_c_bigendian=unknown
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 cat >conftest.$ac_ext <<_ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 $ac_includes_default
4740 /* Are we little or big endian? From Harbison&Steele. */
4744 char c[sizeof (long int)];
4747 return u.c[sizeof (long int) - 1] == 1;
4753 rm -f conftest$ac_exeext
4754 if { (ac_try="$ac_link"
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_link") 2>&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764 { (case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_try") 2>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 ac_cv_c_bigendian=no
4775 echo "$as_me: program exited with status $ac_status" >&5
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4780 ac_cv_c_bigendian=yes
4782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4791 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4792 case $ac_cv_c_bigendian in
4800 { { echo "$as_me:$LINENO: error: unknown endianness
4801 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4802 echo "$as_me: error: unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4804 { (exit 1); exit 1; }; } ;;
4808 if test "$cross_compiling" = yes; then
4809 LLVM_CROSS_COMPILING=1
4812 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4813 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4814 if test "${ac_cv_build_exeext+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4818 ac_cv_build_exeext=.exe
4820 ac_build_prefix=${build_alias}-
4822 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4823 set dummy ${ac_build_prefix}gcc; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 if test -n "$BUILD_CC"; then
4830 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 BUILD_CC=$ac_cv_prog_BUILD_CC
4850 if test -n "$BUILD_CC"; then
4851 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4852 echo "${ECHO_T}$BUILD_CC" >&6; }
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4859 if test -z "$BUILD_CC"; then
4860 # Extract the first word of "gcc", so it can be a program name with args.
4861 set dummy gcc; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test -n "$BUILD_CC"; then
4868 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_BUILD_CC="gcc"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 BUILD_CC=$ac_cv_prog_BUILD_CC
4888 if test -n "$BUILD_CC"; then
4889 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4890 echo "${ECHO_T}$BUILD_CC" >&6; }
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4897 if test -z "$BUILD_CC"; then
4898 # Extract the first word of "cc", so it can be a program name with args.
4899 set dummy cc; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 if test -n "$BUILD_CC"; then
4906 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4917 ac_prog_rejected=yes
4920 ac_cv_prog_BUILD_CC="cc"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 if test $ac_prog_rejected = yes; then
4929 # We found a bogon in the path, so make sure we never use it.
4930 set dummy $ac_cv_prog_BUILD_CC
4932 if test $# != 0; then
4933 # We chose a different compiler from the bogus one.
4934 # However, it has the same basename, so the bogon will be chosen
4935 # first if we set BUILD_CC to just the basename; use the full file name.
4937 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4942 BUILD_CC=$ac_cv_prog_BUILD_CC
4943 if test -n "$BUILD_CC"; then
4944 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4945 echo "${ECHO_T}$BUILD_CC" >&6; }
4947 { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4954 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4955 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4956 { (exit 1); exit 1; }; }
4957 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4959 echo 'int main () { return 0; }' > conftest.$ac_ext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4962 (eval $ac_build_link) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; then
4966 for file in conftest.*; do
4968 *.c | *.o | *.obj | *.dSYM) ;;
4969 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4973 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4974 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4975 { (exit 1); exit 1; }; }
4978 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4983 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4984 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4985 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4986 ac_build_exeext=$BUILD_EXEEXT
4988 ac_build_prefix=${build_alias}-
4989 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4990 set dummy ${ac_build_prefix}g++; ac_word=$2
4991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4993 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 if test -n "$BUILD_CXX"; then
4997 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5017 if test -n "$BUILD_CXX"; then
5018 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5019 echo "${ECHO_T}$BUILD_CXX" >&6; }
5021 { echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6; }
5026 if test -z "$BUILD_CXX"; then
5027 # Extract the first word of "g++", so it can be a program name with args.
5028 set dummy g++; ac_word=$2
5029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5031 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 if test -n "$BUILD_CXX"; then
5035 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5044 ac_cv_prog_BUILD_CXX="g++"
5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5055 if test -n "$BUILD_CXX"; then
5056 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5057 echo "${ECHO_T}$BUILD_CXX" >&6; }
5059 { echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6; }
5064 if test -z "$BUILD_CXX"; then
5065 # Extract the first word of "c++", so it can be a program name with args.
5066 set dummy c++; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 if test -n "$BUILD_CXX"; then
5073 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5084 ac_prog_rejected=yes
5087 ac_cv_prog_BUILD_CXX="c++"
5088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 if test $ac_prog_rejected = yes; then
5096 # We found a bogon in the path, so make sure we never use it.
5097 set dummy $ac_cv_prog_BUILD_CXX
5099 if test $# != 0; then
5100 # We chose a different compiler from the bogus one.
5101 # However, it has the same basename, so the bogon will be chosen
5102 # first if we set BUILD_CXX to just the basename; use the full file name.
5104 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5109 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5110 if test -n "$BUILD_CXX"; then
5111 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5112 echo "${ECHO_T}$BUILD_CXX" >&6; }
5114 { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5122 LLVM_CROSS_COMPILING=0
5126 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5137 # Check whether --enable-libcpp was given.
5138 if test "${enable_libcpp+set}" = set; then
5139 enableval=$enable_libcpp;
5144 case "$enableval" in
5145 yes) ENABLE_LIBCPP=1
5149 default) ENABLE_LIBCPP=0
5151 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5156 # Check whether --enable-cxx11 was given.
5157 if test "${enable_cxx11+set}" = set; then
5158 enableval=$enable_cxx11;
5163 case "$enableval" in
5168 default) ENABLE_CXX11=0
5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5175 # Check whether --enable-split-dwarf was given.
5176 if test "${enable_split_dwarf+set}" = set; then
5177 enableval=$enable_split_dwarf;
5182 case "$enableval" in
5183 yes) ENABLE_SPLIT_DWARF=1
5185 no) ENABLE_SPLIT_DWARF=0
5187 default) ENABLE_SPLIT_DWARF=0
5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5195 # Check whether --enable-clang-arcmt was given.
5196 if test "${enable_clang_arcmt+set}" = set; then
5197 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5202 case "$enableval" in
5203 yes) ENABLE_CLANG_ARCMT=1
5205 no) ENABLE_CLANG_ARCMT=0
5207 default) ENABLE_CLANG_ARCMT=1
5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5210 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5214 clang_static_analyzer="yes"
5215 # Check whether --enable-clang-static-analyzer was given.
5216 if test "${enable_clang_static_analyzer+set}" = set; then
5217 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5222 case "$enableval" in
5223 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5225 no) ENABLE_CLANG_STATIC_ANALYZER=0
5227 default) ENABLE_CLANG_STATIC_ANALYZER=1
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 # Check whether --enable-clang-rewriter was given.
5235 if test "${enable_clang_rewriter+set}" = set; then
5236 enableval=$enable_clang_rewriter;
5241 case "$enableval" in
5242 yes) ENABLE_CLANG_REWRITER=1
5245 if test ${clang_arcmt} != "no" ; then
5246 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5247 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5248 { (exit 1); exit 1; }; }
5250 if test ${clang_static_analyzer} != "no" ; then
5251 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5252 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5253 { (exit 1); exit 1; }; }
5255 ENABLE_CLANG_REWRITER=0
5258 default) ENABLE_CLANG_REWRITER=1
5260 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5261 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5262 { (exit 1); exit 1; }; } ;;
5265 # Check whether --enable-optimized was given.
5266 if test "${enable_optimized+set}" = set; then
5267 enableval=$enable_optimized;
5272 if test ${enableval} = "no" ; then
5276 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5280 # Check whether --enable-profiling was given.
5281 if test "${enable_profiling+set}" = set; then
5282 enableval=$enable_profiling;
5287 if test ${enableval} = "no" ; then
5291 ENABLE_PROFILING=ENABLE_PROFILING=1
5295 # Check whether --enable-assertions was given.
5296 if test "${enable_assertions+set}" = set; then
5297 enableval=$enable_assertions;
5302 if test ${enableval} = "yes" ; then
5306 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5310 # Check whether --enable-werror was given.
5311 if test "${enable_werror+set}" = set; then
5312 enableval=$enable_werror;
5317 case "$enableval" in
5318 yes) ENABLE_WERROR=1
5322 default) ENABLE_WERROR=0
5324 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5325 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5326 { (exit 1); exit 1; }; } ;;
5329 # Check whether --enable-expensive-checks was given.
5330 if test "${enable_expensive_checks+set}" = set; then
5331 enableval=$enable_expensive_checks;
5336 if test ${enableval} = "yes" ; then
5337 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5339 EXPENSIVE_CHECKS=yes
5342 ENABLE_EXPENSIVE_CHECKS=
5348 # Check whether --enable-debug-runtime was given.
5349 if test "${enable_debug_runtime+set}" = set; then
5350 enableval=$enable_debug_runtime;
5355 if test ${enableval} = "no" ; then
5359 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5363 # Check whether --enable-debug-symbols was given.
5364 if test "${enable_debug_symbols+set}" = set; then
5365 enableval=$enable_debug_symbols;
5370 if test ${enableval} = "no" ; then
5374 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5378 # Check whether --enable-keep-symbols was given.
5379 if test "${enable_keep_symbols+set}" = set; then
5380 enableval=$enable_keep_symbols;
5385 if test ${enableval} = "no" ; then
5389 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5393 # Check whether --enable-jit was given.
5394 if test "${enable_jit+set}" = set; then
5395 enableval=$enable_jit;
5400 if test ${enableval} = "no"
5405 case "$llvm_cv_target_arch" in
5406 x86) TARGET_HAS_JIT=1
5408 Sparc) TARGET_HAS_JIT=0
5410 PowerPC) TARGET_HAS_JIT=1
5412 x86_64) TARGET_HAS_JIT=1
5414 ARM) TARGET_HAS_JIT=1
5416 AArch64) TARGET_HAS_JIT=0
5418 Mips) TARGET_HAS_JIT=1
5420 XCore) TARGET_HAS_JIT=0
5422 MSP430) TARGET_HAS_JIT=0
5424 Hexagon) TARGET_HAS_JIT=0
5426 NVPTX) TARGET_HAS_JIT=0
5428 SystemZ) TARGET_HAS_JIT=1
5435 # Check whether --enable-docs was given.
5436 if test "${enable_docs+set}" = set; then
5437 enableval=$enable_docs;
5442 case "$enableval" in
5447 default) ENABLE_DOCS=1
5449 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5450 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5451 { (exit 1); exit 1; }; } ;;
5454 # Check whether --enable-doxygen was given.
5455 if test "${enable_doxygen+set}" = set; then
5456 enableval=$enable_doxygen;
5461 case "$enableval" in
5462 yes) ENABLE_DOXYGEN=1
5464 no) ENABLE_DOXYGEN=0
5466 default) ENABLE_DOXYGEN=0
5468 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5469 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5470 { (exit 1); exit 1; }; } ;;
5473 # Check whether --enable-threads was given.
5474 if test "${enable_threads+set}" = set; then
5475 enableval=$enable_threads;
5480 case "$enableval" in
5481 yes) LLVM_ENABLE_THREADS=1
5483 no) LLVM_ENABLE_THREADS=0
5485 default) LLVM_ENABLE_THREADS=1
5487 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5488 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5489 { (exit 1); exit 1; }; } ;;
5492 cat >>confdefs.h <<_ACEOF
5493 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5497 # Check whether --enable-pthreads was given.
5498 if test "${enable_pthreads+set}" = set; then
5499 enableval=$enable_pthreads;
5504 case "$enableval" in
5505 yes) ENABLE_PTHREADS=1
5507 no) ENABLE_PTHREADS=0
5509 default) ENABLE_PTHREADS=1
5511 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5512 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5513 { (exit 1); exit 1; }; } ;;
5516 # Check whether --enable-zlib was given.
5517 if test "${enable_zlib+set}" = set; then
5518 enableval=$enable_zlib;
5523 case "$enableval" in
5524 yes) LLVM_ENABLE_ZLIB=1
5526 no) LLVM_ENABLE_ZLIB=0
5528 default) LLVM_ENABLE_ZLIB=1
5530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5532 { (exit 1); exit 1; }; } ;;
5535 cat >>confdefs.h <<_ACEOF
5536 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5540 # Check whether --enable-pic was given.
5541 if test "${enable_pic+set}" = set; then
5542 enableval=$enable_pic;
5547 case "$enableval" in
5552 default) ENABLE_PIC=1
5554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5556 { (exit 1); exit 1; }; } ;;
5559 cat >>confdefs.h <<_ACEOF
5560 #define ENABLE_PIC $ENABLE_PIC
5564 # Check whether --enable-shared was given.
5565 if test "${enable_shared+set}" = set; then
5566 enableval=$enable_shared;
5571 case "$enableval" in
5572 yes) ENABLE_SHARED=1
5576 default) ENABLE_SHARED=0
5578 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5579 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5580 { (exit 1); exit 1; }; } ;;
5583 # Check whether --enable-embed-stdcxx was given.
5584 if test "${enable_embed_stdcxx+set}" = set; then
5585 enableval=$enable_embed_stdcxx;
5590 case "$enableval" in
5591 yes) ENABLE_EMBED_STDCXX=1
5593 no) ENABLE_EMBED_STDCXX=0
5595 default) ENABLE_EMBED_STDCXX=0
5597 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5598 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5599 { (exit 1); exit 1; }; } ;;
5602 # Check whether --enable-timestamps was given.
5603 if test "${enable_timestamps+set}" = set; then
5604 enableval=$enable_timestamps;
5609 case "$enableval" in
5610 yes) ENABLE_TIMESTAMPS=1
5612 no) ENABLE_TIMESTAMPS=0
5614 default) ENABLE_TIMESTAMPS=1
5616 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5617 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5618 { (exit 1); exit 1; }; } ;;
5621 cat >>confdefs.h <<_ACEOF
5622 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5627 # Check whether --enable-backtraces was given.
5628 if test "${enable_backtraces+set}" = set; then
5629 enableval=$enable_backtraces;
5634 case "$enableval" in
5635 yes) ENABLE_BACKTRACES=1
5637 no) ENABLE_BACKTRACES=0
5639 default) ENABLE_BACKTRACES=1
5641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5642 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5643 { (exit 1); exit 1; }; } ;;
5646 cat >>confdefs.h <<_ACEOF
5647 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5652 # Check whether --enable-targets was given.
5653 if test "${enable_targets+set}" = set; then
5654 enableval=$enable_targets;
5659 if test "$enableval" = host-only ; then
5662 case "$enableval" in
5663 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5664 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5666 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5667 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5668 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5669 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5670 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5671 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5672 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5673 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5674 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5675 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5676 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5677 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5678 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5679 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5680 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5681 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5682 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5683 host) case "$llvm_cv_target_arch" in
5684 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5685 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5686 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5687 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5688 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5689 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5690 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5691 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5692 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5693 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5694 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5695 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5696 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5697 echo "$as_me: error: Can not set target to build" >&2;}
5698 { (exit 1); exit 1; }; } ;;
5700 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5701 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5702 { (exit 1); exit 1; }; } ;;
5708 # Check whether --enable-experimental-targets was given.
5709 if test "${enable_experimental_targets+set}" = set; then
5710 enableval=$enable_experimental_targets;
5716 if test ${enableval} != "disable"
5718 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5721 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5724 for a_target in $TARGETS_TO_BUILD; do
5725 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5727 cat >>confdefs.h <<_ACEOF
5728 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5731 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5732 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5733 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5734 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5735 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5736 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5738 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5739 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5742 cat >>confdefs.h <<_ACEOF
5743 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5747 cat >>confdefs.h <<_ACEOF
5748 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5752 cat >>confdefs.h <<_ACEOF
5753 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5757 cat >>confdefs.h <<_ACEOF
5758 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5761 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5763 cat >>confdefs.h <<_ACEOF
5764 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5768 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5770 cat >>confdefs.h <<_ACEOF
5771 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5778 LLVM_ENUM_TARGETS=""
5779 LLVM_ENUM_ASM_PRINTERS=""
5780 LLVM_ENUM_ASM_PARSERS=""
5781 LLVM_ENUM_DISASSEMBLERS=""
5782 for target_to_build in $TARGETS_TO_BUILD; do
5783 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5784 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5785 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5787 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5788 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5790 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5791 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5800 # Check whether --with-optimize-option was given.
5801 if test "${with_optimize_option+set}" = set; then
5802 withval=$with_optimize_option;
5807 { echo "$as_me:$LINENO: checking optimization flags" >&5
5808 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5811 case "$llvm_cv_os_type" in
5812 FreeBSD) optimize_option=-O2 ;;
5813 MingW) optimize_option=-O2 ;;
5814 *) optimize_option=-O3 ;;
5816 *) optimize_option="$withval" ;;
5818 OPTIMIZE_OPTION=$optimize_option
5820 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5821 echo "${ECHO_T}$optimize_option" >&6; }
5824 # Check whether --with-extra-options was given.
5825 if test "${with_extra_options+set}" = set; then
5826 withval=$with_extra_options;
5832 default) EXTRA_OPTIONS= ;;
5833 *) EXTRA_OPTIONS=$withval ;;
5835 EXTRA_OPTIONS=$EXTRA_OPTIONS
5839 # Check whether --with-extra-ld-options was given.
5840 if test "${with_extra_ld_options+set}" = set; then
5841 withval=$with_extra_ld_options;
5847 default) EXTRA_LD_OPTIONS= ;;
5848 *) EXTRA_LD_OPTIONS=$withval ;;
5850 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5853 # Check whether --enable-bindings was given.
5854 if test "${enable_bindings+set}" = set; then
5855 enableval=$enable_bindings;
5860 BINDINGS_TO_BUILD=""
5861 case "$enableval" in
5862 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5863 all ) BINDINGS_TO_BUILD="ocaml" ;;
5864 none | no) BINDINGS_TO_BUILD="" ;;
5865 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5866 case "$a_binding" in
5867 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5868 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5869 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5870 { (exit 1); exit 1; }; } ;;
5877 # Check whether --with-ocaml-libdir was given.
5878 if test "${with_ocaml_libdir+set}" = set; then
5879 withval=$with_ocaml_libdir;
5885 auto) with_ocaml_libdir="$withval" ;;
5886 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5887 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5888 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5889 { (exit 1); exit 1; }; } ;;
5893 # Check whether --with-clang-srcdir was given.
5894 if test "${with_clang_srcdir+set}" = set; then
5895 withval=$with_clang_srcdir;
5901 -) clang_src_root="" ;;
5902 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5903 *) clang_src_root="$ac_pwd/$withval" ;;
5905 CLANG_SRC_ROOT=$clang_src_root
5909 # Check whether --with-clang-resource-dir was given.
5910 if test "${with_clang_resource_dir+set}" = set; then
5911 withval=$with_clang_resource_dir;
5917 cat >>confdefs.h <<_ACEOF
5918 #define CLANG_RESOURCE_DIR "$withval"
5923 # Check whether --with-c-include-dirs was given.
5924 if test "${with_c_include_dirs+set}" = set; then
5925 withval=$with_c_include_dirs;
5931 cat >>confdefs.h <<_ACEOF
5932 #define C_INCLUDE_DIRS "$withval"
5936 # Clang normally uses the system c++ headers and libraries. With this option,
5937 # clang will use the ones provided by a gcc installation instead. This option should
5938 # be passed the same value that was used with --prefix when configuring gcc.
5940 # Check whether --with-gcc-toolchain was given.
5941 if test "${with_gcc_toolchain+set}" = set; then
5942 withval=$with_gcc_toolchain;
5948 cat >>confdefs.h <<_ACEOF
5949 #define GCC_INSTALL_PREFIX "$withval"
5954 # Check whether --with-default-sysroot was given.
5955 if test "${with_default_sysroot+set}" = set; then
5956 withval=$with_default_sysroot;
5962 cat >>confdefs.h <<_ACEOF
5963 #define DEFAULT_SYSROOT "$withval"
5968 # Check whether --with-binutils-include was given.
5969 if test "${with_binutils_include+set}" = set; then
5970 withval=$with_binutils_include;
5976 default) WITH_BINUTILS_INCDIR=default ;;
5977 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5978 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5979 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5980 { (exit 1); exit 1; }; } ;;
5982 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5983 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5985 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5986 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5987 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5988 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5989 { (exit 1); exit 1; }; };
5994 # Check whether --with-bug-report-url was given.
5995 if test "${with_bug_report_url+set}" = set; then
5996 withval=$with_bug_report_url;
5998 withval="http://llvm.org/bugs/"
6002 cat >>confdefs.h <<_ACEOF
6003 #define BUG_REPORT_URL "$withval"
6007 # Check whether --enable-libffi was given.
6008 if test "${enable_libffi+set}" = set; then
6009 enableval=$enable_libffi; case "$enableval" in
6010 yes) llvm_cv_enable_libffi="yes" ;;
6011 no) llvm_cv_enable_libffi="no" ;;
6012 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6013 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6014 { (exit 1); exit 1; }; } ;;
6017 llvm_cv_enable_libffi=no
6022 # Check whether --with-internal-prefix was given.
6023 if test "${with_internal_prefix+set}" = set; then
6024 withval=$with_internal_prefix;
6029 INTERNAL_PREFIX=$withval
6033 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6034 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6035 if test "${lt_cv_path_NM+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 if test -n "$NM"; then
6039 # Let the user override the test.
6042 lt_nm_to_check="${ac_tool_prefix}nm"
6043 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6044 lt_nm_to_check="$lt_nm_to_check nm"
6046 for lt_tmp_nm in $lt_nm_to_check; do
6047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6048 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6050 test -z "$ac_dir" && ac_dir=.
6051 tmp_nm="$ac_dir/$lt_tmp_nm"
6052 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6053 # Check to see if the nm accepts a BSD-compat flag.
6054 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6055 # nm: unknown option "B" ignored
6056 # Tru64's nm complains that /dev/null is an invalid object file
6057 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6058 */dev/null* | *'Invalid file or object type'*)
6059 lt_cv_path_NM="$tmp_nm -B"
6063 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6065 lt_cv_path_NM="$tmp_nm -p"
6069 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6070 continue # so that we can try to find one that supports BSD flags
6079 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6082 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6083 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6088 { echo "$as_me:$LINENO: checking for GNU make" >&5
6089 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6090 if test "${llvm_cv_gnu_make_command+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 llvm_cv_gnu_make_command=''
6094 for a in "$MAKE" make gmake gnumake ; do
6095 if test -z "$a" ; then continue ; fi ;
6096 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6098 llvm_cv_gnu_make_command=$a ;
6103 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6104 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6105 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6109 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6110 echo "${ECHO_T}\"Not found\"" >&6; };
6114 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6115 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6117 if test "$LN_S" = "ln -s"; then
6118 { echo "$as_me:$LINENO: result: yes" >&5
6119 echo "${ECHO_T}yes" >&6; }
6121 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6122 echo "${ECHO_T}no, using $LN_S" >&6; }
6125 # Extract the first word of "cmp", so it can be a program name with args.
6126 set dummy cmp; ac_word=$2
6127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6129 if test "${ac_cv_path_CMP+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6157 if test -n "$CMP"; then
6158 { echo "$as_me:$LINENO: result: $CMP" >&5
6159 echo "${ECHO_T}$CMP" >&6; }
6161 { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6166 # Extract the first word of "cp", so it can be a program name with args.
6167 set dummy cp; ac_word=$2
6168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170 if test "${ac_cv_path_CP+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6198 if test -n "$CP"; then
6199 { echo "$as_me:$LINENO: result: $CP" >&5
6200 echo "${ECHO_T}$CP" >&6; }
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6207 # Extract the first word of "date", so it can be a program name with args.
6208 set dummy date; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_path_DATE+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6238 DATE=$ac_cv_path_DATE
6239 if test -n "$DATE"; then
6240 { echo "$as_me:$LINENO: result: $DATE" >&5
6241 echo "${ECHO_T}$DATE" >&6; }
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6248 # Extract the first word of "find", so it can be a program name with args.
6249 set dummy find; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_path_FIND+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6279 FIND=$ac_cv_path_FIND
6280 if test -n "$FIND"; then
6281 { echo "$as_me:$LINENO: result: $FIND" >&5
6282 echo "${ECHO_T}$FIND" >&6; }
6284 { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6289 # Extract the first word of "grep", so it can be a program name with args.
6290 set dummy grep; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_path_GREP+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6320 GREP=$ac_cv_path_GREP
6321 if test -n "$GREP"; then
6322 { echo "$as_me:$LINENO: result: $GREP" >&5
6323 echo "${ECHO_T}$GREP" >&6; }
6325 { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6330 # Extract the first word of "mkdir", so it can be a program name with args.
6331 set dummy mkdir; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_path_MKDIR+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6361 MKDIR=$ac_cv_path_MKDIR
6362 if test -n "$MKDIR"; then
6363 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6364 echo "${ECHO_T}$MKDIR" >&6; }
6366 { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6371 # Extract the first word of "mv", so it can be a program name with args.
6372 set dummy mv; ac_word=$2
6373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6375 if test "${ac_cv_path_MV+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6403 if test -n "$MV"; then
6404 { echo "$as_me:$LINENO: result: $MV" >&5
6405 echo "${ECHO_T}$MV" >&6; }
6407 { echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6; }
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6417 if test "${ac_cv_prog_RANLIB+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 if test -n "$RANLIB"; then
6421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 RANLIB=$ac_cv_prog_RANLIB
6441 if test -n "$RANLIB"; then
6442 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6443 echo "${ECHO_T}$RANLIB" >&6; }
6445 { echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6; }
6451 if test -z "$ac_cv_prog_RANLIB"; then
6452 ac_ct_RANLIB=$RANLIB
6453 # Extract the first word of "ranlib", so it can be a program name with args.
6454 set dummy ranlib; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 if test -n "$ac_ct_RANLIB"; then
6461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_RANLIB="ranlib"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6481 if test -n "$ac_ct_RANLIB"; then
6482 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6483 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6485 { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
6489 if test "x$ac_ct_RANLIB" = x; then
6492 case $cross_compiling:$ac_tool_warned in
6494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6495 whose name does not start with the host triplet. If you think this
6496 configuration is useful to you, please write to autoconf@gnu.org." >&5
6497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6498 whose name does not start with the host triplet. If you think this
6499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6500 ac_tool_warned=yes ;;
6502 RANLIB=$ac_ct_RANLIB
6505 RANLIB="$ac_cv_prog_RANLIB"
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}ar; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_AR+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 if test -n "$AR"; then
6517 ac_cv_prog_AR="$AR" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_AR="${ac_tool_prefix}ar"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 if test -n "$AR"; then
6538 { echo "$as_me:$LINENO: result: $AR" >&5
6539 echo "${ECHO_T}$AR" >&6; }
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6547 if test -z "$ac_cv_prog_AR"; then
6549 # Extract the first word of "ar", so it can be a program name with args.
6550 set dummy ar; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 if test -n "$ac_ct_AR"; then
6557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_ac_ct_AR="ar"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6577 if test -n "$ac_ct_AR"; then
6578 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6579 echo "${ECHO_T}$ac_ct_AR" >&6; }
6581 { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6585 if test "x$ac_ct_AR" = x; then
6588 case $cross_compiling:$ac_tool_warned in
6590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6591 whose name does not start with the host triplet. If you think this
6592 configuration is useful to you, please write to autoconf@gnu.org." >&5
6593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet. If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6596 ac_tool_warned=yes ;;
6604 # Extract the first word of "rm", so it can be a program name with args.
6605 set dummy rm; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_RM+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6636 if test -n "$RM"; then
6637 { echo "$as_me:$LINENO: result: $RM" >&5
6638 echo "${ECHO_T}$RM" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6645 # Extract the first word of "sed", so it can be a program name with args.
6646 set dummy sed; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_SED+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6677 if test -n "$SED"; then
6678 { echo "$as_me:$LINENO: result: $SED" >&5
6679 echo "${ECHO_T}$SED" >&6; }
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6686 # Extract the first word of "tar", so it can be a program name with args.
6687 set dummy tar; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_TAR+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6718 if test -n "$TAR"; then
6719 { echo "$as_me:$LINENO: result: $TAR" >&5
6720 echo "${ECHO_T}$TAR" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6727 # Extract the first word of "pwd", so it can be a program name with args.
6728 set dummy pwd; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_BINPWD+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6758 BINPWD=$ac_cv_path_BINPWD
6759 if test -n "$BINPWD"; then
6760 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6761 echo "${ECHO_T}$BINPWD" >&6; }
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6769 # Extract the first word of "Graphviz", so it can be a program name with args.
6770 set dummy Graphviz; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6800 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6801 if test -n "$GRAPHVIZ"; then
6802 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6803 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6805 { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6810 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6812 cat >>confdefs.h <<\_ACEOF
6813 #define HAVE_GRAPHVIZ 1
6816 if test "$llvm_cv_os_type" = "MingW" ; then
6817 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6820 cat >>confdefs.h <<_ACEOF
6821 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6825 # Extract the first word of "dot", so it can be a program name with args.
6826 set dummy dot; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_path_DOT+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6857 if test -n "$DOT"; then
6858 { echo "$as_me:$LINENO: result: $DOT" >&5
6859 echo "${ECHO_T}$DOT" >&6; }
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6866 if test "$DOT" != "echo dot" ; then
6868 cat >>confdefs.h <<\_ACEOF
6872 if test "$llvm_cv_os_type" = "MingW" ; then
6873 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6876 cat >>confdefs.h <<_ACEOF
6877 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6881 # Extract the first word of "fdp", so it can be a program name with args.
6882 set dummy fdp; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_path_FDP+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6913 if test -n "$FDP"; then
6914 { echo "$as_me:$LINENO: result: $FDP" >&5
6915 echo "${ECHO_T}$FDP" >&6; }
6917 { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6922 if test "$FDP" != "echo fdp" ; then
6924 cat >>confdefs.h <<\_ACEOF
6928 if test "$llvm_cv_os_type" = "MingW" ; then
6929 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6932 cat >>confdefs.h <<_ACEOF
6933 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6937 # Extract the first word of "neato", so it can be a program name with args.
6938 set dummy neato; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_NEATO+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6968 NEATO=$ac_cv_path_NEATO
6969 if test -n "$NEATO"; then
6970 { echo "$as_me:$LINENO: result: $NEATO" >&5
6971 echo "${ECHO_T}$NEATO" >&6; }
6973 { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6978 if test "$NEATO" != "echo neato" ; then
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_NEATO 1
6984 if test "$llvm_cv_os_type" = "MingW" ; then
6985 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6988 cat >>confdefs.h <<_ACEOF
6989 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6993 # Extract the first word of "twopi", so it can be a program name with args.
6994 set dummy twopi; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_TWOPI+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7024 TWOPI=$ac_cv_path_TWOPI
7025 if test -n "$TWOPI"; then
7026 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7027 echo "${ECHO_T}$TWOPI" >&6; }
7029 { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7034 if test "$TWOPI" != "echo twopi" ; then
7036 cat >>confdefs.h <<\_ACEOF
7037 #define HAVE_TWOPI 1
7040 if test "$llvm_cv_os_type" = "MingW" ; then
7041 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7044 cat >>confdefs.h <<_ACEOF
7045 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7049 # Extract the first word of "circo", so it can be a program name with args.
7050 set dummy circo; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_CIRCO+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7080 CIRCO=$ac_cv_path_CIRCO
7081 if test -n "$CIRCO"; then
7082 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7083 echo "${ECHO_T}$CIRCO" >&6; }
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7090 if test "$CIRCO" != "echo circo" ; then
7092 cat >>confdefs.h <<\_ACEOF
7093 #define HAVE_CIRCO 1
7096 if test "$llvm_cv_os_type" = "MingW" ; then
7097 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7100 cat >>confdefs.h <<_ACEOF
7101 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7105 for ac_prog in gv gsview32
7107 # Extract the first word of "$ac_prog", so it can be a program name with args.
7108 set dummy $ac_prog; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_GV+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 if test -n "$GV"; then
7139 { echo "$as_me:$LINENO: result: $GV" >&5
7140 echo "${ECHO_T}$GV" >&6; }
7142 { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7147 test -n "$GV" && break
7149 test -n "$GV" || GV="echo gv"
7151 if test "$GV" != "echo gv" ; then
7153 cat >>confdefs.h <<\_ACEOF
7157 if test "$llvm_cv_os_type" = "MingW" ; then
7158 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7161 cat >>confdefs.h <<_ACEOF
7162 #define LLVM_PATH_GV "$GV${EXEEXT}"
7166 # Extract the first word of "dotty", so it can be a program name with args.
7167 set dummy dotty; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_path_DOTTY+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7197 DOTTY=$ac_cv_path_DOTTY
7198 if test -n "$DOTTY"; then
7199 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7200 echo "${ECHO_T}$DOTTY" >&6; }
7202 { echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6; }
7207 if test "$DOTTY" != "echo dotty" ; then
7209 cat >>confdefs.h <<\_ACEOF
7210 #define HAVE_DOTTY 1
7213 if test "$llvm_cv_os_type" = "MingW" ; then
7214 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7217 cat >>confdefs.h <<_ACEOF
7218 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7222 for ac_prog in xdot xdot.py
7224 # Extract the first word of "$ac_prog", so it can be a program name with args.
7225 set dummy $ac_prog; ac_word=$2
7226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228 if test "${ac_cv_path_XDOT+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 XDOT=$ac_cv_path_XDOT
7255 if test -n "$XDOT"; then
7256 { echo "$as_me:$LINENO: result: $XDOT" >&5
7257 echo "${ECHO_T}$XDOT" >&6; }
7259 { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7264 test -n "$XDOT" && break
7266 test -n "$XDOT" || XDOT="echo xdot"
7268 if test "$XDOT" != "echo xdot" ; then
7270 cat >>confdefs.h <<\_ACEOF
7274 if test "$llvm_cv_os_type" = "MingW" ; then
7275 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7278 cat >>confdefs.h <<_ACEOF
7279 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7284 # Find a good install program. We prefer a C program (faster),
7285 # so one script is as good as another. But avoid the broken or
7286 # incompatible versions:
7287 # SysV /etc/install, /usr/sbin/install
7288 # SunOS /usr/etc/install
7289 # IRIX /sbin/install
7291 # AmigaOS /C/install, which installs bootblocks on floppy discs
7292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7295 # OS/2's system install, which has a completely different semantic
7296 # ./install, which can be erroneously created by make from ./install.sh.
7297 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7298 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7299 if test -z "$INSTALL"; then
7300 if test "${ac_cv_path_install+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 # Account for people who put trailing slashes in PATH elements.
7310 ./ | .// | /cC/* | \
7311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7312 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7315 # OSF1 and SCO ODT 3.0 have their own names for install.
7316 # Don't use installbsd from OSF since it installs stuff as root
7318 for ac_prog in ginstall scoinst install; do
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7321 if test $ac_prog = install &&
7322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7323 # AIX install. It has an incompatible calling convention.
7325 elif test $ac_prog = install &&
7326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7327 # program-specific install script used by HP pwplus--don't use.
7330 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7343 if test "${ac_cv_path_install+set}" = set; then
7344 INSTALL=$ac_cv_path_install
7346 # As a last resort, use the slow shell script. Don't cache a
7347 # value for INSTALL within a source directory, because that will
7348 # break other packages using the cache if that directory is
7349 # removed, or if the value is a relative name.
7350 INSTALL=$ac_install_sh
7353 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7354 echo "${ECHO_T}$INSTALL" >&6; }
7356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7357 # It thinks the first close brace ends the variable substitution.
7358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7365 [\\/$]* | ?:[\\/]* ) ;;
7366 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7369 # Extract the first word of "bzip2", so it can be a program name with args.
7370 set dummy bzip2; ac_word=$2
7371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7373 if test "${ac_cv_path_BZIP2+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7388 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 BZIP2=$ac_cv_path_BZIP2
7400 if test -n "$BZIP2"; then
7401 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7402 echo "${ECHO_T}$BZIP2" >&6; }
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7409 # Extract the first word of "cat", so it can be a program name with args.
7410 set dummy cat; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_CAT+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 if test -n "$CAT"; then
7441 { echo "$as_me:$LINENO: result: $CAT" >&5
7442 echo "${ECHO_T}$CAT" >&6; }
7444 { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7449 # Extract the first word of "doxygen", so it can be a program name with args.
7450 set dummy doxygen; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 DOXYGEN=$ac_cv_path_DOXYGEN
7480 if test -n "$DOXYGEN"; then
7481 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7482 echo "${ECHO_T}$DOXYGEN" >&6; }
7484 { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7489 # Extract the first word of "groff", so it can be a program name with args.
7490 set dummy groff; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_GROFF+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 GROFF=$ac_cv_path_GROFF
7520 if test -n "$GROFF"; then
7521 { echo "$as_me:$LINENO: result: $GROFF" >&5
7522 echo "${ECHO_T}$GROFF" >&6; }
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7529 # Extract the first word of "gzip", so it can be a program name with args.
7530 set dummy gzip; ac_word=$2
7531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7533 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 GZIPBIN=$ac_cv_path_GZIPBIN
7560 if test -n "$GZIPBIN"; then
7561 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7562 echo "${ECHO_T}$GZIPBIN" >&6; }
7564 { echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6; }
7569 # Extract the first word of "pdfroff", so it can be a program name with args.
7570 set dummy pdfroff; ac_word=$2
7571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573 if test "${ac_cv_path_PDFROFF+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 PDFROFF=$ac_cv_path_PDFROFF
7600 if test -n "$PDFROFF"; then
7601 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7602 echo "${ECHO_T}$PDFROFF" >&6; }
7604 { echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6; }
7609 # Extract the first word of "zip", so it can be a program name with args.
7610 set dummy zip; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_ZIP+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 if test -n "$ZIP"; then
7641 { echo "$as_me:$LINENO: result: $ZIP" >&5
7642 echo "${ECHO_T}$ZIP" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 for ac_prog in ocamlc
7651 # Extract the first word of "$ac_prog", so it can be a program name with args.
7652 set dummy $ac_prog; ac_word=$2
7653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655 if test "${ac_cv_path_OCAMLC+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 OCAMLC=$ac_cv_path_OCAMLC
7682 if test -n "$OCAMLC"; then
7683 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7684 echo "${ECHO_T}$OCAMLC" >&6; }
7686 { echo "$as_me:$LINENO: result: no" >&5
7687 echo "${ECHO_T}no" >&6; }
7691 test -n "$OCAMLC" && break
7694 for ac_prog in ocamlopt
7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
7697 set dummy $ac_prog; ac_word=$2
7698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7700 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 OCAMLOPT=$ac_cv_path_OCAMLOPT
7727 if test -n "$OCAMLOPT"; then
7728 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7729 echo "${ECHO_T}$OCAMLOPT" >&6; }
7731 { echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6; }
7736 test -n "$OCAMLOPT" && break
7739 for ac_prog in ocamldep
7741 # Extract the first word of "$ac_prog", so it can be a program name with args.
7742 set dummy $ac_prog; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 OCAMLDEP=$ac_cv_path_OCAMLDEP
7772 if test -n "$OCAMLDEP"; then
7773 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7774 echo "${ECHO_T}$OCAMLDEP" >&6; }
7776 { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7781 test -n "$OCAMLDEP" && break
7784 for ac_prog in ocamldoc
7786 # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy $ac_prog; ac_word=$2
7788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 OCAMLDOC=$ac_cv_path_OCAMLDOC
7817 if test -n "$OCAMLDOC"; then
7818 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7819 echo "${ECHO_T}$OCAMLDOC" >&6; }
7821 { echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6; }
7826 test -n "$OCAMLDOC" && break
7829 for ac_prog in gas as
7831 # Extract the first word of "$ac_prog", so it can be a program name with args.
7832 set dummy $ac_prog; ac_word=$2
7833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835 if test "${ac_cv_path_GAS+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7850 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 if test -n "$GAS"; then
7863 { echo "$as_me:$LINENO: result: $GAS" >&5
7864 echo "${ECHO_T}$GAS" >&6; }
7866 { echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6; }
7871 test -n "$GAS" && break
7875 { echo "$as_me:$LINENO: checking for linker version" >&5
7876 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7877 if test "${llvm_cv_link_version+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 version_string="$(ld -v 2>&1 | head -1)"
7884 if (echo "$version_string" | grep -q "ld64"); then
7885 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7887 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7891 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7892 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7894 cat >>confdefs.h <<_ACEOF
7895 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7900 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7901 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7902 if test "${llvm_cv_link_use_r+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912 CFLAGS="$CFLAGS -Wl,-R."
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7937 grep -v '^ *+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7943 { (case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_try") 2>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest$ac_exeext'
7953 { (case "(($ac_try" in
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_try") 2>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 llvm_cv_link_use_r=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 llvm_cv_link_use_r=no
7970 rm -f core conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7974 ac_cpp='$CPP $CPPFLAGS'
7975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7981 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7982 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7983 if test "$llvm_cv_link_use_r" = yes ; then
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_LINK_R 1
7992 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7993 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7994 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004 CFLAGS="$CFLAGS -rdynamic"
8005 cat >conftest.$ac_ext <<_ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_link") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_try") 2>&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_try") 2>&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8054 llvm_cv_link_use_export_dynamic=yes
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 llvm_cv_link_use_export_dynamic=no
8062 rm -f core conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8073 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8074 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8075 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8077 cat >>confdefs.h <<\_ACEOF
8078 #define HAVE_LINK_EXPORT_DYNAMIC 1
8084 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8085 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8086 if test "${llvm_cv_link_use_version_script+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 ac_cpp='$CPP $CPPFLAGS'
8091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097 # The following code is from the autoconf manual,
8098 # "11.13: Limitations of Usual Tools".
8099 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8100 # Use mktemp if possible; otherwise fall back on mkdir,
8101 # with $RANDOM to make collisions less likely.
8105 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8107 test -n "$tmp" && test -d "$tmp"
8109 tmp=$TMPDIR/foo$$-$RANDOM
8110 (umask 077 && mkdir "$tmp")
8113 echo "{" > "$tmp/export.map"
8114 echo " global: main;" >> "$tmp/export.map"
8115 echo " local: *;" >> "$tmp/export.map"
8116 echo "};" >> "$tmp/export.map"
8118 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (ac_try="$ac_link"
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_link") 2>conftest.er1
8143 grep -v '^ *+' conftest.er1 >conftest.err
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8149 { (case "(($ac_try" in
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_try") 2>&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; } &&
8158 { ac_try='test -s conftest$ac_exeext'
8159 { (case "(($ac_try" in
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_try") 2>&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 llvm_cv_link_use_version_script=yes
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 llvm_cv_link_use_version_script=no
8176 rm -f core conftest.err conftest.$ac_objext \
8177 conftest$ac_exeext conftest.$ac_ext
8178 rm "$tmp/export.map"
8182 ac_cpp='$CPP $CPPFLAGS'
8183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8189 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8190 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8191 if test "$llvm_cv_link_use_version_script" = yes ; then
8192 HAVE_LINK_VERSION_SCRIPT=1
8199 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8200 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8201 if test "${ac_cv_c_const+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 cat >conftest.$ac_ext <<_ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8214 /* FIXME: Include the comments suggested by Paul. */
8216 /* Ultrix mips cc rejects this. */
8217 typedef int charset[2];
8219 /* SunOS 4.1.1 cc rejects this. */
8220 char const *const *ccp;
8222 /* NEC SVR4.0.2 mips cc rejects this. */
8223 struct point {int x, y;};
8224 static struct point const zero = {0,0};
8225 /* AIX XL C 1.02.0.0 rejects this.
8226 It does not let you subtract one const X* pointer from another in
8227 an arm of an if-expression whose if-part is not a constant
8229 const char *g = "string";
8230 ccp = &g + (g ? g-g : 0);
8231 /* HPUX 7.0 cc rejects these. */
8234 ccp = (char const *const *) p;
8235 { /* SCO 3.2v4 cc rejects this. */
8237 char const *s = 0 ? (char *) 0 : (char const *) 0;
8242 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8244 const int *foo = &x[0];
8247 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8248 typedef const int *iptr;
8252 { /* AIX XL C 1.02.0.0 rejects this saying
8253 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8254 struct s { int j; const int *ap[3]; };
8255 struct s *b; b->j = 5;
8257 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8261 return !x[0] && !zero.x;
8268 rm -f conftest.$ac_objext
8269 if { (ac_try="$ac_compile"
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_compile") 2>conftest.er1
8277 grep -v '^ *+' conftest.er1 >conftest.err
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8283 { (case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_try") 2>&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try='test -s conftest.$ac_objext'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8313 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8314 if test $ac_cv_c_const = no; then
8316 cat >>confdefs.h <<\_ACEOF
8328 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8329 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8330 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8331 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 #include <sys/types.h>
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_compile") 2>conftest.er1
8362 grep -v '^ *+' conftest.er1 >conftest.err
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; } &&
8377 { ac_try='test -s conftest.$ac_objext'
8378 { (case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_try") 2>&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 eval "$as_ac_Header=yes"
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 eval "$as_ac_Header=no"
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 ac_res=`eval echo '${'$as_ac_Header'}'`
8398 { echo "$as_me:$LINENO: result: $ac_res" >&5
8399 echo "${ECHO_T}$ac_res" >&6; }
8400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8401 cat >>confdefs.h <<_ACEOF
8402 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8405 ac_header_dirent=$ac_hdr; break
8409 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8410 if test $ac_header_dirent = dirent.h; then
8411 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8412 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8413 if test "${ac_cv_search_opendir+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 ac_func_search_save_LIBS=$LIBS
8417 cat >conftest.$ac_ext <<_ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8424 /* Override any GCC internal prototype to avoid an error.
8425 Use char because int might match the return type of a GCC
8426 builtin and then its argument prototype would still apply. */
8439 for ac_lib in '' dir; do
8440 if test -z "$ac_lib"; then
8441 ac_res="none required"
8444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_link") 2>conftest.er1
8455 grep -v '^ *+' conftest.er1 >conftest.err
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_try") 2>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_try") 2>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_search_opendir=$ac_res
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8488 rm -f core conftest.err conftest.$ac_objext \
8490 if test "${ac_cv_search_opendir+set}" = set; then
8494 if test "${ac_cv_search_opendir+set}" = set; then
8497 ac_cv_search_opendir=no
8500 LIBS=$ac_func_search_save_LIBS
8502 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8503 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8504 ac_res=$ac_cv_search_opendir
8505 if test "$ac_res" != no; then
8506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8511 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8512 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8513 if test "${ac_cv_search_opendir+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 ac_func_search_save_LIBS=$LIBS
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8524 /* Override any GCC internal prototype to avoid an error.
8525 Use char because int might match the return type of a GCC
8526 builtin and then its argument prototype would still apply. */
8539 for ac_lib in '' x; do
8540 if test -z "$ac_lib"; then
8541 ac_res="none required"
8544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_link") 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561 { (case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_try") 2>&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; } &&
8570 { ac_try='test -s conftest$ac_exeext'
8571 { (case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_try") 2>&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_cv_search_opendir=$ac_res
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8588 rm -f core conftest.err conftest.$ac_objext \
8590 if test "${ac_cv_search_opendir+set}" = set; then
8594 if test "${ac_cv_search_opendir+set}" = set; then
8597 ac_cv_search_opendir=no
8600 LIBS=$ac_func_search_save_LIBS
8602 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8603 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8604 ac_res=$ac_cv_search_opendir
8605 if test "$ac_res" != no; then
8606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8613 for ac_header in dlfcn.h
8615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 ac_res=`eval echo '${'$as_ac_Header'}'`
8623 { echo "$as_me:$LINENO: result: $ac_res" >&5
8624 echo "${ECHO_T}$ac_res" >&6; }
8626 # Is the header compilable?
8627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 $ac_includes_default
8636 #include <$ac_header>
8638 rm -f conftest.$ac_objext
8639 if { (ac_try="$ac_compile"
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_compile") 2>conftest.er1
8647 grep -v '^ *+' conftest.er1 >conftest.err
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8653 { (case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_try") 2>&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest.$ac_objext'
8663 { (case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_try") 2>&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_header_compiler=yes
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 ac_header_compiler=no
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8682 echo "${ECHO_T}$ac_header_compiler" >&6; }
8684 # Is the header present?
8685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8687 cat >conftest.$ac_ext <<_ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 #include <$ac_header>
8695 if { (ac_try="$ac_cpp conftest.$ac_ext"
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8703 grep -v '^ *+' conftest.er1 >conftest.err
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } >/dev/null; then
8708 if test -s conftest.err; then
8709 ac_cpp_err=$ac_c_preproc_warn_flag
8710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8717 if test -z "$ac_cpp_err"; then
8718 ac_header_preproc=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_header_preproc=no
8726 rm -f conftest.err conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8728 echo "${ECHO_T}$ac_header_preproc" >&6; }
8730 # So? What about this header?
8731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8737 ac_header_preproc=yes
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8753 ## ------------------------------------ ##
8754 ## Report this to http://llvm.org/bugs/ ##
8755 ## ------------------------------------ ##
8757 ) | sed "s/^/$as_me: WARNING: /" >&2
8760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 eval "$as_ac_Header=\$ac_header_preproc"
8767 ac_res=`eval echo '${'$as_ac_Header'}'`
8768 { echo "$as_me:$LINENO: result: $ac_res" >&5
8769 echo "${ECHO_T}$ac_res" >&6; }
8772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8773 cat >>confdefs.h <<_ACEOF
8774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8781 # Check whether --enable-ltdl-install was given.
8782 if test "${enable_ltdl_install+set}" = set; then
8783 enableval=$enable_ltdl_install;
8789 if test x"${enable_ltdl_install-no}" != xno; then
8791 INSTALL_LTDL_FALSE='#'
8793 INSTALL_LTDL_TRUE='#'
8799 if test x"${enable_ltdl_convenience-no}" != xno; then
8800 CONVENIENCE_LTDL_TRUE=
8801 CONVENIENCE_LTDL_FALSE='#'
8803 CONVENIENCE_LTDL_TRUE='#'
8804 CONVENIENCE_LTDL_FALSE=
8808 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8809 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8811 libname_spec='lib$name'
8819 shlibpath_overrides_runpath=unknown
8821 dynamic_linker="$host_os ld.so"
8822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8823 if test "$GCC" = yes; then
8824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8825 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8826 # if the path contains ";" then we assume it to be the separator
8827 # otherwise default to the standard path separator (i.e. ":") - it is
8828 # assumed that no part of a normal pathname contains ";" but that should
8829 # okay in the real world where ";" in dirpaths is itself problematic.
8830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8837 need_lib_prefix=unknown
8838 hardcode_into_libs=no
8840 # when you set need_version to no, make sure it does not cause -set_version
8841 # flags to be left without arguments
8842 need_version=unknown
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8848 shlibpath_var=LIBPATH
8850 # AIX 3 has no versioning support, so we append a major version to the name.
8851 soname_spec='${libname}${release}${shared_ext}$major'
8858 hardcode_into_libs=yes
8859 if test "$host_cpu" = ia64; then
8860 # AIX 5 supports IA64
8861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8862 shlibpath_var=LD_LIBRARY_PATH
8864 # With GCC up to 2.95.x, collect2 would create an import file
8865 # for dependence libraries. The import file would start with
8866 # the line `#! .'. This would cause the generated library to
8867 # depend on `.', always an invalid library. This was fixed in
8868 # development snapshots of GCC prior to 3.0.
8870 aix4 | aix4.[01] | aix4.[01].*)
8871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8873 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8881 # soname into executable. Probably we can add versioning support to
8882 # collect2, so additional links can be useful in future.
8883 if test "$aix_use_runtimelinking" = yes; then
8884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8885 # instead of lib<name>.a to let people know that these are not
8886 # typical AIX shared libraries.
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8889 # We preserve .a as extension for shared libraries through AIX4.2
8890 # and later when we are not doing run time linking.
8891 library_names_spec='${libname}${release}.a $libname.a'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8894 shlibpath_var=LIBPATH
8899 library_names_spec='$libname.ixlibrary $libname.a'
8900 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8901 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'
8905 library_names_spec='${libname}${shared_ext}'
8906 dynamic_linker="$host_os ld.so"
8907 shlibpath_var=LIBRARY_PATH
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8919 # the default ld.so.conf also contains /usr/contrib/lib and
8920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8921 # libtool to hard-code these into programs
8924 cygwin* | mingw* | pw32*)
8925 version_type=windows
8930 case $GCC,$host_os in
8931 yes,cygwin* | yes,mingw* | yes,pw32*)
8932 library_names_spec='$libname.dll.a'
8933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8934 postinstall_cmds='base_file=`basename \${file}`~
8935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8936 dldir=$destdir/`dirname \$dlpath`~
8937 test -d \$dldir || mkdir -p \$dldir~
8938 $install_prog $dir/$dlname \$dldir/$dlname~
8939 chmod a+x \$dldir/$dlname'
8940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8941 dlpath=$dir/\$dldll~
8943 shlibpath_overrides_runpath=yes
8947 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8948 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8949 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8952 # MinGW DLLs use traditional 'lib' prefix
8953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8955 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8956 # It is most probably a Windows format PATH printed by
8957 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8958 # path with ; separators, and with drive letters. We can handle the
8959 # drive letters (cygwin fileutils understands them), so leave them,
8960 # especially as we might pass files found there to a mingw objdump,
8961 # which wouldn't understand a cygwinified path. Ahh.
8962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8968 # pw32 DLLs use 'pw' prefix rather than 'lib'
8969 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8978 dynamic_linker='Win32 ld.exe'
8979 # FIXME: first we should search . and the directory the executable is in
8983 darwin* | rhapsody*)
8984 dynamic_linker="$host_os dyld"
8988 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8989 soname_spec='${libname}${release}${major}$shared_ext'
8990 shlibpath_overrides_runpath=yes
8991 shlibpath_var=DYLD_LIBRARY_PATH
8992 shrext_cmds='.dylib'
8993 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8994 if test "$GCC" = yes; then
8995 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"`
8997 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=no
9023 hardcode_into_libs=yes
9024 dynamic_linker='GNU ld.so'
9027 freebsd* | dragonfly*)
9028 # DragonFly does not have aout. When/if they implement a new
9029 # versioning mechanism, adjust this.
9030 if test -x /usr/bin/objformat; then
9031 objformat=`/usr/bin/objformat`
9034 freebsd[123].*) objformat=aout ;;
9038 version_type=freebsd-$objformat
9039 case $version_type in
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9050 shlibpath_var=LD_LIBRARY_PATH
9053 shlibpath_overrides_runpath=yes
9055 freebsd3.[01]* | freebsdelf3.[01]*)
9056 shlibpath_overrides_runpath=yes
9057 hardcode_into_libs=yes
9059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9064 freebsd*) # from 4.6 on
9065 shlibpath_overrides_runpath=yes
9066 hardcode_into_libs=yes
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 hardcode_into_libs=yes
9081 hpux9* | hpux10* | hpux11*)
9082 # Give a soname corresponding to the major version so that dld.sl refuses to
9083 # link against other versions.
9090 hardcode_into_libs=yes
9091 dynamic_linker="$host_os dld.so"
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
9097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9105 hardcode_into_libs=yes
9106 dynamic_linker="$host_os dld.sl"
9107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9116 dynamic_linker="$host_os dld.sl"
9117 shlibpath_var=SHLIB_PATH
9118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9123 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9124 postinstall_cmds='chmod 555 $lib'
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=no
9136 hardcode_into_libs=yes
9139 irix5* | irix6* | nonstopux*)
9141 nonstopux*) version_type=nonstopux ;;
9143 if test "$lt_cv_prog_gnu_ld" = yes; then
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9154 irix5* | nonstopux*)
9158 case $LD in # libtool.m4 will add one of these switches to LD
9159 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9160 libsuff= shlibsuff= libmagic=32-bit;;
9161 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9162 libsuff=32 shlibsuff=N32 libmagic=N32;;
9163 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9164 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9165 *) libsuff= shlibsuff= libmagic=never-match;;
9169 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9170 shlibpath_overrides_runpath=no
9171 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9172 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9173 hardcode_into_libs=yes
9176 # No shared lib support for Linux oldld, aout, or coff.
9177 linux*oldld* | linux*aout* | linux*coff*)
9181 # This must be Linux ELF.
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=no
9191 # This implies no fast_install, which is unacceptable.
9192 # Some rework will be needed to allow for fast_install
9193 # before this can be enabled.
9194 hardcode_into_libs=yes
9196 # Append ld.so.conf contents to the search path
9197 if test -f /etc/ld.so.conf; then
9198 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' ' '`
9199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9202 # We used to test for /lib/ld.so.1 and disable shared libraries on
9203 # powerpc, because MkLinux only supported shared libraries with the
9204 # GNU dynamic linker. Since this was broken with cross compilers,
9205 # most powerpc-linux boxes support dynamic linking these days and
9206 # people can always --disable-shared, the test was removed, and we
9207 # assume the GNU/Linux dynamic linker is in use.
9208 dynamic_linker='GNU/Linux ld.so'
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=no
9219 hardcode_into_libs=yes
9220 dynamic_linker='GNU ld.so'
9227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9230 dynamic_linker='NetBSD (a.out) ld.so'
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 dynamic_linker='NetBSD ld.elf_so'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9238 hardcode_into_libs=yes
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244 shlibpath_var=LD_LIBRARY_PATH
9245 shlibpath_overrides_runpath=yes
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 shlibpath_var=LD_LIBRARY_PATH
9255 shlibpath_overrides_runpath=yes
9260 sys_lib_dlsearch_path_spec="/usr/lib"
9262 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9264 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9265 *) need_version=no ;;
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9272 openbsd2.[89] | openbsd2.[89].*)
9273 shlibpath_overrides_runpath=no
9276 shlibpath_overrides_runpath=yes
9280 shlibpath_overrides_runpath=yes
9285 libname_spec='$name'
9288 library_names_spec='$libname${shared_ext} $libname.a'
9289 dynamic_linker='OS/2 ld.exe'
9290 shlibpath_var=LIBPATH
9293 osf3* | osf4* | osf5*)
9297 soname_spec='${libname}${release}${shared_ext}$major'
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9301 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9312 hardcode_into_libs=yes
9313 # ldd complains unless libraries are executable
9314 postinstall_cmds='chmod +x $lib'
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9323 if test "$with_gnu_ld" = yes; then
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 case $host_vendor in
9336 shlibpath_overrides_runpath=no
9338 export_dynamic_flag_spec='${wl}-Blargedynsym'
9339 runpath_var=LD_RUN_PATH
9347 shlibpath_overrides_runpath=no
9348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9354 if test -d /usr/nec ;then
9356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9357 soname_spec='$libname${shared_ext}.$major'
9358 shlibpath_var=LD_LIBRARY_PATH
9362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9363 version_type=freebsd-elf
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 hardcode_into_libs=yes
9370 if test "$with_gnu_ld" = yes; then
9371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9372 shlibpath_overrides_runpath=no
9374 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9375 shlibpath_overrides_runpath=yes
9378 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9382 sys_lib_dlsearch_path_spec='/usr/lib'
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9396 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9397 echo "${ECHO_T}$dynamic_linker" >&6; }
9398 test "$dynamic_linker" = no && can_build_shared=no
9400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9401 if test "$GCC" = yes; then
9402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9406 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9407 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9408 if test "${libltdl_cv_shlibext+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 eval libltdl_cv_shlibext=$shrext_cmds
9416 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9417 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9418 if test -n "$libltdl_cv_shlibext"; then
9420 cat >>confdefs.h <<_ACEOF
9421 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9427 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9428 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9429 if test "${libltdl_cv_sys_search_path+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9434 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9435 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9436 if test -n "$libltdl_cv_sys_search_path"; then
9438 for dir in $libltdl_cv_sys_search_path; do
9439 if test -z "$sys_search_path"; then
9440 sys_search_path="$dir"
9442 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9446 cat >>confdefs.h <<_ACEOF
9447 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9452 { echo "$as_me:$LINENO: checking for objdir" >&5
9453 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_objdir+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 libltdl_cv_objdir="$objdir"
9458 if test -n "$objdir"; then
9461 rm -f .libs 2>/dev/null
9462 mkdir .libs 2>/dev/null
9463 if test -d .libs; then
9464 libltdl_cv_objdir=.libs
9466 # MS-DOS does not allow filenames that begin with a dot.
9467 libltdl_cv_objdir=_libs
9469 rmdir .libs 2>/dev/null
9473 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9474 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9476 cat >>confdefs.h <<_ACEOF
9477 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9485 # Check for command to grab the raw symbol name followed by C symbol from nm.
9486 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9487 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9488 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 # These are sane defaults that work on at least a few old systems.
9493 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9495 # Character class describing NM global symbol codes.
9496 symcode='[BCDEGRST]'
9498 # Regexp to match symbols that can be accessed directly from C.
9499 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9501 # Transform an extracted symbol line into a proper C declaration
9502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9504 # Transform an extracted symbol line into symbol name and symbol address
9505 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'"
9507 # Define system-specific variables.
9512 cygwin* | mingw* | pw32*)
9513 symcode='[ABCDGISTW]'
9515 hpux*) # Its linker distinguishes data from code symbols
9516 if test "$host_cpu" = ia64; then
9517 symcode='[ABCDEGRST]'
9519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9520 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'"
9523 if test "$host_cpu" = ia64; then
9524 symcode='[ABCDGIRSTW]'
9525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9526 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'"
9530 symcode='[BCDEGRST]'
9533 symcode='[BCDEGQRST]'
9544 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9552 # Handle CRLF in mingw tool chain
9556 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9560 # If we're using GNU nm, then use its standard symbol codes.
9561 case `$NM -V 2>&1` in
9562 *GNU* | *'with BFD'*)
9563 symcode='[ABCDGIRSTW]' ;;
9566 # Try without a prefix undercore, then with it.
9567 for ac_symprfx in "" "_"; do
9569 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9570 symxfrm="\\1 $ac_symprfx\\2 \\2"
9572 # Write the raw and C identifiers.
9573 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9575 # Check to see that the pipe works correctly.
9579 cat > conftest.$ac_ext <<EOF
9584 void nm_test_func(){}
9588 int main(){nm_test_var='a';nm_test_func();return(0);}
9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592 (eval $ac_compile) 2>&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; then
9596 # Now try to grab the symbols.
9598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && test -s "$nlist"; then
9603 # Try sorting and uniquifying the output.
9604 if sort "$nlist" | uniq > "$nlist"T; then
9605 mv -f "$nlist"T "$nlist"
9610 # Make sure that we snagged all the symbols we need.
9611 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9612 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9613 cat <<EOF > conftest.$ac_ext
9619 # Now generate the symbol file.
9620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9622 cat <<EOF >> conftest.$ac_ext
9623 #if defined (__STDC__) && __STDC__
9624 # define lt_ptr_t void *
9626 # define lt_ptr_t char *
9630 /* The mapping between symbol names and symbols. */
9635 lt_preloaded_symbols[] =
9638 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9639 cat <<\EOF >> conftest.$ac_ext
9647 # Now try linking the two files.
9648 mv conftest.$ac_objext conftstm.$ac_objext
9649 lt_save_LIBS="$LIBS"
9650 lt_save_CFLAGS="$CFLAGS"
9651 LIBS="conftstm.$ac_objext"
9652 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9660 LIBS="$lt_save_LIBS"
9661 CFLAGS="$lt_save_CFLAGS"
9663 echo "cannot find nm_test_func in $nlist" >&5
9666 echo "cannot find nm_test_var in $nlist" >&5
9669 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9672 echo "$progname: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9675 rm -f conftest* conftst*
9677 # Do not use the global_symbol_pipe unless it works.
9678 if test "$pipe_works" = yes; then
9681 lt_cv_sys_global_symbol_pipe=
9687 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9688 lt_cv_sys_global_symbol_to_cdecl=
9690 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9691 { echo "$as_me:$LINENO: result: failed" >&5
9692 echo "${ECHO_T}failed" >&6; }
9694 { echo "$as_me:$LINENO: result: ok" >&5
9695 echo "${ECHO_T}ok" >&6; }
9699 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9700 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9701 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9705 libltdl_cv_preloaded_symbols=yes
9707 libltdl_cv_preloaded_symbols=no
9711 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9712 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9713 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9715 cat >>confdefs.h <<\_ACEOF
9716 #define HAVE_PRELOADED_SYMBOLS 1
9724 ac_cpp='$CPP $CPPFLAGS'
9725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9730 { echo "$as_me:$LINENO: checking for shl_load" >&5
9731 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9732 if test "${ac_cv_func_shl_load+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9743 #define shl_load innocuous_shl_load
9745 /* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char shl_load (); below.
9747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748 <limits.h> exists even on freestanding compilers. */
9751 # include <limits.h>
9753 # include <assert.h>
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9765 /* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
9768 #if defined __stub_shl_load || defined __stub___shl_load
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9789 grep -v '^ *+' conftest.er1 >conftest.err
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_func_shl_load=yes
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_cv_func_shl_load=no
9822 rm -f core conftest.err conftest.$ac_objext \
9823 conftest$ac_exeext conftest.$ac_ext
9825 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9826 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9827 if test $ac_cv_func_shl_load = yes; then
9829 cat >>confdefs.h <<\_ACEOF
9830 #define HAVE_SHL_LOAD 1
9834 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9835 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 ac_check_lib_save_LIBS=$LIBS
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9848 /* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_lib_dld_shl_load=yes
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_cv_lib_dld_shl_load=no
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9910 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9911 if test $ac_cv_lib_dld_shl_load = yes; then
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_SHL_LOAD 1
9917 LIBADD_DL="$LIBADD_DL -ldld"
9919 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9920 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 ac_check_lib_save_LIBS=$LIBS
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_lib_dl_dlopen=yes
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_lib_dl_dlopen=no
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9995 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9996 if test $ac_cv_lib_dl_dlopen = yes; then
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_LIBDL 1
10002 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10004 cat >conftest.$ac_ext <<_ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 # include <dlfcn.h>
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (ac_try="$ac_link"
10024 case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_link") 2>conftest.er1
10031 grep -v '^ *+' conftest.er1 >conftest.err
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest$ac_exeext'
10047 { (case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_try") 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_LIBDL 1
10060 libltdl_cv_func_dlopen="yes"
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10066 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-lsvld $LIBS"
10072 cat >conftest.$ac_ext <<_ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10079 /* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_try") 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_svld_dlopen=yes
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_cv_lib_svld_dlopen=no
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10141 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10142 if test $ac_cv_lib_svld_dlopen = yes; then
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_LIBDL 1
10148 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10150 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10151 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10152 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 ac_check_lib_save_LIBS=$LIBS
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10174 return dld_link ();
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
10188 grep -v '^ *+' conftest.er1 >conftest.err
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_lib_dld_dld_link=yes
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_lib_dld_dld_link=no
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223 LIBS=$ac_check_lib_save_LIBS
10225 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10226 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10227 if test $ac_cv_lib_dld_dld_link = yes; then
10229 cat >>confdefs.h <<\_ACEOF
10233 LIBADD_DL="$LIBADD_DL -ldld"
10235 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10236 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10237 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 cat >conftest.$ac_ext <<_ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10248 #define _dyld_func_lookup innocuous__dyld_func_lookup
10250 /* System header to define __stub macros and hopefully few prototypes,
10251 which can conflict with char _dyld_func_lookup (); below.
10252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10253 <limits.h> exists even on freestanding compilers. */
10256 # include <limits.h>
10258 # include <assert.h>
10261 #undef _dyld_func_lookup
10263 /* Override any GCC internal prototype to avoid an error.
10264 Use char because int might match the return type of a GCC
10265 builtin and then its argument prototype would still apply. */
10269 char _dyld_func_lookup ();
10270 /* The GNU C library defines this for functions which it implements
10271 to always fail with ENOSYS. Some functions are actually named
10272 something starting with __ and the normal name is an alias. */
10273 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10280 return _dyld_func_lookup ();
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (ac_try="$ac_link"
10287 case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_link") 2>conftest.er1
10294 grep -v '^ *+' conftest.er1 >conftest.err
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_try") 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_try") 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 ac_cv_func__dyld_func_lookup=yes
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 ac_cv_func__dyld_func_lookup=no
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10330 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10331 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10332 if test $ac_cv_func__dyld_func_lookup = yes; then
10334 cat >>confdefs.h <<\_ACEOF
10335 #define HAVE_DYLD 1
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10361 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10363 lt_save_LIBS="$LIBS"
10364 LIBS="$LIBS $LIBADD_DL"
10366 for ac_func in dlerror
10368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 cat >conftest.$ac_ext <<_ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10382 #define $ac_func innocuous_$ac_func
10384 /* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char $ac_func (); below.
10386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10387 <limits.h> exists even on freestanding compilers. */
10390 # include <limits.h>
10392 # include <assert.h>
10397 /* Override any GCC internal prototype to avoid an error.
10398 Use char because int might match the return type of a GCC
10399 builtin and then its argument prototype would still apply. */
10404 /* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
10407 #if defined __stub_$ac_func || defined __stub___$ac_func
10414 return $ac_func ();
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (ac_try="$ac_link"
10421 case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_link") 2>conftest.er1
10428 grep -v '^ *+' conftest.er1 >conftest.err
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434 { (case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_try") 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_try") 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 eval "$as_ac_var=yes"
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 eval "$as_ac_var=no"
10461 rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10464 ac_res=`eval echo '${'$as_ac_var'}'`
10465 { echo "$as_me:$LINENO: result: $ac_res" >&5
10466 echo "${ECHO_T}$ac_res" >&6; }
10467 if test `eval echo '${'$as_ac_var'}'` = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10475 LIBS="$lt_save_LIBS"
10478 ac_cpp='$CPP $CPPFLAGS'
10479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10485 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10486 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10487 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 ac_cv_sys_symbol_underscore=no
10491 cat > conftest.$ac_ext <<EOF
10492 void nm_test_func(){}
10493 int main(){nm_test_func;return 0;}
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; then
10500 # Now try to grab the symbols.
10501 ac_nlist=conftest.nm
10502 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10503 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && test -s "$ac_nlist"; then
10507 # See whether the symbols have a leading underscore.
10508 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10509 ac_cv_sys_symbol_underscore=yes
10511 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10514 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10518 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10521 echo "configure: failed program was:" >&5
10527 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10528 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10531 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10532 if test x"$libltdl_cv_func_dlopen" = xyes ||
10533 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10534 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10535 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10536 if test "${libltdl_cv_need_uscore+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 libltdl_cv_need_uscore=unknown
10541 LIBS="$LIBS $LIBADD_DL"
10542 if test "$cross_compiling" = yes; then :
10543 libltdl_cv_need_uscore=cross
10545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10546 lt_status=$lt_dlunknown
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10548 "configure"
10549 #include "confdefs.h"
10558 # define LT_DLGLOBAL RTLD_GLOBAL
10561 # define LT_DLGLOBAL DL_GLOBAL
10563 # define LT_DLGLOBAL 0
10567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10568 find out it does not work in some platform. */
10569 #ifndef LT_DLLAZY_OR_NOW
10571 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10574 # define LT_DLLAZY_OR_NOW DL_LAZY
10577 # define LT_DLLAZY_OR_NOW RTLD_NOW
10580 # define LT_DLLAZY_OR_NOW DL_NOW
10582 # define LT_DLLAZY_OR_NOW 0
10590 extern "C" void exit (int);
10593 void fnord() { int i=42;}
10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10597 int status = $lt_dlunknown;
10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10603 /* dlclose (self); */
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10616 (./conftest; exit; ) >&5 2>/dev/null
10618 case x$lt_status in
10619 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10620 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10621 x$lt_dlunknown|x*) ;;
10624 # compilation failed
10633 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10634 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10638 if test x"$libltdl_cv_need_uscore" = xyes; then
10640 cat >>confdefs.h <<\_ACEOF
10641 #define NEED_USCORE 1
10647 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10648 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10649 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 # PORTME does your system automatically load deplibs for dlopen?
10653 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10654 # For now, we just catch OSes we know something about -- in the
10655 # future, we'll try test this programmatically.
10656 libltdl_cv_sys_dlopen_deplibs=unknown
10658 aix3*|aix4.1.*|aix4.2.*)
10659 # Unknown whether this is true for these versions of AIX, but
10660 # we want this `case' here to explicitly catch those versions.
10661 libltdl_cv_sys_dlopen_deplibs=unknown
10664 libltdl_cv_sys_dlopen_deplibs=yes
10667 # Assuming the user has installed a libdl from somewhere, this is true
10668 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10669 libltdl_cv_sys_dlopen_deplibs=yes
10671 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10672 # GNU and its variants, using gnu ld.so (Glibc)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10676 libltdl_cv_sys_dlopen_deplibs=yes
10679 libltdl_cv_sys_dlopen_deplibs=yes
10681 irix[12345]*|irix6.[01]*)
10682 # Catch all versions of IRIX before 6.2, and indicate that we don't
10683 # know how it worked for any of those versions.
10684 libltdl_cv_sys_dlopen_deplibs=unknown
10687 # The case above catches anything before 6.2, and it's known that
10688 # at 6.2 and later dlopen does load deplibs.
10689 libltdl_cv_sys_dlopen_deplibs=yes
10692 libltdl_cv_sys_dlopen_deplibs=yes
10695 libltdl_cv_sys_dlopen_deplibs=yes
10698 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10699 # it did *not* use an RPATH in a shared library to find objects the
10700 # library depends on, so we explicitly say `no'.
10701 libltdl_cv_sys_dlopen_deplibs=no
10703 osf5.0|osf5.0a|osf5.1)
10704 # dlopen *does* load deplibs and with the right loader patch applied
10705 # it even uses RPATH in a shared library to search for shared objects
10706 # that the library depends on, but there's no easy way to know if that
10707 # patch is installed. Since this is the case, all we can really
10708 # say is unknown -- it depends on the patch being installed. If
10709 # it is, this changes to `yes'. Without it, it would be `no'.
10710 libltdl_cv_sys_dlopen_deplibs=unknown
10713 # the two cases above should catch all versions of osf <= 5.1. Read
10714 # the comments above for what we know about them.
10715 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10716 # is used to find them so we can finally say `yes'.
10717 libltdl_cv_sys_dlopen_deplibs=yes
10720 libltdl_cv_sys_dlopen_deplibs=yes
10722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10723 libltdl_cv_sys_dlopen_deplibs=yes
10728 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10729 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10730 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10732 cat >>confdefs.h <<\_ACEOF
10733 #define LTDL_DLOPEN_DEPLIBS 1
10739 for ac_header in argz.h
10741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 ac_res=`eval echo '${'$as_ac_Header'}'`
10749 { echo "$as_me:$LINENO: result: $ac_res" >&5
10750 echo "${ECHO_T}$ac_res" >&6; }
10752 # Is the header compilable?
10753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 $ac_includes_default
10762 #include <$ac_header>
10764 rm -f conftest.$ac_objext
10765 if { (ac_try="$ac_compile"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_compile") 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_header_compiler=yes
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_header_compiler=no
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10808 echo "${ECHO_T}$ac_header_compiler" >&6; }
10810 # Is the header present?
10811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10813 cat >conftest.$ac_ext <<_ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <$ac_header>
10821 if { (ac_try="$ac_cpp conftest.$ac_ext"
10822 case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10829 grep -v '^ *+' conftest.er1 >conftest.err
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev/null; then
10834 if test -s conftest.err; then
10835 ac_cpp_err=$ac_c_preproc_warn_flag
10836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10843 if test -z "$ac_cpp_err"; then
10844 ac_header_preproc=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 ac_header_preproc=no
10852 rm -f conftest.err conftest.$ac_ext
10853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10854 echo "${ECHO_T}$ac_header_preproc" >&6; }
10856 # So? What about this header?
10857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10863 ac_header_preproc=yes
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10879 ## ------------------------------------ ##
10880 ## Report this to http://llvm.org/bugs/ ##
10881 ## ------------------------------------ ##
10883 ) | sed "s/^/$as_me: WARNING: /" >&2
10886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 eval "$as_ac_Header=\$ac_header_preproc"
10893 ac_res=`eval echo '${'$as_ac_Header'}'`
10894 { echo "$as_me:$LINENO: result: $ac_res" >&5
10895 echo "${ECHO_T}$ac_res" >&6; }
10898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10908 { echo "$as_me:$LINENO: checking for error_t" >&5
10909 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10910 if test "${ac_cv_type_error_t+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 cat >conftest.$ac_ext <<_ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10923 typedef error_t ac__type_new_;
10927 if ((ac__type_new_ *) 0)
10929 if (sizeof (ac__type_new_))
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10944 grep -v '^ *+' conftest.er1 >conftest.err
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_cv_type_error_t=yes
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_cv_type_error_t=no
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10980 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10981 if test $ac_cv_type_error_t = yes; then
10983 cat >>confdefs.h <<_ACEOF
10984 #define HAVE_ERROR_T 1
10990 cat >>confdefs.h <<\_ACEOF
10991 #define error_t int
11002 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 cat >conftest.$ac_ext <<_ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11018 #define $ac_func innocuous_$ac_func
11020 /* System header to define __stub macros and hopefully few prototypes,
11021 which can conflict with char $ac_func (); below.
11022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11023 <limits.h> exists even on freestanding compilers. */
11026 # include <limits.h>
11028 # include <assert.h>
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11040 /* The GNU C library defines this for functions which it implements
11041 to always fail with ENOSYS. Some functions are actually named
11042 something starting with __ and the normal name is an alias. */
11043 #if defined __stub_$ac_func || defined __stub___$ac_func
11050 return $ac_func ();
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_link") 2>conftest.er1
11064 grep -v '^ *+' conftest.er1 >conftest.err
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070 { (case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_try") 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_try") 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 eval "$as_ac_var=yes"
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 eval "$as_ac_var=no"
11097 rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11100 ac_res=`eval echo '${'$as_ac_var'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 if test `eval echo '${'$as_ac_var'}'` = yes; then
11104 cat >>confdefs.h <<_ACEOF
11105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11133 for ac_header in errno.h malloc.h memory.h unistd.h
11135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 ac_res=`eval echo '${'$as_ac_Header'}'`
11143 { echo "$as_me:$LINENO: result: $ac_res" >&5
11144 echo "${ECHO_T}$ac_res" >&6; }
11146 # Is the header compilable?
11147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11149 cat >conftest.$ac_ext <<_ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 $ac_includes_default
11156 #include <$ac_header>
11158 rm -f conftest.$ac_objext
11159 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11167 grep -v '^ *+' conftest.er1 >conftest.err
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; } &&
11182 { ac_try='test -s conftest.$ac_objext'
11183 { (case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_try") 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_header_compiler=yes
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ac_header_compiler=no
11200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11202 echo "${ECHO_T}$ac_header_compiler" >&6; }
11204 # Is the header present?
11205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11207 cat >conftest.$ac_ext <<_ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 #include <$ac_header>
11215 if { (ac_try="$ac_cpp conftest.$ac_ext"
11216 case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11223 grep -v '^ *+' conftest.er1 >conftest.err
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } >/dev/null; then
11228 if test -s conftest.err; then
11229 ac_cpp_err=$ac_c_preproc_warn_flag
11230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11237 if test -z "$ac_cpp_err"; then
11238 ac_header_preproc=yes
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11243 ac_header_preproc=no
11246 rm -f conftest.err conftest.$ac_ext
11247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11248 echo "${ECHO_T}$ac_header_preproc" >&6; }
11250 # So? What about this header?
11251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11257 ac_header_preproc=yes
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11273 ## ------------------------------------ ##
11274 ## Report this to http://llvm.org/bugs/ ##
11275 ## ------------------------------------ ##
11277 ) | sed "s/^/$as_me: WARNING: /" >&2
11280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 eval "$as_ac_Header=\$ac_header_preproc"
11287 ac_res=`eval echo '${'$as_ac_Header'}'`
11288 { echo "$as_me:$LINENO: result: $ac_res" >&5
11289 echo "${ECHO_T}$ac_res" >&6; }
11292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11293 cat >>confdefs.h <<_ACEOF
11294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302 for ac_header in mach-o/dyld.h
11304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 ac_res=`eval echo '${'$as_ac_Header'}'`
11312 { echo "$as_me:$LINENO: result: $ac_res" >&5
11313 echo "${ECHO_T}$ac_res" >&6; }
11315 # Is the header compilable?
11316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 $ac_includes_default
11325 #include <$ac_header>
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11351 { ac_try='test -s conftest.$ac_objext'
11352 { (case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_try") 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_header_compiler=yes
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_header_compiler=no
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371 echo "${ECHO_T}$ac_header_compiler" >&6; }
11373 # Is the header present?
11374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 #include <$ac_header>
11384 if { (ac_try="$ac_cpp conftest.$ac_ext"
11385 case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11392 grep -v '^ *+' conftest.er1 >conftest.err
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
11399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11406 if test -z "$ac_cpp_err"; then
11407 ac_header_preproc=yes
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_header_preproc=no
11415 rm -f conftest.err conftest.$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6; }
11419 # So? What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426 ac_header_preproc=yes
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11442 ## ------------------------------------ ##
11443 ## Report this to http://llvm.org/bugs/ ##
11444 ## ------------------------------------ ##
11446 ) | sed "s/^/$as_me: WARNING: /" >&2
11449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 eval "$as_ac_Header=\$ac_header_preproc"
11456 ac_res=`eval echo '${'$as_ac_Header'}'`
11457 { echo "$as_me:$LINENO: result: $ac_res" >&5
11458 echo "${ECHO_T}$ac_res" >&6; }
11461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474 for ac_func in closedir opendir readdir
11476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11490 #define $ac_func innocuous_$ac_func
11492 /* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func (); below.
11494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11495 <limits.h> exists even on freestanding compilers. */
11498 # include <limits.h>
11500 # include <assert.h>
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11512 /* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
11515 #if defined __stub_$ac_func || defined __stub___$ac_func
11522 return $ac_func ();
11527 rm -f conftest.$ac_objext conftest$ac_exeext
11528 if { (ac_try="$ac_link"
11529 case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_link") 2>conftest.er1
11536 grep -v '^ *+' conftest.er1 >conftest.err
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542 { (case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_try") 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest$ac_exeext'
11552 { (case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_try") 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 eval "$as_ac_var=yes"
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 eval "$as_ac_var=no"
11569 rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11572 ac_res=`eval echo '${'$as_ac_var'}'`
11573 { echo "$as_me:$LINENO: result: $ac_res" >&5
11574 echo "${ECHO_T}$ac_res" >&6; }
11575 if test `eval echo '${'$as_ac_var'}'` = yes; then
11576 cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11585 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11586 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11599 if test "$GCC" != "yes" && test "$ICC" != "yes"
11601 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11602 echo "$as_me: error: gcc|icc required but not found" >&2;}
11603 { (exit 1); exit 1; }; }
11606 if test "$GXX" != "yes" && test "$IXX" != "yes"
11608 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11609 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11610 { (exit 1); exit 1; }; }
11613 if test "$GCC" = "yes"
11615 cat >conftest.$ac_ext <<_ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11623 #if !defined(__GNUC__) || __GNUC__ < 3
11624 #error Unsupported GCC version
11629 rm -f conftest.$ac_objext
11630 if { (ac_try="$ac_compile"
11631 case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_compile") 2>conftest.er1
11638 grep -v '^ *+' conftest.er1 >conftest.err
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11644 { (case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_try") 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_try") 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11669 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11670 { (exit 1); exit 1; }; }
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 if test -z "$llvm_cv_gnu_make_command"
11678 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11679 echo "$as_me: error: GNU Make required but not found" >&2;}
11680 { (exit 1); exit 1; }; }
11683 { echo "$as_me:$LINENO: result: ok" >&5
11684 echo "${ECHO_T}ok" >&6; }
11686 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11687 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11688 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11690 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11692 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11696 NO_MAYBE_UNINITIALIZED=
11697 if test "$GXX" = "yes"
11699 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11701 if test -z "$NO_MAYBE_UNINITIALIZED"
11703 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11707 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11708 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11711 # Check whether --with-python was given.
11712 if test "${with_python+set}" = set; then
11713 withval=$with_python; PYTHON="$withval"
11717 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11718 { echo "$as_me:$LINENO: checking for python" >&5
11719 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11720 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11721 echo "${ECHO_T}user defined: $with_python" >&6; }
11723 if test -n "$PYTHON" ; then
11724 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11725 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11728 # Extract the first word of "python python2 python26", so it can be a program name with args.
11729 set dummy python python2 python26; ac_word=$2
11730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11732 if test "${ac_cv_path_PYTHON+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11756 echo "${ECHO_T}not found" >&6; }
11757 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11758 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11759 { (exit 1); exit 1; }; }"
11763 PYTHON=$ac_cv_path_PYTHON
11764 if test -n "$PYTHON"; then
11765 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11766 echo "${ECHO_T}$PYTHON" >&6; }
11768 { echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6; }
11775 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11776 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11777 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11778 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11779 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11780 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11781 if test "$ac_python_version_major" -eq "2" \
11782 && test "$ac_python_version_minor" -ge "5" ; then
11783 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11784 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11786 { echo "$as_me:$LINENO: result: not found" >&5
11787 echo "${ECHO_T}not found" >&6; }
11788 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11789 See \`config.log' for more details." >&5
11790 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11791 See \`config.log' for more details." >&2;}
11792 { (exit 1); exit 1; }; }
11797 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11798 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11799 if test "${ac_cv_lib_m_sin+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 ac_check_lib_save_LIBS=$LIBS
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11811 /* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; } &&
11850 { ac_try='test -s conftest$ac_exeext'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_cv_lib_m_sin=yes
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11872 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11873 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11874 if test $ac_cv_lib_m_sin = yes; then
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_LIBM 1
11883 if test "$llvm_cv_os_type" = "MingW" ; then
11885 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11886 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11887 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 ac_check_lib_save_LIBS=$LIBS
11891 LIBS="-limagehlp $LIBS"
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
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 ac_cv_lib_imagehlp_main=yes
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 ac_cv_lib_imagehlp_main=no
11950 rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11954 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11955 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11956 if test $ac_cv_lib_imagehlp_main = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define HAVE_LIBIMAGEHLP 1
11961 LIBS="-limagehlp $LIBS"
11966 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11967 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11968 if test "${ac_cv_lib_psapi_main+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 ac_check_lib_save_LIBS=$LIBS
11972 LIBS="-lpsapi $LIBS"
11973 cat >conftest.$ac_ext <<_ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (ac_try="$ac_link"
11991 case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_link") 2>conftest.er1
11998 grep -v '^ *+' conftest.er1 >conftest.err
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12004 { (case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_try") 2>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; } &&
12013 { ac_try='test -s conftest$ac_exeext'
12014 { (case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_try") 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 ac_cv_lib_psapi_main=yes
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 ac_cv_lib_psapi_main=no
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12035 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12036 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12037 if test $ac_cv_lib_psapi_main = yes; then
12038 cat >>confdefs.h <<_ACEOF
12039 #define HAVE_LIBPSAPI 1
12042 LIBS="-lpsapi $LIBS"
12048 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12049 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12050 if test "${ac_cv_search_dlopen+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 ac_func_search_save_LIBS=$LIBS
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12061 /* Override any GCC internal prototype to avoid an error.
12062 Use char because int might match the return type of a GCC
12063 builtin and then its argument prototype would still apply. */
12076 for ac_lib in '' dl; do
12077 if test -z "$ac_lib"; then
12078 ac_res="none required"
12081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (ac_try="$ac_link"
12085 case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_link") 2>conftest.er1
12092 grep -v '^ *+' conftest.er1 >conftest.err
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12098 { (case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_try") 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; } &&
12107 { ac_try='test -s conftest$ac_exeext'
12108 { (case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_try") 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_cv_search_dlopen=$ac_res
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12125 rm -f core conftest.err conftest.$ac_objext \
12127 if test "${ac_cv_search_dlopen+set}" = set; then
12131 if test "${ac_cv_search_dlopen+set}" = set; then
12134 ac_cv_search_dlopen=no
12136 rm conftest.$ac_ext
12137 LIBS=$ac_func_search_save_LIBS
12139 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12140 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12141 ac_res=$ac_cv_search_dlopen
12142 if test "$ac_res" != no; then
12143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12145 cat >>confdefs.h <<\_ACEOF
12146 #define HAVE_DLOPEN 1
12150 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12151 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12155 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12156 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12157 if test "${ac_cv_search_clock_gettime+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 ac_func_search_save_LIBS=$LIBS
12161 cat >conftest.$ac_ext <<_ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12168 /* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12174 char clock_gettime ();
12178 return clock_gettime ();
12183 for ac_lib in '' rt; do
12184 if test -z "$ac_lib"; then
12185 ac_res="none required"
12188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (ac_try="$ac_link"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_link") 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest$ac_exeext'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_search_clock_gettime=$ac_res
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12232 rm -f core conftest.err conftest.$ac_objext \
12234 if test "${ac_cv_search_clock_gettime+set}" = set; then
12238 if test "${ac_cv_search_clock_gettime+set}" = set; then
12241 ac_cv_search_clock_gettime=no
12243 rm conftest.$ac_ext
12244 LIBS=$ac_func_search_save_LIBS
12246 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12247 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12248 ac_res=$ac_cv_search_clock_gettime
12249 if test "$ac_res" != no; then
12250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12255 if test "$llvm_cv_enable_libffi" = "yes" ; then
12256 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12257 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12258 if test "${ac_cv_search_ffi_call+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 ac_func_search_save_LIBS=$LIBS
12262 cat >conftest.$ac_ext <<_ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12269 /* Override any GCC internal prototype to avoid an error.
12270 Use char because int might match the return type of a GCC
12271 builtin and then its argument prototype would still apply. */
12279 return ffi_call ();
12284 for ac_lib in '' ffi; do
12285 if test -z "$ac_lib"; then
12286 ac_res="none required"
12289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12291 rm -f conftest.$ac_objext conftest$ac_exeext
12292 if { (ac_try="$ac_link"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_link") 2>conftest.er1
12300 grep -v '^ *+' conftest.er1 >conftest.err
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12306 { (case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_try") 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } &&
12315 { ac_try='test -s conftest$ac_exeext'
12316 { (case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_try") 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_search_ffi_call=$ac_res
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12333 rm -f core conftest.err conftest.$ac_objext \
12335 if test "${ac_cv_search_ffi_call+set}" = set; then
12339 if test "${ac_cv_search_ffi_call+set}" = set; then
12342 ac_cv_search_ffi_call=no
12344 rm conftest.$ac_ext
12345 LIBS=$ac_func_search_save_LIBS
12347 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12348 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12349 ac_res=$ac_cv_search_ffi_call
12350 if test "$ac_res" != no; then
12351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12353 cat >>confdefs.h <<\_ACEOF
12354 #define HAVE_FFI_CALL 1
12358 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12359 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12360 { (exit 1); exit 1; }; }
12365 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12366 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12367 if test "${ac_cv_search_mallinfo+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 ac_func_search_save_LIBS=$LIBS
12371 cat >conftest.$ac_ext <<_ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12388 return mallinfo ();
12393 for ac_lib in '' malloc; do
12394 if test -z "$ac_lib"; then
12395 ac_res="none required"
12398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12400 rm -f conftest.$ac_objext conftest$ac_exeext
12401 if { (ac_try="$ac_link"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_link") 2>conftest.er1
12409 grep -v '^ *+' conftest.er1 >conftest.err
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12415 { (case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_try") 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_try") 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 ac_cv_search_mallinfo=$ac_res
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12442 rm -f core conftest.err conftest.$ac_objext \
12444 if test "${ac_cv_search_mallinfo+set}" = set; then
12448 if test "${ac_cv_search_mallinfo+set}" = set; then
12451 ac_cv_search_mallinfo=no
12453 rm conftest.$ac_ext
12454 LIBS=$ac_func_search_save_LIBS
12456 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12457 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12458 ac_res=$ac_cv_search_mallinfo
12459 if test "$ac_res" != no; then
12460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12462 cat >>confdefs.h <<\_ACEOF
12463 #define HAVE_MALLINFO 1
12469 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12471 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12472 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12473 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-lpthread $LIBS"
12478 cat >conftest.$ac_ext <<_ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12485 /* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12491 char pthread_mutex_init ();
12495 return pthread_mutex_init ();
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_link") 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12515 { (case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_try") 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest$ac_exeext'
12525 { (case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_try") 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_lib_pthread_pthread_mutex_init=yes
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 ac_cv_lib_pthread_pthread_mutex_init=no
12542 rm -f core conftest.err conftest.$ac_objext \
12543 conftest$ac_exeext conftest.$ac_ext
12544 LIBS=$ac_check_lib_save_LIBS
12546 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12547 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12548 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12549 cat >>confdefs.h <<_ACEOF
12550 #define HAVE_LIBPTHREAD 1
12553 LIBS="-lpthread $LIBS"
12557 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12558 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12559 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 ac_func_search_save_LIBS=$LIBS
12563 cat >conftest.$ac_ext <<_ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 /* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
12576 char pthread_mutex_lock ();
12580 return pthread_mutex_lock ();
12585 for ac_lib in '' pthread; do
12586 if test -z "$ac_lib"; then
12587 ac_res="none required"
12590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12592 rm -f conftest.$ac_objext conftest$ac_exeext
12593 if { (ac_try="$ac_link"
12594 case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_link") 2>conftest.er1
12601 grep -v '^ *+' conftest.er1 >conftest.err
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12607 { (case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_try") 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest$ac_exeext'
12617 { (case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_try") 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_cv_search_pthread_mutex_lock=$ac_res
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12634 rm -f core conftest.err conftest.$ac_objext \
12636 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12640 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12643 ac_cv_search_pthread_mutex_lock=no
12645 rm conftest.$ac_ext
12646 LIBS=$ac_func_search_save_LIBS
12648 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12649 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12650 ac_res=$ac_cv_search_pthread_mutex_lock
12651 if test "$ac_res" != no; then
12652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12654 cat >>confdefs.h <<\_ACEOF
12655 #define HAVE_PTHREAD_MUTEX_LOCK 1
12660 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12661 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12662 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 ac_func_search_save_LIBS=$LIBS
12666 cat >conftest.$ac_ext <<_ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12679 char pthread_rwlock_init ();
12683 return pthread_rwlock_init ();
12688 for ac_lib in '' pthread; do
12689 if test -z "$ac_lib"; then
12690 ac_res="none required"
12693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12695 rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (ac_try="$ac_link"
12697 case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_link") 2>conftest.er1
12704 grep -v '^ *+' conftest.er1 >conftest.err
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; } &&
12719 { ac_try='test -s conftest$ac_exeext'
12720 { (case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_try") 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_cv_search_pthread_rwlock_init=$ac_res
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12737 rm -f core conftest.err conftest.$ac_objext \
12739 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12743 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12746 ac_cv_search_pthread_rwlock_init=no
12748 rm conftest.$ac_ext
12749 LIBS=$ac_func_search_save_LIBS
12751 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12752 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12753 ac_res=$ac_cv_search_pthread_rwlock_init
12754 if test "$ac_res" != no; then
12755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_PTHREAD_RWLOCK_INIT 1
12763 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12764 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12765 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 ac_func_search_save_LIBS=$LIBS
12769 cat >conftest.$ac_ext <<_ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12782 char pthread_getspecific ();
12786 return pthread_getspecific ();
12791 for ac_lib in '' pthread; do
12792 if test -z "$ac_lib"; then
12793 ac_res="none required"
12796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12798 rm -f conftest.$ac_objext conftest$ac_exeext
12799 if { (ac_try="$ac_link"
12800 case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_link") 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12813 { (case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_try") 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } &&
12822 { ac_try='test -s conftest$ac_exeext'
12823 { (case "(($ac_try" in
12824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825 *) ac_try_echo=$ac_try;;
12827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828 (eval "$ac_try") 2>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 ac_cv_search_pthread_getspecific=$ac_res
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12840 rm -f core conftest.err conftest.$ac_objext \
12842 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12846 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12849 ac_cv_search_pthread_getspecific=no
12851 rm conftest.$ac_ext
12852 LIBS=$ac_func_search_save_LIBS
12854 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12855 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12856 ac_res=$ac_cv_search_pthread_getspecific
12857 if test "$ac_res" != no; then
12858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12860 cat >>confdefs.h <<\_ACEOF
12861 #define HAVE_PTHREAD_GETSPECIFIC 1
12868 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12870 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12871 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
12872 if test "${ac_cv_lib_z_compress2+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 ac_check_lib_save_LIBS=$LIBS
12877 cat >conftest.$ac_ext <<_ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12884 /* Override any GCC internal prototype to avoid an error.
12885 Use char because int might match the return type of a GCC
12886 builtin and then its argument prototype would still apply. */
12894 return compress2 ();
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (ac_try="$ac_link"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_link") 2>conftest.er1
12908 grep -v '^ *+' conftest.er1 >conftest.err
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12914 { (case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_try") 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest$ac_exeext'
12924 { (case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_try") 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_cv_lib_z_compress2=yes
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 ac_cv_lib_z_compress2=no
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12945 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
12946 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
12947 if test $ac_cv_lib_z_compress2 = yes; then
12948 cat >>confdefs.h <<_ACEOF
12949 #define HAVE_LIBZ 1
12959 # Check whether --with-udis86 was given.
12960 if test "${with_udis86+set}" = set; then
12961 withval=$with_udis86;
12966 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12969 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12970 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12971 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 ac_check_lib_save_LIBS=$LIBS
12975 LIBS="-ludis86 $LIBS"
12976 cat >conftest.$ac_ext <<_ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12983 /* Override any GCC internal prototype to avoid an error.
12984 Use char because int might match the return type of a GCC
12985 builtin and then its argument prototype would still apply. */
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (ac_try="$ac_link"
13000 case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_link") 2>conftest.er1
13007 grep -v '^ *+' conftest.er1 >conftest.err
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } &&
13012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13013 { (case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_try") 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; } &&
13022 { ac_try='test -s conftest$ac_exeext'
13023 { (case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_try") 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_cv_lib_udis86_ud_init=yes
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13037 ac_cv_lib_udis86_ud_init=no
13040 rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13042 LIBS=$ac_check_lib_save_LIBS
13044 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13045 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13046 if test $ac_cv_lib_udis86_ud_init = yes; then
13047 cat >>confdefs.h <<_ACEOF
13048 #define HAVE_LIBUDIS86 1
13051 LIBS="-ludis86 $LIBS"
13055 echo "Error! You need to have libudis86 around."
13067 cat >>confdefs.h <<_ACEOF
13068 #define USE_UDIS86 $USE_UDIS86
13073 # Check whether --with-oprofile was given.
13074 if test "${with_oprofile+set}" = set; then
13075 withval=$with_oprofile;
13079 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13080 no) llvm_cv_oppath=
13083 *) llvm_cv_oppath="${withval}/lib/oprofile"
13084 CPPFLAGS="-I${withval}/include";;
13086 case $llvm_cv_os_type in
13088 if test -n "$llvm_cv_oppath" ; then
13089 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13090 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13091 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13092 if test "${ac_cv_search_bfd_init+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 ac_func_search_save_LIBS=$LIBS
13096 cat >conftest.$ac_ext <<_ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13103 /* Override any GCC internal prototype to avoid an error.
13104 Use char because int might match the return type of a GCC
13105 builtin and then its argument prototype would still apply. */
13113 return bfd_init ();
13118 for ac_lib in '' bfd; do
13119 if test -z "$ac_lib"; then
13120 ac_res="none required"
13123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13125 rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (ac_try="$ac_link"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_link") 2>conftest.er1
13134 grep -v '^ *+' conftest.er1 >conftest.err
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13140 { (case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_try") 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; } &&
13149 { ac_try='test -s conftest$ac_exeext'
13150 { (case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_try") 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }; then
13159 ac_cv_search_bfd_init=$ac_res
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13167 rm -f core conftest.err conftest.$ac_objext \
13169 if test "${ac_cv_search_bfd_init+set}" = set; then
13173 if test "${ac_cv_search_bfd_init+set}" = set; then
13176 ac_cv_search_bfd_init=no
13178 rm conftest.$ac_ext
13179 LIBS=$ac_func_search_save_LIBS
13181 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13182 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13183 ac_res=$ac_cv_search_bfd_init
13184 if test "$ac_res" != no; then
13185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13189 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13190 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13191 if test "${ac_cv_search_op_open_agent+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 ac_func_search_save_LIBS=$LIBS
13195 cat >conftest.$ac_ext <<_ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13208 char op_open_agent ();
13212 return op_open_agent ();
13217 for ac_lib in '' opagent; do
13218 if test -z "$ac_lib"; then
13219 ac_res="none required"
13222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13239 { (case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_try") 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest$ac_exeext'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 ac_cv_search_op_open_agent=$ac_res
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13266 rm -f core conftest.err conftest.$ac_objext \
13268 if test "${ac_cv_search_op_open_agent+set}" = set; then
13272 if test "${ac_cv_search_op_open_agent+set}" = set; then
13275 ac_cv_search_op_open_agent=no
13277 rm conftest.$ac_ext
13278 LIBS=$ac_func_search_save_LIBS
13280 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13281 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13282 ac_res=$ac_cv_search_op_open_agent
13283 if test "$ac_res" != no; then
13284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13288 echo "Error! You need to have libopagent around."
13293 if test "${ac_cv_header_opagent_h+set}" = set; then
13294 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13295 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13296 if test "${ac_cv_header_opagent_h+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13300 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13302 # Is the header compilable?
13303 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13304 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13305 cat >conftest.$ac_ext <<_ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 $ac_includes_default
13312 #include <opagent.h>
13314 rm -f conftest.$ac_objext
13315 if { (ac_try="$ac_compile"
13316 case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_compile") 2>conftest.er1
13323 grep -v '^ *+' conftest.er1 >conftest.err
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest.$ac_objext'
13339 { (case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_try") 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_header_compiler=yes
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 ac_header_compiler=no
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13358 echo "${ECHO_T}$ac_header_compiler" >&6; }
13360 # Is the header present?
13361 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13362 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 #include <opagent.h>
13371 if { (ac_try="$ac_cpp conftest.$ac_ext"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } >/dev/null; then
13384 if test -s conftest.err; then
13385 ac_cpp_err=$ac_c_preproc_warn_flag
13386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13393 if test -z "$ac_cpp_err"; then
13394 ac_header_preproc=yes
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 ac_header_preproc=no
13402 rm -f conftest.err conftest.$ac_ext
13403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13404 echo "${ECHO_T}$ac_header_preproc" >&6; }
13406 # So? What about this header?
13407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13409 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13410 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13412 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13413 ac_header_preproc=yes
13416 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13417 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13419 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13421 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13423 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13425 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13427 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13429 ## ------------------------------------ ##
13430 ## Report this to http://llvm.org/bugs/ ##
13431 ## ------------------------------------ ##
13433 ) | sed "s/^/$as_me: WARNING: /" >&2
13436 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13437 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13438 if test "${ac_cv_header_opagent_h+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 ac_cv_header_opagent_h=$ac_header_preproc
13443 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13444 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13447 if test $ac_cv_header_opagent_h = yes; then
13451 echo "Error! You need to have opagent.h around."
13459 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13460 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13461 { (exit 1); exit 1; }; } ;;
13472 cat >>confdefs.h <<_ACEOF
13473 #define LLVM_USE_OPROFILE $USE_OPROFILE
13478 # Check whether --with-intel-jitevents was given.
13479 if test "${with_intel_jitevents+set}" = set; then
13480 withval=$with_intel_jitevents;
13482 yes) USE_INTEL_JITEVENTS=1
13484 no) USE_INTEL_JITEVENTS=0
13486 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13487 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13488 { (exit 1); exit 1; }; };;
13491 case $llvm_cv_os_type in
13492 Linux|Win32|Cygwin|MingW) ;;
13493 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13494 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13495 { (exit 1); exit 1; }; };;
13498 case "$llvm_cv_target_arch" in
13500 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13501 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13502 { (exit 1); exit 1; }; };;
13507 USE_INTEL_JITEVENTS=0
13513 cat >>confdefs.h <<_ACEOF
13514 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13518 for ac_prog in xml2-config
13520 # Extract the first word of "$ac_prog", so it can be a program name with args.
13521 set dummy $ac_prog; ac_word=$2
13522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13524 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 if test -n "$XML2CONFIG"; then
13528 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
13536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13537 ac_cv_prog_XML2CONFIG="$ac_prog"
13538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13547 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13548 if test -n "$XML2CONFIG"; then
13549 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13550 echo "${ECHO_T}$XML2CONFIG" >&6; }
13552 { echo "$as_me:$LINENO: result: no" >&5
13553 echo "${ECHO_T}no" >&6; }
13557 test -n "$XML2CONFIG" && break
13561 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13562 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13563 if test "x$XML2CONFIG" = "x"; then
13564 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13565 echo "${ECHO_T}xml2-config not found" >&6; }
13567 LIBXML2_INC=`$XML2CONFIG --cflags`
13568 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13569 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13570 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13571 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13572 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-lxml2 $LIBS"
13577 cat >conftest.$ac_ext <<_ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13590 char xmlReadFile ();
13594 return xmlReadFile ();
13599 rm -f conftest.$ac_objext conftest$ac_exeext
13600 if { (ac_try="$ac_link"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_link") 2>conftest.er1
13608 grep -v '^ *+' conftest.er1 >conftest.err
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13614 { (case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_try") 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest$ac_exeext'
13624 { (case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_try") 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_lib_xml2_xmlReadFile=yes
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_cv_lib_xml2_xmlReadFile=no
13641 rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
13643 LIBS=$ac_check_lib_save_LIBS
13645 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13646 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13647 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13649 cat >>confdefs.h <<\_ACEOF
13650 #define CLANG_HAVE_LIBXML 1
13653 LIBXML2_LIBS="-lxml2"
13666 ac_header_dirent=no
13667 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13668 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13669 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13670 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 cat >conftest.$ac_ext <<_ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 #include <sys/types.h>
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13701 grep -v '^ *+' conftest.er1 >conftest.err
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 eval "$as_ac_Header=yes"
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 eval "$as_ac_Header=no"
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 ac_res=`eval echo '${'$as_ac_Header'}'`
13737 { echo "$as_me:$LINENO: result: $ac_res" >&5
13738 echo "${ECHO_T}$ac_res" >&6; }
13739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13740 cat >>confdefs.h <<_ACEOF
13741 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13744 ac_header_dirent=$ac_hdr; break
13748 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13749 if test $ac_header_dirent = dirent.h; then
13750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13752 if test "${ac_cv_search_opendir+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 ac_func_search_save_LIBS=$LIBS
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 /* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13778 for ac_lib in '' dir; do
13779 if test -z "$ac_lib"; then
13780 ac_res="none required"
13783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13785 rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>conftest.er1
13794 grep -v '^ *+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800 { (case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_try") 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest$ac_exeext'
13810 { (case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_try") 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_search_opendir=$ac_res
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13827 rm -f core conftest.err conftest.$ac_objext \
13829 if test "${ac_cv_search_opendir+set}" = set; then
13833 if test "${ac_cv_search_opendir+set}" = set; then
13836 ac_cv_search_opendir=no
13838 rm conftest.$ac_ext
13839 LIBS=$ac_func_search_save_LIBS
13841 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13843 ac_res=$ac_cv_search_opendir
13844 if test "$ac_res" != no; then
13845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13850 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13852 if test "${ac_cv_search_opendir+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 ac_func_search_save_LIBS=$LIBS
13856 cat >conftest.$ac_ext <<_ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13863 /* Override any GCC internal prototype to avoid an error.
13864 Use char because int might match the return type of a GCC
13865 builtin and then its argument prototype would still apply. */
13878 for ac_lib in '' x; do
13879 if test -z "$ac_lib"; then
13880 ac_res="none required"
13883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13885 rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (ac_try="$ac_link"
13887 case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_link") 2>conftest.er1
13894 grep -v '^ *+' conftest.er1 >conftest.err
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest$ac_exeext'
13910 { (case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_try") 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_cv_search_opendir=$ac_res
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13927 rm -f core conftest.err conftest.$ac_objext \
13929 if test "${ac_cv_search_opendir+set}" = set; then
13933 if test "${ac_cv_search_opendir+set}" = set; then
13936 ac_cv_search_opendir=no
13938 rm conftest.$ac_ext
13939 LIBS=$ac_func_search_save_LIBS
13941 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13942 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13943 ac_res=$ac_cv_search_opendir
13944 if test "$ac_res" != no; then
13945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13951 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13952 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_mmap_anon+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 ac_cpp='$CPP $CPPFLAGS'
13958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962 cat >conftest.$ac_ext <<_ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #include <sys/mman.h>
13969 #include <unistd.h>
13974 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_compile") 2>conftest.er1
13988 grep -v '^ *+' conftest.er1 >conftest.err
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994 { (case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_try") 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest.$ac_objext'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_header_mmap_anon=yes
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14018 ac_cv_header_mmap_anon=no
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14030 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14031 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14032 if test "$ac_cv_header_mmap_anon" = yes; then
14034 cat >>confdefs.h <<\_ACEOF
14035 #define HAVE_MMAP_ANONYMOUS 1
14040 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14041 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_stat_broken+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 cat >conftest.$ac_ext <<_ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 #include <sys/types.h>
14052 #include <sys/stat.h>
14054 #if defined S_ISBLK && defined S_IFDIR
14055 # if S_ISBLK (S_IFDIR)
14060 #if defined S_ISBLK && defined S_IFCHR
14061 # if S_ISBLK (S_IFCHR)
14066 #if defined S_ISLNK && defined S_IFREG
14067 # if S_ISLNK (S_IFREG)
14072 #if defined S_ISSOCK && defined S_IFREG
14073 # if S_ISSOCK (S_IFREG)
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080 $EGREP "You lose" >/dev/null 2>&1; then
14081 ac_cv_header_stat_broken=yes
14083 ac_cv_header_stat_broken=no
14088 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14089 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14090 if test $ac_cv_header_stat_broken = yes; then
14092 cat >>confdefs.h <<\_ACEOF
14093 #define STAT_MACROS_BROKEN 1
14098 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 cat >conftest.$ac_ext <<_ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h. */
14109 #include <sys/types.h>
14110 #include <sys/wait.h>
14111 #ifndef WEXITSTATUS
14112 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14128 rm -f conftest.$ac_objext
14129 if { (ac_try="$ac_compile"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_compile") 2>conftest.er1
14137 grep -v '^ *+' conftest.er1 >conftest.err
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143 { (case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_try") 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest.$ac_objext'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_cv_header_sys_wait_h=yes
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_cv_header_sys_wait_h=no
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14173 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14174 if test $ac_cv_header_sys_wait_h = yes; then
14176 cat >>confdefs.h <<\_ACEOF
14177 #define HAVE_SYS_WAIT_H 1
14182 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14183 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14184 if test "${ac_cv_header_time+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 cat >conftest.$ac_ext <<_ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14193 #include <sys/types.h>
14194 #include <sys/time.h>
14200 if ((struct tm *) 0)
14206 rm -f conftest.$ac_objext
14207 if { (ac_try="$ac_compile"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_compile") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest.$ac_objext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_header_time=yes
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14245 ac_cv_header_time=no
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14251 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14252 if test $ac_cv_header_time = yes; then
14254 cat >>confdefs.h <<\_ACEOF
14255 #define TIME_WITH_SYS_TIME 1
14262 ac_cpp='$CXXCPP $CPPFLAGS'
14263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14268 ac_cpp='$CXXCPP $CPPFLAGS'
14269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14272 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14273 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14274 if test -z "$CXXCPP"; then
14275 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 # Double quotes because CXXCPP needs to be expanded
14279 for CXXCPP in "$CXX -E" "/lib/cpp"
14281 ac_preproc_ok=false
14282 for ac_cxx_preproc_warn_flag in '' yes
14284 # Use a header file that comes with gcc, so configuring glibc
14285 # with a fresh cross-compiler works.
14286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14287 # <limits.h> exists even on freestanding compilers.
14288 # On the NeXT, cc -E runs the code through the compiler's parser,
14289 # not just through cpp. "Syntax error" is here to catch this case.
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14297 # include <limits.h>
14299 # include <assert.h>
14303 if { (ac_try="$ac_cpp conftest.$ac_ext"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14311 grep -v '^ *+' conftest.er1 >conftest.err
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } >/dev/null; then
14316 if test -s conftest.err; then
14317 ac_cpp_err=$ac_cxx_preproc_warn_flag
14318 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14325 if test -z "$ac_cpp_err"; then
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 # Broken: fails on valid input.
14335 rm -f conftest.err conftest.$ac_ext
14337 # OK, works on sane cases. Now check whether nonexistent headers
14338 # can be detected and how.
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <ac_nonexistent.h>
14347 if { (ac_try="$ac_cpp conftest.$ac_ext"
14348 case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14355 grep -v '^ *+' conftest.er1 >conftest.err
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } >/dev/null; then
14360 if test -s conftest.err; then
14361 ac_cpp_err=$ac_cxx_preproc_warn_flag
14362 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14369 if test -z "$ac_cpp_err"; then
14370 # Broken: success on invalid input.
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 # Passes both tests.
14381 rm -f conftest.err conftest.$ac_ext
14384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14385 rm -f conftest.err conftest.$ac_ext
14386 if $ac_preproc_ok; then
14391 ac_cv_prog_CXXCPP=$CXXCPP
14394 CXXCPP=$ac_cv_prog_CXXCPP
14396 ac_cv_prog_CXXCPP=$CXXCPP
14398 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14399 echo "${ECHO_T}$CXXCPP" >&6; }
14400 ac_preproc_ok=false
14401 for ac_cxx_preproc_warn_flag in '' yes
14403 # Use a header file that comes with gcc, so configuring glibc
14404 # with a fresh cross-compiler works.
14405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14406 # <limits.h> exists even on freestanding compilers.
14407 # On the NeXT, cc -E runs the code through the compiler's parser,
14408 # not just through cpp. "Syntax error" is here to catch this case.
14409 cat >conftest.$ac_ext <<_ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14416 # include <limits.h>
14418 # include <assert.h>
14422 if { (ac_try="$ac_cpp conftest.$ac_ext"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } >/dev/null; then
14435 if test -s conftest.err; then
14436 ac_cpp_err=$ac_cxx_preproc_warn_flag
14437 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14444 if test -z "$ac_cpp_err"; then
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14450 # Broken: fails on valid input.
14454 rm -f conftest.err conftest.$ac_ext
14456 # OK, works on sane cases. Now check whether nonexistent headers
14457 # can be detected and how.
14458 cat >conftest.$ac_ext <<_ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14464 #include <ac_nonexistent.h>
14466 if { (ac_try="$ac_cpp conftest.$ac_ext"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14474 grep -v '^ *+' conftest.er1 >conftest.err
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } >/dev/null; then
14479 if test -s conftest.err; then
14480 ac_cpp_err=$ac_cxx_preproc_warn_flag
14481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14488 if test -z "$ac_cpp_err"; then
14489 # Broken: success on invalid input.
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 # Passes both tests.
14500 rm -f conftest.err conftest.$ac_ext
14503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14504 rm -f conftest.err conftest.$ac_ext
14505 if $ac_preproc_ok; then
14508 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14509 See \`config.log' for more details." >&5
14510 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14511 See \`config.log' for more details." >&2;}
14512 { (exit 1); exit 1; }; }
14516 ac_cpp='$CXXCPP $CPPFLAGS'
14517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14523 for ac_header in cxxabi.h
14525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 ac_res=`eval echo '${'$as_ac_Header'}'`
14533 { echo "$as_me:$LINENO: result: $ac_res" >&5
14534 echo "${ECHO_T}$ac_res" >&6; }
14536 # Is the header compilable?
14537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 $ac_includes_default
14546 #include <$ac_header>
14548 rm -f conftest.$ac_objext
14549 if { (ac_try="$ac_compile"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_compile") 2>conftest.er1
14557 grep -v '^ *+' conftest.er1 >conftest.err
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14563 { (case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_try") 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest.$ac_objext'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
14582 ac_header_compiler=yes
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14587 ac_header_compiler=no
14590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14592 echo "${ECHO_T}$ac_header_compiler" >&6; }
14594 # Is the header present?
14595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14597 cat >conftest.$ac_ext <<_ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14603 #include <$ac_header>
14605 if { (ac_try="$ac_cpp conftest.$ac_ext"
14606 case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14613 grep -v '^ *+' conftest.er1 >conftest.err
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } >/dev/null; then
14618 if test -s conftest.err; then
14619 ac_cpp_err=$ac_cxx_preproc_warn_flag
14620 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14627 if test -z "$ac_cpp_err"; then
14628 ac_header_preproc=yes
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ac_header_preproc=no
14636 rm -f conftest.err conftest.$ac_ext
14637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14638 echo "${ECHO_T}$ac_header_preproc" >&6; }
14640 # So? What about this header?
14641 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14647 ac_header_preproc=yes
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14663 ## ------------------------------------ ##
14664 ## Report this to http://llvm.org/bugs/ ##
14665 ## ------------------------------------ ##
14667 ) | sed "s/^/$as_me: WARNING: /" >&2
14670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 eval "$as_ac_Header=\$ac_header_preproc"
14677 ac_res=`eval echo '${'$as_ac_Header'}'`
14678 { echo "$as_me:$LINENO: result: $ac_res" >&5
14679 echo "${ECHO_T}$ac_res" >&6; }
14682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14683 cat >>confdefs.h <<_ACEOF
14684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14692 ac_cpp='$CPP $CPPFLAGS'
14693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14702 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 ac_res=`eval echo '${'$as_ac_Header'}'`
14712 { echo "$as_me:$LINENO: result: $ac_res" >&5
14713 echo "${ECHO_T}$ac_res" >&6; }
14715 # Is the header compilable?
14716 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14718 cat >conftest.$ac_ext <<_ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 $ac_includes_default
14725 #include <$ac_header>
14727 rm -f conftest.$ac_objext
14728 if { (ac_try="$ac_compile"
14729 case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_compile") 2>conftest.er1
14736 grep -v '^ *+' conftest.er1 >conftest.err
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14742 { (case "(($ac_try" in
14743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744 *) ac_try_echo=$ac_try;;
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747 (eval "$ac_try") 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_try") 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_header_compiler=yes
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14766 ac_header_compiler=no
14769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14771 echo "${ECHO_T}$ac_header_compiler" >&6; }
14773 # Is the header present?
14774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14776 cat >conftest.$ac_ext <<_ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 #include <$ac_header>
14784 if { (ac_try="$ac_cpp conftest.$ac_ext"
14785 case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14792 grep -v '^ *+' conftest.er1 >conftest.err
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } >/dev/null; then
14797 if test -s conftest.err; then
14798 ac_cpp_err=$ac_c_preproc_warn_flag
14799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14806 if test -z "$ac_cpp_err"; then
14807 ac_header_preproc=yes
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_header_preproc=no
14815 rm -f conftest.err conftest.$ac_ext
14816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 echo "${ECHO_T}$ac_header_preproc" >&6; }
14819 # So? What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14826 ac_header_preproc=yes
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14842 ## ------------------------------------ ##
14843 ## Report this to http://llvm.org/bugs/ ##
14844 ## ------------------------------------ ##
14846 ) | sed "s/^/$as_me: WARNING: /" >&2
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 eval "$as_ac_Header=\$ac_header_preproc"
14856 ac_res=`eval echo '${'$as_ac_Header'}'`
14857 { echo "$as_me:$LINENO: result: $ac_res" >&5
14858 echo "${ECHO_T}$ac_res" >&6; }
14861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14862 cat >>confdefs.h <<_ACEOF
14863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14876 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 ac_res=`eval echo '${'$as_ac_Header'}'`
14886 { echo "$as_me:$LINENO: result: $ac_res" >&5
14887 echo "${ECHO_T}$ac_res" >&6; }
14889 # Is the header compilable?
14890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14892 cat >conftest.$ac_ext <<_ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14898 $ac_includes_default
14899 #include <$ac_header>
14901 rm -f conftest.$ac_objext
14902 if { (ac_try="$ac_compile"
14903 case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_compile") 2>conftest.er1
14910 grep -v '^ *+' conftest.er1 >conftest.err
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14916 { (case "(($ac_try" in
14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918 *) ac_try_echo=$ac_try;;
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921 (eval "$ac_try") 2>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; } &&
14925 { ac_try='test -s conftest.$ac_objext'
14926 { (case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_try") 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_header_compiler=yes
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_header_compiler=no
14943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14945 echo "${ECHO_T}$ac_header_compiler" >&6; }
14947 # Is the header present?
14948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14950 cat >conftest.$ac_ext <<_ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 #include <$ac_header>
14958 if { (ac_try="$ac_cpp conftest.$ac_ext"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14966 grep -v '^ *+' conftest.er1 >conftest.err
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } >/dev/null; then
14971 if test -s conftest.err; then
14972 ac_cpp_err=$ac_c_preproc_warn_flag
14973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14980 if test -z "$ac_cpp_err"; then
14981 ac_header_preproc=yes
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14986 ac_header_preproc=no
14989 rm -f conftest.err conftest.$ac_ext
14990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14991 echo "${ECHO_T}$ac_header_preproc" >&6; }
14993 # So? What about this header?
14994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15000 ac_header_preproc=yes
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15016 ## ------------------------------------ ##
15017 ## Report this to http://llvm.org/bugs/ ##
15018 ## ------------------------------------ ##
15020 ) | sed "s/^/$as_me: WARNING: /" >&2
15023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 eval "$as_ac_Header=\$ac_header_preproc"
15030 ac_res=`eval echo '${'$as_ac_Header'}'`
15031 { echo "$as_me:$LINENO: result: $ac_res" >&5
15032 echo "${ECHO_T}$ac_res" >&6; }
15035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15036 cat >>confdefs.h <<_ACEOF
15037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15045 for ac_header in utime.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
15218 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 ac_res=`eval echo '${'$as_ac_Header'}'`
15228 { echo "$as_me:$LINENO: result: $ac_res" >&5
15229 echo "${ECHO_T}$ac_res" >&6; }
15231 # Is the header compilable?
15232 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15234 cat >conftest.$ac_ext <<_ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15240 $ac_includes_default
15241 #include <$ac_header>
15243 rm -f conftest.$ac_objext
15244 if { (ac_try="$ac_compile"
15245 case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_compile") 2>conftest.er1
15252 grep -v '^ *+' conftest.er1 >conftest.err
15254 cat conftest.err >&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15258 { (case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_try") 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; } &&
15267 { ac_try='test -s conftest.$ac_objext'
15268 { (case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_try") 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
15277 ac_header_compiler=yes
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_header_compiler=no
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15287 echo "${ECHO_T}$ac_header_compiler" >&6; }
15289 # Is the header present?
15290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 #include <$ac_header>
15300 if { (ac_try="$ac_cpp conftest.$ac_ext"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15308 grep -v '^ *+' conftest.er1 >conftest.err
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } >/dev/null; then
15313 if test -s conftest.err; then
15314 ac_cpp_err=$ac_c_preproc_warn_flag
15315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15322 if test -z "$ac_cpp_err"; then
15323 ac_header_preproc=yes
15325 echo "$as_me: failed program was:" >&5
15326 sed 's/^/| /' conftest.$ac_ext >&5
15328 ac_header_preproc=no
15331 rm -f conftest.err conftest.$ac_ext
15332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15333 echo "${ECHO_T}$ac_header_preproc" >&6; }
15335 # So? What about this header?
15336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15342 ac_header_preproc=yes
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15358 ## ------------------------------------ ##
15359 ## Report this to http://llvm.org/bugs/ ##
15360 ## ------------------------------------ ##
15362 ) | sed "s/^/$as_me: WARNING: /" >&2
15365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 eval "$as_ac_Header=\$ac_header_preproc"
15372 ac_res=`eval echo '${'$as_ac_Header'}'`
15373 { echo "$as_me:$LINENO: result: $ac_res" >&5
15374 echo "${ECHO_T}$ac_res" >&6; }
15377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15378 cat >>confdefs.h <<_ACEOF
15379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15389 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 ac_res=`eval echo '${'$as_ac_Header'}'`
15399 { echo "$as_me:$LINENO: result: $ac_res" >&5
15400 echo "${ECHO_T}$ac_res" >&6; }
15402 # Is the header compilable?
15403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 $ac_includes_default
15412 #include <$ac_header>
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_compile") 2>conftest.er1
15423 grep -v '^ *+' conftest.er1 >conftest.err
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429 { (case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_try") 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_try") 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 ac_header_compiler=yes
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_header_compiler=no
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6; }
15460 # Is the header present?
15461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 #include <$ac_header>
15471 if { (ac_try="$ac_cpp conftest.$ac_ext"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } >/dev/null; then
15484 if test -s conftest.err; then
15485 ac_cpp_err=$ac_c_preproc_warn_flag
15486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15493 if test -z "$ac_cpp_err"; then
15494 ac_header_preproc=yes
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 ac_header_preproc=no
15502 rm -f conftest.err conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504 echo "${ECHO_T}$ac_header_preproc" >&6; }
15506 # So? What about this header?
15507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513 ac_header_preproc=yes
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15529 ## ------------------------------------ ##
15530 ## Report this to http://llvm.org/bugs/ ##
15531 ## ------------------------------------ ##
15533 ) | sed "s/^/$as_me: WARNING: /" >&2
15536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 eval "$as_ac_Header=\$ac_header_preproc"
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544 { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15558 for ac_header in valgrind/valgrind.h
15560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 ac_res=`eval echo '${'$as_ac_Header'}'`
15568 { echo "$as_me:$LINENO: result: $ac_res" >&5
15569 echo "${ECHO_T}$ac_res" >&6; }
15571 # Is the header compilable?
15572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 $ac_includes_default
15581 #include <$ac_header>
15583 rm -f conftest.$ac_objext
15584 if { (ac_try="$ac_compile"
15585 case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_compile") 2>conftest.er1
15592 grep -v '^ *+' conftest.er1 >conftest.err
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15598 { (case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_try") 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; } &&
15607 { ac_try='test -s conftest.$ac_objext'
15608 { (case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_try") 2>&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_header_compiler=yes
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15622 ac_header_compiler=no
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15627 echo "${ECHO_T}$ac_header_compiler" >&6; }
15629 # Is the header present?
15630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 #include <$ac_header>
15640 if { (ac_try="$ac_cpp conftest.$ac_ext"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15648 grep -v '^ *+' conftest.er1 >conftest.err
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } >/dev/null; then
15653 if test -s conftest.err; then
15654 ac_cpp_err=$ac_c_preproc_warn_flag
15655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15662 if test -z "$ac_cpp_err"; then
15663 ac_header_preproc=yes
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 ac_header_preproc=no
15671 rm -f conftest.err conftest.$ac_ext
15672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15673 echo "${ECHO_T}$ac_header_preproc" >&6; }
15675 # So? What about this header?
15676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15682 ac_header_preproc=yes
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15698 ## ------------------------------------ ##
15699 ## Report this to http://llvm.org/bugs/ ##
15700 ## ------------------------------------ ##
15702 ) | sed "s/^/$as_me: WARNING: /" >&2
15705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 eval "$as_ac_Header=\$ac_header_preproc"
15712 ac_res=`eval echo '${'$as_ac_Header'}'`
15713 { echo "$as_me:$LINENO: result: $ac_res" >&5
15714 echo "${ECHO_T}$ac_res" >&6; }
15717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15718 cat >>confdefs.h <<_ACEOF
15719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15727 for ac_header in fenv.h
15729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 ac_res=`eval echo '${'$as_ac_Header'}'`
15737 { echo "$as_me:$LINENO: result: $ac_res" >&5
15738 echo "${ECHO_T}$ac_res" >&6; }
15740 # Is the header compilable?
15741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15743 cat >conftest.$ac_ext <<_ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 $ac_includes_default
15750 #include <$ac_header>
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_compile") 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15767 { (case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_try") 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; } &&
15776 { ac_try='test -s conftest.$ac_objext'
15777 { (case "(($ac_try" in
15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779 *) ac_try_echo=$ac_try;;
15781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782 (eval "$ac_try") 2>&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; }; then
15786 ac_header_compiler=yes
15788 echo "$as_me: failed program was:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15791 ac_header_compiler=no
15794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15796 echo "${ECHO_T}$ac_header_compiler" >&6; }
15798 # Is the header present?
15799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15801 cat >conftest.$ac_ext <<_ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h. */
15807 #include <$ac_header>
15809 if { (ac_try="$ac_cpp conftest.$ac_ext"
15810 case "(($ac_try" in
15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812 *) ac_try_echo=$ac_try;;
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15817 grep -v '^ *+' conftest.er1 >conftest.err
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } >/dev/null; then
15822 if test -s conftest.err; then
15823 ac_cpp_err=$ac_c_preproc_warn_flag
15824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15831 if test -z "$ac_cpp_err"; then
15832 ac_header_preproc=yes
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 ac_header_preproc=no
15840 rm -f conftest.err conftest.$ac_ext
15841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15842 echo "${ECHO_T}$ac_header_preproc" >&6; }
15844 # So? What about this header?
15845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15851 ac_header_preproc=yes
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15867 ## ------------------------------------ ##
15868 ## Report this to http://llvm.org/bugs/ ##
15869 ## ------------------------------------ ##
15871 ) | sed "s/^/$as_me: WARNING: /" >&2
15874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 eval "$as_ac_Header=\$ac_header_preproc"
15881 ac_res=`eval echo '${'$as_ac_Header'}'`
15882 { echo "$as_me:$LINENO: result: $ac_res" >&5
15883 echo "${ECHO_T}$ac_res" >&6; }
15886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15887 cat >>confdefs.h <<_ACEOF
15888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15895 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
15896 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
15897 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 cat >conftest.$ac_ext <<_ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15911 #ifndef FE_ALL_EXCEPT
15912 char *p = (char *) FE_ALL_EXCEPT;
15920 rm -f conftest.$ac_objext
15921 if { (ac_try="$ac_compile"
15922 case "(($ac_try" in
15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15927 (eval "$ac_compile") 2>conftest.er1
15929 grep -v '^ *+' conftest.er1 >conftest.err
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15935 { (case "(($ac_try" in
15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940 (eval "$ac_try") 2>&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; } &&
15944 { ac_try='test -s conftest.$ac_objext'
15945 { (case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_try") 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_cv_have_decl_FE_ALL_EXCEPT=yes
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 ac_cv_have_decl_FE_ALL_EXCEPT=no
15962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15964 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
15965 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
15966 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_DECL_FE_ALL_EXCEPT 1
15974 cat >>confdefs.h <<_ACEOF
15975 #define HAVE_DECL_FE_ALL_EXCEPT 0
15980 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
15981 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
15982 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 cat >conftest.$ac_ext <<_ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15997 char *p = (char *) FE_INEXACT;
16005 rm -f conftest.$ac_objext
16006 if { (ac_try="$ac_compile"
16007 case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_compile") 2>conftest.er1
16014 grep -v '^ *+' conftest.er1 >conftest.err
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_try") 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_cv_have_decl_FE_INEXACT=yes
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 ac_cv_have_decl_FE_INEXACT=no
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16050 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16051 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16053 cat >>confdefs.h <<_ACEOF
16054 #define HAVE_DECL_FE_INEXACT 1
16059 cat >>confdefs.h <<_ACEOF
16060 #define HAVE_DECL_FE_INEXACT 0
16067 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16069 for ac_header in pthread.h
16071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 ac_res=`eval echo '${'$as_ac_Header'}'`
16079 { echo "$as_me:$LINENO: result: $ac_res" >&5
16080 echo "${ECHO_T}$ac_res" >&6; }
16082 # Is the header compilable?
16083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 $ac_includes_default
16092 #include <$ac_header>
16094 rm -f conftest.$ac_objext
16095 if { (ac_try="$ac_compile"
16096 case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_compile") 2>conftest.er1
16103 grep -v '^ *+' conftest.er1 >conftest.err
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
16108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16109 { (case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_try") 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest.$ac_objext'
16119 { (case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_try") 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_header_compiler=yes
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16133 ac_header_compiler=no
16136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16138 echo "${ECHO_T}$ac_header_compiler" >&6; }
16140 # Is the header present?
16141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16143 cat >conftest.$ac_ext <<_ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16149 #include <$ac_header>
16151 if { (ac_try="$ac_cpp conftest.$ac_ext"
16152 case "(($ac_try" in
16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154 *) ac_try_echo=$ac_try;;
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16159 grep -v '^ *+' conftest.er1 >conftest.err
16161 cat conftest.err >&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } >/dev/null; then
16164 if test -s conftest.err; then
16165 ac_cpp_err=$ac_c_preproc_warn_flag
16166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16173 if test -z "$ac_cpp_err"; then
16174 ac_header_preproc=yes
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_header_preproc=no
16182 rm -f conftest.err conftest.$ac_ext
16183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16184 echo "${ECHO_T}$ac_header_preproc" >&6; }
16186 # So? What about this header?
16187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16193 ac_header_preproc=yes
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16209 ## ------------------------------------ ##
16210 ## Report this to http://llvm.org/bugs/ ##
16211 ## ------------------------------------ ##
16213 ) | sed "s/^/$as_me: WARNING: /" >&2
16216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 eval "$as_ac_Header=\$ac_header_preproc"
16223 ac_res=`eval echo '${'$as_ac_Header'}'`
16224 { echo "$as_me:$LINENO: result: $ac_res" >&5
16225 echo "${ECHO_T}$ac_res" >&6; }
16228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16245 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16247 for ac_header in zlib.h
16249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 ac_res=`eval echo '${'$as_ac_Header'}'`
16257 { echo "$as_me:$LINENO: result: $ac_res" >&5
16258 echo "${ECHO_T}$ac_res" >&6; }
16260 # Is the header compilable?
16261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16263 cat >conftest.$ac_ext <<_ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269 $ac_includes_default
16270 #include <$ac_header>
16272 rm -f conftest.$ac_objext
16273 if { (ac_try="$ac_compile"
16274 case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_compile") 2>conftest.er1
16281 grep -v '^ *+' conftest.er1 >conftest.err
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } &&
16286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16287 { (case "(($ac_try" in
16288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292 (eval "$ac_try") 2>&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } &&
16296 { ac_try='test -s conftest.$ac_objext'
16297 { (case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_try") 2>&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 ac_header_compiler=yes
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 ac_header_compiler=no
16314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16316 echo "${ECHO_T}$ac_header_compiler" >&6; }
16318 # Is the header present?
16319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16321 cat >conftest.$ac_ext <<_ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 #include <$ac_header>
16329 if { (ac_try="$ac_cpp conftest.$ac_ext"
16330 case "(($ac_try" in
16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332 *) ac_try_echo=$ac_try;;
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16337 grep -v '^ *+' conftest.er1 >conftest.err
16339 cat conftest.err >&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } >/dev/null; then
16342 if test -s conftest.err; then
16343 ac_cpp_err=$ac_c_preproc_warn_flag
16344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16351 if test -z "$ac_cpp_err"; then
16352 ac_header_preproc=yes
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16357 ac_header_preproc=no
16360 rm -f conftest.err conftest.$ac_ext
16361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16362 echo "${ECHO_T}$ac_header_preproc" >&6; }
16364 # So? What about this header?
16365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16371 ac_header_preproc=yes
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16387 ## ------------------------------------ ##
16388 ## Report this to http://llvm.org/bugs/ ##
16389 ## ------------------------------------ ##
16391 ) | sed "s/^/$as_me: WARNING: /" >&2
16394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16397 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 eval "$as_ac_Header=\$ac_header_preproc"
16401 ac_res=`eval echo '${'$as_ac_Header'}'`
16402 { echo "$as_me:$LINENO: result: $ac_res" >&5
16403 echo "${ECHO_T}$ac_res" >&6; }
16406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16407 cat >>confdefs.h <<_ACEOF
16408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16424 if test "$llvm_cv_enable_libffi" = "yes" ; then
16427 for ac_header in ffi.h ffi/ffi.h
16429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 ac_res=`eval echo '${'$as_ac_Header'}'`
16437 { echo "$as_me:$LINENO: result: $ac_res" >&5
16438 echo "${ECHO_T}$ac_res" >&6; }
16440 # Is the header compilable?
16441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16443 cat >conftest.$ac_ext <<_ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16449 $ac_includes_default
16450 #include <$ac_header>
16452 rm -f conftest.$ac_objext
16453 if { (ac_try="$ac_compile"
16454 case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_compile") 2>conftest.er1
16461 grep -v '^ *+' conftest.er1 >conftest.err
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } &&
16466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16467 { (case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472 (eval "$ac_try") 2>&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; } &&
16476 { ac_try='test -s conftest.$ac_objext'
16477 { (case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482 (eval "$ac_try") 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 ac_header_compiler=yes
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 ac_header_compiler=no
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16496 echo "${ECHO_T}$ac_header_compiler" >&6; }
16498 # Is the header present?
16499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16501 cat >conftest.$ac_ext <<_ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16507 #include <$ac_header>
16509 if { (ac_try="$ac_cpp conftest.$ac_ext"
16510 case "(($ac_try" in
16511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512 *) ac_try_echo=$ac_try;;
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16517 grep -v '^ *+' conftest.er1 >conftest.err
16519 cat conftest.err >&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } >/dev/null; then
16522 if test -s conftest.err; then
16523 ac_cpp_err=$ac_c_preproc_warn_flag
16524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16531 if test -z "$ac_cpp_err"; then
16532 ac_header_preproc=yes
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 ac_header_preproc=no
16540 rm -f conftest.err conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16542 echo "${ECHO_T}$ac_header_preproc" >&6; }
16544 # So? What about this header?
16545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16551 ac_header_preproc=yes
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16567 ## ------------------------------------ ##
16568 ## Report this to http://llvm.org/bugs/ ##
16569 ## ------------------------------------ ##
16571 ) | sed "s/^/$as_me: WARNING: /" >&2
16574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 eval "$as_ac_Header=\$ac_header_preproc"
16581 ac_res=`eval echo '${'$as_ac_Header'}'`
16582 { echo "$as_me:$LINENO: result: $ac_res" >&5
16583 echo "${ECHO_T}$ac_res" >&6; }
16586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16587 cat >>confdefs.h <<_ACEOF
16588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16598 for ac_header in CrashReporterClient.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
16767 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16768 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16769 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16777 extern const char *__crashreporter_info__;
16779 __crashreporter_info__ = "test";
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (ac_try="$ac_link"
16787 case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792 (eval "$ac_link") 2>conftest.er1
16794 grep -v '^ *+' conftest.er1 >conftest.err
16796 cat conftest.err >&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } &&
16799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16800 { (case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_try") 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest$ac_exeext'
16810 { (case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_try") 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16820 { echo "$as_me:$LINENO: result: yes" >&5
16821 echo "${ECHO_T}yes" >&6; }
16823 cat >>confdefs.h <<\_ACEOF
16824 #define HAVE_CRASHREPORTER_INFO 1
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16833 { echo "$as_me:$LINENO: result: no" >&5
16834 echo "${ECHO_T}no" >&6; }
16836 cat >>confdefs.h <<\_ACEOF
16837 #define HAVE_CRASHREPORTER_INFO 0
16843 rm -f core conftest.err conftest.$ac_objext \
16844 conftest$ac_exeext conftest.$ac_ext
16848 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16849 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16850 if test "${ac_cv_huge_val_sanity+set}" = set; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16855 ac_cpp='$CXXCPP $CPPFLAGS'
16856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16860 ac_save_CXXFLAGS=$CXXFLAGS
16861 CXXFLAGS="$CXXFLAGS -pedantic"
16862 if test "$cross_compiling" = yes; then
16863 ac_cv_huge_val_sanity=yes
16865 cat >conftest.$ac_ext <<_ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h. */
16875 double x = HUGE_VAL; return x != x;
16880 rm -f conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_link") 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16891 { (case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_try") 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_cv_huge_val_sanity=yes
16902 echo "$as_me: program exited with status $ac_status" >&5
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 ( exit $ac_status )
16907 ac_cv_huge_val_sanity=no
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16913 CXXFLAGS=$ac_save_CXXFLAGS
16915 ac_cpp='$CPP $CPPFLAGS'
16916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16922 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16923 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16924 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16927 { echo "$as_me:$LINENO: checking for pid_t" >&5
16928 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16929 if test "${ac_cv_type_pid_t+set}" = set; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 cat >conftest.$ac_ext <<_ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16938 $ac_includes_default
16939 typedef pid_t ac__type_new_;
16943 if ((ac__type_new_ *) 0)
16945 if (sizeof (ac__type_new_))
16951 rm -f conftest.$ac_objext
16952 if { (ac_try="$ac_compile"
16953 case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_compile") 2>conftest.er1
16960 grep -v '^ *+' conftest.er1 >conftest.err
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
16965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16966 { (case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_try") 2>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; } &&
16975 { ac_try='test -s conftest.$ac_objext'
16976 { (case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_try") 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_type_pid_t=yes
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16990 ac_cv_type_pid_t=no
16993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16996 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16997 if test $ac_cv_type_pid_t = yes; then
17001 cat >>confdefs.h <<_ACEOF
17007 { echo "$as_me:$LINENO: checking for size_t" >&5
17008 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17009 if test "${ac_cv_type_size_t+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 cat >conftest.$ac_ext <<_ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17018 $ac_includes_default
17019 typedef size_t ac__type_new_;
17023 if ((ac__type_new_ *) 0)
17025 if (sizeof (ac__type_new_))
17031 rm -f conftest.$ac_objext
17032 if { (ac_try="$ac_compile"
17033 case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_compile") 2>conftest.er1
17040 grep -v '^ *+' conftest.er1 >conftest.err
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
17045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17046 { (case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_try") 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest.$ac_objext'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 ac_cv_type_size_t=yes
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17070 ac_cv_type_size_t=no
17073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17075 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17076 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17077 if test $ac_cv_type_size_t = yes; then
17081 cat >>confdefs.h <<_ACEOF
17082 #define size_t unsigned int
17088 cat >>confdefs.h <<_ACEOF
17089 #define RETSIGTYPE void
17092 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17093 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17094 if test "${ac_cv_struct_tm+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 cat >conftest.$ac_ext <<_ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 #include <sys/types.h>
17109 struct tm *tp; tp->tm_sec;
17114 rm -f conftest.$ac_objext
17115 if { (ac_try="$ac_compile"
17116 case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_compile") 2>conftest.er1
17123 grep -v '^ *+' conftest.er1 >conftest.err
17125 cat conftest.err >&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17129 { (case "(($ac_try" in
17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 *) ac_try_echo=$ac_try;;
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134 (eval "$ac_try") 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; } &&
17138 { ac_try='test -s conftest.$ac_objext'
17139 { (case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_try") 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
17148 ac_cv_struct_tm=time.h
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 ac_cv_struct_tm=sys/time.h
17156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17158 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17159 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17160 if test $ac_cv_struct_tm = sys/time.h; then
17162 cat >>confdefs.h <<\_ACEOF
17163 #define TM_IN_SYS_TIME 1
17168 { echo "$as_me:$LINENO: checking for int64_t" >&5
17169 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17170 if test "${ac_cv_type_int64_t+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17179 $ac_includes_default
17180 typedef int64_t ac__type_new_;
17184 if ((ac__type_new_ *) 0)
17186 if (sizeof (ac__type_new_))
17192 rm -f conftest.$ac_objext
17193 if { (ac_try="$ac_compile"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17201 grep -v '^ *+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17226 ac_cv_type_int64_t=yes
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_cv_type_int64_t=no
17234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17236 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17237 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17238 if test $ac_cv_type_int64_t = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define HAVE_INT64_T 1
17246 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17247 echo "$as_me: error: Type int64_t required but not found" >&2;}
17248 { (exit 1); exit 1; }; }
17251 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17252 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17253 if test "${ac_cv_type_uint64_t+set}" = set; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17262 $ac_includes_default
17263 typedef uint64_t ac__type_new_;
17267 if ((ac__type_new_ *) 0)
17269 if (sizeof (ac__type_new_))
17275 rm -f conftest.$ac_objext
17276 if { (ac_try="$ac_compile"
17277 case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_compile") 2>conftest.er1
17284 grep -v '^ *+' conftest.er1 >conftest.err
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17290 { (case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_try") 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17309 ac_cv_type_uint64_t=yes
17311 echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17314 ac_cv_type_uint64_t=no
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17320 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17321 if test $ac_cv_type_uint64_t = yes; then
17323 cat >>confdefs.h <<_ACEOF
17324 #define HAVE_UINT64_T 1
17329 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17330 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17331 if test "${ac_cv_type_u_int64_t+set}" = set; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 cat >conftest.$ac_ext <<_ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 $ac_includes_default
17341 typedef u_int64_t ac__type_new_;
17345 if ((ac__type_new_ *) 0)
17347 if (sizeof (ac__type_new_))
17353 rm -f conftest.$ac_objext
17354 if { (ac_try="$ac_compile"
17355 case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_compile") 2>conftest.er1
17362 grep -v '^ *+' conftest.er1 >conftest.err
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17368 { (case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_try") 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17387 ac_cv_type_u_int64_t=yes
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 ac_cv_type_u_int64_t=no
17395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17397 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17398 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17399 if test $ac_cv_type_u_int64_t = yes; then
17401 cat >>confdefs.h <<_ACEOF
17402 #define HAVE_U_INT64_T 1
17407 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17408 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17409 { (exit 1); exit 1; }; }
17423 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 cat >conftest.$ac_ext <<_ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17439 #define $ac_func innocuous_$ac_func
17441 /* System header to define __stub macros and hopefully few prototypes,
17442 which can conflict with char $ac_func (); below.
17443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17444 <limits.h> exists even on freestanding compilers. */
17447 # include <limits.h>
17449 # include <assert.h>
17454 /* Override any GCC internal prototype to avoid an error.
17455 Use char because int might match the return type of a GCC
17456 builtin and then its argument prototype would still apply. */
17461 /* The GNU C library defines this for functions which it implements
17462 to always fail with ENOSYS. Some functions are actually named
17463 something starting with __ and the normal name is an alias. */
17464 #if defined __stub_$ac_func || defined __stub___$ac_func
17471 return $ac_func ();
17476 rm -f conftest.$ac_objext conftest$ac_exeext
17477 if { (ac_try="$ac_link"
17478 case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_link") 2>conftest.er1
17485 grep -v '^ *+' conftest.er1 >conftest.err
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest$ac_exeext'
17501 { (case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_try") 2>&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 eval "$as_ac_var=yes"
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 eval "$as_ac_var=no"
17518 rm -f core conftest.err conftest.$ac_objext \
17519 conftest$ac_exeext conftest.$ac_ext
17521 ac_res=`eval echo '${'$as_ac_var'}'`
17522 { echo "$as_me:$LINENO: result: $ac_res" >&5
17523 echo "${ECHO_T}$ac_res" >&6; }
17524 if test `eval echo '${'$as_ac_var'}'` = yes; then
17525 cat >>confdefs.h <<_ACEOF
17526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17536 for ac_func in powf fmodf strtof round
17538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 cat >conftest.$ac_ext <<_ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17552 #define $ac_func innocuous_$ac_func
17554 /* System header to define __stub macros and hopefully few prototypes,
17555 which can conflict with char $ac_func (); below.
17556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17557 <limits.h> exists even on freestanding compilers. */
17560 # include <limits.h>
17562 # include <assert.h>
17567 /* Override any GCC internal prototype to avoid an error.
17568 Use char because int might match the return type of a GCC
17569 builtin and then its argument prototype would still apply. */
17574 /* The GNU C library defines this for functions which it implements
17575 to always fail with ENOSYS. Some functions are actually named
17576 something starting with __ and the normal name is an alias. */
17577 #if defined __stub_$ac_func || defined __stub___$ac_func
17584 return $ac_func ();
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (ac_try="$ac_link"
17591 case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_link") 2>conftest.er1
17598 grep -v '^ *+' conftest.er1 >conftest.err
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
17603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest$ac_exeext'
17614 { (case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_try") 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 eval "$as_ac_var=yes"
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 eval "$as_ac_var=no"
17631 rm -f core conftest.err conftest.$ac_objext \
17632 conftest$ac_exeext conftest.$ac_ext
17634 ac_res=`eval echo '${'$as_ac_var'}'`
17635 { echo "$as_me:$LINENO: result: $ac_res" >&5
17636 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17650 for ac_func in log log2 log10 exp exp2
17652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 cat >conftest.$ac_ext <<_ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17666 #define $ac_func innocuous_$ac_func
17668 /* System header to define __stub macros and hopefully few prototypes,
17669 which can conflict with char $ac_func (); below.
17670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17671 <limits.h> exists even on freestanding compilers. */
17674 # include <limits.h>
17676 # include <assert.h>
17681 /* Override any GCC internal prototype to avoid an error.
17682 Use char because int might match the return type of a GCC
17683 builtin and then its argument prototype would still apply. */
17688 /* The GNU C library defines this for functions which it implements
17689 to always fail with ENOSYS. Some functions are actually named
17690 something starting with __ and the normal name is an alias. */
17691 #if defined __stub_$ac_func || defined __stub___$ac_func
17698 return $ac_func ();
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (ac_try="$ac_link"
17705 case "(($ac_try" in
17706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17707 *) ac_try_echo=$ac_try;;
17709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17710 (eval "$ac_link") 2>conftest.er1
17712 grep -v '^ *+' conftest.er1 >conftest.err
17714 cat conftest.err >&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
17717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17718 { (case "(($ac_try" in
17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720 *) ac_try_echo=$ac_try;;
17722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17723 (eval "$ac_try") 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; } &&
17727 { ac_try='test -s conftest$ac_exeext'
17728 { (case "(($ac_try" in
17729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730 *) ac_try_echo=$ac_try;;
17732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733 (eval "$ac_try") 2>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; }; then
17737 eval "$as_ac_var=yes"
17739 echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17742 eval "$as_ac_var=no"
17745 rm -f core conftest.err conftest.$ac_objext \
17746 conftest$ac_exeext conftest.$ac_ext
17748 ac_res=`eval echo '${'$as_ac_var'}'`
17749 { echo "$as_me:$LINENO: result: $ac_res" >&5
17750 echo "${ECHO_T}$ac_res" >&6; }
17751 if test `eval echo '${'$as_ac_var'}'` = yes; then
17752 cat >>confdefs.h <<_ACEOF
17753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17764 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 cat >conftest.$ac_ext <<_ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17780 #define $ac_func innocuous_$ac_func
17782 /* System header to define __stub macros and hopefully few prototypes,
17783 which can conflict with char $ac_func (); below.
17784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17785 <limits.h> exists even on freestanding compilers. */
17788 # include <limits.h>
17790 # include <assert.h>
17795 /* Override any GCC internal prototype to avoid an error.
17796 Use char because int might match the return type of a GCC
17797 builtin and then its argument prototype would still apply. */
17802 /* The GNU C library defines this for functions which it implements
17803 to always fail with ENOSYS. Some functions are actually named
17804 something starting with __ and the normal name is an alias. */
17805 #if defined __stub_$ac_func || defined __stub___$ac_func
17812 return $ac_func ();
17817 rm -f conftest.$ac_objext conftest$ac_exeext
17818 if { (ac_try="$ac_link"
17819 case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_link") 2>conftest.er1
17826 grep -v '^ *+' conftest.er1 >conftest.err
17828 cat conftest.err >&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17832 { (case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837 (eval "$ac_try") 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; } &&
17841 { ac_try='test -s conftest$ac_exeext'
17842 { (case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_try") 2>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 eval "$as_ac_var=yes"
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 eval "$as_ac_var=no"
17859 rm -f core conftest.err conftest.$ac_objext \
17860 conftest$ac_exeext conftest.$ac_ext
17862 ac_res=`eval echo '${'$as_ac_var'}'`
17863 { echo "$as_me:$LINENO: result: $ac_res" >&5
17864 echo "${ECHO_T}$ac_res" >&6; }
17865 if test `eval echo '${'$as_ac_var'}'` = yes; then
17866 cat >>confdefs.h <<_ACEOF
17867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17876 for ac_func in isatty mkdtemp mkstemp
17878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 cat >conftest.$ac_ext <<_ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17892 #define $ac_func innocuous_$ac_func
17894 /* System header to define __stub macros and hopefully few prototypes,
17895 which can conflict with char $ac_func (); below.
17896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17897 <limits.h> exists even on freestanding compilers. */
17900 # include <limits.h>
17902 # include <assert.h>
17907 /* Override any GCC internal prototype to avoid an error.
17908 Use char because int might match the return type of a GCC
17909 builtin and then its argument prototype would still apply. */
17914 /* The GNU C library defines this for functions which it implements
17915 to always fail with ENOSYS. Some functions are actually named
17916 something starting with __ and the normal name is an alias. */
17917 #if defined __stub_$ac_func || defined __stub___$ac_func
17924 return $ac_func ();
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (ac_try="$ac_link"
17931 case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_link") 2>conftest.er1
17938 grep -v '^ *+' conftest.er1 >conftest.err
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
17943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17944 { (case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_try") 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest$ac_exeext'
17954 { (case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_try") 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 eval "$as_ac_var=yes"
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 eval "$as_ac_var=no"
17971 rm -f core conftest.err conftest.$ac_objext \
17972 conftest$ac_exeext conftest.$ac_ext
17974 ac_res=`eval echo '${'$as_ac_var'}'`
17975 { echo "$as_me:$LINENO: result: $ac_res" >&5
17976 echo "${ECHO_T}$ac_res" >&6; }
17977 if test `eval echo '${'$as_ac_var'}'` = yes; then
17978 cat >>confdefs.h <<_ACEOF
17979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17991 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
17993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 cat >conftest.$ac_ext <<_ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18007 #define $ac_func innocuous_$ac_func
18009 /* System header to define __stub macros and hopefully few prototypes,
18010 which can conflict with char $ac_func (); below.
18011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18012 <limits.h> exists even on freestanding compilers. */
18015 # include <limits.h>
18017 # include <assert.h>
18022 /* Override any GCC internal prototype to avoid an error.
18023 Use char because int might match the return type of a GCC
18024 builtin and then its argument prototype would still apply. */
18029 /* The GNU C library defines this for functions which it implements
18030 to always fail with ENOSYS. Some functions are actually named
18031 something starting with __ and the normal name is an alias. */
18032 #if defined __stub_$ac_func || defined __stub___$ac_func
18039 return $ac_func ();
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (ac_try="$ac_link"
18046 case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_link") 2>conftest.er1
18053 grep -v '^ *+' conftest.er1 >conftest.err
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18059 { (case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_try") 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try='test -s conftest$ac_exeext'
18069 { (case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_try") 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 eval "$as_ac_var=yes"
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 eval "$as_ac_var=no"
18086 rm -f core conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
18089 ac_res=`eval echo '${'$as_ac_var'}'`
18090 { echo "$as_me:$LINENO: result: $ac_res" >&5
18091 echo "${ECHO_T}$ac_res" >&6; }
18092 if test `eval echo '${'$as_ac_var'}'` = yes; then
18093 cat >>confdefs.h <<_ACEOF
18094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18104 for ac_func in strerror strerror_r setenv arc4random
18106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 cat >conftest.$ac_ext <<_ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18120 #define $ac_func innocuous_$ac_func
18122 /* System header to define __stub macros and hopefully few prototypes,
18123 which can conflict with char $ac_func (); below.
18124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18125 <limits.h> exists even on freestanding compilers. */
18128 # include <limits.h>
18130 # include <assert.h>
18135 /* Override any GCC internal prototype to avoid an error.
18136 Use char because int might match the return type of a GCC
18137 builtin and then its argument prototype would still apply. */
18142 /* The GNU C library defines this for functions which it implements
18143 to always fail with ENOSYS. Some functions are actually named
18144 something starting with __ and the normal name is an alias. */
18145 #if defined __stub_$ac_func || defined __stub___$ac_func
18152 return $ac_func ();
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_link") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1 >conftest.err
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172 { (case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; } &&
18181 { ac_try='test -s conftest$ac_exeext'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 eval "$as_ac_var=yes"
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 eval "$as_ac_var=no"
18199 rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18202 ac_res=`eval echo '${'$as_ac_var'}'`
18203 { echo "$as_me:$LINENO: result: $ac_res" >&5
18204 echo "${ECHO_T}$ac_res" >&6; }
18205 if test `eval echo '${'$as_ac_var'}'` = yes; then
18206 cat >>confdefs.h <<_ACEOF
18207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18217 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18233 #define $ac_func innocuous_$ac_func
18235 /* System header to define __stub macros and hopefully few prototypes,
18236 which can conflict with char $ac_func (); below.
18237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18238 <limits.h> exists even on freestanding compilers. */
18241 # include <limits.h>
18243 # include <assert.h>
18248 /* Override any GCC internal prototype to avoid an error.
18249 Use char because int might match the return type of a GCC
18250 builtin and then its argument prototype would still apply. */
18255 /* The GNU C library defines this for functions which it implements
18256 to always fail with ENOSYS. Some functions are actually named
18257 something starting with __ and the normal name is an alias. */
18258 #if defined __stub_$ac_func || defined __stub___$ac_func
18265 return $ac_func ();
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_link") 2>conftest.er1
18279 grep -v '^ *+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest$ac_exeext'
18295 { (case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_try") 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 eval "$as_ac_var=yes"
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18309 eval "$as_ac_var=no"
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18315 ac_res=`eval echo '${'$as_ac_var'}'`
18316 { echo "$as_me:$LINENO: result: $ac_res" >&5
18317 echo "${ECHO_T}$ac_res" >&6; }
18318 if test `eval echo '${'$as_ac_var'}'` = yes; then
18319 cat >>confdefs.h <<_ACEOF
18320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18331 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 cat >conftest.$ac_ext <<_ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18347 #define $ac_func innocuous_$ac_func
18349 /* System header to define __stub macros and hopefully few prototypes,
18350 which can conflict with char $ac_func (); below.
18351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18352 <limits.h> exists even on freestanding compilers. */
18355 # include <limits.h>
18357 # include <assert.h>
18362 /* Override any GCC internal prototype to avoid an error.
18363 Use char because int might match the return type of a GCC
18364 builtin and then its argument prototype would still apply. */
18369 /* The GNU C library defines this for functions which it implements
18370 to always fail with ENOSYS. Some functions are actually named
18371 something starting with __ and the normal name is an alias. */
18372 #if defined __stub_$ac_func || defined __stub___$ac_func
18379 return $ac_func ();
18384 rm -f conftest.$ac_objext conftest$ac_exeext
18385 if { (ac_try="$ac_link"
18386 case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_link") 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_try") 2>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 eval "$as_ac_var=yes"
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 eval "$as_ac_var=no"
18426 rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18429 ac_res=`eval echo '${'$as_ac_var'}'`
18430 { echo "$as_me:$LINENO: result: $ac_res" >&5
18431 echo "${ECHO_T}$ac_res" >&6; }
18432 if test `eval echo '${'$as_ac_var'}'` = yes; then
18433 cat >>confdefs.h <<_ACEOF
18434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18442 for ac_func in futimes futimens
18444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 cat >conftest.$ac_ext <<_ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18458 #define $ac_func innocuous_$ac_func
18460 /* System header to define __stub macros and hopefully few prototypes,
18461 which can conflict with char $ac_func (); below.
18462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18463 <limits.h> exists even on freestanding compilers. */
18466 # include <limits.h>
18468 # include <assert.h>
18473 /* Override any GCC internal prototype to avoid an error.
18474 Use char because int might match the return type of a GCC
18475 builtin and then its argument prototype would still apply. */
18480 /* The GNU C library defines this for functions which it implements
18481 to always fail with ENOSYS. Some functions are actually named
18482 something starting with __ and the normal name is an alias. */
18483 #if defined __stub_$ac_func || defined __stub___$ac_func
18490 return $ac_func ();
18495 rm -f conftest.$ac_objext conftest$ac_exeext
18496 if { (ac_try="$ac_link"
18497 case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_link") 2>conftest.er1
18504 grep -v '^ *+' conftest.er1 >conftest.err
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } &&
18509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18510 { (case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_try") 2>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; } &&
18519 { ac_try='test -s conftest$ac_exeext'
18520 { (case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_try") 2>&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; }; then
18529 eval "$as_ac_var=yes"
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 eval "$as_ac_var=no"
18537 rm -f core conftest.err conftest.$ac_objext \
18538 conftest$ac_exeext conftest.$ac_ext
18540 ac_res=`eval echo '${'$as_ac_var'}'`
18541 { echo "$as_me:$LINENO: result: $ac_res" >&5
18542 echo "${ECHO_T}$ac_res" >&6; }
18543 if test `eval echo '${'$as_ac_var'}'` = yes; then
18544 cat >>confdefs.h <<_ACEOF
18545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18551 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18552 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18553 if test "${llvm_cv_c_printf_a+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18557 ac_cpp='$CPP $CPPFLAGS'
18558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18562 if test "$cross_compiling" = yes; then
18563 llvmac_cv_c_printf_a=no
18565 cat >conftest.$ac_ext <<_ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18574 #include <stdlib.h>
18580 volatile double A, B;
18584 sprintf(Buffer, "%a", A);
18588 if (A != 0x1.999999999999ap-4)
18595 rm -f conftest$ac_exeext
18596 if { (ac_try="$ac_link"
18597 case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602 (eval "$ac_link") 2>&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18606 { (case "(($ac_try" in
18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608 *) ac_try_echo=$ac_try;;
18610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611 (eval "$ac_try") 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 llvm_cv_c_printf_a=yes
18617 echo "$as_me: program exited with status $ac_status" >&5
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18621 ( exit $ac_status )
18622 llvmac_cv_c_printf_a=no
18624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18629 ac_cpp='$CPP $CPPFLAGS'
18630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18635 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18636 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18637 if test "$llvm_cv_c_printf_a" = "yes"; then
18639 cat >>confdefs.h <<\_ACEOF
18640 #define HAVE_PRINTF_A 1
18647 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18648 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18649 if test "${ac_cv_func_rand48+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18654 ac_cpp='$CXXCPP $CPPFLAGS'
18655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18659 cat >conftest.$ac_ext <<_ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665 #include <stdlib.h>
18669 srand48(0);lrand48();drand48();
18674 rm -f conftest.$ac_objext
18675 if { (ac_try="$ac_compile"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_compile") 2>conftest.er1
18683 grep -v '^ *+' conftest.er1 >conftest.err
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest.$ac_objext'
18699 { (case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_try") 2>&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 ac_cv_func_rand48=yes
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_cv_func_rand48=no
18716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18718 ac_cpp='$CPP $CPPFLAGS'
18719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18725 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18726 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18728 if test "$ac_cv_func_rand48" = "yes" ; then
18730 cat >>confdefs.h <<\_ACEOF
18731 #define HAVE_RAND48 1
18737 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18738 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18739 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18748 $ac_includes_default
18753 char *p = (char *) strerror_s;
18761 rm -f conftest.$ac_objext
18762 if { (ac_try="$ac_compile"
18763 case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_compile") 2>conftest.er1
18770 grep -v '^ *+' conftest.er1 >conftest.err
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18776 { (case "(($ac_try" in
18777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778 *) ac_try_echo=$ac_try;;
18780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_try") 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest.$ac_objext'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
18795 ac_cv_have_decl_strerror_s=yes
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18800 ac_cv_have_decl_strerror_s=no
18803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18805 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18806 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18807 if test $ac_cv_have_decl_strerror_s = yes; then
18809 cat >>confdefs.h <<_ACEOF
18810 #define HAVE_DECL_STRERROR_S 1
18815 cat >>confdefs.h <<_ACEOF
18816 #define HAVE_DECL_STRERROR_S 0
18824 if test "$llvm_cv_os_type" = "MingW" ; then
18825 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18826 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18827 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 ac_check_lib_save_LIBS=$LIBS
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18839 /* Override any GCC internal prototype to avoid an error.
18840 Use char because int might match the return type of a GCC
18841 builtin and then its argument prototype would still apply. */
18854 rm -f conftest.$ac_objext conftest$ac_exeext
18855 if { (ac_try="$ac_link"
18856 case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_link") 2>conftest.er1
18863 grep -v '^ *+' conftest.er1 >conftest.err
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18869 { (case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_try") 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; } &&
18878 { ac_try='test -s conftest$ac_exeext'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_lib_gcc__alloca=yes
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 ac_cv_lib_gcc__alloca=no
18896 rm -f core conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18898 LIBS=$ac_check_lib_save_LIBS
18900 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18901 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18902 if test $ac_cv_lib_gcc__alloca = yes; then
18904 cat >>confdefs.h <<\_ACEOF
18905 #define HAVE__ALLOCA 1
18910 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18911 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18912 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 ac_check_lib_save_LIBS=$LIBS
18917 cat >conftest.$ac_ext <<_ACEOF
18920 cat confdefs.h >>conftest.$ac_ext
18921 cat >>conftest.$ac_ext <<_ACEOF
18922 /* end confdefs.h. */
18924 /* Override any GCC internal prototype to avoid an error.
18925 Use char because int might match the return type of a GCC
18926 builtin and then its argument prototype would still apply. */
18934 return __alloca ();
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (ac_try="$ac_link"
18941 case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_link") 2>conftest.er1
18948 grep -v '^ *+' conftest.er1 >conftest.err
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18954 { (case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_try") 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest$ac_exeext'
18964 { (case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_try") 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 ac_cv_lib_gcc___alloca=yes
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_cv_lib_gcc___alloca=no
18981 rm -f core conftest.err conftest.$ac_objext \
18982 conftest$ac_exeext conftest.$ac_ext
18983 LIBS=$ac_check_lib_save_LIBS
18985 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18986 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18987 if test $ac_cv_lib_gcc___alloca = yes; then
18989 cat >>confdefs.h <<\_ACEOF
18990 #define HAVE___ALLOCA 1
18995 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18996 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18997 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 ac_check_lib_save_LIBS=$LIBS
19002 cat >conftest.$ac_ext <<_ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19009 /* Override any GCC internal prototype to avoid an error.
19010 Use char because int might match the return type of a GCC
19011 builtin and then its argument prototype would still apply. */
19019 return __chkstk ();
19024 rm -f conftest.$ac_objext conftest$ac_exeext
19025 if { (ac_try="$ac_link"
19026 case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_link") 2>conftest.er1
19033 grep -v '^ *+' conftest.er1 >conftest.err
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } &&
19038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19039 { (case "(($ac_try" in
19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_try") 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest$ac_exeext'
19049 { (case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_try") 2>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; }; then
19058 ac_cv_lib_gcc___chkstk=yes
19060 echo "$as_me: failed program was:" >&5
19061 sed 's/^/| /' conftest.$ac_ext >&5
19063 ac_cv_lib_gcc___chkstk=no
19066 rm -f core conftest.err conftest.$ac_objext \
19067 conftest$ac_exeext conftest.$ac_ext
19068 LIBS=$ac_check_lib_save_LIBS
19070 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19071 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19072 if test $ac_cv_lib_gcc___chkstk = yes; then
19074 cat >>confdefs.h <<\_ACEOF
19075 #define HAVE___CHKSTK 1
19080 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19081 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19082 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19085 ac_check_lib_save_LIBS=$LIBS
19087 cat >conftest.$ac_ext <<_ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19094 /* Override any GCC internal prototype to avoid an error.
19095 Use char because int might match the return type of a GCC
19096 builtin and then its argument prototype would still apply. */
19104 return ___chkstk ();
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (ac_try="$ac_link"
19111 case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_link") 2>conftest.er1
19118 grep -v '^ *+' conftest.er1 >conftest.err
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
19123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19124 { (case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_try") 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; } &&
19133 { ac_try='test -s conftest$ac_exeext'
19134 { (case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_try") 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19143 ac_cv_lib_gcc____chkstk=yes
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_cv_lib_gcc____chkstk=no
19151 rm -f core conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19153 LIBS=$ac_check_lib_save_LIBS
19155 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19156 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19157 if test $ac_cv_lib_gcc____chkstk = yes; then
19159 cat >>confdefs.h <<\_ACEOF
19160 #define HAVE____CHKSTK 1
19166 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19167 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19168 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19169 echo $ECHO_N "(cached) $ECHO_C" >&6
19171 ac_check_lib_save_LIBS=$LIBS
19173 cat >conftest.$ac_ext <<_ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19180 /* Override any GCC internal prototype to avoid an error.
19181 Use char because int might match the return type of a GCC
19182 builtin and then its argument prototype would still apply. */
19190 return __ashldi3 ();
19195 rm -f conftest.$ac_objext conftest$ac_exeext
19196 if { (ac_try="$ac_link"
19197 case "(($ac_try" in
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202 (eval "$ac_link") 2>conftest.er1
19204 grep -v '^ *+' conftest.er1 >conftest.err
19206 cat conftest.err >&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } &&
19209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19210 { (case "(($ac_try" in
19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212 *) ac_try_echo=$ac_try;;
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215 (eval "$ac_try") 2>&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try='test -s conftest$ac_exeext'
19220 { (case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_try") 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; }; then
19229 ac_cv_lib_gcc___ashldi3=yes
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_cv_lib_gcc___ashldi3=no
19237 rm -f core conftest.err conftest.$ac_objext \
19238 conftest$ac_exeext conftest.$ac_ext
19239 LIBS=$ac_check_lib_save_LIBS
19241 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19242 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19243 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE___ASHLDI3 1
19251 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19252 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19253 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 ac_check_lib_save_LIBS=$LIBS
19258 cat >conftest.$ac_ext <<_ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19265 /* Override any GCC internal prototype to avoid an error.
19266 Use char because int might match the return type of a GCC
19267 builtin and then its argument prototype would still apply. */
19275 return __ashrdi3 ();
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (ac_try="$ac_link"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_link") 2>conftest.er1
19289 grep -v '^ *+' conftest.er1 >conftest.err
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
19294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19295 { (case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_try") 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; } &&
19304 { ac_try='test -s conftest$ac_exeext'
19305 { (case "(($ac_try" in
19306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307 *) ac_try_echo=$ac_try;;
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310 (eval "$ac_try") 2>&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19314 ac_cv_lib_gcc___ashrdi3=yes
19316 echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19319 ac_cv_lib_gcc___ashrdi3=no
19322 rm -f core conftest.err conftest.$ac_objext \
19323 conftest$ac_exeext conftest.$ac_ext
19324 LIBS=$ac_check_lib_save_LIBS
19326 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19327 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19328 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19330 cat >>confdefs.h <<\_ACEOF
19331 #define HAVE___ASHRDI3 1
19336 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19337 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19338 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 ac_check_lib_save_LIBS=$LIBS
19343 cat >conftest.$ac_ext <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19350 /* Override any GCC internal prototype to avoid an error.
19351 Use char because int might match the return type of a GCC
19352 builtin and then its argument prototype would still apply. */
19360 return __divdi3 ();
19365 rm -f conftest.$ac_objext conftest$ac_exeext
19366 if { (ac_try="$ac_link"
19367 case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_link") 2>conftest.er1
19374 grep -v '^ *+' conftest.er1 >conftest.err
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
19379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19380 { (case "(($ac_try" in
19381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382 *) ac_try_echo=$ac_try;;
19384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19385 (eval "$ac_try") 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest$ac_exeext'
19390 { (case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_try") 2>&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; }; then
19399 ac_cv_lib_gcc___divdi3=yes
19401 echo "$as_me: failed program was:" >&5
19402 sed 's/^/| /' conftest.$ac_ext >&5
19404 ac_cv_lib_gcc___divdi3=no
19407 rm -f core conftest.err conftest.$ac_objext \
19408 conftest$ac_exeext conftest.$ac_ext
19409 LIBS=$ac_check_lib_save_LIBS
19411 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19412 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19413 if test $ac_cv_lib_gcc___divdi3 = yes; then
19415 cat >>confdefs.h <<\_ACEOF
19416 #define HAVE___DIVDI3 1
19421 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19422 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19423 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 ac_check_lib_save_LIBS=$LIBS
19428 cat >conftest.$ac_ext <<_ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19435 /* Override any GCC internal prototype to avoid an error.
19436 Use char because int might match the return type of a GCC
19437 builtin and then its argument prototype would still apply. */
19445 return __fixdfdi ();
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (ac_try="$ac_link"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_link") 2>conftest.er1
19459 grep -v '^ *+' conftest.er1 >conftest.err
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
19464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19465 { (case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_try") 2>&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; } &&
19474 { ac_try='test -s conftest$ac_exeext'
19475 { (case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_try") 2>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 ac_cv_lib_gcc___fixdfdi=yes
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 ac_cv_lib_gcc___fixdfdi=no
19492 rm -f core conftest.err conftest.$ac_objext \
19493 conftest$ac_exeext conftest.$ac_ext
19494 LIBS=$ac_check_lib_save_LIBS
19496 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19497 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19498 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19500 cat >>confdefs.h <<\_ACEOF
19501 #define HAVE___FIXDFDI 1
19506 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19507 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19508 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 ac_check_lib_save_LIBS=$LIBS
19513 cat >conftest.$ac_ext <<_ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19520 /* Override any GCC internal prototype to avoid an error.
19521 Use char because int might match the return type of a GCC
19522 builtin and then its argument prototype would still apply. */
19530 return __fixsfdi ();
19535 rm -f conftest.$ac_objext conftest$ac_exeext
19536 if { (ac_try="$ac_link"
19537 case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_link") 2>conftest.er1
19544 grep -v '^ *+' conftest.er1 >conftest.err
19546 cat conftest.err >&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } &&
19549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19550 { (case "(($ac_try" in
19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_try") 2>&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; } &&
19559 { ac_try='test -s conftest$ac_exeext'
19560 { (case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_try") 2>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19569 ac_cv_lib_gcc___fixsfdi=yes
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 ac_cv_lib_gcc___fixsfdi=no
19577 rm -f core conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19581 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19582 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19583 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19585 cat >>confdefs.h <<\_ACEOF
19586 #define HAVE___FIXSFDI 1
19591 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19592 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19593 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 ac_check_lib_save_LIBS=$LIBS
19598 cat >conftest.$ac_ext <<_ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19605 /* Override any GCC internal prototype to avoid an error.
19606 Use char because int might match the return type of a GCC
19607 builtin and then its argument prototype would still apply. */
19611 char __floatdidf ();
19615 return __floatdidf ();
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_link") 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } &&
19634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19635 { (case "(($ac_try" in
19636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637 *) ac_try_echo=$ac_try;;
19639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640 (eval "$ac_try") 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try='test -s conftest$ac_exeext'
19645 { (case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_try") 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
19654 ac_cv_lib_gcc___floatdidf=yes
19656 echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_cv_lib_gcc___floatdidf=no
19662 rm -f core conftest.err conftest.$ac_objext \
19663 conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19666 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19667 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19668 if test $ac_cv_lib_gcc___floatdidf = yes; then
19670 cat >>confdefs.h <<\_ACEOF
19671 #define HAVE___FLOATDIDF 1
19676 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19677 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19678 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 ac_check_lib_save_LIBS=$LIBS
19683 cat >conftest.$ac_ext <<_ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h. */
19690 /* Override any GCC internal prototype to avoid an error.
19691 Use char because int might match the return type of a GCC
19692 builtin and then its argument prototype would still apply. */
19700 return __lshrdi3 ();
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (ac_try="$ac_link"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_link") 2>conftest.er1
19714 grep -v '^ *+' conftest.er1 >conftest.err
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest$ac_exeext'
19730 { (case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_try") 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; }; then
19739 ac_cv_lib_gcc___lshrdi3=yes
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 ac_cv_lib_gcc___lshrdi3=no
19747 rm -f core conftest.err conftest.$ac_objext \
19748 conftest$ac_exeext conftest.$ac_ext
19749 LIBS=$ac_check_lib_save_LIBS
19751 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19752 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19753 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19755 cat >>confdefs.h <<\_ACEOF
19756 #define HAVE___LSHRDI3 1
19761 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19762 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19763 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 ac_check_lib_save_LIBS=$LIBS
19768 cat >conftest.$ac_ext <<_ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19775 /* Override any GCC internal prototype to avoid an error.
19776 Use char because int might match the return type of a GCC
19777 builtin and then its argument prototype would still apply. */
19785 return __moddi3 ();
19790 rm -f conftest.$ac_objext conftest$ac_exeext
19791 if { (ac_try="$ac_link"
19792 case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_link") 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19805 { (case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810 (eval "$ac_try") 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest$ac_exeext'
19815 { (case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_try") 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 ac_cv_lib_gcc___moddi3=yes
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ac_cv_lib_gcc___moddi3=no
19832 rm -f core conftest.err conftest.$ac_objext \
19833 conftest$ac_exeext conftest.$ac_ext
19834 LIBS=$ac_check_lib_save_LIBS
19836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19837 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19838 if test $ac_cv_lib_gcc___moddi3 = yes; then
19840 cat >>confdefs.h <<\_ACEOF
19841 #define HAVE___MODDI3 1
19846 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19847 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19848 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 ac_check_lib_save_LIBS=$LIBS
19853 cat >conftest.$ac_ext <<_ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19860 /* Override any GCC internal prototype to avoid an error.
19861 Use char because int might match the return type of a GCC
19862 builtin and then its argument prototype would still apply. */
19870 return __udivdi3 ();
19875 rm -f conftest.$ac_objext conftest$ac_exeext
19876 if { (ac_try="$ac_link"
19877 case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_link") 2>conftest.er1
19884 grep -v '^ *+' conftest.er1 >conftest.err
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19890 { (case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_try") 2>&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try='test -s conftest$ac_exeext'
19900 { (case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_try") 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19909 ac_cv_lib_gcc___udivdi3=yes
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 ac_cv_lib_gcc___udivdi3=no
19917 rm -f core conftest.err conftest.$ac_objext \
19918 conftest$ac_exeext conftest.$ac_ext
19919 LIBS=$ac_check_lib_save_LIBS
19921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19922 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19923 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE___UDIVDI3 1
19931 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19932 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19933 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 ac_check_lib_save_LIBS=$LIBS
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19945 /* Override any GCC internal prototype to avoid an error.
19946 Use char because int might match the return type of a GCC
19947 builtin and then its argument prototype would still apply. */
19955 return __umoddi3 ();
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_link") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } &&
19974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19975 { (case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_try") 2>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest$ac_exeext'
19985 { (case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_try") 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_cv_lib_gcc___umoddi3=yes
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 ac_cv_lib_gcc___umoddi3=no
20002 rm -f core conftest.err conftest.$ac_objext \
20003 conftest$ac_exeext conftest.$ac_ext
20004 LIBS=$ac_check_lib_save_LIBS
20006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20007 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20008 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20010 cat >>confdefs.h <<\_ACEOF
20011 #define HAVE___UMODDI3 1
20017 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20018 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20019 if test "${ac_cv_lib_gcc___main+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 ac_check_lib_save_LIBS=$LIBS
20024 cat >conftest.$ac_ext <<_ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20031 /* Override any GCC internal prototype to avoid an error.
20032 Use char because int might match the return type of a GCC
20033 builtin and then its argument prototype would still apply. */
20046 rm -f conftest.$ac_objext conftest$ac_exeext
20047 if { (ac_try="$ac_link"
20048 case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_link") 2>conftest.er1
20055 grep -v '^ *+' conftest.er1 >conftest.err
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
20060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20061 { (case "(($ac_try" in
20062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063 *) ac_try_echo=$ac_try;;
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066 (eval "$ac_try") 2>&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; } &&
20070 { ac_try='test -s conftest$ac_exeext'
20071 { (case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_try") 2>&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; }; then
20080 ac_cv_lib_gcc___main=yes
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 ac_cv_lib_gcc___main=no
20088 rm -f core conftest.err conftest.$ac_objext \
20089 conftest$ac_exeext conftest.$ac_ext
20090 LIBS=$ac_check_lib_save_LIBS
20092 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20093 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20094 if test $ac_cv_lib_gcc___main = yes; then
20096 cat >>confdefs.h <<\_ACEOF
20097 #define HAVE___MAIN 1
20102 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20103 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20104 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 ac_check_lib_save_LIBS=$LIBS
20109 cat >conftest.$ac_ext <<_ACEOF
20112 cat confdefs.h >>conftest.$ac_ext
20113 cat >>conftest.$ac_ext <<_ACEOF
20114 /* end confdefs.h. */
20116 /* Override any GCC internal prototype to avoid an error.
20117 Use char because int might match the return type of a GCC
20118 builtin and then its argument prototype would still apply. */
20126 return __cmpdi2 ();
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (ac_try="$ac_link"
20133 case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_link") 2>conftest.er1
20140 grep -v '^ *+' conftest.er1 >conftest.err
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest$ac_exeext'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20165 ac_cv_lib_gcc___cmpdi2=yes
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20170 ac_cv_lib_gcc___cmpdi2=no
20173 rm -f core conftest.err conftest.$ac_objext \
20174 conftest$ac_exeext conftest.$ac_ext
20175 LIBS=$ac_check_lib_save_LIBS
20177 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20178 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20179 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20181 cat >>confdefs.h <<\_ACEOF
20182 #define HAVE___CMPDI2 1
20189 if test "$llvm_cv_os_type" = "MingW" ; then
20190 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20191 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20192 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20200 #include <windows.h>
20201 #include <imagehlp.h>
20202 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20203 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20207 rm -f conftest.$ac_objext
20208 if { (ac_try="$ac_compile"
20209 case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_compile") 2>conftest.er1
20216 grep -v '^ *+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20222 { (case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_try") 2>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; } &&
20231 { ac_try='test -s conftest.$ac_objext'
20232 { (case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_try") 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20242 { echo "$as_me:$LINENO: result: yes" >&5
20243 echo "${ECHO_T}yes" >&6; }
20244 llvm_cv_win32_elmcb_pcstr="PCSTR"
20247 echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20251 { echo "$as_me:$LINENO: result: no" >&5
20252 echo "${ECHO_T}no" >&6; }
20253 llvm_cv_win32_elmcb_pcstr="PSTR"
20257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 cat >>confdefs.h <<_ACEOF
20260 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20267 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20268 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20269 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20274 ac_cpp='$CXXCPP $CPPFLAGS'
20275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20279 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20294 rm -f conftest.$ac_objext
20295 if { (ac_try="$ac_compile"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_compile") 2>conftest.er1
20303 grep -v '^ *+' conftest.er1 >conftest.err
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
20308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20309 { (case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_try") 2>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; } &&
20318 { ac_try='test -s conftest.$ac_objext'
20319 { (case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_try") 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20328 ac_cv_func_isnan_in_math_h=yes
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20333 ac_cv_func_isnan_in_math_h=no
20336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20338 ac_cpp='$CPP $CPPFLAGS'
20339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20345 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20346 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20349 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20351 cat >>confdefs.h <<\_ACEOF
20352 #define HAVE_ISNAN_IN_MATH_H 1
20358 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20359 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20360 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 ac_cpp='$CXXCPP $CPPFLAGS'
20366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20370 cat >conftest.$ac_ext <<_ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20385 rm -f conftest.$ac_objext
20386 if { (ac_try="$ac_compile"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20392 (eval "$ac_compile") 2>conftest.er1
20394 grep -v '^ *+' conftest.er1 >conftest.err
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } &&
20399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20400 { (case "(($ac_try" in
20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402 *) ac_try_echo=$ac_try;;
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405 (eval "$ac_try") 2>&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; } &&
20409 { ac_try='test -s conftest.$ac_objext'
20410 { (case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_try") 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; }; then
20419 ac_cv_func_isnan_in_cmath=yes
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 ac_cv_func_isnan_in_cmath=no
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20429 ac_cpp='$CPP $CPPFLAGS'
20430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20436 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20437 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20439 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20441 cat >>confdefs.h <<\_ACEOF
20442 #define HAVE_ISNAN_IN_CMATH 1
20448 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20449 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20450 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 ac_cpp='$CXXCPP $CPPFLAGS'
20456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20470 float f; std::isnan(f);
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20484 grep -v '^ *+' conftest.er1 >conftest.err
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest.$ac_objext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 ac_cv_func_std_isnan_in_cmath=yes
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ac_cv_func_std_isnan_in_cmath=no
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20519 ac_cpp='$CPP $CPPFLAGS'
20520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20526 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20527 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20529 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE_STD_ISNAN_IN_CMATH 1
20540 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20541 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20542 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 ac_cpp='$CXXCPP $CPPFLAGS'
20548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20552 cat >conftest.$ac_ext <<_ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20567 rm -f conftest.$ac_objext
20568 if { (ac_try="$ac_compile"
20569 case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_compile") 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20582 { (case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_try") 2>&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try='test -s conftest.$ac_objext'
20592 { (case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_try") 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 ac_cv_func_isinf_in_math_h=yes
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_cv_func_isinf_in_math_h=no
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 ac_cpp='$CPP $CPPFLAGS'
20612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20618 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20619 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20621 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20623 cat >>confdefs.h <<\_ACEOF
20624 #define HAVE_ISINF_IN_MATH_H 1
20630 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20631 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20632 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20633 echo $ECHO_N "(cached) $ECHO_C" >&6
20637 ac_cpp='$CXXCPP $CPPFLAGS'
20638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20642 cat >conftest.$ac_ext <<_ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20657 rm -f conftest.$ac_objext
20658 if { (ac_try="$ac_compile"
20659 case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_compile") 2>conftest.er1
20666 grep -v '^ *+' conftest.er1 >conftest.err
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } &&
20671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20672 { (case "(($ac_try" in
20673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674 *) ac_try_echo=$ac_try;;
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677 (eval "$ac_try") 2>&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; } &&
20681 { ac_try='test -s conftest.$ac_objext'
20682 { (case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_try") 2>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; }; then
20691 ac_cv_func_isinf_in_cmath=yes
20693 echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20696 ac_cv_func_isinf_in_cmath=no
20699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701 ac_cpp='$CPP $CPPFLAGS'
20702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20708 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20709 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20711 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20713 cat >>confdefs.h <<\_ACEOF
20714 #define HAVE_ISINF_IN_CMATH 1
20720 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20721 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20722 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
20727 ac_cpp='$CXXCPP $CPPFLAGS'
20728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20732 cat >conftest.$ac_ext <<_ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h. */
20742 float f; std::isinf(f);
20747 rm -f conftest.$ac_objext
20748 if { (ac_try="$ac_compile"
20749 case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_compile") 2>conftest.er1
20756 grep -v '^ *+' conftest.er1 >conftest.err
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } &&
20761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20762 { (case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_try") 2>&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; } &&
20771 { ac_try='test -s conftest.$ac_objext'
20772 { (case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_try") 2>&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781 ac_cv_func_std_isinf_in_cmath=yes
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20786 ac_cv_func_std_isinf_in_cmath=no
20789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20791 ac_cpp='$CPP $CPPFLAGS'
20792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20798 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20799 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20801 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20803 cat >>confdefs.h <<\_ACEOF
20804 #define HAVE_STD_ISINF_IN_CMATH 1
20810 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20811 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20812 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20817 ac_cpp='$CXXCPP $CPPFLAGS'
20818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20822 cat >conftest.$ac_ext <<_ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20828 #include <ieeefp.h>
20832 float f; finite(f);
20837 rm -f conftest.$ac_objext
20838 if { (ac_try="$ac_compile"
20839 case "(($ac_try" in
20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841 *) ac_try_echo=$ac_try;;
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844 (eval "$ac_compile") 2>conftest.er1
20846 grep -v '^ *+' conftest.er1 >conftest.err
20848 cat conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } &&
20851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20852 { (case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_try") 2>&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; } &&
20861 { ac_try='test -s conftest.$ac_objext'
20862 { (case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_try") 2>&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; }; then
20871 ac_cv_func_finite_in_ieeefp_h=yes
20873 echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20876 ac_cv_func_finite_in_ieeefp_h=no
20879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20881 ac_cpp='$CPP $CPPFLAGS'
20882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20888 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20889 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20891 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20893 cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_FINITE_IN_IEEEFP_H 1
20901 if test "$llvm_cv_platform_type" = "Unix" ; then
20904 for ac_header in stdlib.h unistd.h
20906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20913 ac_res=`eval echo '${'$as_ac_Header'}'`
20914 { echo "$as_me:$LINENO: result: $ac_res" >&5
20915 echo "${ECHO_T}$ac_res" >&6; }
20917 # Is the header compilable?
20918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20920 cat >conftest.$ac_ext <<_ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 $ac_includes_default
20927 #include <$ac_header>
20929 rm -f conftest.$ac_objext
20930 if { (ac_try="$ac_compile"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_compile") 2>conftest.er1
20938 grep -v '^ *+' conftest.er1 >conftest.err
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } &&
20943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20944 { (case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_try") 2>&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; } &&
20953 { ac_try='test -s conftest.$ac_objext'
20954 { (case "(($ac_try" in
20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956 *) ac_try_echo=$ac_try;;
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959 (eval "$ac_try") 2>&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }; then
20963 ac_header_compiler=yes
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 ac_header_compiler=no
20971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20973 echo "${ECHO_T}$ac_header_compiler" >&6; }
20975 # Is the header present?
20976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20978 cat >conftest.$ac_ext <<_ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20984 #include <$ac_header>
20986 if { (ac_try="$ac_cpp conftest.$ac_ext"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20994 grep -v '^ *+' conftest.er1 >conftest.err
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } >/dev/null; then
20999 if test -s conftest.err; then
21000 ac_cpp_err=$ac_c_preproc_warn_flag
21001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21008 if test -z "$ac_cpp_err"; then
21009 ac_header_preproc=yes
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_header_preproc=no
21017 rm -f conftest.err conftest.$ac_ext
21018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21019 echo "${ECHO_T}$ac_header_preproc" >&6; }
21021 # So? What about this header?
21022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21028 ac_header_preproc=yes
21031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21044 ## ------------------------------------ ##
21045 ## Report this to http://llvm.org/bugs/ ##
21046 ## ------------------------------------ ##
21048 ) | sed "s/^/$as_me: WARNING: /" >&2
21051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6
21056 eval "$as_ac_Header=\$ac_header_preproc"
21058 ac_res=`eval echo '${'$as_ac_Header'}'`
21059 { echo "$as_me:$LINENO: result: $ac_res" >&5
21060 echo "${ECHO_T}$ac_res" >&6; }
21063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21064 cat >>confdefs.h <<_ACEOF
21065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21073 for ac_func in getpagesize
21075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 cat >conftest.$ac_ext <<_ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h. */
21087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21089 #define $ac_func innocuous_$ac_func
21091 /* System header to define __stub macros and hopefully few prototypes,
21092 which can conflict with char $ac_func (); below.
21093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21094 <limits.h> exists even on freestanding compilers. */
21097 # include <limits.h>
21099 # include <assert.h>
21104 /* Override any GCC internal prototype to avoid an error.
21105 Use char because int might match the return type of a GCC
21106 builtin and then its argument prototype would still apply. */
21111 /* The GNU C library defines this for functions which it implements
21112 to always fail with ENOSYS. Some functions are actually named
21113 something starting with __ and the normal name is an alias. */
21114 #if defined __stub_$ac_func || defined __stub___$ac_func
21121 return $ac_func ();
21126 rm -f conftest.$ac_objext conftest$ac_exeext
21127 if { (ac_try="$ac_link"
21128 case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_link") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21141 { (case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_try") 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try='test -s conftest$ac_exeext'
21151 { (case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_try") 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 eval "$as_ac_var=yes"
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21165 eval "$as_ac_var=no"
21168 rm -f core conftest.err conftest.$ac_objext \
21169 conftest$ac_exeext conftest.$ac_ext
21171 ac_res=`eval echo '${'$as_ac_var'}'`
21172 { echo "$as_me:$LINENO: result: $ac_res" >&5
21173 echo "${ECHO_T}$ac_res" >&6; }
21174 if test `eval echo '${'$as_ac_var'}'` = yes; then
21175 cat >>confdefs.h <<_ACEOF
21176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21182 { echo "$as_me:$LINENO: checking for working mmap" >&5
21183 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21184 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 if test "$cross_compiling" = yes; then
21188 ac_cv_func_mmap_fixed_mapped=no
21190 cat >conftest.$ac_ext <<_ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h. */
21196 $ac_includes_default
21197 /* malloc might have been renamed as rpl_malloc. */
21200 /* Thanks to Mike Haertel and Jim Avera for this test.
21201 Here is a matrix of mmap possibilities:
21202 mmap private not fixed
21203 mmap private fixed at somewhere currently unmapped
21204 mmap private fixed at somewhere already mapped
21205 mmap shared not fixed
21206 mmap shared fixed at somewhere currently unmapped
21207 mmap shared fixed at somewhere already mapped
21208 For private mappings, we should verify that changes cannot be read()
21209 back from the file, nor mmap's back from the file at a different
21210 address. (There have been systems where private was not correctly
21211 implemented like the infamous i386 svr4.0, and systems where the
21212 VM page cache was not coherent with the file system buffer cache
21213 like early versions of FreeBSD and possibly contemporary NetBSD.)
21214 For shared mappings, we should conversely verify that changes get
21215 propagated back to all the places they're supposed to be.
21217 Grep wants private fixed already mapped.
21218 The main things grep needs to know about mmap are:
21219 * does it exist and is it safe to write into the mmap'd area
21220 * how to use it (BSD variants) */
21223 #include <sys/mman.h>
21225 #if !STDC_HEADERS && !HAVE_STDLIB_H
21229 /* This mess was copied from the GNU getpagesize.h. */
21230 #if !HAVE_GETPAGESIZE
21231 /* Assume that all systems that can run configure have sys/param.h. */
21232 # if !HAVE_SYS_PARAM_H
21233 # define HAVE_SYS_PARAM_H 1
21236 # ifdef _SC_PAGESIZE
21237 # define getpagesize() sysconf(_SC_PAGESIZE)
21238 # else /* no _SC_PAGESIZE */
21239 # if HAVE_SYS_PARAM_H
21240 # include <sys/param.h>
21241 # ifdef EXEC_PAGESIZE
21242 # define getpagesize() EXEC_PAGESIZE
21243 # else /* no EXEC_PAGESIZE */
21245 # define getpagesize() NBPG * CLSIZE
21248 # endif /* no CLSIZE */
21249 # else /* no NBPG */
21251 # define getpagesize() NBPC
21252 # else /* no NBPC */
21254 # define getpagesize() PAGESIZE
21255 # endif /* PAGESIZE */
21256 # endif /* no NBPC */
21257 # endif /* no NBPG */
21258 # endif /* no EXEC_PAGESIZE */
21259 # else /* no HAVE_SYS_PARAM_H */
21260 # define getpagesize() 8192 /* punt totally */
21261 # endif /* no HAVE_SYS_PARAM_H */
21262 # endif /* no _SC_PAGESIZE */
21264 #endif /* no HAVE_GETPAGESIZE */
21269 char *data, *data2, *data3;
21273 pagesize = getpagesize ();
21275 /* First, make a file with some known garbage in it. */
21276 data = (char *) malloc (pagesize);
21279 for (i = 0; i < pagesize; ++i)
21280 *(data + i) = rand ();
21282 fd = creat ("conftest.mmap", 0600);
21285 if (write (fd, data, pagesize) != pagesize)
21289 /* Next, try to mmap the file at a fixed address which already has
21290 something else allocated at it. If we can, also make sure that
21291 we see the same garbage. */
21292 fd = open ("conftest.mmap", O_RDWR);
21295 data2 = (char *) malloc (2 * pagesize);
21298 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21299 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21300 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21302 for (i = 0; i < pagesize; ++i)
21303 if (*(data + i) != *(data2 + i))
21306 /* Finally, make sure that changes to the mapped area do not
21307 percolate back to the file as seen by read(). (This is a bug on
21308 some variants of i386 svr4.0.) */
21309 for (i = 0; i < pagesize; ++i)
21310 *(data2 + i) = *(data2 + i) + 1;
21311 data3 = (char *) malloc (pagesize);
21314 if (read (fd, data3, pagesize) != pagesize)
21316 for (i = 0; i < pagesize; ++i)
21317 if (*(data + i) != *(data3 + i))
21323 rm -f conftest$ac_exeext
21324 if { (ac_try="$ac_link"
21325 case "(($ac_try" in
21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330 (eval "$ac_link") 2>&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21334 { (case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_try") 2>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_cv_func_mmap_fixed_mapped=yes
21345 echo "$as_me: program exited with status $ac_status" >&5
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ( exit $ac_status )
21350 ac_cv_func_mmap_fixed_mapped=no
21352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21357 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21358 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21359 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21361 cat >>confdefs.h <<\_ACEOF
21362 #define HAVE_MMAP 1
21366 rm -f conftest.mmap
21368 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21369 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21370 if test "${ac_cv_func_mmap_file+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 ac_cpp='$CPP $CPPFLAGS'
21375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21379 if test "$cross_compiling" = yes; then
21380 ac_cv_func_mmap_file=no
21382 cat >conftest.$ac_ext <<_ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h. */
21390 #include <sys/types.h>
21391 #include <sys/mman.h>
21399 fd = creat ("foo",0777);
21400 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21402 return (fd != (int) MAP_FAILED);
21407 rm -f conftest$ac_exeext
21408 if { (ac_try="$ac_link"
21409 case "(($ac_try" in
21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411 *) ac_try_echo=$ac_try;;
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414 (eval "$ac_link") 2>&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418 { (case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_try") 2>&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; }; then
21427 ac_cv_func_mmap_file=yes
21429 echo "$as_me: program exited with status $ac_status" >&5
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ( exit $ac_status )
21434 ac_cv_func_mmap_file=no
21436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21441 ac_cpp='$CPP $CPPFLAGS'
21442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21448 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21449 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21450 if test "$ac_cv_func_mmap_file" = yes; then
21452 cat >>confdefs.h <<\_ACEOF
21453 #define HAVE_MMAP_FILE
21460 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21461 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21462 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 if test "$llvm_cv_os_type" = "Interix" ; then
21466 ac_cv_need_dev_zero_for_mmap=yes
21468 ac_cv_need_dev_zero_for_mmap=no
21472 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21473 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21474 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21476 cat >>confdefs.h <<\_ACEOF
21477 #define NEED_DEV_ZERO_FOR_MMAP 1
21482 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21484 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21485 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21487 if test "$ac_cv_func_mmap_file" = "no"
21489 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21490 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21494 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21495 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21497 ac_cpp='$CXXCPP $CPPFLAGS'
21498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21502 cat >conftest.$ac_ext <<_ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21511 volatile unsigned long val = 1;
21512 __sync_synchronize();
21513 __sync_val_compare_and_swap(&val, 1, 0);
21514 __sync_add_and_fetch(&val, 1);
21515 __sync_sub_and_fetch(&val, 1);
21521 rm -f conftest.$ac_objext conftest$ac_exeext
21522 if { (ac_try="$ac_link"
21523 case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_link") 2>conftest.er1
21530 grep -v '^ *+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } &&
21535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21536 { (case "(($ac_try" in
21537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538 *) ac_try_echo=$ac_try;;
21540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541 (eval "$ac_try") 2>&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; } &&
21545 { ac_try='test -s conftest$ac_exeext'
21546 { (case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_try") 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21556 { echo "$as_me:$LINENO: result: yes" >&5
21557 echo "${ECHO_T}yes" >&6; }
21559 cat >>confdefs.h <<\_ACEOF
21560 #define LLVM_HAS_ATOMICS 1
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21569 { echo "$as_me:$LINENO: result: no" >&5
21570 echo "${ECHO_T}no" >&6; }
21572 cat >>confdefs.h <<\_ACEOF
21573 #define LLVM_HAS_ATOMICS 0
21576 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21577 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21581 rm -f core conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21584 ac_cpp='$CPP $CPPFLAGS'
21585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21591 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21592 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21593 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21594 if test "${llvm_cv_linux_mixed+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21598 ac_cpp='$CPP $CPPFLAGS'
21599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21603 cat >conftest.$ac_ext <<_ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21610 error: Not x86-64 even if uname says so!
21621 rm -f conftest.$ac_objext
21622 if { (ac_try="$ac_compile"
21623 case "(($ac_try" in
21624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625 *) ac_try_echo=$ac_try;;
21627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628 (eval "$ac_compile") 2>conftest.er1
21630 grep -v '^ *+' conftest.er1 >conftest.err
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
21635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21636 { (case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_try") 2>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; } &&
21645 { ac_try='test -s conftest.$ac_objext'
21646 { (case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_try") 2>&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); }; }; then
21655 llvm_cv_linux_mixed=no
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21660 llvm_cv_linux_mixed=yes
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 ac_cpp='$CPP $CPPFLAGS'
21666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21672 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21673 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21675 if test "$llvm_cv_linux_mixed" = "yes"; then
21676 llvm_cv_target_arch="x86"
21682 for ac_func in __dso_handle
21684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21698 #define $ac_func innocuous_$ac_func
21700 /* System header to define __stub macros and hopefully few prototypes,
21701 which can conflict with char $ac_func (); below.
21702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21703 <limits.h> exists even on freestanding compilers. */
21706 # include <limits.h>
21708 # include <assert.h>
21713 /* Override any GCC internal prototype to avoid an error.
21714 Use char because int might match the return type of a GCC
21715 builtin and then its argument prototype would still apply. */
21720 /* The GNU C library defines this for functions which it implements
21721 to always fail with ENOSYS. Some functions are actually named
21722 something starting with __ and the normal name is an alias. */
21723 #if defined __stub_$ac_func || defined __stub___$ac_func
21730 return $ac_func ();
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (ac_try="$ac_link"
21737 case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_link") 2>conftest.er1
21744 grep -v '^ *+' conftest.er1 >conftest.err
21746 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } &&
21749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21750 { (case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_try") 2>&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; } &&
21759 { ac_try='test -s conftest$ac_exeext'
21760 { (case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_try") 2>&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
21769 eval "$as_ac_var=yes"
21771 echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21774 eval "$as_ac_var=no"
21777 rm -f core conftest.err conftest.$ac_objext \
21778 conftest$ac_exeext conftest.$ac_ext
21780 ac_res=`eval echo '${'$as_ac_var'}'`
21781 { echo "$as_me:$LINENO: result: $ac_res" >&5
21782 echo "${ECHO_T}$ac_res" >&6; }
21783 if test `eval echo '${'$as_ac_var'}'` = yes; then
21784 cat >>confdefs.h <<_ACEOF
21785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21792 SHLIBEXT=$libltdl_cv_shlibext
21795 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21798 if test "${prefix}" = "NONE" ; then
21799 prefix="/usr/local"
21801 eval LLVM_PREFIX="${prefix}";
21802 eval LLVM_BINDIR="${prefix}/bin";
21803 eval LLVM_DATADIR="${prefix}/share/llvm";
21804 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21805 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21806 eval LLVM_INCLUDEDIR="${prefix}/include";
21807 eval LLVM_INFODIR="${prefix}/info";
21808 eval LLVM_MANDIR="${prefix}/man";
21809 LLVM_CONFIGTIME=`date`
21820 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21821 LLVM_CONFIGTIME="(timestamp not enabled)"
21825 cat >>confdefs.h <<_ACEOF
21826 #define LLVM_PREFIX "$LLVM_PREFIX"
21830 cat >>confdefs.h <<_ACEOF
21831 #define LLVM_BINDIR "$LLVM_BINDIR"
21835 cat >>confdefs.h <<_ACEOF
21836 #define LLVM_DATADIR "$LLVM_DATADIR"
21840 cat >>confdefs.h <<_ACEOF
21841 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21845 cat >>confdefs.h <<_ACEOF
21846 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21850 cat >>confdefs.h <<_ACEOF
21851 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21855 cat >>confdefs.h <<_ACEOF
21856 #define LLVM_INFODIR "$LLVM_INFODIR"
21860 cat >>confdefs.h <<_ACEOF
21861 #define LLVM_MANDIR "$LLVM_MANDIR"
21865 cat >>confdefs.h <<_ACEOF
21866 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21870 cat >>confdefs.h <<_ACEOF
21871 #define LLVM_HOST_TRIPLE "$host"
21875 cat >>confdefs.h <<_ACEOF
21876 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21880 if test "$BINDINGS_TO_BUILD" = auto ; then
21881 BINDINGS_TO_BUILD=""
21882 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21883 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21886 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21892 binding_prereqs_failed=0
21893 for a_binding in $BINDINGS_TO_BUILD ; do
21894 case "$a_binding" in
21896 if test "x$OCAMLC" = x ; then
21897 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21898 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21899 binding_prereqs_failed=1
21901 if test "x$OCAMLDEP" = x ; then
21902 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21903 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21904 binding_prereqs_failed=1
21906 if test "x$OCAMLOPT" = x ; then
21907 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21908 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21910 if test "x$with_ocaml_libdir" != xauto ; then
21911 OCAML_LIBDIR=$with_ocaml_libdir
21914 ocaml_stdlib="`"$OCAMLC" -where`"
21915 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21917 # ocaml stdlib is beneath our prefix; use stdlib
21918 OCAML_LIBDIR=$ocaml_stdlib
21921 # ocaml stdlib is outside our prefix; use libdir/ocaml
21922 OCAML_LIBDIR=${prefix}/lib/ocaml
21929 if test "$binding_prereqs_failed" = 1 ; then
21930 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21931 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21932 { (exit 1); exit 1; }; }
21935 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21936 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21937 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 ac_cpp='$CXXCPP $CPPFLAGS'
21942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21946 oldcxxflags="$CXXFLAGS"
21947 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21948 cat >conftest.$ac_ext <<_ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h. */
21954 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_compile") 2>conftest.er1
21972 grep -v '^ *+' conftest.er1 >conftest.err
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } &&
21977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21978 { (case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_try") 2>&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; } &&
21987 { ac_try='test -s conftest.$ac_objext'
21988 { (case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_try") 2>&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; }; then
21997 llvm_cv_cxx_visibility_inlines_hidden=yes
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 llvm_cv_cxx_visibility_inlines_hidden=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 CXXFLAGS="$oldcxxflags"
22008 ac_cpp='$CPP $CPPFLAGS'
22009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22015 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22016 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22017 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22018 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22021 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22026 if test "$llvm_cv_link_use_r" = "yes" ; then
22033 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22034 RDYNAMIC="-rdynamic"
22041 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22048 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22050 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22052 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22054 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22056 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22059 ac_config_files="$ac_config_files Makefile.config"
22062 ac_config_files="$ac_config_files llvm.spec"
22065 ac_config_files="$ac_config_files docs/doxygen.cfg"
22068 if test "${clang_src_root}" = ""; then
22069 clang_src_root="$srcdir/tools/clang"
22071 if test -f ${clang_src_root}/README.txt; then
22072 configh="include/clang/Config/config.h"
22073 doxy="docs/doxygen.cfg"
22074 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22076 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22080 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22083 test "x$program_prefix" = "xNONE" && program_prefix=""
22087 ac_config_commands="$ac_config_commands setup"
22089 ac_config_commands="$ac_config_commands Makefile"
22092 ac_config_commands="$ac_config_commands Makefile.common"
22095 ac_config_commands="$ac_config_commands examples/Makefile"
22098 ac_config_commands="$ac_config_commands lib/Makefile"
22101 ac_config_commands="$ac_config_commands runtime/Makefile"
22104 ac_config_commands="$ac_config_commands test/Makefile"
22107 ac_config_commands="$ac_config_commands test/Makefile.tests"
22110 ac_config_commands="$ac_config_commands unittests/Makefile"
22113 ac_config_commands="$ac_config_commands tools/Makefile"
22116 ac_config_commands="$ac_config_commands utils/Makefile"
22119 ac_config_commands="$ac_config_commands projects/Makefile"
22122 ac_config_commands="$ac_config_commands bindings/Makefile"
22125 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22129 cat >confcache <<\_ACEOF
22130 # This file is a shell script that caches the results of configure
22131 # tests run on this system so they can be shared between configure
22132 # scripts and configure runs, see configure's option --config-cache.
22133 # It is not useful on other systems. If it contains results you don't
22134 # want to keep, you may remove or edit it.
22136 # config.status only pays attention to the cache file if you give it
22137 # the --recheck option to rerun configure.
22139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22141 # following values.
22145 # The following way of writing the cache mishandles newlines in values,
22146 # but we know of no workaround that is simple, portable, and efficient.
22147 # So, we kill variables containing newlines.
22148 # Ultrix sh set writes to stderr and can't be redirected directly,
22149 # and sets the high bit in the cache file unless we assign to the vars.
22151 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22152 eval ac_val=\$$ac_var
22156 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22157 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22160 _ | IFS | as_nl) ;; #(
22161 *) $as_unset $ac_var ;;
22167 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22168 *${as_nl}ac_space=\ *)
22169 # `set' does not quote correctly, so add quotes (double-quote
22170 # substitution turns \\\\ into \\, and sed turns \\ into \).
22173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22176 # `set' quotes correctly as required by POSIX, so do not add quotes.
22177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22186 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22188 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22190 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22191 if test -w "$cache_file"; then
22192 test "x$cache_file" != "x/dev/null" &&
22193 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22194 echo "$as_me: updating cache $cache_file" >&6;}
22195 cat confcache >$cache_file
22197 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22198 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22203 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22204 # Let make expand exec_prefix.
22205 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22207 DEFS=-DHAVE_CONFIG_H
22211 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22212 # 1. Remove the extension, and $U if already installed.
22213 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22214 ac_i=`echo "$ac_i" | sed "$ac_script"`
22215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22216 # will be set to the directory where LIBOBJS objects are built.
22217 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22218 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22220 LIBOBJS=$ac_libobjs
22222 LTLIBOBJS=$ac_ltlibobjs
22225 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22226 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22227 Usually this means the macro was only invoked conditionally." >&5
22228 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22229 Usually this means the macro was only invoked conditionally." >&2;}
22230 { (exit 1); exit 1; }; }
22232 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22233 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22234 Usually this means the macro was only invoked conditionally." >&5
22235 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22236 Usually this means the macro was only invoked conditionally." >&2;}
22237 { (exit 1); exit 1; }; }
22240 : ${CONFIG_STATUS=./config.status}
22241 ac_clean_files_save=$ac_clean_files
22242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22243 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22244 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22245 cat >$CONFIG_STATUS <<_ACEOF
22247 # Generated by $as_me.
22248 # Run this file to recreate the current configuration.
22249 # Compiler output produced by configure, useful for debugging
22250 # configure, is in config.log if it exists.
22253 ac_cs_recheck=false
22255 SHELL=\${CONFIG_SHELL-$SHELL}
22258 cat >>$CONFIG_STATUS <<\_ACEOF
22259 ## --------------------- ##
22260 ## M4sh Initialization. ##
22261 ## --------------------- ##
22263 # Be Bourne compatible
22264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22268 # is contrary to our usage. Disable this feature.
22269 alias -g '${1+"$@"}'='"$@"'
22270 setopt NO_GLOB_SUBST
22272 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22274 BIN_SH=xpg4; export BIN_SH # for Tru64
22275 DUALCASE=1; export DUALCASE # for MKS sh
22279 # Avoid depending upon Character Ranges.
22280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22283 as_cr_digits='0123456789'
22284 as_cr_alnum=$as_cr_Letters$as_cr_digits
22286 # The user is always right.
22287 if test "${PATH_SEPARATOR+set}" != set; then
22288 echo "#! /bin/sh" >conf$$.sh
22289 echo "exit 0" >>conf$$.sh
22291 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22299 # Support unset when possible.
22300 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22308 # We need space, tab and new line, in precisely that order. Quoting is
22309 # there to prevent editors from complaining about space-tab.
22310 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22311 # splitting by setting IFS to empty value.)
22316 # Find who we are. Look in the path if we contain no directory separator.
22318 *[\\/]* ) as_myself=$0 ;;
22319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22320 for as_dir in $PATH
22323 test -z "$as_dir" && as_dir=.
22324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22330 # We did not find ourselves, most probably we were run as `sh COMMAND'
22331 # in which case we are not to be found in the path.
22332 if test "x$as_myself" = x; then
22335 if test ! -f "$as_myself"; then
22336 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22337 { (exit 1); exit 1; }
22340 # Work around bugs in pre-3.0 UWIN ksh.
22341 for as_var in ENV MAIL MAILPATH
22342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22350 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22351 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22352 LC_TELEPHONE LC_TIME
22354 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22355 eval $as_var=C; export $as_var
22357 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22361 # Required to use basename.
22362 if expr a : '\(a\)' >/dev/null 2>&1 &&
22363 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22369 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22370 as_basename=basename
22376 # Name of the executable.
22377 as_me=`$as_basename -- "$0" ||
22378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22379 X"$0" : 'X\(//\)$' \| \
22380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22382 sed '/^.*\/\([^/][^/]*\)\/*$/{
22401 as_lineno_1=$LINENO
22402 as_lineno_2=$LINENO
22403 test "x$as_lineno_1" != "x$as_lineno_2" &&
22404 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22406 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22407 # uniformly replaced by the line number. The first 'sed' inserts a
22408 # line-number line after each line using $LINENO; the second 'sed'
22409 # does the real work. The second script uses 'N' to pair each
22410 # line-number line with the line containing $LINENO, and appends
22411 # trailing '-' during substitution so that $LINENO is not a special
22412 # case at line end.
22413 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22414 # scripts with optimization help from Paolo Bonzini. Blame Lee
22415 # E. McMahon (1931-1989) for sed's syntax. :-)
22427 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22430 ' >$as_me.lineno &&
22431 chmod +x "$as_me.lineno" ||
22432 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22433 { (exit 1); exit 1; }; }
22435 # Don't try to exec as it changes $[0], causing all sort of problems
22436 # (the dirname of $[0] is not the place where we might find the
22437 # original and so on. Autoconf is especially sensitive to this).
22438 . "./$as_me.lineno"
22439 # Exit status is that of the last command.
22444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22450 ECHO_C= ECHO_N= ECHO_T=
22451 case `echo -n x` in
22453 case `echo 'x\c'` in
22454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22461 if expr a : '\(a\)' >/dev/null 2>&1 &&
22462 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22468 rm -f conf$$ conf$$.exe conf$$.file
22469 if test -d conf$$.dir; then
22470 rm -f conf$$.dir/conf$$.file
22476 if ln -s conf$$.file conf$$ 2>/dev/null; then
22478 # ... but there are two gotchas:
22479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22481 # In both cases, we have to default to `cp -p'.
22482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22484 elif ln conf$$.file conf$$ 2>/dev/null; then
22489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22490 rmdir conf$$.dir 2>/dev/null
22492 if mkdir -p . 2>/dev/null; then
22495 test -d ./-p && rmdir ./-p
22499 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22500 # systems may use methods other than mode bits to determine executability.
22501 cat >conf$$.file <<_ASEOF
22505 chmod +x conf$$.file
22506 if test -x conf$$.file >/dev/null 2>&1; then
22507 as_executable_p="test -x"
22513 # Sed expression to map a string onto a valid CPP name.
22514 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22516 # Sed expression to map a string onto a valid variable name.
22517 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22522 # Save the log message, to keep $[0] and so on meaningful, and to
22523 # report actual input values of CONFIG_FILES etc. instead of their
22524 # values after options handling.
22526 This file was extended by LLVM $as_me 3.4svn, which was
22527 generated by GNU Autoconf 2.60. Invocation command line was
22529 CONFIG_FILES = $CONFIG_FILES
22530 CONFIG_HEADERS = $CONFIG_HEADERS
22531 CONFIG_LINKS = $CONFIG_LINKS
22532 CONFIG_COMMANDS = $CONFIG_COMMANDS
22535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22540 cat >>$CONFIG_STATUS <<_ACEOF
22541 # Files that config.status was made for.
22542 config_files="$ac_config_files"
22543 config_headers="$ac_config_headers"
22544 config_commands="$ac_config_commands"
22548 cat >>$CONFIG_STATUS <<\_ACEOF
22550 \`$as_me' instantiates files from templates according to the
22551 current configuration.
22553 Usage: $0 [OPTIONS] [FILE]...
22555 -h, --help print this help, then exit
22556 -V, --version print version number, then exit
22557 -q, --quiet do not print progress messages
22558 -d, --debug don't remove temporary files
22559 --recheck update $as_me by reconfiguring in the same conditions
22560 --file=FILE[:TEMPLATE]
22561 instantiate the configuration file FILE
22562 --header=FILE[:TEMPLATE]
22563 instantiate the configuration header FILE
22565 Configuration files:
22568 Configuration headers:
22571 Configuration commands:
22574 Report bugs to <bug-autoconf@gnu.org>."
22577 cat >>$CONFIG_STATUS <<_ACEOF
22579 LLVM config.status 3.4svn
22580 configured by $0, generated by GNU Autoconf 2.60,
22581 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22583 Copyright (C) 2006 Free Software Foundation, Inc.
22584 This config.status script is free software; the Free Software Foundation
22585 gives unlimited permission to copy, distribute and modify it."
22592 cat >>$CONFIG_STATUS <<\_ACEOF
22593 # If no file are specified by the user, then we need to provide default
22594 # value. By we need to know if files were specified by the user.
22600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22612 # Handling of the options.
22613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22615 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22616 echo "$ac_cs_version"; exit ;;
22617 --debug | --debu | --deb | --de | --d | -d )
22619 --file | --fil | --fi | --f )
22621 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22622 ac_need_defaults=false;;
22623 --header | --heade | --head | --hea )
22625 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22626 ac_need_defaults=false;;
22628 # Conflict between --help and --header
22629 { echo "$as_me: error: ambiguous option: $1
22630 Try \`$0 --help' for more information." >&2
22631 { (exit 1); exit 1; }; };;
22632 --help | --hel | -h )
22633 echo "$ac_cs_usage"; exit ;;
22634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22638 # This is an error.
22639 -*) { echo "$as_me: error: unrecognized option: $1
22640 Try \`$0 --help' for more information." >&2
22641 { (exit 1); exit 1; }; } ;;
22643 *) ac_config_targets="$ac_config_targets $1"
22644 ac_need_defaults=false ;;
22650 ac_configure_extra_args=
22652 if $ac_cs_silent; then
22654 ac_configure_extra_args="$ac_configure_extra_args --silent"
22658 cat >>$CONFIG_STATUS <<_ACEOF
22659 if \$ac_cs_recheck; then
22660 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22661 CONFIG_SHELL=$SHELL
22662 export CONFIG_SHELL
22663 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22667 cat >>$CONFIG_STATUS <<\_ACEOF
22671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22672 ## Running $as_me. ##
22678 cat >>$CONFIG_STATUS <<_ACEOF
22682 llvm_src="${srcdir}"
22686 cat >>$CONFIG_STATUS <<\_ACEOF
22688 # Handling of arguments.
22689 for ac_config_target in $ac_config_targets
22691 case $ac_config_target in
22692 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22693 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22694 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22695 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22696 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22697 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22698 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22699 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22700 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22701 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22702 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22703 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22704 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22705 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22706 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22707 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22708 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22709 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22710 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22711 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22712 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22713 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22714 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22715 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22716 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22717 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22718 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22720 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22721 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22722 { (exit 1); exit 1; }; };;
22727 # If the user did not use the arguments to specify the items to instantiate,
22728 # then the envvar interface is used. Set only those that are not.
22729 # We use the long form for the default assignment because of an extremely
22730 # bizarre bug on SunOS 4.1.3.
22731 if $ac_need_defaults; then
22732 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22733 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22734 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22737 # Have a temporary directory for convenience. Make it in the build tree
22738 # simply because there is no reason against having it here, and in addition,
22739 # creating and moving files from /tmp can sometimes cause problems.
22740 # Hook for its removal unless debugging.
22741 # Note that there is a small window in which the directory will not be cleaned:
22742 # after its creation but before its name has been assigned to `$tmp'.
22746 trap 'exit_status=$?
22747 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22749 trap '{ (exit 1); exit 1; }' 1 2 13 15
22751 # Create a (secure) tmp directory for tmp files.
22754 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22755 test -n "$tmp" && test -d "$tmp"
22758 tmp=./conf$$-$RANDOM
22759 (umask 077 && mkdir "$tmp")
22762 echo "$me: cannot create a temporary directory in ." >&2
22763 { (exit 1); exit 1; }
22767 # Set up the sed scripts for CONFIG_FILES section.
22770 # No need to generate the scripts if there are no CONFIG_FILES.
22771 # This happens for instance when ./config.status config.h
22772 if test -n "$CONFIG_FILES"; then
22779 for ac_last_try in false false false false false :; do
22780 cat >conf$$subs.sed <<_ACEOF
22781 SHELL!$SHELL$ac_delim
22782 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22783 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22784 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22785 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22786 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22787 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22788 exec_prefix!$exec_prefix$ac_delim
22789 prefix!$prefix$ac_delim
22790 program_transform_name!$program_transform_name$ac_delim
22791 bindir!$bindir$ac_delim
22792 sbindir!$sbindir$ac_delim
22793 libexecdir!$libexecdir$ac_delim
22794 datarootdir!$datarootdir$ac_delim
22795 datadir!$datadir$ac_delim
22796 sysconfdir!$sysconfdir$ac_delim
22797 sharedstatedir!$sharedstatedir$ac_delim
22798 localstatedir!$localstatedir$ac_delim
22799 includedir!$includedir$ac_delim
22800 oldincludedir!$oldincludedir$ac_delim
22801 docdir!$docdir$ac_delim
22802 infodir!$infodir$ac_delim
22803 htmldir!$htmldir$ac_delim
22804 dvidir!$dvidir$ac_delim
22805 pdfdir!$pdfdir$ac_delim
22806 psdir!$psdir$ac_delim
22807 libdir!$libdir$ac_delim
22808 localedir!$localedir$ac_delim
22809 mandir!$mandir$ac_delim
22810 DEFS!$DEFS$ac_delim
22811 ECHO_C!$ECHO_C$ac_delim
22812 ECHO_N!$ECHO_N$ac_delim
22813 ECHO_T!$ECHO_T$ac_delim
22814 LIBS!$LIBS$ac_delim
22815 build_alias!$build_alias$ac_delim
22816 host_alias!$host_alias$ac_delim
22817 target_alias!$target_alias$ac_delim
22818 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22820 CFLAGS!$CFLAGS$ac_delim
22821 LDFLAGS!$LDFLAGS$ac_delim
22822 CPPFLAGS!$CPPFLAGS$ac_delim
22823 ac_ct_CC!$ac_ct_CC$ac_delim
22824 EXEEXT!$EXEEXT$ac_delim
22825 OBJEXT!$OBJEXT$ac_delim
22827 CXXFLAGS!$CXXFLAGS$ac_delim
22828 ac_ct_CXX!$ac_ct_CXX$ac_delim
22830 subdirs!$subdirs$ac_delim
22831 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22832 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22833 build!$build$ac_delim
22834 build_cpu!$build_cpu$ac_delim
22835 build_vendor!$build_vendor$ac_delim
22836 build_os!$build_os$ac_delim
22837 host!$host$ac_delim
22838 host_cpu!$host_cpu$ac_delim
22839 host_vendor!$host_vendor$ac_delim
22840 host_os!$host_os$ac_delim
22841 target!$target$ac_delim
22842 target_cpu!$target_cpu$ac_delim
22843 target_vendor!$target_vendor$ac_delim
22844 target_os!$target_os$ac_delim
22846 HOST_OS!$HOST_OS$ac_delim
22847 TARGET_OS!$TARGET_OS$ac_delim
22848 LINKALL!$LINKALL$ac_delim
22849 NOLINKALL!$NOLINKALL$ac_delim
22850 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22851 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22852 ARCH!$ARCH$ac_delim
22853 HOST_ARCH!$HOST_ARCH$ac_delim
22854 ENDIAN!$ENDIAN$ac_delim
22855 GREP!$GREP$ac_delim
22856 EGREP!$EGREP$ac_delim
22857 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22858 BUILD_CC!$BUILD_CC$ac_delim
22859 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22860 BUILD_CXX!$BUILD_CXX$ac_delim
22861 CVSBUILD!$CVSBUILD$ac_delim
22862 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22863 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22864 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22865 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22866 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22867 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22868 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22869 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22870 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22871 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22872 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22873 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22874 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22875 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22876 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22880 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22882 elif $ac_last_try; then
22883 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22884 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22885 { (exit 1); exit 1; }; }
22887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22891 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22892 if test -n "$ac_eof"; then
22893 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22894 ac_eof=`expr $ac_eof + 1`
22897 cat >>$CONFIG_STATUS <<_ACEOF
22898 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22902 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22903 s/^/s,@/; s/!/@,|#_!!_#|/
22906 s/'"$ac_delim"'$/,g/; t
22908 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22909 ' >>$CONFIG_STATUS <conf$$subs.sed
22910 rm -f conf$$subs.sed
22911 cat >>$CONFIG_STATUS <<_ACEOF
22917 for ac_last_try in false false false false false :; do
22918 cat >conf$$subs.sed <<_ACEOF
22919 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22920 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22921 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22922 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22923 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22924 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22925 ENABLE_PIC!$ENABLE_PIC$ac_delim
22926 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22927 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22928 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22929 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22930 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22931 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22932 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22933 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22934 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22935 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22936 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22937 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22938 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22939 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22940 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22942 ifGNUmake!$ifGNUmake$ac_delim
22943 LN_S!$LN_S$ac_delim
22946 DATE!$DATE$ac_delim
22947 FIND!$FIND$ac_delim
22948 MKDIR!$MKDIR$ac_delim
22950 RANLIB!$RANLIB$ac_delim
22955 BINPWD!$BINPWD$ac_delim
22956 GRAPHVIZ!$GRAPHVIZ$ac_delim
22959 NEATO!$NEATO$ac_delim
22960 TWOPI!$TWOPI$ac_delim
22961 CIRCO!$CIRCO$ac_delim
22963 DOTTY!$DOTTY$ac_delim
22964 XDOT!$XDOT$ac_delim
22965 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22966 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22967 INSTALL_DATA!$INSTALL_DATA$ac_delim
22968 BZIP2!$BZIP2$ac_delim
22970 DOXYGEN!$DOXYGEN$ac_delim
22971 GROFF!$GROFF$ac_delim
22972 GZIPBIN!$GZIPBIN$ac_delim
22973 PDFROFF!$PDFROFF$ac_delim
22975 OCAMLC!$OCAMLC$ac_delim
22976 OCAMLOPT!$OCAMLOPT$ac_delim
22977 OCAMLDEP!$OCAMLDEP$ac_delim
22978 OCAMLDOC!$OCAMLDOC$ac_delim
22980 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22981 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22982 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22983 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22984 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22985 LIBADD_DL!$LIBADD_DL$ac_delim
22986 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22987 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22988 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22989 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22990 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22991 PYTHON!$PYTHON$ac_delim
22992 USE_UDIS86!$USE_UDIS86$ac_delim
22993 USE_OPROFILE!$USE_OPROFILE$ac_delim
22994 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22995 XML2CONFIG!$XML2CONFIG$ac_delim
22996 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22997 LIBXML2_INC!$LIBXML2_INC$ac_delim
22998 CXXCPP!$CXXCPP$ac_delim
22999 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23000 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23001 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23002 MMAP_FILE!$MMAP_FILE$ac_delim
23003 SHLIBEXT!$SHLIBEXT$ac_delim
23004 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23005 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23006 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23007 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23008 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23009 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23010 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23011 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23012 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23013 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23014 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23015 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23018 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23020 elif $ac_last_try; then
23021 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23022 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23023 { (exit 1); exit 1; }; }
23025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23029 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23030 if test -n "$ac_eof"; then
23031 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23032 ac_eof=`expr $ac_eof + 1`
23035 cat >>$CONFIG_STATUS <<_ACEOF
23036 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23040 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23041 s/^/s,@/; s/!/@,|#_!!_#|/
23044 s/'"$ac_delim"'$/,g/; t
23046 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23047 ' >>$CONFIG_STATUS <conf$$subs.sed
23048 rm -f conf$$subs.sed
23049 cat >>$CONFIG_STATUS <<_ACEOF
23055 for ac_last_try in false false false false false :; do
23056 cat >conf$$subs.sed <<_ACEOF
23057 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23058 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23059 RPATH!$RPATH$ac_delim
23060 RDYNAMIC!$RDYNAMIC$ac_delim
23061 program_prefix!$program_prefix$ac_delim
23062 LIBOBJS!$LIBOBJS$ac_delim
23063 LTLIBOBJS!$LTLIBOBJS$ac_delim
23066 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23068 elif $ac_last_try; then
23069 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23070 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23071 { (exit 1); exit 1; }; }
23073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23077 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23078 if test -n "$ac_eof"; then
23079 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23080 ac_eof=`expr $ac_eof + 1`
23083 cat >>$CONFIG_STATUS <<_ACEOF
23084 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23088 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23089 s/^/s,@/; s/!/@,|#_!!_#|/
23092 s/'"$ac_delim"'$/,g/; t
23094 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23095 ' >>$CONFIG_STATUS <conf$$subs.sed
23096 rm -f conf$$subs.sed
23097 cat >>$CONFIG_STATUS <<_ACEOF
23104 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23105 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23106 # trailing colons and then remove the whole line if VPATH becomes empty
23107 # (actually we leave an empty line to preserve line numbers).
23108 if test "x$srcdir" = x.; then
23109 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23110 s/:*\$(srcdir):*/:/
23111 s/:*\${srcdir}:*/:/
23113 s/^\([^=]*=[ ]*\):*/\1/
23119 cat >>$CONFIG_STATUS <<\_ACEOF
23120 fi # test -n "$CONFIG_FILES"
23123 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23126 :[FHLC]) ac_mode=$ac_tag; continue;;
23128 case $ac_mode$ac_tag in
23130 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23131 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23132 { (exit 1); exit 1; }; };;
23133 :[FH]-) ac_tag=-:-;;
23134 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23151 -) ac_f="$tmp/stdin";;
23152 *) # Look for the file first in the build tree, then in the source tree
23153 # (if the path is not absolute). The absolute path cannot be DOS-style,
23154 # because $ac_f cannot contain `:'.
23158 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23160 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23161 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23162 { (exit 1); exit 1; }; };;
23164 ac_file_inputs="$ac_file_inputs $ac_f"
23167 # Let's still pretend it is `configure' which instantiates (i.e., don't
23168 # use $as_me), people would be surprised to read:
23169 # /* config.h. Generated by config.status. */
23170 configure_input="Generated from "`IFS=:
23171 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23172 if test x"$ac_file" != x-; then
23173 configure_input="$ac_file. $configure_input"
23174 { echo "$as_me:$LINENO: creating $ac_file" >&5
23175 echo "$as_me: creating $ac_file" >&6;}
23179 *:-:* | *:-) cat >"$tmp/stdin";;
23184 ac_dir=`$as_dirname -- "$ac_file" ||
23185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23186 X"$ac_file" : 'X\(//\)[^/]' \| \
23187 X"$ac_file" : 'X\(//\)$' \| \
23188 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23194 /^X\(\/\/\)[^/].*/{
23209 -*) as_dir=./$as_dir;;
23211 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23215 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23216 *) as_qdir=$as_dir;;
23218 as_dirs="'$as_qdir' $as_dirs"
23219 as_dir=`$as_dirname -- "$as_dir" ||
23220 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23221 X"$as_dir" : 'X\(//\)[^/]' \| \
23222 X"$as_dir" : 'X\(//\)$' \| \
23223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23229 /^X\(\/\/\)[^/].*/{
23242 test -d "$as_dir" && break
23244 test -z "$as_dirs" || eval "mkdir $as_dirs"
23245 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23246 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23247 { (exit 1); exit 1; }; }; }
23251 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23253 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23254 # A ".." for each directory in $ac_dir_suffix.
23255 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23256 case $ac_top_builddir_sub in
23257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23261 ac_abs_top_builddir=$ac_pwd
23262 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23263 # for backward compatibility:
23264 ac_top_builddir=$ac_top_build_prefix
23267 .) # We are building in place.
23269 ac_top_srcdir=$ac_top_builddir_sub
23270 ac_abs_top_srcdir=$ac_pwd ;;
23271 [\\/]* | ?:[\\/]* ) # Absolute name.
23272 ac_srcdir=$srcdir$ac_dir_suffix;
23273 ac_top_srcdir=$srcdir
23274 ac_abs_top_srcdir=$srcdir ;;
23275 *) # Relative name.
23276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23277 ac_top_srcdir=$ac_top_build_prefix$srcdir
23278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23280 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23291 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23295 cat >>$CONFIG_STATUS <<\_ACEOF
23296 # If the template does not know about datarootdir, expand it.
23297 # FIXME: This hack should be removed a few years after 2.60.
23298 ac_datarootdir_hack=; ac_datarootdir_seen=
23300 case `sed -n '/datarootdir/ {
23309 ' $ac_file_inputs` in
23310 *datarootdir*) ac_datarootdir_seen=yes;;
23311 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23312 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23313 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23315 cat >>$CONFIG_STATUS <<_ACEOF
23316 ac_datarootdir_hack='
23317 s&@datadir@&$datadir&g
23318 s&@docdir@&$docdir&g
23319 s&@infodir@&$infodir&g
23320 s&@localedir@&$localedir&g
23321 s&@mandir@&$mandir&g
23322 s&\\\${datarootdir}&$datarootdir&g' ;;
23326 # Neutralize VPATH when `$srcdir' = `.'.
23327 # Shell code in configure.ac might set extrasub.
23328 # FIXME: do we really want to maintain this feature?
23329 cat >>$CONFIG_STATUS <<_ACEOF
23333 cat >>$CONFIG_STATUS <<\_ACEOF
23335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23336 s&@configure_input@&$configure_input&;t t
23337 s&@top_builddir@&$ac_top_builddir_sub&;t t
23338 s&@srcdir@&$ac_srcdir&;t t
23339 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23340 s&@top_srcdir@&$ac_top_srcdir&;t t
23341 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23342 s&@builddir@&$ac_builddir&;t t
23343 s&@abs_builddir@&$ac_abs_builddir&;t t
23344 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23345 s&@INSTALL@&$ac_INSTALL&;t t
23346 $ac_datarootdir_hack
23347 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23349 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23350 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23351 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23352 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23353 which seems to be undefined. Please make sure it is defined." >&5
23354 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23355 which seems to be undefined. Please make sure it is defined." >&2;}
23359 -) cat "$tmp/out"; rm -f "$tmp/out";;
23360 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23369 # Transform confdefs.h into a sed script `conftest.defines', that
23370 # substitutes the proper values into config.h.in to produce config.h.
23371 rm -f conftest.defines conftest.tail
23372 # First, append a space to every undef/define line, to ease matching.
23373 echo 's/$/ /' >conftest.defines
23374 # Then, protect against being on the right side of a sed subst, or in
23375 # an unquoted here document, in config.status. If some macros were
23376 # called several times there might be several #defines for the same
23377 # symbol, which is useless. But do not sort them, since the last
23378 # AC_DEFINE must be honored.
23379 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23380 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23381 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23382 # PARAMS is the parameter list in the macro definition--in most cases, it's
23383 # just an empty string.
23384 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23385 ac_dB='\\)[ (].*,\\1define\\2'
23393 s/^[ ]*#[ ]*define[ ][ ]*//
23398 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23399 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23400 ' >>conftest.defines
23402 # Remove the space that was appended to ease matching.
23403 # Then replace #undef with comments. This is necessary, for
23404 # example, in the case of _POSIX_SOURCE, which is predefined and required
23405 # on some systems where configure will not decide to define it.
23406 # (The regexp can be short, since the line contains either #define or #undef.)
23408 s,^[ #]*u.*,/* & */,' >>conftest.defines
23410 # Break up conftest.defines:
23411 ac_max_sed_lines=50
23413 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23414 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23415 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23417 ac_in='$ac_file_inputs'
23418 ac_out='"$tmp/out1"'
23419 ac_nxt='"$tmp/out2"'
23423 # Write a here document:
23424 cat >>$CONFIG_STATUS <<_ACEOF
23425 # First, check the format of the line:
23426 cat >"\$tmp/defines.sed" <<\\CEOF
23427 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23428 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23432 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23434 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23435 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23436 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23437 grep . conftest.tail >/dev/null || break
23438 rm -f conftest.defines
23439 mv conftest.tail conftest.defines
23441 rm -f conftest.defines conftest.tail
23443 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23444 cat >>$CONFIG_STATUS <<\_ACEOF
23445 if test x"$ac_file" != x-; then
23446 echo "/* $configure_input */" >"$tmp/config.h"
23447 cat "$ac_result" >>"$tmp/config.h"
23448 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23449 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23450 echo "$as_me: $ac_file is unchanged" >&6;}
23453 mv "$tmp/config.h" $ac_file
23456 echo "/* $configure_input */"
23462 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23463 echo "$as_me: executing $ac_file commands" >&6;}
23468 case $ac_file$ac_mode in
23469 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23470 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23471 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23472 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23473 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23474 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23475 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23476 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23477 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23478 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23479 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23480 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23481 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23482 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23483 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23484 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23485 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23486 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23487 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23488 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23489 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23490 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23491 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23492 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23493 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23494 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23500 { (exit 0); exit 0; }
23502 chmod +x $CONFIG_STATUS
23503 ac_clean_files=$ac_clean_files_save
23506 # configure is writing to config.log, and then calls config.status.
23507 # config.status does its own redirection, appending to config.log.
23508 # Unfortunately, on DOS this fails, as config.log is still kept open
23509 # by configure, so config.status won't be able to write to it; its
23510 # output is simply discarded. So we exec the FD to /dev/null,
23511 # effectively closing config.log, so it can be properly (re)opened and
23512 # appended to by config.status. When coming back to configure, we
23513 # need to make the FD available again.
23514 if test "$no_create" != yes; then
23516 ac_config_status_args=
23517 test "$silent" = yes &&
23518 ac_config_status_args="$ac_config_status_args --quiet"
23520 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23522 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23523 # would make configure fail if this is the last instruction.
23524 $ac_cs_success || { (exit 1); exit 1; }
23528 # CONFIG_SUBDIRS section.
23530 if test "$no_recursion" != yes; then
23532 # Remove --cache-file and --srcdir arguments so they do not pile up.
23533 ac_sub_configure_args=
23535 eval "set x $ac_configure_args"
23539 if test -n "$ac_prev"; then
23544 -cache-file | --cache-file | --cache-fil | --cache-fi \
23545 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23546 ac_prev=cache_file ;;
23547 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23548 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23551 --config-cache | -C)
23553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23557 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23559 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23563 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23565 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23569 # Always prepend --prefix to ensure using the same prefix
23570 # in subdir configurations.
23571 ac_arg="--prefix=$prefix"
23573 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23575 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23578 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23580 # Do not complain, so a configure script can configure whichever
23581 # parts of a large source tree are present.
23582 test -d "$srcdir/$ac_dir" || continue
23584 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23585 echo "$as_me:$LINENO: $ac_msg" >&5
23589 -*) as_dir=./$as_dir;;
23591 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23595 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23596 *) as_qdir=$as_dir;;
23598 as_dirs="'$as_qdir' $as_dirs"
23599 as_dir=`$as_dirname -- "$as_dir" ||
23600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23601 X"$as_dir" : 'X\(//\)[^/]' \| \
23602 X"$as_dir" : 'X\(//\)$' \| \
23603 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23609 /^X\(\/\/\)[^/].*/{
23622 test -d "$as_dir" && break
23624 test -z "$as_dirs" || eval "mkdir $as_dirs"
23625 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23626 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23627 { (exit 1); exit 1; }; }; }
23631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23633 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23634 # A ".." for each directory in $ac_dir_suffix.
23635 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23636 case $ac_top_builddir_sub in
23637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23641 ac_abs_top_builddir=$ac_pwd
23642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23643 # for backward compatibility:
23644 ac_top_builddir=$ac_top_build_prefix
23647 .) # We are building in place.
23649 ac_top_srcdir=$ac_top_builddir_sub
23650 ac_abs_top_srcdir=$ac_pwd ;;
23651 [\\/]* | ?:[\\/]* ) # Absolute name.
23652 ac_srcdir=$srcdir$ac_dir_suffix;
23653 ac_top_srcdir=$srcdir
23654 ac_abs_top_srcdir=$srcdir ;;
23655 *) # Relative name.
23656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23657 ac_top_srcdir=$ac_top_build_prefix$srcdir
23658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23665 # Check for guested configure; otherwise get Cygnus style configure.
23666 if test -f "$ac_srcdir/configure.gnu"; then
23667 ac_sub_configure=$ac_srcdir/configure.gnu
23668 elif test -f "$ac_srcdir/configure"; then
23669 ac_sub_configure=$ac_srcdir/configure
23670 elif test -f "$ac_srcdir/configure.in"; then
23671 # This should be Cygnus configure.
23672 ac_sub_configure=$ac_aux_dir/configure
23674 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23675 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23679 # The recursion is here.
23680 if test -n "$ac_sub_configure"; then
23681 # Make the cache file name correct relative to the subdirectory.
23682 case $cache_file in
23683 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23684 *) # Relative name.
23685 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23688 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23689 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23690 # The eval makes quoting arguments work.
23691 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23692 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23693 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23694 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23695 { (exit 1); exit 1; }; }