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 -Wl,-export-dynamic option" >&5
7993 echo $ECHO_N "checking for compiler -Wl,-export-dynamic 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 -Wl,-export-dynamic"
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
11137 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 ac_res=`eval echo '${'$as_ac_Header'}'`
11148 { echo "$as_me:$LINENO: result: $ac_res" >&5
11149 echo "${ECHO_T}$ac_res" >&6; }
11151 # Is the header compilable?
11152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11154 cat >conftest.$ac_ext <<_ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160 $ac_includes_default
11161 #include <$ac_header>
11163 rm -f conftest.$ac_objext
11164 if { (ac_try="$ac_compile"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_compile") 2>conftest.er1
11172 grep -v '^ *+' conftest.er1 >conftest.err
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178 { (case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_try") 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_header_compiler=yes
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_header_compiler=no
11205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11207 echo "${ECHO_T}$ac_header_compiler" >&6; }
11209 # Is the header present?
11210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11212 cat >conftest.$ac_ext <<_ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 #include <$ac_header>
11220 if { (ac_try="$ac_cpp conftest.$ac_ext"
11221 case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11228 grep -v '^ *+' conftest.er1 >conftest.err
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } >/dev/null; then
11233 if test -s conftest.err; then
11234 ac_cpp_err=$ac_c_preproc_warn_flag
11235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11242 if test -z "$ac_cpp_err"; then
11243 ac_header_preproc=yes
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_header_preproc=no
11251 rm -f conftest.err conftest.$ac_ext
11252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11253 echo "${ECHO_T}$ac_header_preproc" >&6; }
11255 # So? What about this header?
11256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11262 ac_header_preproc=yes
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11278 ## ------------------------------------ ##
11279 ## Report this to http://llvm.org/bugs/ ##
11280 ## ------------------------------------ ##
11282 ) | sed "s/^/$as_me: WARNING: /" >&2
11285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 eval "$as_ac_Header=\$ac_header_preproc"
11292 ac_res=`eval echo '${'$as_ac_Header'}'`
11293 { echo "$as_me:$LINENO: result: $ac_res" >&5
11294 echo "${ECHO_T}$ac_res" >&6; }
11297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11298 cat >>confdefs.h <<_ACEOF
11299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11310 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 ac_res=`eval echo '${'$as_ac_Header'}'`
11320 { echo "$as_me:$LINENO: result: $ac_res" >&5
11321 echo "${ECHO_T}$ac_res" >&6; }
11323 # Is the header compilable?
11324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 $ac_includes_default
11333 #include <$ac_header>
11335 rm -f conftest.$ac_objext
11336 if { (ac_try="$ac_compile"
11337 case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_compile") 2>conftest.er1
11344 grep -v '^ *+' conftest.er1 >conftest.err
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_header_compiler=yes
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11414 if test -z "$ac_cpp_err"; then
11415 ac_header_preproc=yes
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_header_preproc=no
11423 rm -f conftest.err conftest.$ac_ext
11424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425 echo "${ECHO_T}$ac_header_preproc" >&6; }
11427 # So? What about this header?
11428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434 ac_header_preproc=yes
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11450 ## ------------------------------------ ##
11451 ## Report this to http://llvm.org/bugs/ ##
11452 ## ------------------------------------ ##
11454 ) | sed "s/^/$as_me: WARNING: /" >&2
11457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 eval "$as_ac_Header=\$ac_header_preproc"
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11480 for ac_header in string.h strings.h
11482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 ac_res=`eval echo '${'$as_ac_Header'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11493 # Is the header compilable?
11494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11496 cat >conftest.$ac_ext <<_ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 $ac_includes_default
11503 #include <$ac_header>
11505 rm -f conftest.$ac_objext
11506 if { (ac_try="$ac_compile"
11507 case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_compile") 2>conftest.er1
11514 grep -v '^ *+' conftest.er1 >conftest.err
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11520 { (case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_try") 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest.$ac_objext'
11530 { (case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_try") 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 ac_header_compiler=yes
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ac_header_compiler=no
11547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11549 echo "${ECHO_T}$ac_header_compiler" >&6; }
11551 # Is the header present?
11552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11554 cat >conftest.$ac_ext <<_ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11560 #include <$ac_header>
11562 if { (ac_try="$ac_cpp conftest.$ac_ext"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev/null; then
11575 if test -s conftest.err; then
11576 ac_cpp_err=$ac_c_preproc_warn_flag
11577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11584 if test -z "$ac_cpp_err"; then
11585 ac_header_preproc=yes
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 ac_header_preproc=no
11593 rm -f conftest.err conftest.$ac_ext
11594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11595 echo "${ECHO_T}$ac_header_preproc" >&6; }
11597 # So? What about this header?
11598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11604 ac_header_preproc=yes
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11620 ## ------------------------------------ ##
11621 ## Report this to http://llvm.org/bugs/ ##
11622 ## ------------------------------------ ##
11624 ) | sed "s/^/$as_me: WARNING: /" >&2
11627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 eval "$as_ac_Header=\$ac_header_preproc"
11634 ac_res=`eval echo '${'$as_ac_Header'}'`
11635 { echo "$as_me:$LINENO: result: $ac_res" >&5
11636 echo "${ECHO_T}$ac_res" >&6; }
11639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11651 for ac_func in strchr index
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11667 #define $ac_func innocuous_$ac_func
11669 /* System header to define __stub macros and hopefully few prototypes,
11670 which can conflict with char $ac_func (); below.
11671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672 <limits.h> exists even on freestanding compilers. */
11675 # include <limits.h>
11677 # include <assert.h>
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11689 /* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11699 return $ac_func ();
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 eval "$as_ac_var=yes"
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 eval "$as_ac_var=no"
11746 rm -f core conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11749 ac_res=`eval echo '${'$as_ac_var'}'`
11750 { echo "$as_me:$LINENO: result: $ac_res" >&5
11751 echo "${ECHO_T}$ac_res" >&6; }
11752 if test `eval echo '${'$as_ac_var'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11762 for ac_func in strrchr rindex
11764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 cat >conftest.$ac_ext <<_ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11778 #define $ac_func innocuous_$ac_func
11780 /* System header to define __stub macros and hopefully few prototypes,
11781 which can conflict with char $ac_func (); below.
11782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 <limits.h> exists even on freestanding compilers. */
11786 # include <limits.h>
11788 # include <assert.h>
11793 /* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
11800 /* The GNU C library defines this for functions which it implements
11801 to always fail with ENOSYS. Some functions are actually named
11802 something starting with __ and the normal name is an alias. */
11803 #if defined __stub_$ac_func || defined __stub___$ac_func
11810 return $ac_func ();
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (ac_try="$ac_link"
11817 case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_link") 2>conftest.er1
11824 grep -v '^ *+' conftest.er1 >conftest.err
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830 { (case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_try") 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_try") 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 eval "$as_ac_var=yes"
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 eval "$as_ac_var=no"
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11860 ac_res=`eval echo '${'$as_ac_var'}'`
11861 { echo "$as_me:$LINENO: result: $ac_res" >&5
11862 echo "${ECHO_T}$ac_res" >&6; }
11863 if test `eval echo '${'$as_ac_var'}'` = yes; then
11864 cat >>confdefs.h <<_ACEOF
11865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11873 for ac_func in memcpy bcopy
11875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11889 #define $ac_func innocuous_$ac_func
11891 /* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char $ac_func (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11897 # include <limits.h>
11899 # include <assert.h>
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined __stub_$ac_func || defined __stub___$ac_func
11921 return $ac_func ();
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_link") 2>conftest.er1
11935 grep -v '^ *+' conftest.er1 >conftest.err
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11941 { (case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_try") 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_try") 2>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 eval "$as_ac_var=yes"
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 eval "$as_ac_var=no"
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11971 ac_res=`eval echo '${'$as_ac_var'}'`
11972 { echo "$as_me:$LINENO: result: $ac_res" >&5
11973 echo "${ECHO_T}$ac_res" >&6; }
11974 if test `eval echo '${'$as_ac_var'}'` = yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11984 for ac_func in memmove strcmp
11986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 cat >conftest.$ac_ext <<_ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12000 #define $ac_func innocuous_$ac_func
12002 /* System header to define __stub macros and hopefully few prototypes,
12003 which can conflict with char $ac_func (); below.
12004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005 <limits.h> exists even on freestanding compilers. */
12008 # include <limits.h>
12010 # include <assert.h>
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12022 /* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025 #if defined __stub_$ac_func || defined __stub___$ac_func
12032 return $ac_func ();
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_link") 2>conftest.er1
12046 grep -v '^ *+' conftest.er1 >conftest.err
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest$ac_exeext'
12062 { (case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_try") 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 eval "$as_ac_var=yes"
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 eval "$as_ac_var=no"
12079 rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12082 ac_res=`eval echo '${'$as_ac_var'}'`
12083 { echo "$as_me:$LINENO: result: $ac_res" >&5
12084 echo "${ECHO_T}$ac_res" >&6; }
12085 if test `eval echo '${'$as_ac_var'}'` = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12096 for ac_func in closedir opendir readdir
12098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 cat >conftest.$ac_ext <<_ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12112 #define $ac_func innocuous_$ac_func
12114 /* System header to define __stub macros and hopefully few prototypes,
12115 which can conflict with char $ac_func (); below.
12116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12117 <limits.h> exists even on freestanding compilers. */
12120 # include <limits.h>
12122 # include <assert.h>
12127 /* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply. */
12134 /* The GNU C library defines this for functions which it implements
12135 to always fail with ENOSYS. Some functions are actually named
12136 something starting with __ and the normal name is an alias. */
12137 #if defined __stub_$ac_func || defined __stub___$ac_func
12144 return $ac_func ();
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 eval "$as_ac_var=yes"
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 eval "$as_ac_var=no"
12191 rm -f core conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12194 ac_res=`eval echo '${'$as_ac_var'}'`
12195 { echo "$as_me:$LINENO: result: $ac_res" >&5
12196 echo "${ECHO_T}$ac_res" >&6; }
12197 if test `eval echo '${'$as_ac_var'}'` = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12207 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12208 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12221 if test "$GCC" != "yes" && test "$ICC" != "yes"
12223 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12224 echo "$as_me: error: gcc|icc required but not found" >&2;}
12225 { (exit 1); exit 1; }; }
12228 if test "$GXX" != "yes" && test "$IXX" != "yes"
12230 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12231 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12232 { (exit 1); exit 1; }; }
12235 if test "$GCC" = "yes"
12237 cat >conftest.$ac_ext <<_ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12245 #if !defined(__GNUC__) || __GNUC__ < 3
12246 #error Unsupported GCC version
12251 rm -f conftest.$ac_objext
12252 if { (ac_try="$ac_compile"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_compile") 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest.$ac_objext'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12291 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12292 { (exit 1); exit 1; }; }
12295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12298 if test -z "$llvm_cv_gnu_make_command"
12300 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12301 echo "$as_me: error: GNU Make required but not found" >&2;}
12302 { (exit 1); exit 1; }; }
12305 { echo "$as_me:$LINENO: result: ok" >&5
12306 echo "${ECHO_T}ok" >&6; }
12308 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12309 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12310 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12312 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12314 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12318 NO_MAYBE_UNINITIALIZED=
12319 if test "$GXX" = "yes"
12321 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12323 if test -z "$NO_MAYBE_UNINITIALIZED"
12325 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12329 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12330 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12333 # Check whether --with-python was given.
12334 if test "${with_python+set}" = set; then
12335 withval=$with_python; PYTHON="$withval"
12339 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12340 { echo "$as_me:$LINENO: checking for python" >&5
12341 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12342 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12343 echo "${ECHO_T}user defined: $with_python" >&6; }
12345 if test -n "$PYTHON" ; then
12346 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12347 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12350 # Extract the first word of "python python2 python26", so it can be a program name with args.
12351 set dummy python python2 python26; ac_word=$2
12352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12354 if test "${ac_cv_path_PYTHON+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12359 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in $PATH
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12369 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12378 echo "${ECHO_T}not found" >&6; }
12379 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12380 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12381 { (exit 1); exit 1; }; }"
12385 PYTHON=$ac_cv_path_PYTHON
12386 if test -n "$PYTHON"; then
12387 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12388 echo "${ECHO_T}$PYTHON" >&6; }
12390 { echo "$as_me:$LINENO: result: no" >&5
12391 echo "${ECHO_T}no" >&6; }
12397 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12398 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12399 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12400 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12401 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12402 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12403 if test "$ac_python_version_major" -eq "2" \
12404 && test "$ac_python_version_minor" -ge "5" ; then
12405 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12406 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12408 { echo "$as_me:$LINENO: result: not found" >&5
12409 echo "${ECHO_T}not found" >&6; }
12410 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12411 See \`config.log' for more details." >&5
12412 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12413 See \`config.log' for more details." >&2;}
12414 { (exit 1); exit 1; }; }
12419 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12420 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12421 if test "${ac_cv_lib_m_sin+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 ac_check_lib_save_LIBS=$LIBS
12426 cat >conftest.$ac_ext <<_ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12448 rm -f conftest.$ac_objext conftest$ac_exeext
12449 if { (ac_try="$ac_link"
12450 case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_link") 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12463 { (case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_try") 2>&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_try") 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_cv_lib_m_sin=yes
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12490 rm -f core conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS
12494 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12495 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12496 if test $ac_cv_lib_m_sin = yes; then
12497 cat >>confdefs.h <<_ACEOF
12498 #define HAVE_LIBM 1
12505 if test "$llvm_cv_os_type" = "MingW" ; then
12507 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12508 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12509 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 ac_check_lib_save_LIBS=$LIBS
12513 LIBS="-limagehlp $LIBS"
12514 cat >conftest.$ac_ext <<_ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12530 rm -f conftest.$ac_objext conftest$ac_exeext
12531 if { (ac_try="$ac_link"
12532 case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_link") 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12545 { (case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_try") 2>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest$ac_exeext'
12555 { (case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_try") 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_lib_imagehlp_main=yes
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_lib_imagehlp_main=no
12572 rm -f core conftest.err conftest.$ac_objext \
12573 conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12576 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12577 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12578 if test $ac_cv_lib_imagehlp_main = yes; then
12579 cat >>confdefs.h <<_ACEOF
12580 #define HAVE_LIBIMAGEHLP 1
12583 LIBS="-limagehlp $LIBS"
12588 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12589 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12590 if test "${ac_cv_lib_psapi_main+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 ac_check_lib_save_LIBS=$LIBS
12594 LIBS="-lpsapi $LIBS"
12595 cat >conftest.$ac_ext <<_ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (ac_try="$ac_link"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_link") 2>conftest.er1
12620 grep -v '^ *+' conftest.er1 >conftest.err
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12626 { (case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_try") 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest$ac_exeext'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_cv_lib_psapi_main=yes
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 ac_cv_lib_psapi_main=no
12653 rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12655 LIBS=$ac_check_lib_save_LIBS
12657 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12658 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12659 if test $ac_cv_lib_psapi_main = yes; then
12660 cat >>confdefs.h <<_ACEOF
12661 #define HAVE_LIBPSAPI 1
12664 LIBS="-lpsapi $LIBS"
12670 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12671 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12672 if test "${ac_cv_search_dlopen+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 ac_func_search_save_LIBS=$LIBS
12676 cat >conftest.$ac_ext <<_ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12698 for ac_lib in '' dl; do
12699 if test -z "$ac_lib"; then
12700 ac_res="none required"
12703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12705 rm -f conftest.$ac_objext conftest$ac_exeext
12706 if { (ac_try="$ac_link"
12707 case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_link") 2>conftest.er1
12714 grep -v '^ *+' conftest.er1 >conftest.err
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12729 { ac_try='test -s conftest$ac_exeext'
12730 { (case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_try") 2>&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; }; then
12739 ac_cv_search_dlopen=$ac_res
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12747 rm -f core conftest.err conftest.$ac_objext \
12749 if test "${ac_cv_search_dlopen+set}" = set; then
12753 if test "${ac_cv_search_dlopen+set}" = set; then
12756 ac_cv_search_dlopen=no
12758 rm conftest.$ac_ext
12759 LIBS=$ac_func_search_save_LIBS
12761 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12762 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12763 ac_res=$ac_cv_search_dlopen
12764 if test "$ac_res" != no; then
12765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_DLOPEN 1
12772 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12773 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12777 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12778 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12779 if test "${ac_cv_search_clock_gettime+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 ac_func_search_save_LIBS=$LIBS
12783 cat >conftest.$ac_ext <<_ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12796 char clock_gettime ();
12800 return clock_gettime ();
12805 for ac_lib in '' rt; do
12806 if test -z "$ac_lib"; then
12807 ac_res="none required"
12810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (ac_try="$ac_link"
12814 case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_link") 2>conftest.er1
12821 grep -v '^ *+' conftest.er1 >conftest.err
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12827 { (case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_try") 2>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try='test -s conftest$ac_exeext'
12837 { (case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_try") 2>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 ac_cv_search_clock_gettime=$ac_res
12848 echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12854 rm -f core conftest.err conftest.$ac_objext \
12856 if test "${ac_cv_search_clock_gettime+set}" = set; then
12860 if test "${ac_cv_search_clock_gettime+set}" = set; then
12863 ac_cv_search_clock_gettime=no
12865 rm conftest.$ac_ext
12866 LIBS=$ac_func_search_save_LIBS
12868 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12869 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12870 ac_res=$ac_cv_search_clock_gettime
12871 if test "$ac_res" != no; then
12872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12877 if test "$llvm_cv_enable_libffi" = "yes" ; then
12878 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12879 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12880 if test "${ac_cv_search_ffi_call+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 ac_func_search_save_LIBS=$LIBS
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12891 /* Override any GCC internal prototype to avoid an error.
12892 Use char because int might match the return type of a GCC
12893 builtin and then its argument prototype would still apply. */
12901 return ffi_call ();
12906 for ac_lib in '' ffi; do
12907 if test -z "$ac_lib"; then
12908 ac_res="none required"
12911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (ac_try="$ac_link"
12915 case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_link") 2>conftest.er1
12922 grep -v '^ *+' conftest.er1 >conftest.err
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
12927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12928 { (case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_try") 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } &&
12937 { ac_try='test -s conftest$ac_exeext'
12938 { (case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_try") 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 ac_cv_search_ffi_call=$ac_res
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12955 rm -f core conftest.err conftest.$ac_objext \
12957 if test "${ac_cv_search_ffi_call+set}" = set; then
12961 if test "${ac_cv_search_ffi_call+set}" = set; then
12964 ac_cv_search_ffi_call=no
12966 rm conftest.$ac_ext
12967 LIBS=$ac_func_search_save_LIBS
12969 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12970 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12971 ac_res=$ac_cv_search_ffi_call
12972 if test "$ac_res" != no; then
12973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12975 cat >>confdefs.h <<\_ACEOF
12976 #define HAVE_FFI_CALL 1
12980 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12981 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12982 { (exit 1); exit 1; }; }
12987 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12988 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12989 if test "${ac_cv_search_mallinfo+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 ac_func_search_save_LIBS=$LIBS
12993 cat >conftest.$ac_ext <<_ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
13000 /* Override any GCC internal prototype to avoid an error.
13001 Use char because int might match the return type of a GCC
13002 builtin and then its argument prototype would still apply. */
13010 return mallinfo ();
13015 for ac_lib in '' malloc; do
13016 if test -z "$ac_lib"; then
13017 ac_res="none required"
13020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13022 rm -f conftest.$ac_objext conftest$ac_exeext
13023 if { (ac_try="$ac_link"
13024 case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_link") 2>conftest.er1
13031 grep -v '^ *+' conftest.er1 >conftest.err
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13037 { (case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_try") 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest$ac_exeext'
13047 { (case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_try") 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_search_mallinfo=$ac_res
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13064 rm -f core conftest.err conftest.$ac_objext \
13066 if test "${ac_cv_search_mallinfo+set}" = set; then
13070 if test "${ac_cv_search_mallinfo+set}" = set; then
13073 ac_cv_search_mallinfo=no
13075 rm conftest.$ac_ext
13076 LIBS=$ac_func_search_save_LIBS
13078 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13079 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13080 ac_res=$ac_cv_search_mallinfo
13081 if test "$ac_res" != no; then
13082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13084 cat >>confdefs.h <<\_ACEOF
13085 #define HAVE_MALLINFO 1
13091 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13093 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13094 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13095 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 ac_check_lib_save_LIBS=$LIBS
13099 LIBS="-lpthread $LIBS"
13100 cat >conftest.$ac_ext <<_ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13107 /* Override any GCC internal prototype to avoid an error.
13108 Use char because int might match the return type of a GCC
13109 builtin and then its argument prototype would still apply. */
13113 char pthread_mutex_init ();
13117 return pthread_mutex_init ();
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_link") 2>conftest.er1
13131 grep -v '^ *+' conftest.er1 >conftest.err
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_try") 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_lib_pthread_pthread_mutex_init=yes
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13161 ac_cv_lib_pthread_pthread_mutex_init=no
13164 rm -f core conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13166 LIBS=$ac_check_lib_save_LIBS
13168 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13169 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13170 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13171 cat >>confdefs.h <<_ACEOF
13172 #define HAVE_LIBPTHREAD 1
13175 LIBS="-lpthread $LIBS"
13179 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13180 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13181 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 ac_func_search_save_LIBS=$LIBS
13185 cat >conftest.$ac_ext <<_ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13198 char pthread_mutex_lock ();
13202 return pthread_mutex_lock ();
13207 for ac_lib in '' pthread; do
13208 if test -z "$ac_lib"; then
13209 ac_res="none required"
13212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13214 rm -f conftest.$ac_objext conftest$ac_exeext
13215 if { (ac_try="$ac_link"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_link") 2>conftest.er1
13223 grep -v '^ *+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } &&
13228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13229 { (case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_try") 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; } &&
13238 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13248 ac_cv_search_pthread_mutex_lock=$ac_res
13250 echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13256 rm -f core conftest.err conftest.$ac_objext \
13258 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13262 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13265 ac_cv_search_pthread_mutex_lock=no
13267 rm conftest.$ac_ext
13268 LIBS=$ac_func_search_save_LIBS
13270 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13271 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13272 ac_res=$ac_cv_search_pthread_mutex_lock
13273 if test "$ac_res" != no; then
13274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_PTHREAD_MUTEX_LOCK 1
13282 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13283 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13284 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 ac_func_search_save_LIBS=$LIBS
13288 cat >conftest.$ac_ext <<_ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13295 /* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13301 char pthread_rwlock_init ();
13305 return pthread_rwlock_init ();
13310 for ac_lib in '' pthread; do
13311 if test -z "$ac_lib"; then
13312 ac_res="none required"
13315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13317 rm -f conftest.$ac_objext conftest$ac_exeext
13318 if { (ac_try="$ac_link"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_link") 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } &&
13341 { ac_try='test -s conftest$ac_exeext'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_cv_search_pthread_rwlock_init=$ac_res
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13359 rm -f core conftest.err conftest.$ac_objext \
13361 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13365 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13368 ac_cv_search_pthread_rwlock_init=no
13370 rm conftest.$ac_ext
13371 LIBS=$ac_func_search_save_LIBS
13373 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13374 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13375 ac_res=$ac_cv_search_pthread_rwlock_init
13376 if test "$ac_res" != no; then
13377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13379 cat >>confdefs.h <<\_ACEOF
13380 #define HAVE_PTHREAD_RWLOCK_INIT 1
13385 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13386 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13387 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 ac_func_search_save_LIBS=$LIBS
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 /* Override any GCC internal prototype to avoid an error.
13399 Use char because int might match the return type of a GCC
13400 builtin and then its argument prototype would still apply. */
13404 char pthread_getspecific ();
13408 return pthread_getspecific ();
13413 for ac_lib in '' pthread; do
13414 if test -z "$ac_lib"; then
13415 ac_res="none required"
13418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13420 rm -f conftest.$ac_objext conftest$ac_exeext
13421 if { (ac_try="$ac_link"
13422 case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_link") 2>conftest.er1
13429 grep -v '^ *+' conftest.er1 >conftest.err
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
13434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13435 { (case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_try") 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest$ac_exeext'
13445 { (case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_try") 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_cv_search_pthread_getspecific=$ac_res
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13462 rm -f core conftest.err conftest.$ac_objext \
13464 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13468 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13471 ac_cv_search_pthread_getspecific=no
13473 rm conftest.$ac_ext
13474 LIBS=$ac_func_search_save_LIBS
13476 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13477 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13478 ac_res=$ac_cv_search_pthread_getspecific
13479 if test "$ac_res" != no; then
13480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13482 cat >>confdefs.h <<\_ACEOF
13483 #define HAVE_PTHREAD_GETSPECIFIC 1
13490 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13492 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13493 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13494 if test "${ac_cv_lib_z_compress2+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 ac_check_lib_save_LIBS=$LIBS
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13506 /* Override any GCC internal prototype to avoid an error.
13507 Use char because int might match the return type of a GCC
13508 builtin and then its argument prototype would still apply. */
13516 return compress2 ();
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (ac_try="$ac_link"
13523 case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528 (eval "$ac_link") 2>conftest.er1
13530 grep -v '^ *+' conftest.er1 >conftest.err
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13536 { (case "(($ac_try" in
13537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13538 *) ac_try_echo=$ac_try;;
13540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13541 (eval "$ac_try") 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; } &&
13545 { ac_try='test -s conftest$ac_exeext'
13546 { (case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_try") 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 ac_cv_lib_z_compress2=yes
13557 echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13560 ac_cv_lib_z_compress2=no
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 LIBS=$ac_check_lib_save_LIBS
13567 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13568 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13569 if test $ac_cv_lib_z_compress2 = yes; then
13570 cat >>confdefs.h <<_ACEOF
13571 #define HAVE_LIBZ 1
13581 # Check whether --with-udis86 was given.
13582 if test "${with_udis86+set}" = set; then
13583 withval=$with_udis86;
13588 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13591 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13592 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13593 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 ac_check_lib_save_LIBS=$LIBS
13597 LIBS="-ludis86 $LIBS"
13598 cat >conftest.$ac_ext <<_ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13605 /* Override any GCC internal prototype to avoid an error.
13606 Use char because int might match the return type of a GCC
13607 builtin and then its argument prototype would still apply. */
13620 rm -f conftest.$ac_objext conftest$ac_exeext
13621 if { (ac_try="$ac_link"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_link") 2>conftest.er1
13629 grep -v '^ *+' conftest.er1 >conftest.err
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635 { (case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_try") 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_lib_udis86_ud_init=yes
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_cv_lib_udis86_ud_init=no
13662 rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 LIBS=$ac_check_lib_save_LIBS
13666 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13667 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13668 if test $ac_cv_lib_udis86_ud_init = yes; then
13669 cat >>confdefs.h <<_ACEOF
13670 #define HAVE_LIBUDIS86 1
13673 LIBS="-ludis86 $LIBS"
13677 echo "Error! You need to have libudis86 around."
13689 cat >>confdefs.h <<_ACEOF
13690 #define USE_UDIS86 $USE_UDIS86
13695 # Check whether --with-oprofile was given.
13696 if test "${with_oprofile+set}" = set; then
13697 withval=$with_oprofile;
13701 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13702 no) llvm_cv_oppath=
13705 *) llvm_cv_oppath="${withval}/lib/oprofile"
13706 CPPFLAGS="-I${withval}/include";;
13708 case $llvm_cv_os_type in
13710 if test -n "$llvm_cv_oppath" ; then
13711 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13712 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13713 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13714 if test "${ac_cv_search_bfd_init+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 ac_func_search_save_LIBS=$LIBS
13718 cat >conftest.$ac_ext <<_ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13725 /* Override any GCC internal prototype to avoid an error.
13726 Use char because int might match the return type of a GCC
13727 builtin and then its argument prototype would still apply. */
13735 return bfd_init ();
13740 for ac_lib in '' bfd; do
13741 if test -z "$ac_lib"; then
13742 ac_res="none required"
13745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13747 rm -f conftest.$ac_objext conftest$ac_exeext
13748 if { (ac_try="$ac_link"
13749 case "(($ac_try" in
13750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751 *) ac_try_echo=$ac_try;;
13753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13754 (eval "$ac_link") 2>conftest.er1
13756 grep -v '^ *+' conftest.er1 >conftest.err
13758 cat conftest.err >&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } &&
13761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest$ac_exeext'
13772 { (case "(($ac_try" in
13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777 (eval "$ac_try") 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; }; then
13781 ac_cv_search_bfd_init=$ac_res
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13789 rm -f core conftest.err conftest.$ac_objext \
13791 if test "${ac_cv_search_bfd_init+set}" = set; then
13795 if test "${ac_cv_search_bfd_init+set}" = set; then
13798 ac_cv_search_bfd_init=no
13800 rm conftest.$ac_ext
13801 LIBS=$ac_func_search_save_LIBS
13803 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13804 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13805 ac_res=$ac_cv_search_bfd_init
13806 if test "$ac_res" != no; then
13807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13811 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13812 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13813 if test "${ac_cv_search_op_open_agent+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 ac_func_search_save_LIBS=$LIBS
13817 cat >conftest.$ac_ext <<_ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13824 /* Override any GCC internal prototype to avoid an error.
13825 Use char because int might match the return type of a GCC
13826 builtin and then its argument prototype would still apply. */
13830 char op_open_agent ();
13834 return op_open_agent ();
13839 for ac_lib in '' opagent; do
13840 if test -z "$ac_lib"; then
13841 ac_res="none required"
13844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13846 rm -f conftest.$ac_objext conftest$ac_exeext
13847 if { (ac_try="$ac_link"
13848 case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_link") 2>conftest.er1
13855 grep -v '^ *+' conftest.er1 >conftest.err
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest$ac_exeext'
13871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_cv_search_op_open_agent=$ac_res
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13888 rm -f core conftest.err conftest.$ac_objext \
13890 if test "${ac_cv_search_op_open_agent+set}" = set; then
13894 if test "${ac_cv_search_op_open_agent+set}" = set; then
13897 ac_cv_search_op_open_agent=no
13899 rm conftest.$ac_ext
13900 LIBS=$ac_func_search_save_LIBS
13902 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13903 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13904 ac_res=$ac_cv_search_op_open_agent
13905 if test "$ac_res" != no; then
13906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13910 echo "Error! You need to have libopagent around."
13915 if test "${ac_cv_header_opagent_h+set}" = set; then
13916 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13917 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13918 if test "${ac_cv_header_opagent_h+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13922 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13924 # Is the header compilable?
13925 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13926 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13927 cat >conftest.$ac_ext <<_ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13933 $ac_includes_default
13934 #include <opagent.h>
13936 rm -f conftest.$ac_objext
13937 if { (ac_try="$ac_compile"
13938 case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_compile") 2>conftest.er1
13945 grep -v '^ *+' conftest.er1 >conftest.err
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13951 { (case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_try") 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try='test -s conftest.$ac_objext'
13961 { (case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_try") 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_header_compiler=yes
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ac_header_compiler=no
13978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13980 echo "${ECHO_T}$ac_header_compiler" >&6; }
13982 # Is the header present?
13983 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13984 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13985 cat >conftest.$ac_ext <<_ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 #include <opagent.h>
13993 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14001 grep -v '^ *+' conftest.er1 >conftest.err
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } >/dev/null; then
14006 if test -s conftest.err; then
14007 ac_cpp_err=$ac_c_preproc_warn_flag
14008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14015 if test -z "$ac_cpp_err"; then
14016 ac_header_preproc=yes
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_header_preproc=no
14024 rm -f conftest.err conftest.$ac_ext
14025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14026 echo "${ECHO_T}$ac_header_preproc" >&6; }
14028 # So? What about this header?
14029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14031 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14032 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14034 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14035 ac_header_preproc=yes
14038 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14039 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14041 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14043 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14045 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14047 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14049 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14051 ## ------------------------------------ ##
14052 ## Report this to http://llvm.org/bugs/ ##
14053 ## ------------------------------------ ##
14055 ) | sed "s/^/$as_me: WARNING: /" >&2
14058 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14059 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14060 if test "${ac_cv_header_opagent_h+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 ac_cv_header_opagent_h=$ac_header_preproc
14065 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14066 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14069 if test $ac_cv_header_opagent_h = yes; then
14073 echo "Error! You need to have opagent.h around."
14081 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14082 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14083 { (exit 1); exit 1; }; } ;;
14094 cat >>confdefs.h <<_ACEOF
14095 #define LLVM_USE_OPROFILE $USE_OPROFILE
14100 # Check whether --with-intel-jitevents was given.
14101 if test "${with_intel_jitevents+set}" = set; then
14102 withval=$with_intel_jitevents;
14104 yes) USE_INTEL_JITEVENTS=1
14106 no) USE_INTEL_JITEVENTS=0
14108 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14109 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14110 { (exit 1); exit 1; }; };;
14113 case $llvm_cv_os_type in
14114 Linux|Win32|Cygwin|MingW) ;;
14115 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14116 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14117 { (exit 1); exit 1; }; };;
14120 case "$llvm_cv_target_arch" in
14122 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14123 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14124 { (exit 1); exit 1; }; };;
14129 USE_INTEL_JITEVENTS=0
14135 cat >>confdefs.h <<_ACEOF
14136 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14140 for ac_prog in xml2-config
14142 # Extract the first word of "$ac_prog", so it can be a program name with args.
14143 set dummy $ac_prog; ac_word=$2
14144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14146 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 if test -n "$XML2CONFIG"; then
14150 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14159 ac_cv_prog_XML2CONFIG="$ac_prog"
14160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14169 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14170 if test -n "$XML2CONFIG"; then
14171 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14172 echo "${ECHO_T}$XML2CONFIG" >&6; }
14174 { echo "$as_me:$LINENO: result: no" >&5
14175 echo "${ECHO_T}no" >&6; }
14179 test -n "$XML2CONFIG" && break
14183 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14184 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14185 if test "x$XML2CONFIG" = "x"; then
14186 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14187 echo "${ECHO_T}xml2-config not found" >&6; }
14189 LIBXML2_INC=`$XML2CONFIG --cflags`
14190 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14191 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14192 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14193 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14194 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 ac_check_lib_save_LIBS=$LIBS
14198 LIBS="-lxml2 $LIBS"
14199 cat >conftest.$ac_ext <<_ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14206 /* Override any GCC internal prototype to avoid an error.
14207 Use char because int might match the return type of a GCC
14208 builtin and then its argument prototype would still apply. */
14212 char xmlReadFile ();
14216 return xmlReadFile ();
14221 rm -f conftest.$ac_objext conftest$ac_exeext
14222 if { (ac_try="$ac_link"
14223 case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_link") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1 >conftest.err
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
14235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest$ac_exeext'
14246 { (case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_try") 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_lib_xml2_xmlReadFile=yes
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_cv_lib_xml2_xmlReadFile=no
14263 rm -f core conftest.err conftest.$ac_objext \
14264 conftest$ac_exeext conftest.$ac_ext
14265 LIBS=$ac_check_lib_save_LIBS
14267 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14268 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14269 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14271 cat >>confdefs.h <<\_ACEOF
14272 #define CLANG_HAVE_LIBXML 1
14275 LIBXML2_LIBS="-lxml2"
14288 ac_header_dirent=no
14289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14290 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14291 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 cat >conftest.$ac_ext <<_ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 #include <sys/types.h>
14314 rm -f conftest.$ac_objext
14315 if { (ac_try="$ac_compile"
14316 case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_compile") 2>conftest.er1
14323 grep -v '^ *+' conftest.er1 >conftest.err
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14329 { (case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_try") 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; } &&
14338 { ac_try='test -s conftest.$ac_objext'
14339 { (case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_try") 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 eval "$as_ac_Header=yes"
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 eval "$as_ac_Header=no"
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 ac_res=`eval echo '${'$as_ac_Header'}'`
14359 { echo "$as_me:$LINENO: result: $ac_res" >&5
14360 echo "${ECHO_T}$ac_res" >&6; }
14361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14362 cat >>confdefs.h <<_ACEOF
14363 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14366 ac_header_dirent=$ac_hdr; break
14370 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14371 if test $ac_header_dirent = dirent.h; then
14372 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14374 if test "${ac_cv_search_opendir+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 ac_func_search_save_LIBS=$LIBS
14378 cat >conftest.$ac_ext <<_ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14385 /* Override any GCC internal prototype to avoid an error.
14386 Use char because int might match the return type of a GCC
14387 builtin and then its argument prototype would still apply. */
14400 for ac_lib in '' dir; do
14401 if test -z "$ac_lib"; then
14402 ac_res="none required"
14405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (ac_try="$ac_link"
14409 case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_link") 2>conftest.er1
14416 grep -v '^ *+' conftest.er1 >conftest.err
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14422 { (case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_try") 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try='test -s conftest$ac_exeext'
14432 { (case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_try") 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 ac_cv_search_opendir=$ac_res
14443 echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14449 rm -f core conftest.err conftest.$ac_objext \
14451 if test "${ac_cv_search_opendir+set}" = set; then
14455 if test "${ac_cv_search_opendir+set}" = set; then
14458 ac_cv_search_opendir=no
14460 rm conftest.$ac_ext
14461 LIBS=$ac_func_search_save_LIBS
14463 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14464 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14465 ac_res=$ac_cv_search_opendir
14466 if test "$ac_res" != no; then
14467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14472 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14473 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14474 if test "${ac_cv_search_opendir+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 ac_func_search_save_LIBS=$LIBS
14478 cat >conftest.$ac_ext <<_ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14485 /* Override any GCC internal prototype to avoid an error.
14486 Use char because int might match the return type of a GCC
14487 builtin and then its argument prototype would still apply. */
14500 for ac_lib in '' x; do
14501 if test -z "$ac_lib"; then
14502 ac_res="none required"
14505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14507 rm -f conftest.$ac_objext conftest$ac_exeext
14508 if { (ac_try="$ac_link"
14509 case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_link") 2>conftest.er1
14516 grep -v '^ *+' conftest.er1 >conftest.err
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
14521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14522 { (case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_try") 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest$ac_exeext'
14532 { (case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_try") 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 ac_cv_search_opendir=$ac_res
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14549 rm -f core conftest.err conftest.$ac_objext \
14551 if test "${ac_cv_search_opendir+set}" = set; then
14555 if test "${ac_cv_search_opendir+set}" = set; then
14558 ac_cv_search_opendir=no
14560 rm conftest.$ac_ext
14561 LIBS=$ac_func_search_save_LIBS
14563 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14564 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14565 ac_res=$ac_cv_search_opendir
14566 if test "$ac_res" != no; then
14567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14573 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14574 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14575 if test "${ac_cv_header_mmap_anon+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 ac_cpp='$CPP $CPPFLAGS'
14580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 #include <sys/mman.h>
14591 #include <unistd.h>
14596 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14601 rm -f conftest.$ac_objext
14602 if { (ac_try="$ac_compile"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_compile") 2>conftest.er1
14610 grep -v '^ *+' conftest.er1 >conftest.err
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14616 { (case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_try") 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; } &&
14625 { ac_try='test -s conftest.$ac_objext'
14626 { (case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_try") 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_cv_header_mmap_anon=yes
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14640 ac_cv_header_mmap_anon=no
14643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645 ac_cpp='$CPP $CPPFLAGS'
14646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14652 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14653 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14654 if test "$ac_cv_header_mmap_anon" = yes; then
14656 cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_MMAP_ANONYMOUS 1
14662 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14663 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14664 if test "${ac_cv_header_stat_broken+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14667 cat >conftest.$ac_ext <<_ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 #include <sys/types.h>
14674 #include <sys/stat.h>
14676 #if defined S_ISBLK && defined S_IFDIR
14677 # if S_ISBLK (S_IFDIR)
14682 #if defined S_ISBLK && defined S_IFCHR
14683 # if S_ISBLK (S_IFCHR)
14688 #if defined S_ISLNK && defined S_IFREG
14689 # if S_ISLNK (S_IFREG)
14694 #if defined S_ISSOCK && defined S_IFREG
14695 # if S_ISSOCK (S_IFREG)
14701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14702 $EGREP "You lose" >/dev/null 2>&1; then
14703 ac_cv_header_stat_broken=yes
14705 ac_cv_header_stat_broken=no
14710 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14711 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14712 if test $ac_cv_header_stat_broken = yes; then
14714 cat >>confdefs.h <<\_ACEOF
14715 #define STAT_MACROS_BROKEN 1
14720 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14721 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14722 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 cat >conftest.$ac_ext <<_ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 #include <sys/types.h>
14732 #include <sys/wait.h>
14733 #ifndef WEXITSTATUS
14734 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14737 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14765 { (case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770 (eval "$ac_try") 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; } &&
14774 { ac_try='test -s conftest.$ac_objext'
14775 { (case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_try") 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_cv_header_sys_wait_h=yes
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 ac_cv_header_sys_wait_h=no
14792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14795 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14796 if test $ac_cv_header_sys_wait_h = yes; then
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_SYS_WAIT_H 1
14804 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14805 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14806 if test "${ac_cv_header_time+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 cat >conftest.$ac_ext <<_ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 #include <sys/types.h>
14816 #include <sys/time.h>
14822 if ((struct tm *) 0)
14828 rm -f conftest.$ac_objext
14829 if { (ac_try="$ac_compile"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_compile") 2>conftest.er1
14837 grep -v '^ *+' conftest.er1 >conftest.err
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14843 { (case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_try") 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; } &&
14852 { ac_try='test -s conftest.$ac_objext'
14853 { (case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_try") 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 ac_cv_header_time=yes
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 ac_cv_header_time=no
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14872 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14873 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14874 if test $ac_cv_header_time = yes; then
14876 cat >>confdefs.h <<\_ACEOF
14877 #define TIME_WITH_SYS_TIME 1
14884 ac_cpp='$CXXCPP $CPPFLAGS'
14885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14890 ac_cpp='$CXXCPP $CPPFLAGS'
14891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14894 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14895 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14896 if test -z "$CXXCPP"; then
14897 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 # Double quotes because CXXCPP needs to be expanded
14901 for CXXCPP in "$CXX -E" "/lib/cpp"
14903 ac_preproc_ok=false
14904 for ac_cxx_preproc_warn_flag in '' yes
14906 # Use a header file that comes with gcc, so configuring glibc
14907 # with a fresh cross-compiler works.
14908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14909 # <limits.h> exists even on freestanding compilers.
14910 # On the NeXT, cc -E runs the code through the compiler's parser,
14911 # not just through cpp. "Syntax error" is here to catch this case.
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14919 # include <limits.h>
14921 # include <assert.h>
14925 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14933 grep -v '^ *+' conftest.er1 >conftest.err
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } >/dev/null; then
14938 if test -s conftest.err; then
14939 ac_cpp_err=$ac_cxx_preproc_warn_flag
14940 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14947 if test -z "$ac_cpp_err"; then
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14953 # Broken: fails on valid input.
14957 rm -f conftest.err conftest.$ac_ext
14959 # OK, works on sane cases. Now check whether nonexistent headers
14960 # can be detected and how.
14961 cat >conftest.$ac_ext <<_ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14967 #include <ac_nonexistent.h>
14969 if { (ac_try="$ac_cpp conftest.$ac_ext"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14977 grep -v '^ *+' conftest.er1 >conftest.err
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } >/dev/null; then
14982 if test -s conftest.err; then
14983 ac_cpp_err=$ac_cxx_preproc_warn_flag
14984 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14991 if test -z "$ac_cpp_err"; then
14992 # Broken: success on invalid input.
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14998 # Passes both tests.
15003 rm -f conftest.err conftest.$ac_ext
15006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15007 rm -f conftest.err conftest.$ac_ext
15008 if $ac_preproc_ok; then
15013 ac_cv_prog_CXXCPP=$CXXCPP
15016 CXXCPP=$ac_cv_prog_CXXCPP
15018 ac_cv_prog_CXXCPP=$CXXCPP
15020 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15021 echo "${ECHO_T}$CXXCPP" >&6; }
15022 ac_preproc_ok=false
15023 for ac_cxx_preproc_warn_flag in '' yes
15025 # Use a header file that comes with gcc, so configuring glibc
15026 # with a fresh cross-compiler works.
15027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15028 # <limits.h> exists even on freestanding compilers.
15029 # On the NeXT, cc -E runs the code through the compiler's parser,
15030 # not just through cpp. "Syntax error" is here to catch this case.
15031 cat >conftest.$ac_ext <<_ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15038 # include <limits.h>
15040 # include <assert.h>
15044 if { (ac_try="$ac_cpp conftest.$ac_ext"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15052 grep -v '^ *+' conftest.er1 >conftest.err
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } >/dev/null; then
15057 if test -s conftest.err; then
15058 ac_cpp_err=$ac_cxx_preproc_warn_flag
15059 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15066 if test -z "$ac_cpp_err"; then
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 # Broken: fails on valid input.
15076 rm -f conftest.err conftest.$ac_ext
15078 # OK, works on sane cases. Now check whether nonexistent headers
15079 # can be detected and how.
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 #include <ac_nonexistent.h>
15088 if { (ac_try="$ac_cpp conftest.$ac_ext"
15089 case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } >/dev/null; then
15101 if test -s conftest.err; then
15102 ac_cpp_err=$ac_cxx_preproc_warn_flag
15103 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15110 if test -z "$ac_cpp_err"; then
15111 # Broken: success on invalid input.
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 # Passes both tests.
15122 rm -f conftest.err conftest.$ac_ext
15125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15126 rm -f conftest.err conftest.$ac_ext
15127 if $ac_preproc_ok; then
15130 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15131 See \`config.log' for more details." >&5
15132 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15133 See \`config.log' for more details." >&2;}
15134 { (exit 1); exit 1; }; }
15138 ac_cpp='$CXXCPP $CPPFLAGS'
15139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15145 for ac_header in cxxabi.h
15147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 ac_res=`eval echo '${'$as_ac_Header'}'`
15155 { echo "$as_me:$LINENO: result: $ac_res" >&5
15156 echo "${ECHO_T}$ac_res" >&6; }
15158 # Is the header compilable?
15159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15161 cat >conftest.$ac_ext <<_ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15167 $ac_includes_default
15168 #include <$ac_header>
15170 rm -f conftest.$ac_objext
15171 if { (ac_try="$ac_compile"
15172 case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15179 grep -v '^ *+' conftest.er1 >conftest.err
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15185 { (case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_try") 2>&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; } &&
15194 { ac_try='test -s conftest.$ac_objext'
15195 { (case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_try") 2>&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 ac_header_compiler=yes
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_header_compiler=no
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15214 echo "${ECHO_T}$ac_header_compiler" >&6; }
15216 # Is the header present?
15217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15219 cat >conftest.$ac_ext <<_ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 #include <$ac_header>
15227 if { (ac_try="$ac_cpp conftest.$ac_ext"
15228 case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15235 grep -v '^ *+' conftest.er1 >conftest.err
15237 cat conftest.err >&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } >/dev/null; then
15240 if test -s conftest.err; then
15241 ac_cpp_err=$ac_cxx_preproc_warn_flag
15242 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15249 if test -z "$ac_cpp_err"; then
15250 ac_header_preproc=yes
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_header_preproc=no
15258 rm -f conftest.err conftest.$ac_ext
15259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15260 echo "${ECHO_T}$ac_header_preproc" >&6; }
15262 # So? What about this header?
15263 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15269 ac_header_preproc=yes
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15285 ## ------------------------------------ ##
15286 ## Report this to http://llvm.org/bugs/ ##
15287 ## ------------------------------------ ##
15289 ) | sed "s/^/$as_me: WARNING: /" >&2
15292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 eval "$as_ac_Header=\$ac_header_preproc"
15299 ac_res=`eval echo '${'$as_ac_Header'}'`
15300 { echo "$as_me:$LINENO: result: $ac_res" >&5
15301 echo "${ECHO_T}$ac_res" >&6; }
15304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15314 ac_cpp='$CPP $CPPFLAGS'
15315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 ac_res=`eval echo '${'$as_ac_Header'}'`
15335 { echo "$as_me:$LINENO: result: $ac_res" >&5
15336 echo "${ECHO_T}$ac_res" >&6; }
15338 # Is the header compilable?
15339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15341 cat >conftest.$ac_ext <<_ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 $ac_includes_default
15348 #include <$ac_header>
15350 rm -f conftest.$ac_objext
15351 if { (ac_try="$ac_compile"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_compile") 2>conftest.er1
15359 grep -v '^ *+' conftest.er1 >conftest.err
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest.$ac_objext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_header_compiler=yes
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ac_header_compiler=no
15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15394 echo "${ECHO_T}$ac_header_compiler" >&6; }
15396 # Is the header present?
15397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15399 cat >conftest.$ac_ext <<_ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 #include <$ac_header>
15407 if { (ac_try="$ac_cpp conftest.$ac_ext"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15415 grep -v '^ *+' conftest.er1 >conftest.err
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } >/dev/null; then
15420 if test -s conftest.err; then
15421 ac_cpp_err=$ac_c_preproc_warn_flag
15422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15429 if test -z "$ac_cpp_err"; then
15430 ac_header_preproc=yes
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 ac_header_preproc=no
15438 rm -f conftest.err conftest.$ac_ext
15439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15440 echo "${ECHO_T}$ac_header_preproc" >&6; }
15442 # So? What about this header?
15443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15449 ac_header_preproc=yes
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15465 ## ------------------------------------ ##
15466 ## Report this to http://llvm.org/bugs/ ##
15467 ## ------------------------------------ ##
15469 ) | sed "s/^/$as_me: WARNING: /" >&2
15472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 eval "$as_ac_Header=\$ac_header_preproc"
15479 ac_res=`eval echo '${'$as_ac_Header'}'`
15480 { echo "$as_me:$LINENO: result: $ac_res" >&5
15481 echo "${ECHO_T}$ac_res" >&6; }
15484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15485 cat >>confdefs.h <<_ACEOF
15486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15499 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 ac_res=`eval echo '${'$as_ac_Header'}'`
15509 { echo "$as_me:$LINENO: result: $ac_res" >&5
15510 echo "${ECHO_T}$ac_res" >&6; }
15512 # Is the header compilable?
15513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15515 cat >conftest.$ac_ext <<_ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 $ac_includes_default
15522 #include <$ac_header>
15524 rm -f conftest.$ac_objext
15525 if { (ac_try="$ac_compile"
15526 case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_compile") 2>conftest.er1
15533 grep -v '^ *+' conftest.er1 >conftest.err
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
15538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15539 { (case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_try") 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; } &&
15548 { ac_try='test -s conftest.$ac_objext'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_header_compiler=yes
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 ac_header_compiler=no
15566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15568 echo "${ECHO_T}$ac_header_compiler" >&6; }
15570 # Is the header present?
15571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15573 cat >conftest.$ac_ext <<_ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15579 #include <$ac_header>
15581 if { (ac_try="$ac_cpp conftest.$ac_ext"
15582 case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15589 grep -v '^ *+' conftest.er1 >conftest.err
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } >/dev/null; then
15594 if test -s conftest.err; then
15595 ac_cpp_err=$ac_c_preproc_warn_flag
15596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15603 if test -z "$ac_cpp_err"; then
15604 ac_header_preproc=yes
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_header_preproc=no
15612 rm -f conftest.err conftest.$ac_ext
15613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15614 echo "${ECHO_T}$ac_header_preproc" >&6; }
15616 # So? What about this header?
15617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15623 ac_header_preproc=yes
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15639 ## ------------------------------------ ##
15640 ## Report this to http://llvm.org/bugs/ ##
15641 ## ------------------------------------ ##
15643 ) | sed "s/^/$as_me: WARNING: /" >&2
15646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 eval "$as_ac_Header=\$ac_header_preproc"
15653 ac_res=`eval echo '${'$as_ac_Header'}'`
15654 { echo "$as_me:$LINENO: result: $ac_res" >&5
15655 echo "${ECHO_T}$ac_res" >&6; }
15658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15659 cat >>confdefs.h <<_ACEOF
15660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15669 for ac_header in utime.h windows.h
15671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 ac_res=`eval echo '${'$as_ac_Header'}'`
15679 { echo "$as_me:$LINENO: result: $ac_res" >&5
15680 echo "${ECHO_T}$ac_res" >&6; }
15682 # Is the header compilable?
15683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15685 cat >conftest.$ac_ext <<_ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691 $ac_includes_default
15692 #include <$ac_header>
15694 rm -f conftest.$ac_objext
15695 if { (ac_try="$ac_compile"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_compile") 2>conftest.er1
15703 grep -v '^ *+' conftest.er1 >conftest.err
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15709 { (case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_try") 2>&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; } &&
15718 { ac_try='test -s conftest.$ac_objext'
15719 { (case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_try") 2>&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }; then
15728 ac_header_compiler=yes
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ac_header_compiler=no
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15738 echo "${ECHO_T}$ac_header_compiler" >&6; }
15740 # Is the header present?
15741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15742 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
15751 if { (ac_try="$ac_cpp conftest.$ac_ext"
15752 case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15759 grep -v '^ *+' conftest.er1 >conftest.err
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } >/dev/null; then
15764 if test -s conftest.err; then
15765 ac_cpp_err=$ac_c_preproc_warn_flag
15766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15773 if test -z "$ac_cpp_err"; then
15774 ac_header_preproc=yes
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15779 ac_header_preproc=no
15782 rm -f conftest.err conftest.$ac_ext
15783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15784 echo "${ECHO_T}$ac_header_preproc" >&6; }
15786 # So? What about this header?
15787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15793 ac_header_preproc=yes
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15809 ## ------------------------------------ ##
15810 ## Report this to http://llvm.org/bugs/ ##
15811 ## ------------------------------------ ##
15813 ) | sed "s/^/$as_me: WARNING: /" >&2
15816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 eval "$as_ac_Header=\$ac_header_preproc"
15823 ac_res=`eval echo '${'$as_ac_Header'}'`
15824 { echo "$as_me:$LINENO: result: $ac_res" >&5
15825 echo "${ECHO_T}$ac_res" >&6; }
15828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15829 cat >>confdefs.h <<_ACEOF
15830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15842 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 ac_res=`eval echo '${'$as_ac_Header'}'`
15852 { echo "$as_me:$LINENO: result: $ac_res" >&5
15853 echo "${ECHO_T}$ac_res" >&6; }
15855 # Is the header compilable?
15856 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15858 cat >conftest.$ac_ext <<_ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 $ac_includes_default
15865 #include <$ac_header>
15867 rm -f conftest.$ac_objext
15868 if { (ac_try="$ac_compile"
15869 case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_compile") 2>conftest.er1
15876 grep -v '^ *+' conftest.er1 >conftest.err
15878 cat conftest.err >&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15882 { (case "(($ac_try" in
15883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884 *) ac_try_echo=$ac_try;;
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887 (eval "$ac_try") 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; } &&
15891 { ac_try='test -s conftest.$ac_objext'
15892 { (case "(($ac_try" in
15893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897 (eval "$ac_try") 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15901 ac_header_compiler=yes
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 ac_header_compiler=no
15909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15911 echo "${ECHO_T}$ac_header_compiler" >&6; }
15913 # Is the header present?
15914 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <$ac_header>
15924 if { (ac_try="$ac_cpp conftest.$ac_ext"
15925 case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15932 grep -v '^ *+' conftest.er1 >conftest.err
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } >/dev/null; then
15937 if test -s conftest.err; then
15938 ac_cpp_err=$ac_c_preproc_warn_flag
15939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15946 if test -z "$ac_cpp_err"; then
15947 ac_header_preproc=yes
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_header_preproc=no
15955 rm -f conftest.err conftest.$ac_ext
15956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15957 echo "${ECHO_T}$ac_header_preproc" >&6; }
15959 # So? What about this header?
15960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15966 ac_header_preproc=yes
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15982 ## ------------------------------------ ##
15983 ## Report this to http://llvm.org/bugs/ ##
15984 ## ------------------------------------ ##
15986 ) | sed "s/^/$as_me: WARNING: /" >&2
15989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 eval "$as_ac_Header=\$ac_header_preproc"
15996 ac_res=`eval echo '${'$as_ac_Header'}'`
15997 { echo "$as_me:$LINENO: result: $ac_res" >&5
15998 echo "${ECHO_T}$ac_res" >&6; }
16001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16002 cat >>confdefs.h <<_ACEOF
16003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16014 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 ac_res=`eval echo '${'$as_ac_Header'}'`
16024 { echo "$as_me:$LINENO: result: $ac_res" >&5
16025 echo "${ECHO_T}$ac_res" >&6; }
16027 # Is the header compilable?
16028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16030 cat >conftest.$ac_ext <<_ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16036 $ac_includes_default
16037 #include <$ac_header>
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_compile") 2>conftest.er1
16048 grep -v '^ *+' conftest.er1 >conftest.err
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } &&
16053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16054 { (case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059 (eval "$ac_try") 2>&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; } &&
16063 { ac_try='test -s conftest.$ac_objext'
16064 { (case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_try") 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_header_compiler=yes
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 ac_header_compiler=no
16081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16083 echo "${ECHO_T}$ac_header_compiler" >&6; }
16085 # Is the header present?
16086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16088 cat >conftest.$ac_ext <<_ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 #include <$ac_header>
16096 if { (ac_try="$ac_cpp conftest.$ac_ext"
16097 case "(($ac_try" in
16098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099 *) ac_try_echo=$ac_try;;
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16104 grep -v '^ *+' conftest.er1 >conftest.err
16106 cat conftest.err >&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } >/dev/null; then
16109 if test -s conftest.err; then
16110 ac_cpp_err=$ac_c_preproc_warn_flag
16111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16118 if test -z "$ac_cpp_err"; then
16119 ac_header_preproc=yes
16121 echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16124 ac_header_preproc=no
16127 rm -f conftest.err conftest.$ac_ext
16128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16129 echo "${ECHO_T}$ac_header_preproc" >&6; }
16131 # So? What about this header?
16132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16138 ac_header_preproc=yes
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16154 ## ------------------------------------ ##
16155 ## Report this to http://llvm.org/bugs/ ##
16156 ## ------------------------------------ ##
16158 ) | sed "s/^/$as_me: WARNING: /" >&2
16161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 eval "$as_ac_Header=\$ac_header_preproc"
16168 ac_res=`eval echo '${'$as_ac_Header'}'`
16169 { echo "$as_me:$LINENO: result: $ac_res" >&5
16170 echo "${ECHO_T}$ac_res" >&6; }
16173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16174 cat >>confdefs.h <<_ACEOF
16175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16183 for ac_header in valgrind/valgrind.h
16185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 ac_res=`eval echo '${'$as_ac_Header'}'`
16193 { echo "$as_me:$LINENO: result: $ac_res" >&5
16194 echo "${ECHO_T}$ac_res" >&6; }
16196 # Is the header compilable?
16197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16199 cat >conftest.$ac_ext <<_ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16205 $ac_includes_default
16206 #include <$ac_header>
16208 rm -f conftest.$ac_objext
16209 if { (ac_try="$ac_compile"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_compile") 2>conftest.er1
16217 grep -v '^ *+' conftest.er1 >conftest.err
16219 cat conftest.err >&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } &&
16222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16223 { (case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_try") 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try='test -s conftest.$ac_objext'
16233 { (case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_try") 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16242 ac_header_compiler=yes
16244 echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16247 ac_header_compiler=no
16250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16252 echo "${ECHO_T}$ac_header_compiler" >&6; }
16254 # Is the header present?
16255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16257 cat >conftest.$ac_ext <<_ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263 #include <$ac_header>
16265 if { (ac_try="$ac_cpp conftest.$ac_ext"
16266 case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16273 grep -v '^ *+' conftest.er1 >conftest.err
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } >/dev/null; then
16278 if test -s conftest.err; then
16279 ac_cpp_err=$ac_c_preproc_warn_flag
16280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16287 if test -z "$ac_cpp_err"; then
16288 ac_header_preproc=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_header_preproc=no
16296 rm -f conftest.err conftest.$ac_ext
16297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16298 echo "${ECHO_T}$ac_header_preproc" >&6; }
16300 # So? What about this header?
16301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16307 ac_header_preproc=yes
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16323 ## ------------------------------------ ##
16324 ## Report this to http://llvm.org/bugs/ ##
16325 ## ------------------------------------ ##
16327 ) | sed "s/^/$as_me: WARNING: /" >&2
16330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 eval "$as_ac_Header=\$ac_header_preproc"
16337 ac_res=`eval echo '${'$as_ac_Header'}'`
16338 { echo "$as_me:$LINENO: result: $ac_res" >&5
16339 echo "${ECHO_T}$ac_res" >&6; }
16342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16343 cat >>confdefs.h <<_ACEOF
16344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16352 for ac_header in fenv.h
16354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 ac_res=`eval echo '${'$as_ac_Header'}'`
16362 { echo "$as_me:$LINENO: result: $ac_res" >&5
16363 echo "${ECHO_T}$ac_res" >&6; }
16365 # Is the header compilable?
16366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 $ac_includes_default
16375 #include <$ac_header>
16377 rm -f conftest.$ac_objext
16378 if { (ac_try="$ac_compile"
16379 case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_compile") 2>conftest.er1
16386 grep -v '^ *+' conftest.er1 >conftest.err
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } &&
16391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16392 { (case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_try") 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; } &&
16401 { ac_try='test -s conftest.$ac_objext'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 ac_header_compiler=yes
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 ac_header_compiler=no
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16421 echo "${ECHO_T}$ac_header_compiler" >&6; }
16423 # Is the header present?
16424 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 #include <$ac_header>
16434 if { (ac_try="$ac_cpp conftest.$ac_ext"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16442 grep -v '^ *+' conftest.er1 >conftest.err
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } >/dev/null; then
16447 if test -s conftest.err; then
16448 ac_cpp_err=$ac_c_preproc_warn_flag
16449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16456 if test -z "$ac_cpp_err"; then
16457 ac_header_preproc=yes
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16462 ac_header_preproc=no
16465 rm -f conftest.err conftest.$ac_ext
16466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16467 echo "${ECHO_T}$ac_header_preproc" >&6; }
16469 # So? What about this header?
16470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16476 ac_header_preproc=yes
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16492 ## ------------------------------------ ##
16493 ## Report this to http://llvm.org/bugs/ ##
16494 ## ------------------------------------ ##
16496 ) | sed "s/^/$as_me: WARNING: /" >&2
16499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 eval "$as_ac_Header=\$ac_header_preproc"
16506 ac_res=`eval echo '${'$as_ac_Header'}'`
16507 { echo "$as_me:$LINENO: result: $ac_res" >&5
16508 echo "${ECHO_T}$ac_res" >&6; }
16511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16520 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16521 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16522 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 cat >conftest.$ac_ext <<_ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16536 #ifndef FE_ALL_EXCEPT
16537 char *p = (char *) FE_ALL_EXCEPT;
16545 rm -f conftest.$ac_objext
16546 if { (ac_try="$ac_compile"
16547 case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_compile") 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16560 { (case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_try") 2>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; } &&
16569 { ac_try='test -s conftest.$ac_objext'
16570 { (case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_try") 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 ac_cv_have_decl_FE_ALL_EXCEPT=no
16587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16590 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16591 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16593 cat >>confdefs.h <<_ACEOF
16594 #define HAVE_DECL_FE_ALL_EXCEPT 1
16599 cat >>confdefs.h <<_ACEOF
16600 #define HAVE_DECL_FE_ALL_EXCEPT 0
16605 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16606 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16607 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 cat >conftest.$ac_ext <<_ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16622 char *p = (char *) FE_INEXACT;
16630 rm -f conftest.$ac_objext
16631 if { (ac_try="$ac_compile"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_compile") 2>conftest.er1
16639 grep -v '^ *+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
16644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest.$ac_objext'
16655 { (case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_try") 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_have_decl_FE_INEXACT=yes
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_cv_have_decl_FE_INEXACT=no
16672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16675 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16676 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16678 cat >>confdefs.h <<_ACEOF
16679 #define HAVE_DECL_FE_INEXACT 1
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_DECL_FE_INEXACT 0
16692 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16694 for ac_header in pthread.h
16696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 ac_res=`eval echo '${'$as_ac_Header'}'`
16704 { echo "$as_me:$LINENO: result: $ac_res" >&5
16705 echo "${ECHO_T}$ac_res" >&6; }
16707 # Is the header compilable?
16708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 $ac_includes_default
16717 #include <$ac_header>
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16728 grep -v '^ *+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16734 { (case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_try") 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; } &&
16743 { ac_try='test -s conftest.$ac_objext'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_try") 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_header_compiler=yes
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_header_compiler=no
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16763 echo "${ECHO_T}$ac_header_compiler" >&6; }
16765 # Is the header present?
16766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16768 cat >conftest.$ac_ext <<_ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 #include <$ac_header>
16776 if { (ac_try="$ac_cpp conftest.$ac_ext"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16784 grep -v '^ *+' conftest.er1 >conftest.err
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } >/dev/null; then
16789 if test -s conftest.err; then
16790 ac_cpp_err=$ac_c_preproc_warn_flag
16791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16798 if test -z "$ac_cpp_err"; then
16799 ac_header_preproc=yes
16801 echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16804 ac_header_preproc=no
16807 rm -f conftest.err conftest.$ac_ext
16808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16809 echo "${ECHO_T}$ac_header_preproc" >&6; }
16811 # So? What about this header?
16812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16818 ac_header_preproc=yes
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16834 ## ------------------------------------ ##
16835 ## Report this to http://llvm.org/bugs/ ##
16836 ## ------------------------------------ ##
16838 ) | sed "s/^/$as_me: WARNING: /" >&2
16841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 eval "$as_ac_Header=\$ac_header_preproc"
16848 ac_res=`eval echo '${'$as_ac_Header'}'`
16849 { echo "$as_me:$LINENO: result: $ac_res" >&5
16850 echo "${ECHO_T}$ac_res" >&6; }
16853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16870 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16872 for ac_header in zlib.h
16874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 ac_res=`eval echo '${'$as_ac_Header'}'`
16882 { echo "$as_me:$LINENO: result: $ac_res" >&5
16883 echo "${ECHO_T}$ac_res" >&6; }
16885 # Is the header compilable?
16886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16888 cat >conftest.$ac_ext <<_ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 $ac_includes_default
16895 #include <$ac_header>
16897 rm -f conftest.$ac_objext
16898 if { (ac_try="$ac_compile"
16899 case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_compile") 2>conftest.er1
16906 grep -v '^ *+' conftest.er1 >conftest.err
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_header_compiler=yes
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_header_compiler=no
16939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16941 echo "${ECHO_T}$ac_header_compiler" >&6; }
16943 # Is the header present?
16944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16946 cat >conftest.$ac_ext <<_ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16952 #include <$ac_header>
16954 if { (ac_try="$ac_cpp conftest.$ac_ext"
16955 case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16962 grep -v '^ *+' conftest.er1 >conftest.err
16964 cat conftest.err >&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } >/dev/null; then
16967 if test -s conftest.err; then
16968 ac_cpp_err=$ac_c_preproc_warn_flag
16969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16976 if test -z "$ac_cpp_err"; then
16977 ac_header_preproc=yes
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 ac_header_preproc=no
16985 rm -f conftest.err conftest.$ac_ext
16986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16987 echo "${ECHO_T}$ac_header_preproc" >&6; }
16989 # So? What about this header?
16990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16996 ac_header_preproc=yes
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17012 ## ------------------------------------ ##
17013 ## Report this to http://llvm.org/bugs/ ##
17014 ## ------------------------------------ ##
17016 ) | sed "s/^/$as_me: WARNING: /" >&2
17019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 eval "$as_ac_Header=\$ac_header_preproc"
17026 ac_res=`eval echo '${'$as_ac_Header'}'`
17027 { echo "$as_me:$LINENO: result: $ac_res" >&5
17028 echo "${ECHO_T}$ac_res" >&6; }
17031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17032 cat >>confdefs.h <<_ACEOF
17033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17049 if test "$llvm_cv_enable_libffi" = "yes" ; then
17052 for ac_header in ffi.h ffi/ffi.h
17054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 ac_res=`eval echo '${'$as_ac_Header'}'`
17062 { echo "$as_me:$LINENO: result: $ac_res" >&5
17063 echo "${ECHO_T}$ac_res" >&6; }
17065 # Is the header compilable?
17066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17068 cat >conftest.$ac_ext <<_ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 $ac_includes_default
17075 #include <$ac_header>
17077 rm -f conftest.$ac_objext
17078 if { (ac_try="$ac_compile"
17079 case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_compile") 2>conftest.er1
17086 grep -v '^ *+' conftest.er1 >conftest.err
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17092 { (case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_try") 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_header_compiler=yes
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_header_compiler=no
17119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17121 echo "${ECHO_T}$ac_header_compiler" >&6; }
17123 # Is the header present?
17124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17126 cat >conftest.$ac_ext <<_ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h. */
17132 #include <$ac_header>
17134 if { (ac_try="$ac_cpp conftest.$ac_ext"
17135 case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17142 grep -v '^ *+' conftest.er1 >conftest.err
17144 cat conftest.err >&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } >/dev/null; then
17147 if test -s conftest.err; then
17148 ac_cpp_err=$ac_c_preproc_warn_flag
17149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17156 if test -z "$ac_cpp_err"; then
17157 ac_header_preproc=yes
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17162 ac_header_preproc=no
17165 rm -f conftest.err conftest.$ac_ext
17166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17167 echo "${ECHO_T}$ac_header_preproc" >&6; }
17169 # So? What about this header?
17170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17176 ac_header_preproc=yes
17179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17192 ## ------------------------------------ ##
17193 ## Report this to http://llvm.org/bugs/ ##
17194 ## ------------------------------------ ##
17196 ) | sed "s/^/$as_me: WARNING: /" >&2
17199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17204 eval "$as_ac_Header=\$ac_header_preproc"
17206 ac_res=`eval echo '${'$as_ac_Header'}'`
17207 { echo "$as_me:$LINENO: result: $ac_res" >&5
17208 echo "${ECHO_T}$ac_res" >&6; }
17211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17223 for ac_header in CrashReporterClient.h
17225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 ac_res=`eval echo '${'$as_ac_Header'}'`
17233 { echo "$as_me:$LINENO: result: $ac_res" >&5
17234 echo "${ECHO_T}$ac_res" >&6; }
17236 # Is the header compilable?
17237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17239 cat >conftest.$ac_ext <<_ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 $ac_includes_default
17246 #include <$ac_header>
17248 rm -f conftest.$ac_objext
17249 if { (ac_try="$ac_compile"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_compile") 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest.$ac_objext'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 ac_header_compiler=yes
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_header_compiler=no
17290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17292 echo "${ECHO_T}$ac_header_compiler" >&6; }
17294 # Is the header present?
17295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 #include <$ac_header>
17305 if { (ac_try="$ac_cpp conftest.$ac_ext"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17313 grep -v '^ *+' conftest.er1 >conftest.err
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } >/dev/null; then
17318 if test -s conftest.err; then
17319 ac_cpp_err=$ac_c_preproc_warn_flag
17320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17327 if test -z "$ac_cpp_err"; then
17328 ac_header_preproc=yes
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 ac_header_preproc=no
17336 rm -f conftest.err conftest.$ac_ext
17337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17338 echo "${ECHO_T}$ac_header_preproc" >&6; }
17340 # So? What about this header?
17341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17347 ac_header_preproc=yes
17350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17363 ## ------------------------------------ ##
17364 ## Report this to http://llvm.org/bugs/ ##
17365 ## ------------------------------------ ##
17367 ) | sed "s/^/$as_me: WARNING: /" >&2
17370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 eval "$as_ac_Header=\$ac_header_preproc"
17377 ac_res=`eval echo '${'$as_ac_Header'}'`
17378 { echo "$as_me:$LINENO: result: $ac_res" >&5
17379 echo "${ECHO_T}$ac_res" >&6; }
17382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17383 cat >>confdefs.h <<_ACEOF
17384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17392 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17393 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17394 cat >conftest.$ac_ext <<_ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17402 extern const char *__crashreporter_info__;
17404 __crashreporter_info__ = "test";
17410 rm -f conftest.$ac_objext conftest$ac_exeext
17411 if { (ac_try="$ac_link"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_link") 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17425 { (case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_try") 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try='test -s conftest$ac_exeext'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
17445 { echo "$as_me:$LINENO: result: yes" >&5
17446 echo "${ECHO_T}yes" >&6; }
17448 cat >>confdefs.h <<\_ACEOF
17449 #define HAVE_CRASHREPORTER_INFO 1
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17458 { echo "$as_me:$LINENO: result: no" >&5
17459 echo "${ECHO_T}no" >&6; }
17461 cat >>confdefs.h <<\_ACEOF
17462 #define HAVE_CRASHREPORTER_INFO 0
17468 rm -f core conftest.err conftest.$ac_objext \
17469 conftest$ac_exeext conftest.$ac_ext
17473 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17474 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17475 if test "${ac_cv_huge_val_sanity+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 ac_cpp='$CXXCPP $CPPFLAGS'
17481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17485 ac_save_CXXFLAGS=$CXXFLAGS
17486 CXXFLAGS="$CXXFLAGS -pedantic"
17487 if test "$cross_compiling" = yes; then
17488 ac_cv_huge_val_sanity=yes
17490 cat >conftest.$ac_ext <<_ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17500 double x = HUGE_VAL; return x != x;
17505 rm -f conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17516 { (case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_try") 2>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 ac_cv_huge_val_sanity=yes
17527 echo "$as_me: program exited with status $ac_status" >&5
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17531 ( exit $ac_status )
17532 ac_cv_huge_val_sanity=no
17534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17538 CXXFLAGS=$ac_save_CXXFLAGS
17540 ac_cpp='$CPP $CPPFLAGS'
17541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17547 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17548 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17549 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17552 { echo "$as_me:$LINENO: checking for pid_t" >&5
17553 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17554 if test "${ac_cv_type_pid_t+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17557 cat >conftest.$ac_ext <<_ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17563 $ac_includes_default
17564 typedef pid_t ac__type_new_;
17568 if ((ac__type_new_ *) 0)
17570 if (sizeof (ac__type_new_))
17576 rm -f conftest.$ac_objext
17577 if { (ac_try="$ac_compile"
17578 case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_compile") 2>conftest.er1
17585 grep -v '^ *+' conftest.er1 >conftest.err
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
17590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest.$ac_objext'
17601 { (case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_try") 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 ac_cv_type_pid_t=yes
17612 echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17615 ac_cv_type_pid_t=no
17618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17620 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17621 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17622 if test $ac_cv_type_pid_t = yes; then
17626 cat >>confdefs.h <<_ACEOF
17632 { echo "$as_me:$LINENO: checking for size_t" >&5
17633 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17634 if test "${ac_cv_type_size_t+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 $ac_includes_default
17644 typedef size_t ac__type_new_;
17648 if ((ac__type_new_ *) 0)
17650 if (sizeof (ac__type_new_))
17656 rm -f conftest.$ac_objext
17657 if { (ac_try="$ac_compile"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_compile") 2>conftest.er1
17665 grep -v '^ *+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
17670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17671 { (case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_try") 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; } &&
17680 { ac_try='test -s conftest.$ac_objext'
17681 { (case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_try") 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_type_size_t=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_type_size_t=no
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17701 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17702 if test $ac_cv_type_size_t = yes; then
17706 cat >>confdefs.h <<_ACEOF
17707 #define size_t unsigned int
17713 cat >>confdefs.h <<_ACEOF
17714 #define RETSIGTYPE void
17717 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17718 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17719 if test "${ac_cv_struct_tm+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 cat >conftest.$ac_ext <<_ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17728 #include <sys/types.h>
17734 struct tm *tp; tp->tm_sec;
17739 rm -f conftest.$ac_objext
17740 if { (ac_try="$ac_compile"
17741 case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_compile") 2>conftest.er1
17748 grep -v '^ *+' conftest.er1 >conftest.err
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17754 { (case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_try") 2>&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; } &&
17763 { ac_try='test -s conftest.$ac_objext'
17764 { (case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_try") 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_struct_tm=time.h
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17778 ac_cv_struct_tm=sys/time.h
17781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17784 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17785 if test $ac_cv_struct_tm = sys/time.h; then
17787 cat >>confdefs.h <<\_ACEOF
17788 #define TM_IN_SYS_TIME 1
17793 { echo "$as_me:$LINENO: checking for int64_t" >&5
17794 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17795 if test "${ac_cv_type_int64_t+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 cat >conftest.$ac_ext <<_ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 $ac_includes_default
17805 typedef int64_t ac__type_new_;
17809 if ((ac__type_new_ *) 0)
17811 if (sizeof (ac__type_new_))
17817 rm -f conftest.$ac_objext
17818 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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 ac_cv_type_int64_t=yes
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 ac_cv_type_int64_t=no
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17862 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17863 if test $ac_cv_type_int64_t = yes; then
17865 cat >>confdefs.h <<_ACEOF
17866 #define HAVE_INT64_T 1
17871 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17872 echo "$as_me: error: Type int64_t required but not found" >&2;}
17873 { (exit 1); exit 1; }; }
17876 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17877 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17878 if test "${ac_cv_type_uint64_t+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17887 $ac_includes_default
17888 typedef uint64_t ac__type_new_;
17892 if ((ac__type_new_ *) 0)
17894 if (sizeof (ac__type_new_))
17900 rm -f conftest.$ac_objext
17901 if { (ac_try="$ac_compile"
17902 case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_compile") 2>conftest.er1
17909 grep -v '^ *+' conftest.er1 >conftest.err
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
17914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17915 { (case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_try") 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_try") 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 ac_cv_type_uint64_t=yes
17936 echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17939 ac_cv_type_uint64_t=no
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17945 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17946 if test $ac_cv_type_uint64_t = yes; then
17948 cat >>confdefs.h <<_ACEOF
17949 #define HAVE_UINT64_T 1
17954 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17955 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17956 if test "${ac_cv_type_u_int64_t+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 cat >conftest.$ac_ext <<_ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 $ac_includes_default
17966 typedef u_int64_t ac__type_new_;
17970 if ((ac__type_new_ *) 0)
17972 if (sizeof (ac__type_new_))
17978 rm -f conftest.$ac_objext
17979 if { (ac_try="$ac_compile"
17980 case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_compile") 2>conftest.er1
17987 grep -v '^ *+' conftest.er1 >conftest.err
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17993 { (case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_try") 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest.$ac_objext'
18003 { (case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_try") 2>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_type_u_int64_t=yes
18014 echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 ac_cv_type_u_int64_t=no
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18023 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18024 if test $ac_cv_type_u_int64_t = yes; then
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_U_INT64_T 1
18032 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18033 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18034 { (exit 1); exit 1; }; }
18048 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 cat >conftest.$ac_ext <<_ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18064 #define $ac_func innocuous_$ac_func
18066 /* System header to define __stub macros and hopefully few prototypes,
18067 which can conflict with char $ac_func (); below.
18068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18069 <limits.h> exists even on freestanding compilers. */
18072 # include <limits.h>
18074 # include <assert.h>
18079 /* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18086 /* The GNU C library defines this for functions which it implements
18087 to always fail with ENOSYS. Some functions are actually named
18088 something starting with __ and the normal name is an alias. */
18089 #if defined __stub_$ac_func || defined __stub___$ac_func
18096 return $ac_func ();
18101 rm -f conftest.$ac_objext conftest$ac_exeext
18102 if { (ac_try="$ac_link"
18103 case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_link") 2>conftest.er1
18110 grep -v '^ *+' conftest.er1 >conftest.err
18112 cat conftest.err >&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18116 { (case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_try") 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest$ac_exeext'
18126 { (case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_try") 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 eval "$as_ac_var=yes"
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 eval "$as_ac_var=no"
18143 rm -f core conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18146 ac_res=`eval echo '${'$as_ac_var'}'`
18147 { echo "$as_me:$LINENO: result: $ac_res" >&5
18148 echo "${ECHO_T}$ac_res" >&6; }
18149 if test `eval echo '${'$as_ac_var'}'` = yes; then
18150 cat >>confdefs.h <<_ACEOF
18151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18161 for ac_func in powf fmodf strtof round
18163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18169 cat >conftest.$ac_ext <<_ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18177 #define $ac_func innocuous_$ac_func
18179 /* System header to define __stub macros and hopefully few prototypes,
18180 which can conflict with char $ac_func (); below.
18181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18182 <limits.h> exists even on freestanding compilers. */
18185 # include <limits.h>
18187 # include <assert.h>
18192 /* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18199 /* The GNU C library defines this for functions which it implements
18200 to always fail with ENOSYS. Some functions are actually named
18201 something starting with __ and the normal name is an alias. */
18202 #if defined __stub_$ac_func || defined __stub___$ac_func
18209 return $ac_func ();
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (ac_try="$ac_link"
18216 case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_link") 2>conftest.er1
18223 grep -v '^ *+' conftest.er1 >conftest.err
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest$ac_exeext'
18239 { (case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_try") 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 eval "$as_ac_var=yes"
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 eval "$as_ac_var=no"
18256 rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18259 ac_res=`eval echo '${'$as_ac_var'}'`
18260 { echo "$as_me:$LINENO: result: $ac_res" >&5
18261 echo "${ECHO_T}$ac_res" >&6; }
18262 if test `eval echo '${'$as_ac_var'}'` = yes; then
18263 cat >>confdefs.h <<_ACEOF
18264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18275 for ac_func in log log2 log10 exp exp2
18277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18283 cat >conftest.$ac_ext <<_ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18291 #define $ac_func innocuous_$ac_func
18293 /* System header to define __stub macros and hopefully few prototypes,
18294 which can conflict with char $ac_func (); below.
18295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18296 <limits.h> exists even on freestanding compilers. */
18299 # include <limits.h>
18301 # include <assert.h>
18306 /* Override any GCC internal prototype to avoid an error.
18307 Use char because int might match the return type of a GCC
18308 builtin and then its argument prototype would still apply. */
18313 /* The GNU C library defines this for functions which it implements
18314 to always fail with ENOSYS. Some functions are actually named
18315 something starting with __ and the normal name is an alias. */
18316 #if defined __stub_$ac_func || defined __stub___$ac_func
18323 return $ac_func ();
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (ac_try="$ac_link"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_link") 2>conftest.er1
18337 grep -v '^ *+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest$ac_exeext'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 eval "$as_ac_var=yes"
18364 echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18367 eval "$as_ac_var=no"
18370 rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18373 ac_res=`eval echo '${'$as_ac_var'}'`
18374 { echo "$as_me:$LINENO: result: $ac_res" >&5
18375 echo "${ECHO_T}$ac_res" >&6; }
18376 if test `eval echo '${'$as_ac_var'}'` = yes; then
18377 cat >>confdefs.h <<_ACEOF
18378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18389 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18405 #define $ac_func innocuous_$ac_func
18407 /* System header to define __stub macros and hopefully few prototypes,
18408 which can conflict with char $ac_func (); below.
18409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18410 <limits.h> exists even on freestanding compilers. */
18413 # include <limits.h>
18415 # include <assert.h>
18420 /* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18427 /* The GNU C library defines this for functions which it implements
18428 to always fail with ENOSYS. Some functions are actually named
18429 something starting with __ and the normal name is an alias. */
18430 #if defined __stub_$ac_func || defined __stub___$ac_func
18437 return $ac_func ();
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (ac_try="$ac_link"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_link") 2>conftest.er1
18451 grep -v '^ *+' conftest.er1 >conftest.err
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
18456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest$ac_exeext'
18467 { (case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_try") 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 eval "$as_ac_var=yes"
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 eval "$as_ac_var=no"
18484 rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext conftest.$ac_ext
18487 ac_res=`eval echo '${'$as_ac_var'}'`
18488 { echo "$as_me:$LINENO: result: $ac_res" >&5
18489 echo "${ECHO_T}$ac_res" >&6; }
18490 if test `eval echo '${'$as_ac_var'}'` = yes; then
18491 cat >>confdefs.h <<_ACEOF
18492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18501 for ac_func in isatty mkdtemp mkstemp
18503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18517 #define $ac_func innocuous_$ac_func
18519 /* System header to define __stub macros and hopefully few prototypes,
18520 which can conflict with char $ac_func (); below.
18521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18522 <limits.h> exists even on freestanding compilers. */
18525 # include <limits.h>
18527 # include <assert.h>
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18539 /* The GNU C library defines this for functions which it implements
18540 to always fail with ENOSYS. Some functions are actually named
18541 something starting with __ and the normal name is an alias. */
18542 #if defined __stub_$ac_func || defined __stub___$ac_func
18549 return $ac_func ();
18554 rm -f conftest.$ac_objext conftest$ac_exeext
18555 if { (ac_try="$ac_link"
18556 case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_link") 2>conftest.er1
18563 grep -v '^ *+' conftest.er1 >conftest.err
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } &&
18568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18569 { (case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_try") 2>&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; } &&
18578 { ac_try='test -s conftest$ac_exeext'
18579 { (case "(($ac_try" in
18580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18581 *) ac_try_echo=$ac_try;;
18583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18584 (eval "$ac_try") 2>&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18588 eval "$as_ac_var=yes"
18590 echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 eval "$as_ac_var=no"
18596 rm -f core conftest.err conftest.$ac_objext \
18597 conftest$ac_exeext conftest.$ac_ext
18599 ac_res=`eval echo '${'$as_ac_var'}'`
18600 { echo "$as_me:$LINENO: result: $ac_res" >&5
18601 echo "${ECHO_T}$ac_res" >&6; }
18602 if test `eval echo '${'$as_ac_var'}'` = yes; then
18603 cat >>confdefs.h <<_ACEOF
18604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18617 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18625 cat >conftest.$ac_ext <<_ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18633 #define $ac_func innocuous_$ac_func
18635 /* System header to define __stub macros and hopefully few prototypes,
18636 which can conflict with char $ac_func (); below.
18637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18638 <limits.h> exists even on freestanding compilers. */
18641 # include <limits.h>
18643 # include <assert.h>
18648 /* Override any GCC internal prototype to avoid an error.
18649 Use char because int might match the return type of a GCC
18650 builtin and then its argument prototype would still apply. */
18655 /* The GNU C library defines this for functions which it implements
18656 to always fail with ENOSYS. Some functions are actually named
18657 something starting with __ and the normal name is an alias. */
18658 #if defined __stub_$ac_func || defined __stub___$ac_func
18665 return $ac_func ();
18670 rm -f conftest.$ac_objext conftest$ac_exeext
18671 if { (ac_try="$ac_link"
18672 case "(($ac_try" in
18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674 *) ac_try_echo=$ac_try;;
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677 (eval "$ac_link") 2>conftest.er1
18679 grep -v '^ *+' conftest.er1 >conftest.err
18681 cat conftest.err >&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
18684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18685 { (case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_try") 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; } &&
18694 { ac_try='test -s conftest$ac_exeext'
18695 { (case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_try") 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 eval "$as_ac_var=yes"
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18709 eval "$as_ac_var=no"
18712 rm -f core conftest.err conftest.$ac_objext \
18713 conftest$ac_exeext conftest.$ac_ext
18715 ac_res=`eval echo '${'$as_ac_var'}'`
18716 { echo "$as_me:$LINENO: result: $ac_res" >&5
18717 echo "${ECHO_T}$ac_res" >&6; }
18718 if test `eval echo '${'$as_ac_var'}'` = yes; then
18719 cat >>confdefs.h <<_ACEOF
18720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18730 for ac_func in strerror strerror_r setenv arc4random
18732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18733 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 cat >conftest.$ac_ext <<_ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h. */
18744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18746 #define $ac_func innocuous_$ac_func
18748 /* System header to define __stub macros and hopefully few prototypes,
18749 which can conflict with char $ac_func (); below.
18750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18751 <limits.h> exists even on freestanding compilers. */
18754 # include <limits.h>
18756 # include <assert.h>
18761 /* Override any GCC internal prototype to avoid an error.
18762 Use char because int might match the return type of a GCC
18763 builtin and then its argument prototype would still apply. */
18768 /* The GNU C library defines this for functions which it implements
18769 to always fail with ENOSYS. Some functions are actually named
18770 something starting with __ and the normal name is an alias. */
18771 #if defined __stub_$ac_func || defined __stub___$ac_func
18778 return $ac_func ();
18783 rm -f conftest.$ac_objext conftest$ac_exeext
18784 if { (ac_try="$ac_link"
18785 case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_link") 2>conftest.er1
18792 grep -v '^ *+' conftest.er1 >conftest.err
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18798 { (case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_try") 2>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest$ac_exeext'
18808 { (case "(($ac_try" in
18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810 *) ac_try_echo=$ac_try;;
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813 (eval "$ac_try") 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 eval "$as_ac_var=yes"
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 eval "$as_ac_var=no"
18825 rm -f core conftest.err conftest.$ac_objext \
18826 conftest$ac_exeext conftest.$ac_ext
18828 ac_res=`eval echo '${'$as_ac_var'}'`
18829 { echo "$as_me:$LINENO: result: $ac_res" >&5
18830 echo "${ECHO_T}$ac_res" >&6; }
18831 if test `eval echo '${'$as_ac_var'}'` = yes; then
18832 cat >>confdefs.h <<_ACEOF
18833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18843 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18849 echo $ECHO_N "(cached) $ECHO_C" >&6
18851 cat >conftest.$ac_ext <<_ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h. */
18857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18859 #define $ac_func innocuous_$ac_func
18861 /* System header to define __stub macros and hopefully few prototypes,
18862 which can conflict with char $ac_func (); below.
18863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18864 <limits.h> exists even on freestanding compilers. */
18867 # include <limits.h>
18869 # include <assert.h>
18874 /* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18881 /* The GNU C library defines this for functions which it implements
18882 to always fail with ENOSYS. Some functions are actually named
18883 something starting with __ and the normal name is an alias. */
18884 #if defined __stub_$ac_func || defined __stub___$ac_func
18891 return $ac_func ();
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_link") 2>conftest.er1
18905 grep -v '^ *+' conftest.er1 >conftest.err
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } &&
18910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18911 { (case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_try") 2>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest$ac_exeext'
18921 { (case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_try") 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 eval "$as_ac_var=yes"
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 eval "$as_ac_var=no"
18938 rm -f core conftest.err conftest.$ac_objext \
18939 conftest$ac_exeext conftest.$ac_ext
18941 ac_res=`eval echo '${'$as_ac_var'}'`
18942 { echo "$as_me:$LINENO: result: $ac_res" >&5
18943 echo "${ECHO_T}$ac_res" >&6; }
18944 if test `eval echo '${'$as_ac_var'}'` = yes; then
18945 cat >>confdefs.h <<_ACEOF
18946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18957 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 cat >conftest.$ac_ext <<_ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18973 #define $ac_func innocuous_$ac_func
18975 /* System header to define __stub macros and hopefully few prototypes,
18976 which can conflict with char $ac_func (); below.
18977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18978 <limits.h> exists even on freestanding compilers. */
18981 # include <limits.h>
18983 # include <assert.h>
18988 /* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18995 /* The GNU C library defines this for functions which it implements
18996 to always fail with ENOSYS. Some functions are actually named
18997 something starting with __ and the normal name is an alias. */
18998 #if defined __stub_$ac_func || defined __stub___$ac_func
19005 return $ac_func ();
19010 rm -f conftest.$ac_objext conftest$ac_exeext
19011 if { (ac_try="$ac_link"
19012 case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_link") 2>conftest.er1
19019 grep -v '^ *+' conftest.er1 >conftest.err
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
19024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19025 { (case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_try") 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest$ac_exeext'
19035 { (case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_try") 2>&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; }; then
19044 eval "$as_ac_var=yes"
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19049 eval "$as_ac_var=no"
19052 rm -f core conftest.err conftest.$ac_objext \
19053 conftest$ac_exeext conftest.$ac_ext
19055 ac_res=`eval echo '${'$as_ac_var'}'`
19056 { echo "$as_me:$LINENO: result: $ac_res" >&5
19057 echo "${ECHO_T}$ac_res" >&6; }
19058 if test `eval echo '${'$as_ac_var'}'` = yes; then
19059 cat >>confdefs.h <<_ACEOF
19060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19068 for ac_func in futimes futimens
19070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19076 cat >conftest.$ac_ext <<_ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19084 #define $ac_func innocuous_$ac_func
19086 /* System header to define __stub macros and hopefully few prototypes,
19087 which can conflict with char $ac_func (); below.
19088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19089 <limits.h> exists even on freestanding compilers. */
19092 # include <limits.h>
19094 # include <assert.h>
19099 /* Override any GCC internal prototype to avoid an error.
19100 Use char because int might match the return type of a GCC
19101 builtin and then its argument prototype would still apply. */
19106 /* The GNU C library defines this for functions which it implements
19107 to always fail with ENOSYS. Some functions are actually named
19108 something starting with __ and the normal name is an alias. */
19109 #if defined __stub_$ac_func || defined __stub___$ac_func
19116 return $ac_func ();
19121 rm -f conftest.$ac_objext conftest$ac_exeext
19122 if { (ac_try="$ac_link"
19123 case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_link") 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19136 { (case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_try") 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; } &&
19145 { ac_try='test -s conftest$ac_exeext'
19146 { (case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151 (eval "$ac_try") 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 eval "$as_ac_var=yes"
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19160 eval "$as_ac_var=no"
19163 rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19166 ac_res=`eval echo '${'$as_ac_var'}'`
19167 { echo "$as_me:$LINENO: result: $ac_res" >&5
19168 echo "${ECHO_T}$ac_res" >&6; }
19169 if test `eval echo '${'$as_ac_var'}'` = yes; then
19170 cat >>confdefs.h <<_ACEOF
19171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19177 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19178 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19179 if test "${llvm_cv_c_printf_a+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 ac_cpp='$CPP $CPPFLAGS'
19184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19188 if test "$cross_compiling" = yes; then
19189 llvmac_cv_c_printf_a=no
19191 cat >conftest.$ac_ext <<_ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19200 #include <stdlib.h>
19206 volatile double A, B;
19210 sprintf(Buffer, "%a", A);
19214 if (A != 0x1.999999999999ap-4)
19221 rm -f conftest$ac_exeext
19222 if { (ac_try="$ac_link"
19223 case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_link") 2>&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19232 { (case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_try") 2>&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; }; then
19241 llvm_cv_c_printf_a=yes
19243 echo "$as_me: program exited with status $ac_status" >&5
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ( exit $ac_status )
19248 llvmac_cv_c_printf_a=no
19250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19255 ac_cpp='$CPP $CPPFLAGS'
19256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19261 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19262 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19263 if test "$llvm_cv_c_printf_a" = "yes"; then
19265 cat >>confdefs.h <<\_ACEOF
19266 #define HAVE_PRINTF_A 1
19273 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19274 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19275 if test "${ac_cv_func_rand48+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19280 ac_cpp='$CXXCPP $CPPFLAGS'
19281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19285 cat >conftest.$ac_ext <<_ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h. */
19291 #include <stdlib.h>
19295 srand48(0);lrand48();drand48();
19300 rm -f conftest.$ac_objext
19301 if { (ac_try="$ac_compile"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_compile") 2>conftest.er1
19309 grep -v '^ *+' conftest.er1 >conftest.err
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } &&
19314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19315 { (case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_try") 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; } &&
19324 { ac_try='test -s conftest.$ac_objext'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_cv_func_rand48=yes
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 ac_cv_func_rand48=no
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19344 ac_cpp='$CPP $CPPFLAGS'
19345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19351 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19352 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19354 if test "$ac_cv_func_rand48" = "yes" ; then
19356 cat >>confdefs.h <<\_ACEOF
19357 #define HAVE_RAND48 1
19363 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19364 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19365 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19368 cat >conftest.$ac_ext <<_ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 $ac_includes_default
19379 char *p = (char *) strerror_s;
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_compile") 2>conftest.er1
19396 grep -v '^ *+' conftest.er1 >conftest.err
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
19401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19402 { (case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_try") 2>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try='test -s conftest.$ac_objext'
19412 { (case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417 (eval "$ac_try") 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421 ac_cv_have_decl_strerror_s=yes
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 ac_cv_have_decl_strerror_s=no
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19431 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19432 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19433 if test $ac_cv_have_decl_strerror_s = yes; then
19435 cat >>confdefs.h <<_ACEOF
19436 #define HAVE_DECL_STRERROR_S 1
19441 cat >>confdefs.h <<_ACEOF
19442 #define HAVE_DECL_STRERROR_S 0
19450 if test "$llvm_cv_os_type" = "MingW" ; then
19451 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19452 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19453 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 ac_check_lib_save_LIBS=$LIBS
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19465 /* Override any GCC internal prototype to avoid an error.
19466 Use char because int might match the return type of a GCC
19467 builtin and then its argument prototype would still apply. */
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (ac_try="$ac_link"
19482 case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_link") 2>conftest.er1
19489 grep -v '^ *+' conftest.er1 >conftest.err
19491 cat conftest.err >&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } &&
19494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19495 { (case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_try") 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest$ac_exeext'
19505 { (case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_try") 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; }; then
19514 ac_cv_lib_gcc__alloca=yes
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19519 ac_cv_lib_gcc__alloca=no
19522 rm -f core conftest.err conftest.$ac_objext \
19523 conftest$ac_exeext conftest.$ac_ext
19524 LIBS=$ac_check_lib_save_LIBS
19526 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19527 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19528 if test $ac_cv_lib_gcc__alloca = yes; then
19530 cat >>confdefs.h <<\_ACEOF
19531 #define HAVE__ALLOCA 1
19536 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19537 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19538 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 ac_check_lib_save_LIBS=$LIBS
19543 cat >conftest.$ac_ext <<_ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h. */
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19560 return __alloca ();
19565 rm -f conftest.$ac_objext conftest$ac_exeext
19566 if { (ac_try="$ac_link"
19567 case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_link") 2>conftest.er1
19574 grep -v '^ *+' conftest.er1 >conftest.err
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19580 { (case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_try") 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest$ac_exeext'
19590 { (case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_try") 2>&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19599 ac_cv_lib_gcc___alloca=yes
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ac_cv_lib_gcc___alloca=no
19607 rm -f core conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19609 LIBS=$ac_check_lib_save_LIBS
19611 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19612 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19613 if test $ac_cv_lib_gcc___alloca = yes; then
19615 cat >>confdefs.h <<\_ACEOF
19616 #define HAVE___ALLOCA 1
19621 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19622 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19623 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 ac_check_lib_save_LIBS=$LIBS
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19635 /* Override any GCC internal prototype to avoid an error.
19636 Use char because int might match the return type of a GCC
19637 builtin and then its argument prototype would still apply. */
19645 return __chkstk ();
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (ac_try="$ac_link"
19652 case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_link") 2>conftest.er1
19659 grep -v '^ *+' conftest.er1 >conftest.err
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } &&
19664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19665 { (case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_try") 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest$ac_exeext'
19675 { (case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_try") 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684 ac_cv_lib_gcc___chkstk=yes
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19689 ac_cv_lib_gcc___chkstk=no
19692 rm -f core conftest.err conftest.$ac_objext \
19693 conftest$ac_exeext conftest.$ac_ext
19694 LIBS=$ac_check_lib_save_LIBS
19696 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19697 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19698 if test $ac_cv_lib_gcc___chkstk = yes; then
19700 cat >>confdefs.h <<\_ACEOF
19701 #define HAVE___CHKSTK 1
19706 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19707 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19708 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 ac_check_lib_save_LIBS=$LIBS
19713 cat >conftest.$ac_ext <<_ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19720 /* Override any GCC internal prototype to avoid an error.
19721 Use char because int might match the return type of a GCC
19722 builtin and then its argument prototype would still apply. */
19730 return ___chkstk ();
19735 rm -f conftest.$ac_objext conftest$ac_exeext
19736 if { (ac_try="$ac_link"
19737 case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_link") 2>conftest.er1
19744 grep -v '^ *+' conftest.er1 >conftest.err
19746 cat conftest.err >&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19750 { (case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_try") 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try='test -s conftest$ac_exeext'
19760 { (case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_try") 2>&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; }; then
19769 ac_cv_lib_gcc____chkstk=yes
19771 echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19774 ac_cv_lib_gcc____chkstk=no
19777 rm -f core conftest.err conftest.$ac_objext \
19778 conftest$ac_exeext conftest.$ac_ext
19779 LIBS=$ac_check_lib_save_LIBS
19781 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19782 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19783 if test $ac_cv_lib_gcc____chkstk = yes; then
19785 cat >>confdefs.h <<\_ACEOF
19786 #define HAVE____CHKSTK 1
19792 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19793 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19794 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 ac_check_lib_save_LIBS=$LIBS
19799 cat >conftest.$ac_ext <<_ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19806 /* Override any GCC internal prototype to avoid an error.
19807 Use char because int might match the return type of a GCC
19808 builtin and then its argument prototype would still apply. */
19816 return __ashldi3 ();
19821 rm -f conftest.$ac_objext conftest$ac_exeext
19822 if { (ac_try="$ac_link"
19823 case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_link") 2>conftest.er1
19830 grep -v '^ *+' conftest.er1 >conftest.err
19832 cat conftest.err >&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
19835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19836 { (case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_try") 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest$ac_exeext'
19846 { (case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_try") 2>&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_cv_lib_gcc___ashldi3=yes
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_lib_gcc___ashldi3=no
19863 rm -f core conftest.err conftest.$ac_objext \
19864 conftest$ac_exeext conftest.$ac_ext
19865 LIBS=$ac_check_lib_save_LIBS
19867 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19868 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19869 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE___ASHLDI3 1
19877 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19878 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19879 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 ac_check_lib_save_LIBS=$LIBS
19884 cat >conftest.$ac_ext <<_ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19891 /* Override any GCC internal prototype to avoid an error.
19892 Use char because int might match the return type of a GCC
19893 builtin and then its argument prototype would still apply. */
19901 return __ashrdi3 ();
19906 rm -f conftest.$ac_objext conftest$ac_exeext
19907 if { (ac_try="$ac_link"
19908 case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913 (eval "$ac_link") 2>conftest.er1
19915 grep -v '^ *+' conftest.er1 >conftest.err
19917 cat conftest.err >&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } &&
19920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19921 { (case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_try") 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; } &&
19930 { ac_try='test -s conftest$ac_exeext'
19931 { (case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_try") 2>&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 ac_cv_lib_gcc___ashrdi3=yes
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19945 ac_cv_lib_gcc___ashrdi3=no
19948 rm -f core conftest.err conftest.$ac_objext \
19949 conftest$ac_exeext conftest.$ac_ext
19950 LIBS=$ac_check_lib_save_LIBS
19952 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19953 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19954 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19956 cat >>confdefs.h <<\_ACEOF
19957 #define HAVE___ASHRDI3 1
19962 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19963 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19964 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 ac_check_lib_save_LIBS=$LIBS
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19976 /* Override any GCC internal prototype to avoid an error.
19977 Use char because int might match the return type of a GCC
19978 builtin and then its argument prototype would still apply. */
19986 return __divdi3 ();
19991 rm -f conftest.$ac_objext conftest$ac_exeext
19992 if { (ac_try="$ac_link"
19993 case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_link") 2>conftest.er1
20000 grep -v '^ *+' conftest.er1 >conftest.err
20002 cat conftest.err >&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } &&
20005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20006 { (case "(($ac_try" in
20007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008 *) ac_try_echo=$ac_try;;
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011 (eval "$ac_try") 2>&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; } &&
20015 { ac_try='test -s conftest$ac_exeext'
20016 { (case "(($ac_try" in
20017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20021 (eval "$ac_try") 2>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 ac_cv_lib_gcc___divdi3=yes
20027 echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_cv_lib_gcc___divdi3=no
20033 rm -f core conftest.err conftest.$ac_objext \
20034 conftest$ac_exeext conftest.$ac_ext
20035 LIBS=$ac_check_lib_save_LIBS
20037 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
20038 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
20039 if test $ac_cv_lib_gcc___divdi3 = yes; then
20041 cat >>confdefs.h <<\_ACEOF
20042 #define HAVE___DIVDI3 1
20047 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
20048 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
20049 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 ac_check_lib_save_LIBS=$LIBS
20054 cat >conftest.$ac_ext <<_ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20061 /* Override any GCC internal prototype to avoid an error.
20062 Use char because int might match the return type of a GCC
20063 builtin and then its argument prototype would still apply. */
20071 return __fixdfdi ();
20076 rm -f conftest.$ac_objext conftest$ac_exeext
20077 if { (ac_try="$ac_link"
20078 case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_link") 2>conftest.er1
20085 grep -v '^ *+' conftest.er1 >conftest.err
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20091 { (case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_try") 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; } &&
20100 { ac_try='test -s conftest$ac_exeext'
20101 { (case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_try") 2>&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 ac_cv_lib_gcc___fixdfdi=yes
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20115 ac_cv_lib_gcc___fixdfdi=no
20118 rm -f core conftest.err conftest.$ac_objext \
20119 conftest$ac_exeext conftest.$ac_ext
20120 LIBS=$ac_check_lib_save_LIBS
20122 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20123 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20124 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20126 cat >>confdefs.h <<\_ACEOF
20127 #define HAVE___FIXDFDI 1
20132 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20133 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20134 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 ac_check_lib_save_LIBS=$LIBS
20139 cat >conftest.$ac_ext <<_ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20146 /* Override any GCC internal prototype to avoid an error.
20147 Use char because int might match the return type of a GCC
20148 builtin and then its argument prototype would still apply. */
20156 return __fixsfdi ();
20161 rm -f conftest.$ac_objext conftest$ac_exeext
20162 if { (ac_try="$ac_link"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_link") 2>conftest.er1
20170 grep -v '^ *+' conftest.er1 >conftest.err
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20176 { (case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_try") 2>&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; } &&
20185 { ac_try='test -s conftest$ac_exeext'
20186 { (case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_try") 2>&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; }; then
20195 ac_cv_lib_gcc___fixsfdi=yes
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ac_cv_lib_gcc___fixsfdi=no
20203 rm -f core conftest.err conftest.$ac_objext \
20204 conftest$ac_exeext conftest.$ac_ext
20205 LIBS=$ac_check_lib_save_LIBS
20207 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20208 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20209 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20211 cat >>confdefs.h <<\_ACEOF
20212 #define HAVE___FIXSFDI 1
20217 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20218 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20219 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 ac_check_lib_save_LIBS=$LIBS
20224 cat >conftest.$ac_ext <<_ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20231 /* Override any GCC internal prototype to avoid an error.
20232 Use char because int might match the return type of a GCC
20233 builtin and then its argument prototype would still apply. */
20237 char __floatdidf ();
20241 return __floatdidf ();
20246 rm -f conftest.$ac_objext conftest$ac_exeext
20247 if { (ac_try="$ac_link"
20248 case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_link") 2>conftest.er1
20255 grep -v '^ *+' conftest.er1 >conftest.err
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
20260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20261 { (case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_try") 2>&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; } &&
20270 { ac_try='test -s conftest$ac_exeext'
20271 { (case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_try") 2>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; }; then
20280 ac_cv_lib_gcc___floatdidf=yes
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ac_cv_lib_gcc___floatdidf=no
20288 rm -f core conftest.err conftest.$ac_objext \
20289 conftest$ac_exeext conftest.$ac_ext
20290 LIBS=$ac_check_lib_save_LIBS
20292 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20293 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20294 if test $ac_cv_lib_gcc___floatdidf = yes; then
20296 cat >>confdefs.h <<\_ACEOF
20297 #define HAVE___FLOATDIDF 1
20302 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20303 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20304 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20307 ac_check_lib_save_LIBS=$LIBS
20309 cat >conftest.$ac_ext <<_ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20316 /* Override any GCC internal prototype to avoid an error.
20317 Use char because int might match the return type of a GCC
20318 builtin and then its argument prototype would still apply. */
20326 return __lshrdi3 ();
20331 rm -f conftest.$ac_objext conftest$ac_exeext
20332 if { (ac_try="$ac_link"
20333 case "(($ac_try" in
20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335 *) ac_try_echo=$ac_try;;
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338 (eval "$ac_link") 2>conftest.er1
20340 grep -v '^ *+' conftest.er1 >conftest.err
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; } &&
20355 { ac_try='test -s conftest$ac_exeext'
20356 { (case "(($ac_try" in
20357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358 *) ac_try_echo=$ac_try;;
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361 (eval "$ac_try") 2>&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; }; then
20365 ac_cv_lib_gcc___lshrdi3=yes
20367 echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20370 ac_cv_lib_gcc___lshrdi3=no
20373 rm -f core conftest.err conftest.$ac_objext \
20374 conftest$ac_exeext conftest.$ac_ext
20375 LIBS=$ac_check_lib_save_LIBS
20377 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20378 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20379 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20381 cat >>confdefs.h <<\_ACEOF
20382 #define HAVE___LSHRDI3 1
20387 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20388 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20389 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 ac_check_lib_save_LIBS=$LIBS
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20401 /* Override any GCC internal prototype to avoid an error.
20402 Use char because int might match the return type of a GCC
20403 builtin and then its argument prototype would still apply. */
20411 return __moddi3 ();
20416 rm -f conftest.$ac_objext conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_link") 2>conftest.er1
20425 grep -v '^ *+' conftest.er1 >conftest.err
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20431 { (case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_try") 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; } &&
20440 { ac_try='test -s conftest$ac_exeext'
20441 { (case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_try") 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 ac_cv_lib_gcc___moddi3=yes
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_cv_lib_gcc___moddi3=no
20458 rm -f core conftest.err conftest.$ac_objext \
20459 conftest$ac_exeext conftest.$ac_ext
20460 LIBS=$ac_check_lib_save_LIBS
20462 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20463 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20464 if test $ac_cv_lib_gcc___moddi3 = yes; then
20466 cat >>confdefs.h <<\_ACEOF
20467 #define HAVE___MODDI3 1
20472 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20473 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20474 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 ac_check_lib_save_LIBS=$LIBS
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20486 /* Override any GCC internal prototype to avoid an error.
20487 Use char because int might match the return type of a GCC
20488 builtin and then its argument prototype would still apply. */
20496 return __udivdi3 ();
20501 rm -f conftest.$ac_objext conftest$ac_exeext
20502 if { (ac_try="$ac_link"
20503 case "(($ac_try" in
20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508 (eval "$ac_link") 2>conftest.er1
20510 grep -v '^ *+' conftest.er1 >conftest.err
20512 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } &&
20515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20516 { (case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_try") 2>&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; } &&
20525 { ac_try='test -s conftest$ac_exeext'
20526 { (case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_try") 2>&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 ac_cv_lib_gcc___udivdi3=yes
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20540 ac_cv_lib_gcc___udivdi3=no
20543 rm -f core conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
20545 LIBS=$ac_check_lib_save_LIBS
20547 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20548 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20549 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20551 cat >>confdefs.h <<\_ACEOF
20552 #define HAVE___UDIVDI3 1
20557 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20558 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20559 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 ac_check_lib_save_LIBS=$LIBS
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20571 /* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20581 return __umoddi3 ();
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (ac_try="$ac_link"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_link") 2>conftest.er1
20595 grep -v '^ *+' conftest.er1 >conftest.err
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } &&
20600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20601 { (case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_try") 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest$ac_exeext'
20611 { (case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_try") 2>&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20620 ac_cv_lib_gcc___umoddi3=yes
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_cv_lib_gcc___umoddi3=no
20628 rm -f core conftest.err conftest.$ac_objext \
20629 conftest$ac_exeext conftest.$ac_ext
20630 LIBS=$ac_check_lib_save_LIBS
20632 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20633 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20634 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20636 cat >>confdefs.h <<\_ACEOF
20637 #define HAVE___UMODDI3 1
20643 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20644 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20645 if test "${ac_cv_lib_gcc___main+set}" = set; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20648 ac_check_lib_save_LIBS=$LIBS
20650 cat >conftest.$ac_ext <<_ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20657 /* Override any GCC internal prototype to avoid an error.
20658 Use char because int might match the return type of a GCC
20659 builtin and then its argument prototype would still apply. */
20672 rm -f conftest.$ac_objext conftest$ac_exeext
20673 if { (ac_try="$ac_link"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_link") 2>conftest.er1
20681 grep -v '^ *+' conftest.er1 >conftest.err
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
20686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20687 { (case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692 (eval "$ac_try") 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try='test -s conftest$ac_exeext'
20697 { (case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_try") 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ac_cv_lib_gcc___main=yes
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 ac_cv_lib_gcc___main=no
20714 rm -f core conftest.err conftest.$ac_objext \
20715 conftest$ac_exeext conftest.$ac_ext
20716 LIBS=$ac_check_lib_save_LIBS
20718 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20719 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20720 if test $ac_cv_lib_gcc___main = yes; then
20722 cat >>confdefs.h <<\_ACEOF
20723 #define HAVE___MAIN 1
20728 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20729 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20730 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 ac_check_lib_save_LIBS=$LIBS
20735 cat >conftest.$ac_ext <<_ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20742 /* Override any GCC internal prototype to avoid an error.
20743 Use char because int might match the return type of a GCC
20744 builtin and then its argument prototype would still apply. */
20752 return __cmpdi2 ();
20757 rm -f conftest.$ac_objext conftest$ac_exeext
20758 if { (ac_try="$ac_link"
20759 case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_link") 2>conftest.er1
20766 grep -v '^ *+' conftest.er1 >conftest.err
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
20771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20781 { ac_try='test -s conftest$ac_exeext'
20782 { (case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_try") 2>&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791 ac_cv_lib_gcc___cmpdi2=yes
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_cv_lib_gcc___cmpdi2=no
20799 rm -f core conftest.err conftest.$ac_objext \
20800 conftest$ac_exeext conftest.$ac_ext
20801 LIBS=$ac_check_lib_save_LIBS
20803 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20804 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20805 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20807 cat >>confdefs.h <<\_ACEOF
20808 #define HAVE___CMPDI2 1
20815 if test "$llvm_cv_os_type" = "MingW" ; then
20816 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20817 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20818 cat >conftest.$ac_ext <<_ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20826 #include <windows.h>
20827 #include <imagehlp.h>
20828 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20829 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20833 rm -f conftest.$ac_objext
20834 if { (ac_try="$ac_compile"
20835 case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_compile") 2>conftest.er1
20842 grep -v '^ *+' conftest.er1 >conftest.err
20844 cat conftest.err >&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
20847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20848 { (case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_try") 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; } &&
20857 { ac_try='test -s conftest.$ac_objext'
20858 { (case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_try") 2>&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20868 { echo "$as_me:$LINENO: result: yes" >&5
20869 echo "${ECHO_T}yes" >&6; }
20870 llvm_cv_win32_elmcb_pcstr="PCSTR"
20873 echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20877 { echo "$as_me:$LINENO: result: no" >&5
20878 echo "${ECHO_T}no" >&6; }
20879 llvm_cv_win32_elmcb_pcstr="PSTR"
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 cat >>confdefs.h <<_ACEOF
20886 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20893 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20894 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20895 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20900 ac_cpp='$CXXCPP $CPPFLAGS'
20901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20905 cat >conftest.$ac_ext <<_ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20920 rm -f conftest.$ac_objext
20921 if { (ac_try="$ac_compile"
20922 case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_compile") 2>conftest.er1
20929 grep -v '^ *+' conftest.er1 >conftest.err
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
20934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20935 { (case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_try") 2>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest.$ac_objext'
20945 { (case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_try") 2>&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; }; then
20954 ac_cv_func_isnan_in_math_h=yes
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20959 ac_cv_func_isnan_in_math_h=no
20962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20964 ac_cpp='$CPP $CPPFLAGS'
20965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20971 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20972 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20975 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20977 cat >>confdefs.h <<\_ACEOF
20978 #define HAVE_ISNAN_IN_MATH_H 1
20984 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20985 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20986 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 ac_cpp='$CXXCPP $CPPFLAGS'
20992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21011 rm -f conftest.$ac_objext
21012 if { (ac_try="$ac_compile"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_compile") 2>conftest.er1
21020 grep -v '^ *+' conftest.er1 >conftest.err
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } &&
21025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21026 { (case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_try") 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; } &&
21035 { ac_try='test -s conftest.$ac_objext'
21036 { (case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_try") 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_func_isnan_in_cmath=yes
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_func_isnan_in_cmath=no
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055 ac_cpp='$CPP $CPPFLAGS'
21056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21063 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
21065 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_ISNAN_IN_CMATH 1
21074 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21075 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
21076 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 ac_cpp='$CXXCPP $CPPFLAGS'
21082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21086 cat >conftest.$ac_ext <<_ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21096 float f; std::isnan(f);
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_compile") 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
21115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21116 { (case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_try") 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; } &&
21125 { ac_try='test -s conftest.$ac_objext'
21126 { (case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_try") 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_cv_func_std_isnan_in_cmath=yes
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ac_cv_func_std_isnan_in_cmath=no
21143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21145 ac_cpp='$CPP $CPPFLAGS'
21146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21152 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21153 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21155 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21157 cat >>confdefs.h <<\_ACEOF
21158 #define HAVE_STD_ISNAN_IN_CMATH 1
21166 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21167 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21168 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21173 ac_cpp='$CXXCPP $CPPFLAGS'
21174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21193 rm -f conftest.$ac_objext
21194 if { (ac_try="$ac_compile"
21195 case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_compile") 2>conftest.er1
21202 grep -v '^ *+' conftest.er1 >conftest.err
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21208 { (case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_try") 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_try") 2>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; }; then
21227 ac_cv_func_isinf_in_math_h=yes
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 ac_cv_func_isinf_in_math_h=no
21235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 ac_cpp='$CPP $CPPFLAGS'
21238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21244 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21245 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21247 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21249 cat >>confdefs.h <<\_ACEOF
21250 #define HAVE_ISINF_IN_MATH_H 1
21256 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21257 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21258 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21263 ac_cpp='$CXXCPP $CPPFLAGS'
21264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_compile") 2>conftest.er1
21292 grep -v '^ *+' conftest.er1 >conftest.err
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } &&
21297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21298 { (case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_try") 2>&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; } &&
21307 { ac_try='test -s conftest.$ac_objext'
21308 { (case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313 (eval "$ac_try") 2>&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; }; then
21317 ac_cv_func_isinf_in_cmath=yes
21319 echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21322 ac_cv_func_isinf_in_cmath=no
21325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327 ac_cpp='$CPP $CPPFLAGS'
21328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21334 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21335 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21337 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21339 cat >>confdefs.h <<\_ACEOF
21340 #define HAVE_ISINF_IN_CMATH 1
21346 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21347 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21348 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21353 ac_cpp='$CXXCPP $CPPFLAGS'
21354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21358 cat >conftest.$ac_ext <<_ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h. */
21368 float f; std::isinf(f);
21373 rm -f conftest.$ac_objext
21374 if { (ac_try="$ac_compile"
21375 case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21382 grep -v '^ *+' conftest.er1 >conftest.err
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
21387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21388 { (case "(($ac_try" in
21389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390 *) ac_try_echo=$ac_try;;
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_try") 2>&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; } &&
21397 { ac_try='test -s conftest.$ac_objext'
21398 { (case "(($ac_try" in
21399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400 *) ac_try_echo=$ac_try;;
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403 (eval "$ac_try") 2>&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; }; then
21407 ac_cv_func_std_isinf_in_cmath=yes
21409 echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 ac_cv_func_std_isinf_in_cmath=no
21415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417 ac_cpp='$CPP $CPPFLAGS'
21418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21424 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21425 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21427 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21429 cat >>confdefs.h <<\_ACEOF
21430 #define HAVE_STD_ISINF_IN_CMATH 1
21436 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21437 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21438 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21443 ac_cpp='$CXXCPP $CPPFLAGS'
21444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21448 cat >conftest.$ac_ext <<_ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21454 #include <ieeefp.h>
21458 float f; finite(f);
21463 rm -f conftest.$ac_objext
21464 if { (ac_try="$ac_compile"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470 (eval "$ac_compile") 2>conftest.er1
21472 grep -v '^ *+' conftest.er1 >conftest.err
21474 cat conftest.err >&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } &&
21477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21478 { (case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21483 (eval "$ac_try") 2>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; } &&
21487 { ac_try='test -s conftest.$ac_objext'
21488 { (case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_try") 2>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; }; then
21497 ac_cv_func_finite_in_ieeefp_h=yes
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 ac_cv_func_finite_in_ieeefp_h=no
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21507 ac_cpp='$CPP $CPPFLAGS'
21508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21514 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21515 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21517 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21519 cat >>confdefs.h <<\_ACEOF
21520 #define HAVE_FINITE_IN_IEEEFP_H 1
21527 if test "$llvm_cv_platform_type" = "Unix" ; then
21530 for ac_header in stdlib.h unistd.h
21532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 ac_res=`eval echo '${'$as_ac_Header'}'`
21540 { echo "$as_me:$LINENO: result: $ac_res" >&5
21541 echo "${ECHO_T}$ac_res" >&6; }
21543 # Is the header compilable?
21544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21546 cat >conftest.$ac_ext <<_ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 $ac_includes_default
21553 #include <$ac_header>
21555 rm -f conftest.$ac_objext
21556 if { (ac_try="$ac_compile"
21557 case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_compile") 2>conftest.er1
21564 grep -v '^ *+' conftest.er1 >conftest.err
21566 cat conftest.err >&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } &&
21569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21570 { (case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_try") 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; } &&
21579 { ac_try='test -s conftest.$ac_objext'
21580 { (case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_try") 2>&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; }; then
21589 ac_header_compiler=yes
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ac_header_compiler=no
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21599 echo "${ECHO_T}$ac_header_compiler" >&6; }
21601 # Is the header present?
21602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21604 cat >conftest.$ac_ext <<_ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 #include <$ac_header>
21612 if { (ac_try="$ac_cpp conftest.$ac_ext"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21620 grep -v '^ *+' conftest.er1 >conftest.err
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } >/dev/null; then
21625 if test -s conftest.err; then
21626 ac_cpp_err=$ac_c_preproc_warn_flag
21627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21634 if test -z "$ac_cpp_err"; then
21635 ac_header_preproc=yes
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21640 ac_header_preproc=no
21643 rm -f conftest.err conftest.$ac_ext
21644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21645 echo "${ECHO_T}$ac_header_preproc" >&6; }
21647 # So? What about this header?
21648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21654 ac_header_preproc=yes
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21670 ## ------------------------------------ ##
21671 ## Report this to http://llvm.org/bugs/ ##
21672 ## ------------------------------------ ##
21674 ) | sed "s/^/$as_me: WARNING: /" >&2
21677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 eval "$as_ac_Header=\$ac_header_preproc"
21684 ac_res=`eval echo '${'$as_ac_Header'}'`
21685 { echo "$as_me:$LINENO: result: $ac_res" >&5
21686 echo "${ECHO_T}$ac_res" >&6; }
21689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21690 cat >>confdefs.h <<_ACEOF
21691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21699 for ac_func in getpagesize
21701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 cat >conftest.$ac_ext <<_ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21715 #define $ac_func innocuous_$ac_func
21717 /* System header to define __stub macros and hopefully few prototypes,
21718 which can conflict with char $ac_func (); below.
21719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21720 <limits.h> exists even on freestanding compilers. */
21723 # include <limits.h>
21725 # include <assert.h>
21730 /* Override any GCC internal prototype to avoid an error.
21731 Use char because int might match the return type of a GCC
21732 builtin and then its argument prototype would still apply. */
21737 /* The GNU C library defines this for functions which it implements
21738 to always fail with ENOSYS. Some functions are actually named
21739 something starting with __ and the normal name is an alias. */
21740 #if defined __stub_$ac_func || defined __stub___$ac_func
21747 return $ac_func ();
21752 rm -f conftest.$ac_objext conftest$ac_exeext
21753 if { (ac_try="$ac_link"
21754 case "(($ac_try" in
21755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756 *) ac_try_echo=$ac_try;;
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759 (eval "$ac_link") 2>conftest.er1
21761 grep -v '^ *+' conftest.er1 >conftest.err
21763 cat conftest.err >&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
21766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21767 { (case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772 (eval "$ac_try") 2>&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; } &&
21776 { ac_try='test -s conftest$ac_exeext'
21777 { (case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_try") 2>&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 eval "$as_ac_var=yes"
21788 echo "$as_me: failed program was:" >&5
21789 sed 's/^/| /' conftest.$ac_ext >&5
21791 eval "$as_ac_var=no"
21794 rm -f core conftest.err conftest.$ac_objext \
21795 conftest$ac_exeext conftest.$ac_ext
21797 ac_res=`eval echo '${'$as_ac_var'}'`
21798 { echo "$as_me:$LINENO: result: $ac_res" >&5
21799 echo "${ECHO_T}$ac_res" >&6; }
21800 if test `eval echo '${'$as_ac_var'}'` = yes; then
21801 cat >>confdefs.h <<_ACEOF
21802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21808 { echo "$as_me:$LINENO: checking for working mmap" >&5
21809 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21810 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21811 echo $ECHO_N "(cached) $ECHO_C" >&6
21813 if test "$cross_compiling" = yes; then
21814 ac_cv_func_mmap_fixed_mapped=no
21816 cat >conftest.$ac_ext <<_ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 $ac_includes_default
21823 /* malloc might have been renamed as rpl_malloc. */
21826 /* Thanks to Mike Haertel and Jim Avera for this test.
21827 Here is a matrix of mmap possibilities:
21828 mmap private not fixed
21829 mmap private fixed at somewhere currently unmapped
21830 mmap private fixed at somewhere already mapped
21831 mmap shared not fixed
21832 mmap shared fixed at somewhere currently unmapped
21833 mmap shared fixed at somewhere already mapped
21834 For private mappings, we should verify that changes cannot be read()
21835 back from the file, nor mmap's back from the file at a different
21836 address. (There have been systems where private was not correctly
21837 implemented like the infamous i386 svr4.0, and systems where the
21838 VM page cache was not coherent with the file system buffer cache
21839 like early versions of FreeBSD and possibly contemporary NetBSD.)
21840 For shared mappings, we should conversely verify that changes get
21841 propagated back to all the places they're supposed to be.
21843 Grep wants private fixed already mapped.
21844 The main things grep needs to know about mmap are:
21845 * does it exist and is it safe to write into the mmap'd area
21846 * how to use it (BSD variants) */
21849 #include <sys/mman.h>
21851 #if !STDC_HEADERS && !HAVE_STDLIB_H
21855 /* This mess was copied from the GNU getpagesize.h. */
21856 #if !HAVE_GETPAGESIZE
21857 /* Assume that all systems that can run configure have sys/param.h. */
21858 # if !HAVE_SYS_PARAM_H
21859 # define HAVE_SYS_PARAM_H 1
21862 # ifdef _SC_PAGESIZE
21863 # define getpagesize() sysconf(_SC_PAGESIZE)
21864 # else /* no _SC_PAGESIZE */
21865 # if HAVE_SYS_PARAM_H
21866 # include <sys/param.h>
21867 # ifdef EXEC_PAGESIZE
21868 # define getpagesize() EXEC_PAGESIZE
21869 # else /* no EXEC_PAGESIZE */
21871 # define getpagesize() NBPG * CLSIZE
21874 # endif /* no CLSIZE */
21875 # else /* no NBPG */
21877 # define getpagesize() NBPC
21878 # else /* no NBPC */
21880 # define getpagesize() PAGESIZE
21881 # endif /* PAGESIZE */
21882 # endif /* no NBPC */
21883 # endif /* no NBPG */
21884 # endif /* no EXEC_PAGESIZE */
21885 # else /* no HAVE_SYS_PARAM_H */
21886 # define getpagesize() 8192 /* punt totally */
21887 # endif /* no HAVE_SYS_PARAM_H */
21888 # endif /* no _SC_PAGESIZE */
21890 #endif /* no HAVE_GETPAGESIZE */
21895 char *data, *data2, *data3;
21899 pagesize = getpagesize ();
21901 /* First, make a file with some known garbage in it. */
21902 data = (char *) malloc (pagesize);
21905 for (i = 0; i < pagesize; ++i)
21906 *(data + i) = rand ();
21908 fd = creat ("conftest.mmap", 0600);
21911 if (write (fd, data, pagesize) != pagesize)
21915 /* Next, try to mmap the file at a fixed address which already has
21916 something else allocated at it. If we can, also make sure that
21917 we see the same garbage. */
21918 fd = open ("conftest.mmap", O_RDWR);
21921 data2 = (char *) malloc (2 * pagesize);
21924 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21925 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21926 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21928 for (i = 0; i < pagesize; ++i)
21929 if (*(data + i) != *(data2 + i))
21932 /* Finally, make sure that changes to the mapped area do not
21933 percolate back to the file as seen by read(). (This is a bug on
21934 some variants of i386 svr4.0.) */
21935 for (i = 0; i < pagesize; ++i)
21936 *(data2 + i) = *(data2 + i) + 1;
21937 data3 = (char *) malloc (pagesize);
21940 if (read (fd, data3, pagesize) != pagesize)
21942 for (i = 0; i < pagesize; ++i)
21943 if (*(data + i) != *(data3 + i))
21949 rm -f conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_link") 2>&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21960 { (case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_try") 2>&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
21969 ac_cv_func_mmap_fixed_mapped=yes
21971 echo "$as_me: program exited with status $ac_status" >&5
21972 echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21975 ( exit $ac_status )
21976 ac_cv_func_mmap_fixed_mapped=no
21978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21983 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21984 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21985 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21987 cat >>confdefs.h <<\_ACEOF
21988 #define HAVE_MMAP 1
21992 rm -f conftest.mmap
21994 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21995 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21996 if test "${ac_cv_func_mmap_file+set}" = set; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
22000 ac_cpp='$CPP $CPPFLAGS'
22001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22005 if test "$cross_compiling" = yes; then
22006 ac_cv_func_mmap_file=no
22008 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 #include <sys/types.h>
22017 #include <sys/mman.h>
22025 fd = creat ("foo",0777);
22026 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
22028 return (fd != (int) MAP_FAILED);
22033 rm -f conftest$ac_exeext
22034 if { (ac_try="$ac_link"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_link") 2>&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22044 { (case "(($ac_try" in
22045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046 *) ac_try_echo=$ac_try;;
22048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22049 (eval "$ac_try") 2>&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); }; }; then
22053 ac_cv_func_mmap_file=yes
22055 echo "$as_me: program exited with status $ac_status" >&5
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22059 ( exit $ac_status )
22060 ac_cv_func_mmap_file=no
22062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22067 ac_cpp='$CPP $CPPFLAGS'
22068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22074 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22075 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
22076 if test "$ac_cv_func_mmap_file" = yes; then
22078 cat >>confdefs.h <<\_ACEOF
22079 #define HAVE_MMAP_FILE
22086 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
22087 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
22088 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
22089 echo $ECHO_N "(cached) $ECHO_C" >&6
22091 if test "$llvm_cv_os_type" = "Interix" ; then
22092 ac_cv_need_dev_zero_for_mmap=yes
22094 ac_cv_need_dev_zero_for_mmap=no
22098 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
22099 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
22100 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
22102 cat >>confdefs.h <<\_ACEOF
22103 #define NEED_DEV_ZERO_FOR_MMAP 1
22108 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22110 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
22111 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22113 if test "$ac_cv_func_mmap_file" = "no"
22115 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22116 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22120 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22121 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22123 ac_cpp='$CXXCPP $CPPFLAGS'
22124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22128 cat >conftest.$ac_ext <<_ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22137 volatile unsigned long val = 1;
22138 __sync_synchronize();
22139 __sync_val_compare_and_swap(&val, 1, 0);
22140 __sync_add_and_fetch(&val, 1);
22141 __sync_sub_and_fetch(&val, 1);
22147 rm -f conftest.$ac_objext conftest$ac_exeext
22148 if { (ac_try="$ac_link"
22149 case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_link") 2>conftest.er1
22156 grep -v '^ *+' conftest.er1 >conftest.err
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } &&
22161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22162 { (case "(($ac_try" in
22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164 *) ac_try_echo=$ac_try;;
22166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167 (eval "$ac_try") 2>&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; } &&
22171 { ac_try='test -s conftest$ac_exeext'
22172 { (case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_try") 2>&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22182 { echo "$as_me:$LINENO: result: yes" >&5
22183 echo "${ECHO_T}yes" >&6; }
22185 cat >>confdefs.h <<\_ACEOF
22186 #define LLVM_HAS_ATOMICS 1
22191 echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22195 { echo "$as_me:$LINENO: result: no" >&5
22196 echo "${ECHO_T}no" >&6; }
22198 cat >>confdefs.h <<\_ACEOF
22199 #define LLVM_HAS_ATOMICS 0
22202 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22203 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22207 rm -f core conftest.err conftest.$ac_objext \
22208 conftest$ac_exeext conftest.$ac_ext
22210 ac_cpp='$CPP $CPPFLAGS'
22211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22217 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22218 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22219 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22220 if test "${llvm_cv_linux_mixed+set}" = set; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22224 ac_cpp='$CPP $CPPFLAGS'
22225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22229 cat >conftest.$ac_ext <<_ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h. */
22236 error: Not x86-64 even if uname says so!
22247 rm -f conftest.$ac_objext
22248 if { (ac_try="$ac_compile"
22249 case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_compile") 2>conftest.er1
22256 grep -v '^ *+' conftest.er1 >conftest.err
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } &&
22261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22262 { (case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_try") 2>&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); }; } &&
22271 { ac_try='test -s conftest.$ac_objext'
22272 { (case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_try") 2>&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; }; then
22281 llvm_cv_linux_mixed=no
22283 echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22286 llvm_cv_linux_mixed=yes
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 ac_cpp='$CPP $CPPFLAGS'
22292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22298 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22299 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22301 if test "$llvm_cv_linux_mixed" = "yes"; then
22302 llvm_cv_target_arch="x86"
22308 for ac_func in __dso_handle
22310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22316 cat >conftest.$ac_ext <<_ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22324 #define $ac_func innocuous_$ac_func
22326 /* System header to define __stub macros and hopefully few prototypes,
22327 which can conflict with char $ac_func (); below.
22328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22329 <limits.h> exists even on freestanding compilers. */
22332 # include <limits.h>
22334 # include <assert.h>
22339 /* Override any GCC internal prototype to avoid an error.
22340 Use char because int might match the return type of a GCC
22341 builtin and then its argument prototype would still apply. */
22346 /* The GNU C library defines this for functions which it implements
22347 to always fail with ENOSYS. Some functions are actually named
22348 something starting with __ and the normal name is an alias. */
22349 #if defined __stub_$ac_func || defined __stub___$ac_func
22356 return $ac_func ();
22361 rm -f conftest.$ac_objext conftest$ac_exeext
22362 if { (ac_try="$ac_link"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_link") 2>conftest.er1
22370 grep -v '^ *+' conftest.er1 >conftest.err
22372 cat conftest.err >&5
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } &&
22375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22376 { (case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22381 (eval "$ac_try") 2>&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; } &&
22385 { ac_try='test -s conftest$ac_exeext'
22386 { (case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391 (eval "$ac_try") 2>&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; }; then
22395 eval "$as_ac_var=yes"
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 eval "$as_ac_var=no"
22403 rm -f core conftest.err conftest.$ac_objext \
22404 conftest$ac_exeext conftest.$ac_ext
22406 ac_res=`eval echo '${'$as_ac_var'}'`
22407 { echo "$as_me:$LINENO: result: $ac_res" >&5
22408 echo "${ECHO_T}$ac_res" >&6; }
22409 if test `eval echo '${'$as_ac_var'}'` = yes; then
22410 cat >>confdefs.h <<_ACEOF
22411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22418 SHLIBEXT=$libltdl_cv_shlibext
22421 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22424 if test "${prefix}" = "NONE" ; then
22425 prefix="/usr/local"
22427 eval LLVM_PREFIX="${prefix}";
22428 eval LLVM_BINDIR="${prefix}/bin";
22429 eval LLVM_DATADIR="${prefix}/share/llvm";
22430 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22431 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22432 eval LLVM_INCLUDEDIR="${prefix}/include";
22433 eval LLVM_INFODIR="${prefix}/info";
22434 eval LLVM_MANDIR="${prefix}/man";
22435 LLVM_CONFIGTIME=`date`
22446 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22447 LLVM_CONFIGTIME="(timestamp not enabled)"
22451 cat >>confdefs.h <<_ACEOF
22452 #define LLVM_PREFIX "$LLVM_PREFIX"
22456 cat >>confdefs.h <<_ACEOF
22457 #define LLVM_BINDIR "$LLVM_BINDIR"
22461 cat >>confdefs.h <<_ACEOF
22462 #define LLVM_DATADIR "$LLVM_DATADIR"
22466 cat >>confdefs.h <<_ACEOF
22467 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22471 cat >>confdefs.h <<_ACEOF
22472 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22476 cat >>confdefs.h <<_ACEOF
22477 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22481 cat >>confdefs.h <<_ACEOF
22482 #define LLVM_INFODIR "$LLVM_INFODIR"
22486 cat >>confdefs.h <<_ACEOF
22487 #define LLVM_MANDIR "$LLVM_MANDIR"
22491 cat >>confdefs.h <<_ACEOF
22492 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22496 cat >>confdefs.h <<_ACEOF
22497 #define LLVM_HOST_TRIPLE "$host"
22501 cat >>confdefs.h <<_ACEOF
22502 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22506 if test "$BINDINGS_TO_BUILD" = auto ; then
22507 BINDINGS_TO_BUILD=""
22508 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22509 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22512 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22518 binding_prereqs_failed=0
22519 for a_binding in $BINDINGS_TO_BUILD ; do
22520 case "$a_binding" in
22522 if test "x$OCAMLC" = x ; then
22523 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22524 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22525 binding_prereqs_failed=1
22527 if test "x$OCAMLDEP" = x ; then
22528 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22529 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22530 binding_prereqs_failed=1
22532 if test "x$OCAMLOPT" = x ; then
22533 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22534 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22536 if test "x$with_ocaml_libdir" != xauto ; then
22537 OCAML_LIBDIR=$with_ocaml_libdir
22540 ocaml_stdlib="`"$OCAMLC" -where`"
22541 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22543 # ocaml stdlib is beneath our prefix; use stdlib
22544 OCAML_LIBDIR=$ocaml_stdlib
22547 # ocaml stdlib is outside our prefix; use libdir/ocaml
22548 OCAML_LIBDIR=${prefix}/lib/ocaml
22555 if test "$binding_prereqs_failed" = 1 ; then
22556 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22557 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22558 { (exit 1); exit 1; }; }
22561 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22562 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22563 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22564 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 ac_cpp='$CXXCPP $CPPFLAGS'
22568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22572 oldcxxflags="$CXXFLAGS"
22573 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22574 cat >conftest.$ac_ext <<_ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h. */
22580 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22589 rm -f conftest.$ac_objext
22590 if { (ac_try="$ac_compile"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_compile") 2>conftest.er1
22598 grep -v '^ *+' conftest.er1 >conftest.err
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } &&
22603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22604 { (case "(($ac_try" in
22605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606 *) ac_try_echo=$ac_try;;
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609 (eval "$ac_try") 2>&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; } &&
22613 { ac_try='test -s conftest.$ac_objext'
22614 { (case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_try") 2>&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 llvm_cv_cxx_visibility_inlines_hidden=yes
22625 echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22628 llvm_cv_cxx_visibility_inlines_hidden=no
22631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22632 CXXFLAGS="$oldcxxflags"
22634 ac_cpp='$CPP $CPPFLAGS'
22635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22641 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22642 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22643 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22644 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22647 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22652 if test "$llvm_cv_link_use_r" = "yes" ; then
22659 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22660 RDYNAMIC="-Wl,-export-dynamic"
22667 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22674 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22676 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22678 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22680 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22682 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22685 ac_config_files="$ac_config_files Makefile.config"
22688 ac_config_files="$ac_config_files llvm.spec"
22691 ac_config_files="$ac_config_files docs/doxygen.cfg"
22694 if test "${clang_src_root}" = ""; then
22695 clang_src_root="$srcdir/tools/clang"
22697 if test -f ${clang_src_root}/README.txt; then
22698 configh="include/clang/Config/config.h"
22699 doxy="docs/doxygen.cfg"
22700 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22702 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22706 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22709 test "x$program_prefix" = "xNONE" && program_prefix=""
22713 ac_config_commands="$ac_config_commands setup"
22715 ac_config_commands="$ac_config_commands Makefile"
22718 ac_config_commands="$ac_config_commands Makefile.common"
22721 ac_config_commands="$ac_config_commands examples/Makefile"
22724 ac_config_commands="$ac_config_commands lib/Makefile"
22727 ac_config_commands="$ac_config_commands runtime/Makefile"
22730 ac_config_commands="$ac_config_commands test/Makefile"
22733 ac_config_commands="$ac_config_commands test/Makefile.tests"
22736 ac_config_commands="$ac_config_commands unittests/Makefile"
22739 ac_config_commands="$ac_config_commands tools/Makefile"
22742 ac_config_commands="$ac_config_commands utils/Makefile"
22745 ac_config_commands="$ac_config_commands projects/Makefile"
22748 ac_config_commands="$ac_config_commands bindings/Makefile"
22751 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22755 cat >confcache <<\_ACEOF
22756 # This file is a shell script that caches the results of configure
22757 # tests run on this system so they can be shared between configure
22758 # scripts and configure runs, see configure's option --config-cache.
22759 # It is not useful on other systems. If it contains results you don't
22760 # want to keep, you may remove or edit it.
22762 # config.status only pays attention to the cache file if you give it
22763 # the --recheck option to rerun configure.
22765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22767 # following values.
22771 # The following way of writing the cache mishandles newlines in values,
22772 # but we know of no workaround that is simple, portable, and efficient.
22773 # So, we kill variables containing newlines.
22774 # Ultrix sh set writes to stderr and can't be redirected directly,
22775 # and sets the high bit in the cache file unless we assign to the vars.
22777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22778 eval ac_val=\$$ac_var
22782 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22783 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22786 _ | IFS | as_nl) ;; #(
22787 *) $as_unset $ac_var ;;
22793 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22794 *${as_nl}ac_space=\ *)
22795 # `set' does not quote correctly, so add quotes (double-quote
22796 # substitution turns \\\\ into \\, and sed turns \\ into \).
22799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22802 # `set' quotes correctly as required by POSIX, so do not add quotes.
22803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22814 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22816 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22817 if test -w "$cache_file"; then
22818 test "x$cache_file" != "x/dev/null" &&
22819 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22820 echo "$as_me: updating cache $cache_file" >&6;}
22821 cat confcache >$cache_file
22823 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22824 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22830 # Let make expand exec_prefix.
22831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22833 DEFS=-DHAVE_CONFIG_H
22837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22838 # 1. Remove the extension, and $U if already installed.
22839 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22840 ac_i=`echo "$ac_i" | sed "$ac_script"`
22841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22842 # will be set to the directory where LIBOBJS objects are built.
22843 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22844 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22846 LIBOBJS=$ac_libobjs
22848 LTLIBOBJS=$ac_ltlibobjs
22851 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22852 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22853 Usually this means the macro was only invoked conditionally." >&5
22854 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22855 Usually this means the macro was only invoked conditionally." >&2;}
22856 { (exit 1); exit 1; }; }
22858 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22859 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22860 Usually this means the macro was only invoked conditionally." >&5
22861 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22862 Usually this means the macro was only invoked conditionally." >&2;}
22863 { (exit 1); exit 1; }; }
22866 : ${CONFIG_STATUS=./config.status}
22867 ac_clean_files_save=$ac_clean_files
22868 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22869 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22870 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22871 cat >$CONFIG_STATUS <<_ACEOF
22873 # Generated by $as_me.
22874 # Run this file to recreate the current configuration.
22875 # Compiler output produced by configure, useful for debugging
22876 # configure, is in config.log if it exists.
22879 ac_cs_recheck=false
22881 SHELL=\${CONFIG_SHELL-$SHELL}
22884 cat >>$CONFIG_STATUS <<\_ACEOF
22885 ## --------------------- ##
22886 ## M4sh Initialization. ##
22887 ## --------------------- ##
22889 # Be Bourne compatible
22890 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22893 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22894 # is contrary to our usage. Disable this feature.
22895 alias -g '${1+"$@"}'='"$@"'
22896 setopt NO_GLOB_SUBST
22898 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22900 BIN_SH=xpg4; export BIN_SH # for Tru64
22901 DUALCASE=1; export DUALCASE # for MKS sh
22905 # Avoid depending upon Character Ranges.
22906 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22907 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22908 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22909 as_cr_digits='0123456789'
22910 as_cr_alnum=$as_cr_Letters$as_cr_digits
22912 # The user is always right.
22913 if test "${PATH_SEPARATOR+set}" != set; then
22914 echo "#! /bin/sh" >conf$$.sh
22915 echo "exit 0" >>conf$$.sh
22917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22925 # Support unset when possible.
22926 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22934 # We need space, tab and new line, in precisely that order. Quoting is
22935 # there to prevent editors from complaining about space-tab.
22936 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22937 # splitting by setting IFS to empty value.)
22942 # Find who we are. Look in the path if we contain no directory separator.
22944 *[\\/]* ) as_myself=$0 ;;
22945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22946 for as_dir in $PATH
22949 test -z "$as_dir" && as_dir=.
22950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22956 # We did not find ourselves, most probably we were run as `sh COMMAND'
22957 # in which case we are not to be found in the path.
22958 if test "x$as_myself" = x; then
22961 if test ! -f "$as_myself"; then
22962 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22963 { (exit 1); exit 1; }
22966 # Work around bugs in pre-3.0 UWIN ksh.
22967 for as_var in ENV MAIL MAILPATH
22968 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22976 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22977 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22978 LC_TELEPHONE LC_TIME
22980 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22981 eval $as_var=C; export $as_var
22983 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22987 # Required to use basename.
22988 if expr a : '\(a\)' >/dev/null 2>&1 &&
22989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22995 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22996 as_basename=basename
23002 # Name of the executable.
23003 as_me=`$as_basename -- "$0" ||
23004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23005 X"$0" : 'X\(//\)$' \| \
23006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23008 sed '/^.*\/\([^/][^/]*\)\/*$/{
23027 as_lineno_1=$LINENO
23028 as_lineno_2=$LINENO
23029 test "x$as_lineno_1" != "x$as_lineno_2" &&
23030 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23032 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23033 # uniformly replaced by the line number. The first 'sed' inserts a
23034 # line-number line after each line using $LINENO; the second 'sed'
23035 # does the real work. The second script uses 'N' to pair each
23036 # line-number line with the line containing $LINENO, and appends
23037 # trailing '-' during substitution so that $LINENO is not a special
23038 # case at line end.
23039 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23040 # scripts with optimization help from Paolo Bonzini. Blame Lee
23041 # E. McMahon (1931-1989) for sed's syntax. :-)
23053 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23056 ' >$as_me.lineno &&
23057 chmod +x "$as_me.lineno" ||
23058 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23059 { (exit 1); exit 1; }; }
23061 # Don't try to exec as it changes $[0], causing all sort of problems
23062 # (the dirname of $[0] is not the place where we might find the
23063 # original and so on. Autoconf is especially sensitive to this).
23064 . "./$as_me.lineno"
23065 # Exit status is that of the last command.
23070 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23076 ECHO_C= ECHO_N= ECHO_T=
23077 case `echo -n x` in
23079 case `echo 'x\c'` in
23080 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23087 if expr a : '\(a\)' >/dev/null 2>&1 &&
23088 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23094 rm -f conf$$ conf$$.exe conf$$.file
23095 if test -d conf$$.dir; then
23096 rm -f conf$$.dir/conf$$.file
23102 if ln -s conf$$.file conf$$ 2>/dev/null; then
23104 # ... but there are two gotchas:
23105 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23106 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23107 # In both cases, we have to default to `cp -p'.
23108 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23110 elif ln conf$$.file conf$$ 2>/dev/null; then
23115 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23116 rmdir conf$$.dir 2>/dev/null
23118 if mkdir -p . 2>/dev/null; then
23121 test -d ./-p && rmdir ./-p
23125 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23126 # systems may use methods other than mode bits to determine executability.
23127 cat >conf$$.file <<_ASEOF
23131 chmod +x conf$$.file
23132 if test -x conf$$.file >/dev/null 2>&1; then
23133 as_executable_p="test -x"
23139 # Sed expression to map a string onto a valid CPP name.
23140 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23142 # Sed expression to map a string onto a valid variable name.
23143 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23148 # Save the log message, to keep $[0] and so on meaningful, and to
23149 # report actual input values of CONFIG_FILES etc. instead of their
23150 # values after options handling.
23152 This file was extended by LLVM $as_me 3.4svn, which was
23153 generated by GNU Autoconf 2.60. Invocation command line was
23155 CONFIG_FILES = $CONFIG_FILES
23156 CONFIG_HEADERS = $CONFIG_HEADERS
23157 CONFIG_LINKS = $CONFIG_LINKS
23158 CONFIG_COMMANDS = $CONFIG_COMMANDS
23161 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23166 cat >>$CONFIG_STATUS <<_ACEOF
23167 # Files that config.status was made for.
23168 config_files="$ac_config_files"
23169 config_headers="$ac_config_headers"
23170 config_commands="$ac_config_commands"
23174 cat >>$CONFIG_STATUS <<\_ACEOF
23176 \`$as_me' instantiates files from templates according to the
23177 current configuration.
23179 Usage: $0 [OPTIONS] [FILE]...
23181 -h, --help print this help, then exit
23182 -V, --version print version number, then exit
23183 -q, --quiet do not print progress messages
23184 -d, --debug don't remove temporary files
23185 --recheck update $as_me by reconfiguring in the same conditions
23186 --file=FILE[:TEMPLATE]
23187 instantiate the configuration file FILE
23188 --header=FILE[:TEMPLATE]
23189 instantiate the configuration header FILE
23191 Configuration files:
23194 Configuration headers:
23197 Configuration commands:
23200 Report bugs to <bug-autoconf@gnu.org>."
23203 cat >>$CONFIG_STATUS <<_ACEOF
23205 LLVM config.status 3.4svn
23206 configured by $0, generated by GNU Autoconf 2.60,
23207 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23209 Copyright (C) 2006 Free Software Foundation, Inc.
23210 This config.status script is free software; the Free Software Foundation
23211 gives unlimited permission to copy, distribute and modify it."
23218 cat >>$CONFIG_STATUS <<\_ACEOF
23219 # If no file are specified by the user, then we need to provide default
23220 # value. By we need to know if files were specified by the user.
23226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23238 # Handling of the options.
23239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23241 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23242 echo "$ac_cs_version"; exit ;;
23243 --debug | --debu | --deb | --de | --d | -d )
23245 --file | --fil | --fi | --f )
23247 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23248 ac_need_defaults=false;;
23249 --header | --heade | --head | --hea )
23251 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23252 ac_need_defaults=false;;
23254 # Conflict between --help and --header
23255 { echo "$as_me: error: ambiguous option: $1
23256 Try \`$0 --help' for more information." >&2
23257 { (exit 1); exit 1; }; };;
23258 --help | --hel | -h )
23259 echo "$ac_cs_usage"; exit ;;
23260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23264 # This is an error.
23265 -*) { echo "$as_me: error: unrecognized option: $1
23266 Try \`$0 --help' for more information." >&2
23267 { (exit 1); exit 1; }; } ;;
23269 *) ac_config_targets="$ac_config_targets $1"
23270 ac_need_defaults=false ;;
23276 ac_configure_extra_args=
23278 if $ac_cs_silent; then
23280 ac_configure_extra_args="$ac_configure_extra_args --silent"
23284 cat >>$CONFIG_STATUS <<_ACEOF
23285 if \$ac_cs_recheck; then
23286 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23287 CONFIG_SHELL=$SHELL
23288 export CONFIG_SHELL
23289 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23293 cat >>$CONFIG_STATUS <<\_ACEOF
23297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23298 ## Running $as_me. ##
23304 cat >>$CONFIG_STATUS <<_ACEOF
23308 llvm_src="${srcdir}"
23312 cat >>$CONFIG_STATUS <<\_ACEOF
23314 # Handling of arguments.
23315 for ac_config_target in $ac_config_targets
23317 case $ac_config_target in
23318 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23319 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23320 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23321 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23322 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23323 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23324 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23325 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23326 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23327 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23328 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23329 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23330 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23331 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23332 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23333 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23334 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23335 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23336 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23337 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23338 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23339 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23340 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23341 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23342 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23343 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23344 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23346 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23347 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23348 { (exit 1); exit 1; }; };;
23353 # If the user did not use the arguments to specify the items to instantiate,
23354 # then the envvar interface is used. Set only those that are not.
23355 # We use the long form for the default assignment because of an extremely
23356 # bizarre bug on SunOS 4.1.3.
23357 if $ac_need_defaults; then
23358 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23359 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23360 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23363 # Have a temporary directory for convenience. Make it in the build tree
23364 # simply because there is no reason against having it here, and in addition,
23365 # creating and moving files from /tmp can sometimes cause problems.
23366 # Hook for its removal unless debugging.
23367 # Note that there is a small window in which the directory will not be cleaned:
23368 # after its creation but before its name has been assigned to `$tmp'.
23372 trap 'exit_status=$?
23373 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23375 trap '{ (exit 1); exit 1; }' 1 2 13 15
23377 # Create a (secure) tmp directory for tmp files.
23380 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23381 test -n "$tmp" && test -d "$tmp"
23384 tmp=./conf$$-$RANDOM
23385 (umask 077 && mkdir "$tmp")
23388 echo "$me: cannot create a temporary directory in ." >&2
23389 { (exit 1); exit 1; }
23393 # Set up the sed scripts for CONFIG_FILES section.
23396 # No need to generate the scripts if there are no CONFIG_FILES.
23397 # This happens for instance when ./config.status config.h
23398 if test -n "$CONFIG_FILES"; then
23405 for ac_last_try in false false false false false :; do
23406 cat >conf$$subs.sed <<_ACEOF
23407 SHELL!$SHELL$ac_delim
23408 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23409 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23410 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23411 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23412 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23413 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23414 exec_prefix!$exec_prefix$ac_delim
23415 prefix!$prefix$ac_delim
23416 program_transform_name!$program_transform_name$ac_delim
23417 bindir!$bindir$ac_delim
23418 sbindir!$sbindir$ac_delim
23419 libexecdir!$libexecdir$ac_delim
23420 datarootdir!$datarootdir$ac_delim
23421 datadir!$datadir$ac_delim
23422 sysconfdir!$sysconfdir$ac_delim
23423 sharedstatedir!$sharedstatedir$ac_delim
23424 localstatedir!$localstatedir$ac_delim
23425 includedir!$includedir$ac_delim
23426 oldincludedir!$oldincludedir$ac_delim
23427 docdir!$docdir$ac_delim
23428 infodir!$infodir$ac_delim
23429 htmldir!$htmldir$ac_delim
23430 dvidir!$dvidir$ac_delim
23431 pdfdir!$pdfdir$ac_delim
23432 psdir!$psdir$ac_delim
23433 libdir!$libdir$ac_delim
23434 localedir!$localedir$ac_delim
23435 mandir!$mandir$ac_delim
23436 DEFS!$DEFS$ac_delim
23437 ECHO_C!$ECHO_C$ac_delim
23438 ECHO_N!$ECHO_N$ac_delim
23439 ECHO_T!$ECHO_T$ac_delim
23440 LIBS!$LIBS$ac_delim
23441 build_alias!$build_alias$ac_delim
23442 host_alias!$host_alias$ac_delim
23443 target_alias!$target_alias$ac_delim
23444 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23446 CFLAGS!$CFLAGS$ac_delim
23447 LDFLAGS!$LDFLAGS$ac_delim
23448 CPPFLAGS!$CPPFLAGS$ac_delim
23449 ac_ct_CC!$ac_ct_CC$ac_delim
23450 EXEEXT!$EXEEXT$ac_delim
23451 OBJEXT!$OBJEXT$ac_delim
23453 CXXFLAGS!$CXXFLAGS$ac_delim
23454 ac_ct_CXX!$ac_ct_CXX$ac_delim
23456 subdirs!$subdirs$ac_delim
23457 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23458 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23459 build!$build$ac_delim
23460 build_cpu!$build_cpu$ac_delim
23461 build_vendor!$build_vendor$ac_delim
23462 build_os!$build_os$ac_delim
23463 host!$host$ac_delim
23464 host_cpu!$host_cpu$ac_delim
23465 host_vendor!$host_vendor$ac_delim
23466 host_os!$host_os$ac_delim
23467 target!$target$ac_delim
23468 target_cpu!$target_cpu$ac_delim
23469 target_vendor!$target_vendor$ac_delim
23470 target_os!$target_os$ac_delim
23472 HOST_OS!$HOST_OS$ac_delim
23473 TARGET_OS!$TARGET_OS$ac_delim
23474 LINKALL!$LINKALL$ac_delim
23475 NOLINKALL!$NOLINKALL$ac_delim
23476 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23477 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23478 ARCH!$ARCH$ac_delim
23479 HOST_ARCH!$HOST_ARCH$ac_delim
23480 ENDIAN!$ENDIAN$ac_delim
23481 GREP!$GREP$ac_delim
23482 EGREP!$EGREP$ac_delim
23483 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23484 BUILD_CC!$BUILD_CC$ac_delim
23485 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23486 BUILD_CXX!$BUILD_CXX$ac_delim
23487 CVSBUILD!$CVSBUILD$ac_delim
23488 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23489 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23490 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23491 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23492 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23493 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23494 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23495 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23496 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23497 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23498 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23499 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23500 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23501 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23502 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23506 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23508 elif $ac_last_try; then
23509 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23510 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23511 { (exit 1); exit 1; }; }
23513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23517 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23518 if test -n "$ac_eof"; then
23519 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23520 ac_eof=`expr $ac_eof + 1`
23523 cat >>$CONFIG_STATUS <<_ACEOF
23524 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23528 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23529 s/^/s,@/; s/!/@,|#_!!_#|/
23532 s/'"$ac_delim"'$/,g/; t
23534 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23535 ' >>$CONFIG_STATUS <conf$$subs.sed
23536 rm -f conf$$subs.sed
23537 cat >>$CONFIG_STATUS <<_ACEOF
23543 for ac_last_try in false false false false false :; do
23544 cat >conf$$subs.sed <<_ACEOF
23545 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23546 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23547 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23548 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23549 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23550 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23551 ENABLE_PIC!$ENABLE_PIC$ac_delim
23552 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23553 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23554 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23555 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23556 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23557 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23558 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23559 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23560 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23561 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23562 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23563 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23564 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23565 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23566 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23568 ifGNUmake!$ifGNUmake$ac_delim
23569 LN_S!$LN_S$ac_delim
23572 DATE!$DATE$ac_delim
23573 FIND!$FIND$ac_delim
23574 MKDIR!$MKDIR$ac_delim
23576 RANLIB!$RANLIB$ac_delim
23581 BINPWD!$BINPWD$ac_delim
23582 GRAPHVIZ!$GRAPHVIZ$ac_delim
23585 NEATO!$NEATO$ac_delim
23586 TWOPI!$TWOPI$ac_delim
23587 CIRCO!$CIRCO$ac_delim
23589 DOTTY!$DOTTY$ac_delim
23590 XDOT!$XDOT$ac_delim
23591 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23592 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23593 INSTALL_DATA!$INSTALL_DATA$ac_delim
23594 BZIP2!$BZIP2$ac_delim
23596 DOXYGEN!$DOXYGEN$ac_delim
23597 GROFF!$GROFF$ac_delim
23598 GZIPBIN!$GZIPBIN$ac_delim
23599 PDFROFF!$PDFROFF$ac_delim
23601 OCAMLC!$OCAMLC$ac_delim
23602 OCAMLOPT!$OCAMLOPT$ac_delim
23603 OCAMLDEP!$OCAMLDEP$ac_delim
23604 OCAMLDOC!$OCAMLDOC$ac_delim
23606 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23607 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23608 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23609 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23610 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23611 LIBADD_DL!$LIBADD_DL$ac_delim
23612 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23613 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23614 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23615 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23616 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23617 PYTHON!$PYTHON$ac_delim
23618 USE_UDIS86!$USE_UDIS86$ac_delim
23619 USE_OPROFILE!$USE_OPROFILE$ac_delim
23620 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23621 XML2CONFIG!$XML2CONFIG$ac_delim
23622 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23623 LIBXML2_INC!$LIBXML2_INC$ac_delim
23624 CXXCPP!$CXXCPP$ac_delim
23625 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23626 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23627 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23628 MMAP_FILE!$MMAP_FILE$ac_delim
23629 SHLIBEXT!$SHLIBEXT$ac_delim
23630 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23631 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23632 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23633 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23634 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23635 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23636 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23637 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23638 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23639 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23640 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23641 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23644 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23646 elif $ac_last_try; then
23647 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23648 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23649 { (exit 1); exit 1; }; }
23651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23655 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23656 if test -n "$ac_eof"; then
23657 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23658 ac_eof=`expr $ac_eof + 1`
23661 cat >>$CONFIG_STATUS <<_ACEOF
23662 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23666 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23667 s/^/s,@/; s/!/@,|#_!!_#|/
23670 s/'"$ac_delim"'$/,g/; t
23672 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23673 ' >>$CONFIG_STATUS <conf$$subs.sed
23674 rm -f conf$$subs.sed
23675 cat >>$CONFIG_STATUS <<_ACEOF
23681 for ac_last_try in false false false false false :; do
23682 cat >conf$$subs.sed <<_ACEOF
23683 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23684 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23685 RPATH!$RPATH$ac_delim
23686 RDYNAMIC!$RDYNAMIC$ac_delim
23687 program_prefix!$program_prefix$ac_delim
23688 LIBOBJS!$LIBOBJS$ac_delim
23689 LTLIBOBJS!$LTLIBOBJS$ac_delim
23692 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23694 elif $ac_last_try; then
23695 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23696 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23697 { (exit 1); exit 1; }; }
23699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23703 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23704 if test -n "$ac_eof"; then
23705 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23706 ac_eof=`expr $ac_eof + 1`
23709 cat >>$CONFIG_STATUS <<_ACEOF
23710 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23714 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23715 s/^/s,@/; s/!/@,|#_!!_#|/
23718 s/'"$ac_delim"'$/,g/; t
23720 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23721 ' >>$CONFIG_STATUS <conf$$subs.sed
23722 rm -f conf$$subs.sed
23723 cat >>$CONFIG_STATUS <<_ACEOF
23730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23732 # trailing colons and then remove the whole line if VPATH becomes empty
23733 # (actually we leave an empty line to preserve line numbers).
23734 if test "x$srcdir" = x.; then
23735 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23736 s/:*\$(srcdir):*/:/
23737 s/:*\${srcdir}:*/:/
23739 s/^\([^=]*=[ ]*\):*/\1/
23745 cat >>$CONFIG_STATUS <<\_ACEOF
23746 fi # test -n "$CONFIG_FILES"
23749 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23752 :[FHLC]) ac_mode=$ac_tag; continue;;
23754 case $ac_mode$ac_tag in
23756 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23757 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23758 { (exit 1); exit 1; }; };;
23759 :[FH]-) ac_tag=-:-;;
23760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23777 -) ac_f="$tmp/stdin";;
23778 *) # Look for the file first in the build tree, then in the source tree
23779 # (if the path is not absolute). The absolute path cannot be DOS-style,
23780 # because $ac_f cannot contain `:'.
23784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23786 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23787 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23788 { (exit 1); exit 1; }; };;
23790 ac_file_inputs="$ac_file_inputs $ac_f"
23793 # Let's still pretend it is `configure' which instantiates (i.e., don't
23794 # use $as_me), people would be surprised to read:
23795 # /* config.h. Generated by config.status. */
23796 configure_input="Generated from "`IFS=:
23797 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23798 if test x"$ac_file" != x-; then
23799 configure_input="$ac_file. $configure_input"
23800 { echo "$as_me:$LINENO: creating $ac_file" >&5
23801 echo "$as_me: creating $ac_file" >&6;}
23805 *:-:* | *:-) cat >"$tmp/stdin";;
23810 ac_dir=`$as_dirname -- "$ac_file" ||
23811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23812 X"$ac_file" : 'X\(//\)[^/]' \| \
23813 X"$ac_file" : 'X\(//\)$' \| \
23814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23820 /^X\(\/\/\)[^/].*/{
23835 -*) as_dir=./$as_dir;;
23837 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23841 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23842 *) as_qdir=$as_dir;;
23844 as_dirs="'$as_qdir' $as_dirs"
23845 as_dir=`$as_dirname -- "$as_dir" ||
23846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23847 X"$as_dir" : 'X\(//\)[^/]' \| \
23848 X"$as_dir" : 'X\(//\)$' \| \
23849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23855 /^X\(\/\/\)[^/].*/{
23868 test -d "$as_dir" && break
23870 test -z "$as_dirs" || eval "mkdir $as_dirs"
23871 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23872 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23873 { (exit 1); exit 1; }; }; }
23877 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23880 # A ".." for each directory in $ac_dir_suffix.
23881 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23882 case $ac_top_builddir_sub in
23883 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23884 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23887 ac_abs_top_builddir=$ac_pwd
23888 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23889 # for backward compatibility:
23890 ac_top_builddir=$ac_top_build_prefix
23893 .) # We are building in place.
23895 ac_top_srcdir=$ac_top_builddir_sub
23896 ac_abs_top_srcdir=$ac_pwd ;;
23897 [\\/]* | ?:[\\/]* ) # Absolute name.
23898 ac_srcdir=$srcdir$ac_dir_suffix;
23899 ac_top_srcdir=$srcdir
23900 ac_abs_top_srcdir=$srcdir ;;
23901 *) # Relative name.
23902 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23903 ac_top_srcdir=$ac_top_build_prefix$srcdir
23904 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23906 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23917 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23921 cat >>$CONFIG_STATUS <<\_ACEOF
23922 # If the template does not know about datarootdir, expand it.
23923 # FIXME: This hack should be removed a few years after 2.60.
23924 ac_datarootdir_hack=; ac_datarootdir_seen=
23926 case `sed -n '/datarootdir/ {
23935 ' $ac_file_inputs` in
23936 *datarootdir*) ac_datarootdir_seen=yes;;
23937 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23938 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23939 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23941 cat >>$CONFIG_STATUS <<_ACEOF
23942 ac_datarootdir_hack='
23943 s&@datadir@&$datadir&g
23944 s&@docdir@&$docdir&g
23945 s&@infodir@&$infodir&g
23946 s&@localedir@&$localedir&g
23947 s&@mandir@&$mandir&g
23948 s&\\\${datarootdir}&$datarootdir&g' ;;
23952 # Neutralize VPATH when `$srcdir' = `.'.
23953 # Shell code in configure.ac might set extrasub.
23954 # FIXME: do we really want to maintain this feature?
23955 cat >>$CONFIG_STATUS <<_ACEOF
23959 cat >>$CONFIG_STATUS <<\_ACEOF
23961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23962 s&@configure_input@&$configure_input&;t t
23963 s&@top_builddir@&$ac_top_builddir_sub&;t t
23964 s&@srcdir@&$ac_srcdir&;t t
23965 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23966 s&@top_srcdir@&$ac_top_srcdir&;t t
23967 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23968 s&@builddir@&$ac_builddir&;t t
23969 s&@abs_builddir@&$ac_abs_builddir&;t t
23970 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23971 s&@INSTALL@&$ac_INSTALL&;t t
23972 $ac_datarootdir_hack
23973 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23975 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23976 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23977 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23978 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23979 which seems to be undefined. Please make sure it is defined." >&5
23980 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23981 which seems to be undefined. Please make sure it is defined." >&2;}
23985 -) cat "$tmp/out"; rm -f "$tmp/out";;
23986 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23995 # Transform confdefs.h into a sed script `conftest.defines', that
23996 # substitutes the proper values into config.h.in to produce config.h.
23997 rm -f conftest.defines conftest.tail
23998 # First, append a space to every undef/define line, to ease matching.
23999 echo 's/$/ /' >conftest.defines
24000 # Then, protect against being on the right side of a sed subst, or in
24001 # an unquoted here document, in config.status. If some macros were
24002 # called several times there might be several #defines for the same
24003 # symbol, which is useless. But do not sort them, since the last
24004 # AC_DEFINE must be honored.
24005 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24006 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24007 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24008 # PARAMS is the parameter list in the macro definition--in most cases, it's
24009 # just an empty string.
24010 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24011 ac_dB='\\)[ (].*,\\1define\\2'
24019 s/^[ ]*#[ ]*define[ ][ ]*//
24024 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24025 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24026 ' >>conftest.defines
24028 # Remove the space that was appended to ease matching.
24029 # Then replace #undef with comments. This is necessary, for
24030 # example, in the case of _POSIX_SOURCE, which is predefined and required
24031 # on some systems where configure will not decide to define it.
24032 # (The regexp can be short, since the line contains either #define or #undef.)
24034 s,^[ #]*u.*,/* & */,' >>conftest.defines
24036 # Break up conftest.defines:
24037 ac_max_sed_lines=50
24039 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24040 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24041 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24043 ac_in='$ac_file_inputs'
24044 ac_out='"$tmp/out1"'
24045 ac_nxt='"$tmp/out2"'
24049 # Write a here document:
24050 cat >>$CONFIG_STATUS <<_ACEOF
24051 # First, check the format of the line:
24052 cat >"\$tmp/defines.sed" <<\\CEOF
24053 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24054 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24058 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24060 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24061 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24062 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24063 grep . conftest.tail >/dev/null || break
24064 rm -f conftest.defines
24065 mv conftest.tail conftest.defines
24067 rm -f conftest.defines conftest.tail
24069 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24070 cat >>$CONFIG_STATUS <<\_ACEOF
24071 if test x"$ac_file" != x-; then
24072 echo "/* $configure_input */" >"$tmp/config.h"
24073 cat "$ac_result" >>"$tmp/config.h"
24074 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24075 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24076 echo "$as_me: $ac_file is unchanged" >&6;}
24079 mv "$tmp/config.h" $ac_file
24082 echo "/* $configure_input */"
24088 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24089 echo "$as_me: executing $ac_file commands" >&6;}
24094 case $ac_file$ac_mode in
24095 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24096 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24097 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24098 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24099 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24100 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24101 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24102 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24103 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24104 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24105 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24106 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24107 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24108 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24109 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24110 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24111 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24112 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24113 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24114 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24115 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24116 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24117 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24118 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24119 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24120 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24126 { (exit 0); exit 0; }
24128 chmod +x $CONFIG_STATUS
24129 ac_clean_files=$ac_clean_files_save
24132 # configure is writing to config.log, and then calls config.status.
24133 # config.status does its own redirection, appending to config.log.
24134 # Unfortunately, on DOS this fails, as config.log is still kept open
24135 # by configure, so config.status won't be able to write to it; its
24136 # output is simply discarded. So we exec the FD to /dev/null,
24137 # effectively closing config.log, so it can be properly (re)opened and
24138 # appended to by config.status. When coming back to configure, we
24139 # need to make the FD available again.
24140 if test "$no_create" != yes; then
24142 ac_config_status_args=
24143 test "$silent" = yes &&
24144 ac_config_status_args="$ac_config_status_args --quiet"
24146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24149 # would make configure fail if this is the last instruction.
24150 $ac_cs_success || { (exit 1); exit 1; }
24154 # CONFIG_SUBDIRS section.
24156 if test "$no_recursion" != yes; then
24158 # Remove --cache-file and --srcdir arguments so they do not pile up.
24159 ac_sub_configure_args=
24161 eval "set x $ac_configure_args"
24165 if test -n "$ac_prev"; then
24170 -cache-file | --cache-file | --cache-fil | --cache-fi \
24171 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24172 ac_prev=cache_file ;;
24173 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24174 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24177 --config-cache | -C)
24179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24189 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24191 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24195 # Always prepend --prefix to ensure using the same prefix
24196 # in subdir configurations.
24197 ac_arg="--prefix=$prefix"
24199 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24201 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24204 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24206 # Do not complain, so a configure script can configure whichever
24207 # parts of a large source tree are present.
24208 test -d "$srcdir/$ac_dir" || continue
24210 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24211 echo "$as_me:$LINENO: $ac_msg" >&5
24215 -*) as_dir=./$as_dir;;
24217 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24221 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24222 *) as_qdir=$as_dir;;
24224 as_dirs="'$as_qdir' $as_dirs"
24225 as_dir=`$as_dirname -- "$as_dir" ||
24226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24227 X"$as_dir" : 'X\(//\)[^/]' \| \
24228 X"$as_dir" : 'X\(//\)$' \| \
24229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24235 /^X\(\/\/\)[^/].*/{
24248 test -d "$as_dir" && break
24250 test -z "$as_dirs" || eval "mkdir $as_dirs"
24251 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24252 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24253 { (exit 1); exit 1; }; }; }
24257 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24259 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24260 # A ".." for each directory in $ac_dir_suffix.
24261 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24262 case $ac_top_builddir_sub in
24263 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24264 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24267 ac_abs_top_builddir=$ac_pwd
24268 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24269 # for backward compatibility:
24270 ac_top_builddir=$ac_top_build_prefix
24273 .) # We are building in place.
24275 ac_top_srcdir=$ac_top_builddir_sub
24276 ac_abs_top_srcdir=$ac_pwd ;;
24277 [\\/]* | ?:[\\/]* ) # Absolute name.
24278 ac_srcdir=$srcdir$ac_dir_suffix;
24279 ac_top_srcdir=$srcdir
24280 ac_abs_top_srcdir=$srcdir ;;
24281 *) # Relative name.
24282 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24283 ac_top_srcdir=$ac_top_build_prefix$srcdir
24284 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24286 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24291 # Check for guested configure; otherwise get Cygnus style configure.
24292 if test -f "$ac_srcdir/configure.gnu"; then
24293 ac_sub_configure=$ac_srcdir/configure.gnu
24294 elif test -f "$ac_srcdir/configure"; then
24295 ac_sub_configure=$ac_srcdir/configure
24296 elif test -f "$ac_srcdir/configure.in"; then
24297 # This should be Cygnus configure.
24298 ac_sub_configure=$ac_aux_dir/configure
24300 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24301 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24305 # The recursion is here.
24306 if test -n "$ac_sub_configure"; then
24307 # Make the cache file name correct relative to the subdirectory.
24308 case $cache_file in
24309 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24310 *) # Relative name.
24311 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24314 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24315 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24316 # The eval makes quoting arguments work.
24317 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24318 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24319 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24320 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24321 { (exit 1); exit 1; }; }