2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
695 ENABLE_EXPENSIVE_CHECKS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
762 HAVE_LINK_VERSION_SCRIPT
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
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-clang-arcmt Enable building of clang ARCMT (default is YES)
1411 --enable-clang-static-analyzer
1412 Enable building of clang Static Analyzer (default is
1414 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1415 --enable-optimized Compile with optimizations enabled (default is NO)
1416 --enable-profiling Compile with profiling enabled (default is NO)
1417 --enable-assertions Compile with assertion checks enabled (default is
1419 --enable-werror Compile with -Werror enabled (default is NO)
1420 --enable-expensive-checks
1421 Compile with expensive debug checks enabled (default
1423 --enable-debug-runtime Build runtime libs with debug symbols (default is
1425 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1426 optimization is on and YES if it's off)
1427 --enable-keep-symbols Do not strip installed executables)
1428 --enable-jit Enable Just In Time Compiling (default is YES)
1429 --enable-docs Build documents (default is YES)
1430 --enable-doxygen Build doxygen documentation (default is NO)
1431 --enable-threads Use threads if available (default is YES)
1432 --enable-pthreads Use pthreads if available (default is YES)
1433 --enable-zlib Use zlib for compression/decompression if available
1435 --enable-pic Build LLVM with Position Independent Code (default
1437 --enable-shared Build a shared library and link tools against it
1439 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1440 Win32 DLL (default is NO)
1441 --enable-timestamps Enable embedding timestamp information in build
1443 --enable-backtraces Enable embedding backtraces on crash (default is
1445 --enable-targets Build specific host targets: all or
1446 target1,target2,... Valid targets are: host, x86,
1447 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1448 xcore, msp430, nvptx, systemz, r600, and cpp
1450 --enable-experimental-targets
1451 Build experimental host targets: disable or
1452 target1,target2,... (default=disable)
1453 --enable-bindings Build specific language bindings:
1454 all,auto,none,{binding-name} (default=auto)
1455 --enable-libffi Check for the presence of libffi (default is NO)
1456 --enable-ltdl-install install libltdl
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-optimize-option Select the compiler options to use for optimized
1463 --with-extra-options Specify additional options to compile LLVM with
1464 --with-extra-ld-options Specify additional options to link LLVM with
1465 --with-ocaml-libdir Specify install location for ocaml bindings (default
1467 --with-clang-srcdir Directory to the out-of-tree Clang source
1468 --with-clang-resource-dir
1469 Relative directory from the Clang binary for
1471 --with-c-include-dirs Colon separated list of directories clang will
1473 --with-gcc-toolchain Directory where gcc is installed.
1474 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1475 --with-binutils-include Specify path to binutils/include/ containing
1476 plugin-api.h file for gold plugin.
1477 --with-bug-report-url Specify the URL where bug reports should be
1478 submitted (default=http://llvm.org/bugs/)
1479 --with-internal-prefix Installation directory for internal files
1480 --with-python path to python
1481 --with-udis86=<path> Use udis86 external x86 disassembler library
1482 --with-oprofile=<prefix>
1483 Tell OProfile >= 0.9.4 how to symbolize JIT output
1484 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1497 CXXCPP C++ preprocessor
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 Report bugs to <http://llvm.org/bugs/>.
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" || continue
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1530 .) # We are building in place.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1554 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1563 LLVM configure 3.4svn
1564 generated by GNU Autoconf 2.60
1566 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1567 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1571 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1579 It was created by LLVM $as_me 3.4svn, which was
1580 generated by GNU Autoconf 2.60. Invocation command line was
1592 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1601 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1602 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1603 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1604 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1605 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1606 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1607 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir=.
1616 echo "PATH: $as_dir"
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_must_keep_next=false
1646 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648 | -silent | --silent | --silen | --sile | --sil)
1651 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657 if test $ac_must_keep_next = true; then
1658 ac_must_keep_next=false # Got value, back to normal.
1661 *=* | --config-cache | -C | -disable-* | --disable-* \
1662 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664 | -with-* | --with-* | -without-* | --without-* | --x)
1665 case "$ac_configure_args0 " in
1666 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669 -* ) ac_must_keep_next=true ;;
1672 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log. We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686 # Save into config.log some information that might help in debugging.
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1696 # The following way of writing the cache mishandles newlines in values,
1698 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699 eval ac_val=\$$ac_var
1703 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707 _ | IFS | as_nl) ;; #(
1708 *) $as_unset $ac_var ;;
1713 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714 *${as_nl}ac_space=\ *)
1716 "s/'\''/'\''\\\\'\'''\''/g;
1717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1733 for ac_var in $ac_subst_vars
1735 eval ac_val=\$$ac_var
1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 echo "$ac_var='\''$ac_val'\''"
1743 if test -n "$ac_subst_files"; then
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1750 for ac_var in $ac_subst_files
1752 eval ac_val=\$$ac_var
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 echo "$ac_var='\''$ac_val'\''"
1761 if test -s confdefs.h; then
1771 test "$ac_signal" != 0 &&
1772 echo "$as_me: caught signal $ac_signal"
1773 echo "$as_me: exit $exit_status"
1775 rm -f core *.core core.conftest.* &&
1776 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779 for ac_signal in 1 2 13 15; do
1780 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1787 # Predefined preprocessor variables.
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817 set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 set x "$ac_default_prefix/share/config.site" \
1822 "$ac_default_prefix/etc/config.site"
1827 if test -r "$ac_site_file"; then
1828 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830 sed 's/^/| /' "$ac_site_file" >&5
1835 if test -r "$cache_file"; then
1836 # Some versions of bash will fail to source /dev/null (special
1837 # files actually), so we avoid doing that.
1838 if test -f "$cache_file"; then
1839 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1842 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843 *) . "./$cache_file";;
1847 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1852 # Check that the precious variables saved in the cache have kept the same
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857 eval ac_new_set=\$ac_env_${ac_var}_set
1858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859 eval ac_new_val=\$ac_env_${ac_var}_value
1860 case $ac_old_set,$ac_new_set in
1862 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1871 if test "x$ac_old_val" != "x$ac_new_val"; then
1872 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1875 echo "$as_me: former value: $ac_old_val" >&2;}
1876 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1877 echo "$as_me: current value: $ac_new_val" >&2;}
1878 ac_cache_corrupted=:
1881 # Pass precious variables to config.status.
1882 if test "$ac_new_set" = set; then
1884 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885 *) ac_arg=$ac_var=$ac_new_val ;;
1887 case " $ac_configure_args " in
1888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1889 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 if $ac_cache_corrupted; then
1894 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898 { (exit 1); exit 1; }; }
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 cat >>confdefs.h <<\_ACEOF
1934 #define LLVM_VERSION_MAJOR 3
1938 cat >>confdefs.h <<\_ACEOF
1939 #define LLVM_VERSION_MINOR 4
1943 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1952 for ac_dir in autoconf "$srcdir"/autoconf; do
1953 if test -f "$ac_dir/install-sh"; then
1955 ac_install_sh="$ac_aux_dir/install-sh -c"
1957 elif test -f "$ac_dir/install.sh"; then
1959 ac_install_sh="$ac_aux_dir/install.sh -c"
1961 elif test -f "$ac_dir/shtool"; then
1963 ac_install_sh="$ac_aux_dir/shtool install -c"
1967 if test -z "$ac_aux_dir"; then
1968 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1969 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1970 { (exit 1); exit 1; }; }
1973 # These three variables are undocumented and unsupported,
1974 # and are intended to be withdrawn in a future Autoconf release.
1975 # They can cause serious problems if a builder's source tree is in a directory
1976 # whose full name contains unusual characters.
1977 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1978 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1979 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1983 if test ${srcdir} != "." ; then
1984 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1985 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1986 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1987 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 if test -n "$ac_tool_prefix"; then
2000 for ac_prog in clang llvm-gcc gcc
2002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 if test -n "$CC"; then
2031 { echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6; }
2034 { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2039 test -n "$CC" && break
2042 if test -z "$CC"; then
2044 for ac_prog in clang llvm-gcc gcc
2046 # Extract the first word of "$ac_prog", so it can be a program name with args.
2047 set dummy $ac_prog; ac_word=$2
2048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2063 ac_cv_prog_ac_ct_CC="$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6; }
2078 { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2083 test -n "$ac_ct_CC" && break
2086 if test "x$ac_ct_CC" = x; then
2089 case $cross_compiling:$ac_tool_warned in
2091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2092 whose name does not start with the host triplet. If you think this
2093 configuration is useful to you, please write to autoconf@gnu.org." >&5
2094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet. If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2097 ac_tool_warned=yes ;;
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO: checking for C compiler version" >&5
2112 ac_compiler=`set X $ac_compile; echo $2`
2113 { (ac_try="$ac_compiler --version >&5"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler --version >&5") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123 { (ac_try="$ac_compiler -v >&5"
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129 (eval "$ac_compiler -v >&5") 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133 { (ac_try="$ac_compiler -V >&5"
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139 (eval "$ac_compiler -V >&5") 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2164 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 # List of possible output files, starting from the most likely.
2169 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2170 # only as a last resort. b.out is created by i960 compilers.
2171 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2173 # The IRIX 6 linker writes into existing files which may not be
2174 # executable, retaining their permissions. Remove them first so a
2175 # subsequent execution test works.
2177 for ac_file in $ac_files
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2186 if { (ac_try="$ac_link_default"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_link_default") 2>&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; then
2196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2198 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2199 # so that the user can short-circuit this test for compilers unknown to
2201 for ac_file in $ac_files
2203 test -f "$ac_file" || continue
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2208 # We found the default executable, but exeext='' is most
2212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 # We set ac_cv_exeext here because the later test for it is not
2217 # safe: cross compilers may not add the suffix if given an `-o'
2218 # argument, so we may need to know it at that point already.
2219 # Even if this section looks crufty: it has the advantage of
2226 test "$ac_cv_exeext" = no && ac_cv_exeext=
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2232 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: C compiler cannot create executables
2235 See \`config.log' for more details." >&2;}
2236 { (exit 77); exit 77; }; }
2239 ac_exeext=$ac_cv_exeext
2240 { echo "$as_me:$LINENO: result: $ac_file" >&5
2241 echo "${ECHO_T}$ac_file" >&6; }
2243 # Check that the compiler produces executables we can run. If not, either
2244 # the compiler is broken, or we cross compile.
2245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2248 # If not cross compiling, check that we can run a simple program.
2249 if test "$cross_compiling" != yes; then
2250 if { ac_try='./$ac_file'
2251 { (case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256 (eval "$ac_try") 2>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2262 if test "$cross_compiling" = maybe; then
2265 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2279 ac_clean_files=$ac_clean_files_save
2280 # Check that the compiler produces executables we can run. If not, either
2281 # the compiler is broken, or we cross compile.
2282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2285 echo "${ECHO_T}$cross_compiling" >&6; }
2287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2289 if { (ac_try="$ac_link"
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295 (eval "$ac_link") 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2301 # work properly (i.e., refer to `conftest.exe'), while it won't with
2303 for ac_file in conftest.exe conftest conftest.*; do
2304 test -f "$ac_file" || continue
2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2320 rm -f conftest$ac_cv_exeext
2321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2329 if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.$ac_ext <<_ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2347 rm -f conftest.o conftest.obj
2348 if { (ac_try="$ac_compile"
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compile") 2>&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; then
2358 for ac_file in conftest.o conftest.obj conftest.*; do
2359 test -f "$ac_file" || continue;
2361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2373 See \`config.log' for more details." >&2;}
2374 { (exit 1); exit 1; }; }
2377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2380 echo "${ECHO_T}$ac_cv_objext" >&6; }
2381 OBJEXT=$ac_cv_objext
2383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 cat >conftest.$ac_ext <<_ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2406 rm -f conftest.$ac_objext
2407 if { (ac_try="$ac_compile"
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_compile") 2>conftest.er1
2415 grep -v '^ *+' conftest.er1 >conftest.err
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2421 { (case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_try") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_try") 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2452 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2453 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2454 GCC=`test $ac_compiler_gnu = yes && echo yes`
2455 ac_test_CFLAGS=${CFLAGS+set}
2456 ac_save_CFLAGS=$CFLAGS
2457 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_cc_g+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 ac_save_c_werror_flag=$ac_c_werror_flag
2463 ac_c_werror_flag=yes
2466 cat >conftest.$ac_ext <<_ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2481 rm -f conftest.$ac_objext
2482 if { (ac_try="$ac_compile"
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_compile") 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_try") 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2536 rm -f conftest.$ac_objext
2537 if { (ac_try="$ac_compile"
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_compile") 2>conftest.er1
2545 grep -v '^ *+' conftest.er1 >conftest.err
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551 { (case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_try") 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 ac_c_werror_flag=$ac_save_c_werror_flag
2577 cat >conftest.$ac_ext <<_ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2592 rm -f conftest.$ac_objext
2593 if { (ac_try="$ac_compile"
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_compile") 2>conftest.er1
2601 grep -v '^ *+' conftest.er1 >conftest.err
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607 { (case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612 (eval "$ac_try") 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_try") 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_c_werror_flag=$ac_save_c_werror_flag
2643 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2654 if test "$GCC" = yes; then
2660 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2661 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2662 if test "${ac_cv_prog_cc_c89+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 ac_cv_prog_cc_c89=no
2667 cat >conftest.$ac_ext <<_ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2691 s = g (p, va_arg (v,int));
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
2699 as 'x'. The following induces an error, until -std is added to get
2700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
2702 that's true only with -std. */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2706 inside strings and character constants. */
2708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2710 int test (int i, double x);
2711 struct s1 {int (*f) (int a);};
2712 struct s2 {int (*f) (double a);};
2713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2719 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 CC="$ac_save_CC $ac_arg"
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2737 grep -v '^ *+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2743 { (case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_try") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_try") 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_cv_prog_cc_c89=$ac_arg
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f core conftest.err conftest.$ac_objext
2771 test "x$ac_cv_prog_cc_c89" != "xno" && break
2773 rm -f conftest.$ac_ext
2778 case "x$ac_cv_prog_cc_c89" in
2780 { echo "$as_me:$LINENO: result: none needed" >&5
2781 echo "${ECHO_T}none needed" >&6; } ;;
2783 { echo "$as_me:$LINENO: result: unsupported" >&5
2784 echo "${ECHO_T}unsupported" >&6; } ;;
2786 CC="$CC $ac_cv_prog_cc_c89"
2787 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 ac_cpp='$CXXCPP $CPPFLAGS'
2800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2803 if test -z "$CXX"; then
2804 if test -n "$CCC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 for ac_prog in clang++ llvm-g++ g++
2810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CXX+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 if test -n "$CXX"; then
2818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 if test -n "$CXX"; then
2839 { echo "$as_me:$LINENO: result: $CXX" >&5
2840 echo "${ECHO_T}$CXX" >&6; }
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2847 test -n "$CXX" && break
2850 if test -z "$CXX"; then
2852 for ac_prog in clang++ llvm-g++ g++
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2858 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$ac_ct_CXX"; then
2862 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_ac_ct_CXX="$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2882 if test -n "$ac_ct_CXX"; then
2883 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2884 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2886 { echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6; }
2891 test -n "$ac_ct_CXX" && break
2894 if test "x$ac_ct_CXX" = x; then
2897 case $cross_compiling:$ac_tool_warned in
2899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet. If you think this
2901 configuration is useful to you, please write to autoconf@gnu.org." >&5
2902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet. If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2905 ac_tool_warned=yes ;;
2913 # Provide some information about the compiler.
2914 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2915 ac_compiler=`set X $ac_compile; echo $2`
2916 { (ac_try="$ac_compiler --version >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler --version >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926 { (ac_try="$ac_compiler -v >&5"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compiler -v >&5") 2>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 { (ac_try="$ac_compiler -V >&5"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compiler -V >&5") 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2947 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2948 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2949 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2970 rm -f conftest.$ac_objext
2971 if { (ac_try="$ac_compile"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_try") 2>&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3016 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3017 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3018 GXX=`test $ac_compiler_gnu = yes && echo yes`
3019 ac_test_CXXFLAGS=${CXXFLAGS+set}
3020 ac_save_CXXFLAGS=$CXXFLAGS
3021 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3022 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_cxx_g+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3027 ac_cxx_werror_flag=yes
3030 cat >conftest.$ac_ext <<_ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; } &&
3069 { ac_try='test -s conftest.$ac_objext'
3070 { (case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_try") 2>&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 ac_cv_prog_cxx_g=yes
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3156 rm -f conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3165 grep -v '^ *+' conftest.er1 >conftest.err
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_try") 2>&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_prog_cxx_g=yes
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3208 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3209 if test "$ac_test_CXXFLAGS" = set; then
3210 CXXFLAGS=$ac_save_CXXFLAGS
3211 elif test $ac_cv_prog_cxx_g = yes; then
3212 if test "$GXX" = yes; then
3218 if test "$GXX" = yes; then
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3236 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3237 # On Suns, sometimes $CPP names a directory.
3238 if test -n "$CPP" && test -d "$CPP"; then
3241 if test -z "$CPP"; then
3242 if test "${ac_cv_prog_CPP+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 # Double quotes because CPP needs to be expanded
3246 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3249 for ac_c_preproc_warn_flag in '' yes
3251 # Use a header file that comes with gcc, so configuring glibc
3252 # with a fresh cross-compiler works.
3253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254 # <limits.h> exists even on freestanding compilers.
3255 # On the NeXT, cc -E runs the code through the compiler's parser,
3256 # not just through cpp. "Syntax error" is here to catch this case.
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3264 # include <limits.h>
3266 # include <assert.h>
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292 if test -z "$ac_cpp_err"; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 # Broken: fails on valid input.
3302 rm -f conftest.err conftest.$ac_ext
3304 # OK, works on sane cases. Now check whether nonexistent headers
3305 # can be detected and how.
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <ac_nonexistent.h>
3314 if { (ac_try="$ac_cpp conftest.$ac_ext"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } >/dev/null; then
3327 if test -s conftest.err; then
3328 ac_cpp_err=$ac_c_preproc_warn_flag
3329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3336 if test -z "$ac_cpp_err"; then
3337 # Broken: success on invalid input.
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 # Passes both tests.
3348 rm -f conftest.err conftest.$ac_ext
3351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3352 rm -f conftest.err conftest.$ac_ext
3353 if $ac_preproc_ok; then
3365 { echo "$as_me:$LINENO: result: $CPP" >&5
3366 echo "${ECHO_T}$CPP" >&6; }
3368 for ac_c_preproc_warn_flag in '' yes
3370 # Use a header file that comes with gcc, so configuring glibc
3371 # with a fresh cross-compiler works.
3372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3373 # <limits.h> exists even on freestanding compilers.
3374 # On the NeXT, cc -E runs the code through the compiler's parser,
3375 # not just through cpp. "Syntax error" is here to catch this case.
3376 cat >conftest.$ac_ext <<_ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3383 # include <limits.h>
3385 # include <assert.h>
3389 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 if test -z "$ac_cpp_err"; then
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 # Broken: fails on valid input.
3421 rm -f conftest.err conftest.$ac_ext
3423 # OK, works on sane cases. Now check whether nonexistent headers
3424 # can be detected and how.
3425 cat >conftest.$ac_ext <<_ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #include <ac_nonexistent.h>
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Passes both tests.
3467 rm -f conftest.err conftest.$ac_ext
3470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471 rm -f conftest.err conftest.$ac_ext
3472 if $ac_preproc_ok; then
3475 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3476 See \`config.log' for more details." >&5
3477 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3478 See \`config.log' for more details." >&2;}
3479 { (exit 1); exit 1; }; }
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 if test "$CXX" = "clang++" ; then
3490 { echo "$as_me:$LINENO: checking whether clang works" >&5
3491 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3493 ac_cpp='$CXXCPP $CPPFLAGS'
3494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 #if __has_include (<cxxabi.h>)
3509 #if __has_include (<unwind.h>)
3521 rm -f conftest.$ac_objext
3522 if { (ac_try="$ac_compile"
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compile") 2>conftest.er1
3530 grep -v '^ *+' conftest.er1 >conftest.err
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3536 { (case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_try") 2>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_try") 2>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3556 { echo "$as_me:$LINENO: result: yes" >&5
3557 echo "${ECHO_T}yes" >&6; }
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3566 { { 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
3567 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;}
3568 { (exit 1); exit 1; }; }
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583 if test -d ${srcdir}/projects/llvm-gcc ; then
3584 subdirs="$subdirs projects/llvm-gcc"
3588 if test -d ${srcdir}/projects/test-suite ; then
3589 subdirs="$subdirs projects/test-suite"
3593 if test -d ${srcdir}/projects/llvm-test ; then
3594 subdirs="$subdirs projects/llvm-test"
3598 if test -d ${srcdir}/projects/poolalloc ; then
3599 subdirs="$subdirs projects/poolalloc"
3603 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3604 subdirs="$subdirs projects/llvm-poolalloc"
3608 for i in `ls ${srcdir}/projects`
3610 if test -d ${srcdir}/projects/${i} ; then
3612 sample) subdirs="$subdirs projects/sample"
3614 privbracket) subdirs="$subdirs projects/privbracket"
3616 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3618 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3620 llvm-java) subdirs="$subdirs projects/llvm-java"
3622 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3624 safecode) subdirs="$subdirs projects/safecode"
3626 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3635 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3636 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3642 # Check whether --enable-polly was given.
3643 if test "${enable_polly+set}" = set; then
3644 enableval=$enable_polly;
3649 case "$enableval" in
3654 default) ENABLE_POLLY=1
3656 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3657 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3658 { (exit 1); exit 1; }; } ;;
3662 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3665 subdirs="$subdirs tools/polly"
3670 # Make sure we can run config.sub.
3671 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3672 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3673 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3674 { (exit 1); exit 1; }; }
3676 { echo "$as_me:$LINENO: checking build system type" >&5
3677 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3678 if test "${ac_cv_build+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 ac_build_alias=$build_alias
3682 test "x$ac_build_alias" = x &&
3683 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3684 test "x$ac_build_alias" = x &&
3685 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3686 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3687 { (exit 1); exit 1; }; }
3688 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3689 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3690 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3691 { (exit 1); exit 1; }; }
3694 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3695 echo "${ECHO_T}$ac_cv_build" >&6; }
3696 case $ac_cv_build in
3698 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3699 echo "$as_me: error: invalid value of canonical build" >&2;}
3700 { (exit 1); exit 1; }; };;
3703 ac_save_IFS=$IFS; IFS='-'
3709 # Remember, the first character of IFS is used to create $*,
3710 # except with old shells:
3713 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3716 { echo "$as_me:$LINENO: checking host system type" >&5
3717 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3718 if test "${ac_cv_host+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 if test "x$host_alias" = x; then
3722 ac_cv_host=$ac_cv_build
3724 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3725 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3726 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3727 { (exit 1); exit 1; }; }
3731 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3732 echo "${ECHO_T}$ac_cv_host" >&6; }
3735 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3736 echo "$as_me: error: invalid value of canonical host" >&2;}
3737 { (exit 1); exit 1; }; };;
3740 ac_save_IFS=$IFS; IFS='-'
3746 # Remember, the first character of IFS is used to create $*,
3747 # except with old shells:
3750 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3753 { echo "$as_me:$LINENO: checking target system type" >&5
3754 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3755 if test "${ac_cv_target+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 if test "x$target_alias" = x; then
3759 ac_cv_target=$ac_cv_host
3761 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3762 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3763 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3764 { (exit 1); exit 1; }; }
3768 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3769 echo "${ECHO_T}$ac_cv_target" >&6; }
3770 case $ac_cv_target in
3772 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3773 echo "$as_me: error: invalid value of canonical target" >&2;}
3774 { (exit 1); exit 1; }; };;
3776 target=$ac_cv_target
3777 ac_save_IFS=$IFS; IFS='-'
3783 # Remember, the first character of IFS is used to create $*,
3784 # except with old shells:
3787 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3790 # The aliases save the names the user supplied, while $host etc.
3791 # will get canonicalized.
3792 test -n "$target_alias" &&
3793 test "$program_prefix$program_suffix$program_transform_name" = \
3795 program_prefix=${target_alias}-
3797 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3798 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3799 if test "${llvm_cv_os_type+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 llvm_cv_link_all_option="-Wl,--whole-archive"
3805 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3806 llvm_cv_os_type="AIX"
3807 llvm_cv_platform_type="Unix" ;;
3809 llvm_cv_link_all_option="-Wl,--whole-archive"
3810 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3811 llvm_cv_os_type="IRIX"
3812 llvm_cv_platform_type="Unix" ;;
3814 llvm_cv_link_all_option="-Wl,--whole-archive"
3815 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3816 llvm_cv_os_type="Cygwin"
3817 llvm_cv_platform_type="Unix" ;;
3819 llvm_cv_link_all_option="-Wl,-all_load"
3820 llvm_cv_no_link_all_option="-Wl,-noall_load"
3821 llvm_cv_os_type="Darwin"
3822 llvm_cv_platform_type="Unix" ;;
3824 llvm_cv_link_all_option="-Wl,-all_load"
3825 llvm_cv_no_link_all_option="-Wl,-noall_load"
3826 llvm_cv_os_type="Minix"
3827 llvm_cv_platform_type="Unix" ;;
3828 *-*-freebsd* | *-*-kfreebsd-gnu)
3829 llvm_cv_link_all_option="-Wl,--whole-archive"
3830 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3831 llvm_cv_os_type="FreeBSD"
3832 llvm_cv_platform_type="Unix" ;;
3834 llvm_cv_link_all_option="-Wl,--whole-archive"
3835 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3836 llvm_cv_os_type="OpenBSD"
3837 llvm_cv_platform_type="Unix" ;;
3839 llvm_cv_link_all_option="-Wl,--whole-archive"
3840 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3841 llvm_cv_os_type="NetBSD"
3842 llvm_cv_platform_type="Unix" ;;
3844 llvm_cv_link_all_option="-Wl,--whole-archive"
3845 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3846 llvm_cv_os_type="DragonFly"
3847 llvm_cv_platform_type="Unix" ;;
3849 llvm_cv_link_all_option="-Wl,--whole-archive"
3850 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3851 llvm_cv_os_type="HP-UX"
3852 llvm_cv_platform_type="Unix" ;;
3854 llvm_cv_link_all_option="-Wl,--whole-archive"
3855 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3856 llvm_cv_os_type="Interix"
3857 llvm_cv_platform_type="Unix" ;;
3859 llvm_cv_link_all_option="-Wl,--whole-archive"
3860 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3861 llvm_cv_os_type="Linux"
3862 llvm_cv_platform_type="Unix" ;;
3864 llvm_cv_link_all_option="-Wl,--whole-archive"
3865 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3866 llvm_cv_os_type="GNU"
3867 llvm_cv_platform_type="Unix" ;;
3869 llvm_cv_link_all_option="-Wl,-z,allextract"
3870 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3871 llvm_cv_os_type="SunOS"
3872 llvm_cv_platform_type="Unix" ;;
3874 llvm_cv_link_all_option="-Wl,-z,allextract"
3875 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3876 llvm_cv_os_type="AuroraUX"
3877 llvm_cv_platform_type="Unix" ;;
3879 llvm_cv_link_all_option="-Wl,--whole-archive"
3880 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3881 llvm_cv_os_type="Win32"
3882 llvm_cv_platform_type="Win32" ;;
3884 llvm_cv_link_all_option="-Wl,--whole-archive"
3885 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3886 llvm_cv_os_type="MingW"
3887 llvm_cv_platform_type="Win32" ;;
3889 llvm_cv_link_all_option="-Wl,--whole-archive"
3890 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3891 llvm_cv_os_type="Haiku"
3892 llvm_cv_platform_type="Unix" ;;
3894 llvm_cv_link_all_option="-Wl,--whole-archive"
3895 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3896 llvm_cv_os_type="Freestanding"
3897 llvm_cv_platform_type="Unix" ;;
3899 llvm_cv_link_all_option="-Wl,--whole-archive"
3900 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3901 llvm_cv_os_type="Freestanding"
3902 llvm_cv_platform_type="Unix" ;;
3904 llvm_cv_link_all_option=""
3905 llvm_cv_no_link_all_option=""
3906 llvm_cv_os_type="Unknown"
3907 llvm_cv_platform_type="Unknown" ;;
3910 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3911 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3913 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3914 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3915 if test "${llvm_cv_target_os_type+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 llvm_cv_target_os_type="AIX" ;;
3922 llvm_cv_target_os_type="IRIX" ;;
3924 llvm_cv_target_os_type="Cygwin" ;;
3926 llvm_cv_target_os_type="Darwin" ;;
3928 llvm_cv_target_os_type="Minix" ;;
3929 *-*-freebsd* | *-*-kfreebsd-gnu)
3930 llvm_cv_target_os_type="FreeBSD" ;;
3932 llvm_cv_target_os_type="OpenBSD" ;;
3934 llvm_cv_target_os_type="NetBSD" ;;
3936 llvm_cv_target_os_type="DragonFly" ;;
3938 llvm_cv_target_os_type="HP-UX" ;;
3940 llvm_cv_target_os_type="Interix" ;;
3942 llvm_cv_target_os_type="Linux" ;;
3944 llvm_cv_target_os_type="GNU" ;;
3946 llvm_cv_target_os_type="SunOS" ;;
3948 llvm_cv_target_os_type="AuroraUX" ;;
3950 llvm_cv_target_os_type="Win32" ;;
3952 llvm_cv_target_os_type="MingW" ;;
3954 llvm_cv_target_os_type="Haiku" ;;
3956 llvm_cv_target_os_type="RTEMS" ;;
3958 llvm_cv_target_os_type="NativeClient" ;;
3960 llvm_cv_target_os_type="Freestanding" ;;
3962 llvm_cv_target_os_type="Unknown" ;;
3965 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3966 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3968 if test "$llvm_cv_os_type" = "Unknown" ; then
3969 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3970 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3971 { (exit 1); exit 1; }; }
3976 HOST_OS=$llvm_cv_os_type
3978 TARGET_OS=$llvm_cv_target_os_type
3981 LINKALL=$llvm_cv_link_all_option
3983 NOLINKALL=$llvm_cv_no_link_all_option
3986 case $llvm_cv_platform_type in
3989 cat >>confdefs.h <<\_ACEOF
3990 #define LLVM_ON_UNIX 1
4000 cat >>confdefs.h <<\_ACEOF
4001 #define LLVM_ON_WIN32 1
4011 { echo "$as_me:$LINENO: checking target architecture" >&5
4012 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4013 if test "${llvm_cv_target_arch+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 i?86-*) llvm_cv_target_arch="x86" ;;
4018 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4019 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4020 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4021 arm*-*) llvm_cv_target_arch="ARM" ;;
4022 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4023 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4024 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4025 xcore-*) llvm_cv_target_arch="XCore" ;;
4026 msp430-*) llvm_cv_target_arch="MSP430" ;;
4027 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4028 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4029 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4030 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4031 *) llvm_cv_target_arch="Unknown" ;;
4034 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4035 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4037 if test "$llvm_cv_target_arch" = "Unknown" ; then
4038 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4039 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4042 case "$llvm_cv_target_arch" in
4043 x86) LLVM_NATIVE_ARCH="X86" ;;
4044 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4045 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4048 ARCH=$llvm_cv_target_arch
4052 i?86-*) host_arch="x86" ;;
4053 amd64-* | x86_64-*) host_arch="x86_64" ;;
4054 sparc*-*) host_arch="Sparc" ;;
4055 powerpc*-*) host_arch="PowerPC" ;;
4056 arm*-*) host_arch="ARM" ;;
4057 aarch64*-*) host_arch="AArch64" ;;
4058 mips-* | mips64-*) host_arch="Mips" ;;
4059 mipsel-* | mips64el-*) host_arch="Mips" ;;
4060 xcore-*) host_arch="XCore" ;;
4061 msp430-*) host_arch="MSP430" ;;
4062 hexagon-*) host_arch="Hexagon" ;;
4063 mblaze-*) host_arch="MBlaze" ;;
4064 s390x-*) host_arch="SystemZ" ;;
4065 *) host_arch="Unknown" ;;
4068 if test "$host_arch" = "Unknown" ; then
4069 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4070 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4073 HOST_ARCH=$host_arch
4078 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4079 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4080 if test "${ac_cv_path_GREP+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 # Extract the first word of "grep ggrep" to use in msg output
4084 if test -z "$GREP"; then
4085 set dummy grep ggrep; ac_prog_name=$2
4086 if test "${ac_cv_path_GREP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 ac_path_GREP_found=false
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4095 test -z "$as_dir" && as_dir=.
4096 for ac_prog in grep ggrep; do
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4099 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4100 # Check for GNU ac_path_GREP and select it if it is found.
4101 # Check for GNU $ac_path_GREP
4102 case `"$ac_path_GREP" --version 2>&1` in
4104 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4107 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4110 cat "conftest.in" "conftest.in" >"conftest.tmp"
4111 mv "conftest.tmp" "conftest.in"
4112 cp "conftest.in" "conftest.nl"
4113 echo 'GREP' >> "conftest.nl"
4114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4116 ac_count=`expr $ac_count + 1`
4117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4118 # Best one so far, save it but keep looking for a better one
4119 ac_cv_path_GREP="$ac_path_GREP"
4120 ac_path_GREP_max=$ac_count
4122 # 10*(2^10) chars as input seems more than enough
4123 test $ac_count -gt 10 && break
4125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4129 $ac_path_GREP_found && break 3
4139 GREP="$ac_cv_path_GREP"
4140 if test -z "$GREP"; then
4141 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4142 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4143 { (exit 1); exit 1; }; }
4147 ac_cv_path_GREP=$GREP
4152 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4153 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4154 GREP="$ac_cv_path_GREP"
4157 { echo "$as_me:$LINENO: checking for egrep" >&5
4158 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4159 if test "${ac_cv_path_EGREP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4163 then ac_cv_path_EGREP="$GREP -E"
4165 # Extract the first word of "egrep" to use in msg output
4166 if test -z "$EGREP"; then
4167 set dummy egrep; ac_prog_name=$2
4168 if test "${ac_cv_path_EGREP+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 ac_path_EGREP_found=false
4172 # Loop through the user's path and test for each of PROGNAME-LIST
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4177 test -z "$as_dir" && as_dir=.
4178 for ac_prog in egrep; do
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4181 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4182 # Check for GNU ac_path_EGREP and select it if it is found.
4183 # Check for GNU $ac_path_EGREP
4184 case `"$ac_path_EGREP" --version 2>&1` in
4186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4189 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4192 cat "conftest.in" "conftest.in" >"conftest.tmp"
4193 mv "conftest.tmp" "conftest.in"
4194 cp "conftest.in" "conftest.nl"
4195 echo 'EGREP' >> "conftest.nl"
4196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4198 ac_count=`expr $ac_count + 1`
4199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4200 # Best one so far, save it but keep looking for a better one
4201 ac_cv_path_EGREP="$ac_path_EGREP"
4202 ac_path_EGREP_max=$ac_count
4204 # 10*(2^10) chars as input seems more than enough
4205 test $ac_count -gt 10 && break
4207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4211 $ac_path_EGREP_found && break 3
4221 EGREP="$ac_cv_path_EGREP"
4222 if test -z "$EGREP"; then
4223 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4224 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4225 { (exit 1); exit 1; }; }
4229 ac_cv_path_EGREP=$EGREP
4235 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4236 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4237 EGREP="$ac_cv_path_EGREP"
4240 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4241 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4242 if test "${ac_cv_header_stdc+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4264 rm -f conftest.$ac_objext
4265 if { (ac_try="$ac_compile"
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_compile") 2>conftest.er1
4273 grep -v '^ *+' conftest.er1 >conftest.err
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } &&
4278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; } &&
4288 { ac_try='test -s conftest.$ac_objext'
4289 { (case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_try") 2>&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_header_stdc=yes
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 ac_cv_header_stdc=no
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 if test $ac_cv_header_stdc = yes; then
4309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4310 cat >conftest.$ac_ext <<_ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320 $EGREP "memchr" >/dev/null 2>&1; then
4323 ac_cv_header_stdc=no
4329 if test $ac_cv_header_stdc = yes; then
4330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341 $EGREP "free" >/dev/null 2>&1; then
4344 ac_cv_header_stdc=no
4350 if test $ac_cv_header_stdc = yes; then
4351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4352 if test "$cross_compiling" = yes; then
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4363 #if ((' ' & 0x0FF) == 0x020)
4364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367 # define ISLOWER(c) \
4368 (('a' <= (c) && (c) <= 'i') \
4369 || ('j' <= (c) && (c) <= 'r') \
4370 || ('s' <= (c) && (c) <= 'z'))
4371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379 for (i = 0; i < 256; i++)
4380 if (XOR (islower (i), ISLOWER (i))
4381 || toupper (i) != TOUPPER (i))
4386 rm -f conftest$ac_exeext
4387 if { (ac_try="$ac_link"
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_link") 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397 { (case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_try") 2>&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4408 echo "$as_me: program exited with status $ac_status" >&5
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_cv_header_stdc=no
4415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4421 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4422 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4423 if test $ac_cv_header_stdc = yes; then
4425 cat >>confdefs.h <<\_ACEOF
4426 #define STDC_HEADERS 1
4431 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4441 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4442 inttypes.h stdint.h unistd.h
4444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 $ac_includes_default
4458 #include <$ac_header>
4460 rm -f conftest.$ac_objext
4461 if { (ac_try="$ac_compile"
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_compile") 2>conftest.er1
4469 grep -v '^ *+' conftest.er1 >conftest.err
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4475 { (case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_try") 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest.$ac_objext'
4485 { (case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_try") 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 eval "$as_ac_Header=yes"
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 eval "$as_ac_Header=no"
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 ac_res=`eval echo '${'$as_ac_Header'}'`
4505 { echo "$as_me:$LINENO: result: $ac_res" >&5
4506 echo "${ECHO_T}$ac_res" >&6; }
4507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4508 cat >>confdefs.h <<_ACEOF
4509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4517 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4518 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4519 if test "${ac_cv_c_bigendian+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 # See if sys/param.h defines the BYTE_ORDER macro.
4523 cat >conftest.$ac_ext <<_ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 #include <sys/types.h>
4530 #include <sys/param.h>
4535 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_try") 2>&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 # It does; now see whether it defined to BIG_ENDIAN or not.
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 #include <sys/types.h>
4585 #include <sys/param.h>
4590 #if BYTE_ORDER != BIG_ENDIAN
4598 rm -f conftest.$ac_objext
4599 if { (ac_try="$ac_compile"
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_compile") 2>conftest.er1
4607 grep -v '^ *+' conftest.er1 >conftest.err
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4613 { (case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618 (eval "$ac_try") 2>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; } &&
4622 { ac_try='test -s conftest.$ac_objext'
4623 { (case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_try") 2>&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4632 ac_cv_c_bigendian=yes
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4637 ac_cv_c_bigendian=no
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 # It does not; compile a test program.
4646 if test "$cross_compiling" = yes; then
4647 # try to guess the endianness by grepping values into an object file
4648 ac_cv_c_bigendian=unknown
4649 cat >conftest.$ac_ext <<_ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4656 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4657 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4658 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4659 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4660 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4664 _ascii (); _ebcdic ();
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_compile") 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4684 { (case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_try") 2>&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; } &&
4693 { ac_try='test -s conftest.$ac_objext'
4694 { (case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699 (eval "$ac_try") 2>&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4704 ac_cv_c_bigendian=yes
4706 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4707 if test "$ac_cv_c_bigendian" = unknown; then
4708 ac_cv_c_bigendian=no
4710 # finding both strings is unlikely to happen, but who knows?
4711 ac_cv_c_bigendian=unknown
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4734 /* Are we little or big endian? From Harbison&Steele. */
4738 char c[sizeof (long int)];
4741 return u.c[sizeof (long int) - 1] == 1;
4747 rm -f conftest$ac_exeext
4748 if { (ac_try="$ac_link"
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_link") 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4758 { (case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_try") 2>&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_cv_c_bigendian=no
4769 echo "$as_me: program exited with status $ac_status" >&5
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4774 ac_cv_c_bigendian=yes
4776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4785 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4786 case $ac_cv_c_bigendian in
4794 { { echo "$as_me:$LINENO: error: unknown endianness
4795 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4796 echo "$as_me: error: unknown endianness
4797 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4798 { (exit 1); exit 1; }; } ;;
4802 if test "$cross_compiling" = yes; then
4803 LLVM_CROSS_COMPILING=1
4806 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4807 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4808 if test "${ac_cv_build_exeext+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4812 ac_cv_build_exeext=.exe
4814 ac_build_prefix=${build_alias}-
4816 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4817 set dummy ${ac_build_prefix}gcc; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 if test -n "$BUILD_CC"; then
4824 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 BUILD_CC=$ac_cv_prog_BUILD_CC
4844 if test -n "$BUILD_CC"; then
4845 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4846 echo "${ECHO_T}$BUILD_CC" >&6; }
4848 { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4853 if test -z "$BUILD_CC"; then
4854 # Extract the first word of "gcc", so it can be a program name with args.
4855 set dummy gcc; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$BUILD_CC"; then
4862 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_BUILD_CC="gcc"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 BUILD_CC=$ac_cv_prog_BUILD_CC
4882 if test -n "$BUILD_CC"; then
4883 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4884 echo "${ECHO_T}$BUILD_CC" >&6; }
4886 { echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6; }
4891 if test -z "$BUILD_CC"; then
4892 # Extract the first word of "cc", so it can be a program name with args.
4893 set dummy cc; ac_word=$2
4894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4896 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 if test -n "$BUILD_CC"; then
4900 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4911 ac_prog_rejected=yes
4914 ac_cv_prog_BUILD_CC="cc"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 if test $ac_prog_rejected = yes; then
4923 # We found a bogon in the path, so make sure we never use it.
4924 set dummy $ac_cv_prog_BUILD_CC
4926 if test $# != 0; then
4927 # We chose a different compiler from the bogus one.
4928 # However, it has the same basename, so the bogon will be chosen
4929 # first if we set BUILD_CC to just the basename; use the full file name.
4931 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4936 BUILD_CC=$ac_cv_prog_BUILD_CC
4937 if test -n "$BUILD_CC"; then
4938 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4939 echo "${ECHO_T}$BUILD_CC" >&6; }
4941 { echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6; }
4948 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4949 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4950 { (exit 1); exit 1; }; }
4951 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4953 echo 'int main () { return 0; }' > conftest.$ac_ext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4956 (eval $ac_build_link) 2>&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; then
4960 for file in conftest.*; do
4962 *.c | *.o | *.obj | *.dSYM) ;;
4963 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4967 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4968 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4969 { (exit 1); exit 1; }; }
4972 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4977 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4978 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4979 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4980 ac_build_exeext=$BUILD_EXEEXT
4982 ac_build_prefix=${build_alias}-
4983 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4984 set dummy ${ac_build_prefix}g++; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 if test -n "$BUILD_CXX"; then
4991 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5011 if test -n "$BUILD_CXX"; then
5012 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5013 echo "${ECHO_T}$BUILD_CXX" >&6; }
5015 { echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6; }
5020 if test -z "$BUILD_CXX"; then
5021 # Extract the first word of "g++", so it can be a program name with args.
5022 set dummy g++; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 if test -n "$BUILD_CXX"; then
5029 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_BUILD_CXX="g++"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5049 if test -n "$BUILD_CXX"; then
5050 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5051 echo "${ECHO_T}$BUILD_CXX" >&6; }
5053 { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5058 if test -z "$BUILD_CXX"; then
5059 # Extract the first word of "c++", so it can be a program name with args.
5060 set dummy c++; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 if test -n "$BUILD_CXX"; then
5067 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5078 ac_prog_rejected=yes
5081 ac_cv_prog_BUILD_CXX="c++"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 if test $ac_prog_rejected = yes; then
5090 # We found a bogon in the path, so make sure we never use it.
5091 set dummy $ac_cv_prog_BUILD_CXX
5093 if test $# != 0; then
5094 # We chose a different compiler from the bogus one.
5095 # However, it has the same basename, so the bogon will be chosen
5096 # first if we set BUILD_CXX to just the basename; use the full file name.
5098 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5103 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5104 if test -n "$BUILD_CXX"; then
5105 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5106 echo "${ECHO_T}$BUILD_CXX" >&6; }
5108 { echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6; }
5116 LLVM_CROSS_COMPILING=0
5120 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5131 # Check whether --enable-libcpp was given.
5132 if test "${enable_libcpp+set}" = set; then
5133 enableval=$enable_libcpp;
5138 case "$enableval" in
5139 yes) ENABLE_LIBCPP=1
5143 default) ENABLE_LIBCPP=0
5145 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5147 { (exit 1); exit 1; }; } ;;
5150 # Check whether --enable-cxx11 was given.
5151 if test "${enable_cxx11+set}" = set; then
5152 enableval=$enable_cxx11;
5157 case "$enableval" in
5162 default) ENABLE_CXX11=0
5164 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5165 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5166 { (exit 1); exit 1; }; } ;;
5170 # Check whether --enable-clang-arcmt was given.
5171 if test "${enable_clang_arcmt+set}" = set; then
5172 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5177 case "$enableval" in
5178 yes) ENABLE_CLANG_ARCMT=1
5180 no) ENABLE_CLANG_ARCMT=0
5182 default) ENABLE_CLANG_ARCMT=1
5184 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5185 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5186 { (exit 1); exit 1; }; } ;;
5189 clang_static_analyzer="yes"
5190 # Check whether --enable-clang-static-analyzer was given.
5191 if test "${enable_clang_static_analyzer+set}" = set; then
5192 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5197 case "$enableval" in
5198 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5200 no) ENABLE_CLANG_STATIC_ANALYZER=0
5202 default) ENABLE_CLANG_STATIC_ANALYZER=1
5204 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5205 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5206 { (exit 1); exit 1; }; } ;;
5209 # Check whether --enable-clang-rewriter was given.
5210 if test "${enable_clang_rewriter+set}" = set; then
5211 enableval=$enable_clang_rewriter;
5216 case "$enableval" in
5217 yes) ENABLE_CLANG_REWRITER=1
5220 if test ${clang_arcmt} != "no" ; then
5221 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5222 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5223 { (exit 1); exit 1; }; }
5225 if test ${clang_static_analyzer} != "no" ; then
5226 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5227 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5228 { (exit 1); exit 1; }; }
5230 ENABLE_CLANG_REWRITER=0
5233 default) ENABLE_CLANG_REWRITER=1
5235 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5236 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5237 { (exit 1); exit 1; }; } ;;
5240 # Check whether --enable-optimized was given.
5241 if test "${enable_optimized+set}" = set; then
5242 enableval=$enable_optimized;
5247 if test ${enableval} = "no" ; then
5251 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5255 # Check whether --enable-profiling was given.
5256 if test "${enable_profiling+set}" = set; then
5257 enableval=$enable_profiling;
5262 if test ${enableval} = "no" ; then
5266 ENABLE_PROFILING=ENABLE_PROFILING=1
5270 # Check whether --enable-assertions was given.
5271 if test "${enable_assertions+set}" = set; then
5272 enableval=$enable_assertions;
5277 if test ${enableval} = "yes" ; then
5281 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5285 # Check whether --enable-werror was given.
5286 if test "${enable_werror+set}" = set; then
5287 enableval=$enable_werror;
5292 case "$enableval" in
5293 yes) ENABLE_WERROR=1
5297 default) ENABLE_WERROR=0
5299 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5300 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5301 { (exit 1); exit 1; }; } ;;
5304 # Check whether --enable-expensive-checks was given.
5305 if test "${enable_expensive_checks+set}" = set; then
5306 enableval=$enable_expensive_checks;
5311 if test ${enableval} = "yes" ; then
5312 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5314 EXPENSIVE_CHECKS=yes
5317 ENABLE_EXPENSIVE_CHECKS=
5323 # Check whether --enable-debug-runtime was given.
5324 if test "${enable_debug_runtime+set}" = set; then
5325 enableval=$enable_debug_runtime;
5330 if test ${enableval} = "no" ; then
5334 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5338 # Check whether --enable-debug-symbols was given.
5339 if test "${enable_debug_symbols+set}" = set; then
5340 enableval=$enable_debug_symbols;
5345 if test ${enableval} = "no" ; then
5349 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5353 # Check whether --enable-keep-symbols was given.
5354 if test "${enable_keep_symbols+set}" = set; then
5355 enableval=$enable_keep_symbols;
5360 if test ${enableval} = "no" ; then
5364 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5368 # Check whether --enable-jit was given.
5369 if test "${enable_jit+set}" = set; then
5370 enableval=$enable_jit;
5375 if test ${enableval} = "no"
5380 case "$llvm_cv_target_arch" in
5381 x86) TARGET_HAS_JIT=1
5383 Sparc) TARGET_HAS_JIT=0
5385 PowerPC) TARGET_HAS_JIT=1
5387 x86_64) TARGET_HAS_JIT=1
5389 ARM) TARGET_HAS_JIT=1
5391 AArch64) TARGET_HAS_JIT=0
5393 Mips) TARGET_HAS_JIT=1
5395 XCore) TARGET_HAS_JIT=0
5397 MSP430) TARGET_HAS_JIT=0
5399 Hexagon) TARGET_HAS_JIT=0
5401 MBlaze) TARGET_HAS_JIT=0
5403 NVPTX) TARGET_HAS_JIT=0
5405 SystemZ) TARGET_HAS_JIT=1
5412 # Check whether --enable-docs was given.
5413 if test "${enable_docs+set}" = set; then
5414 enableval=$enable_docs;
5419 case "$enableval" in
5424 default) ENABLE_DOCS=1
5426 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5427 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5428 { (exit 1); exit 1; }; } ;;
5431 # Check whether --enable-doxygen was given.
5432 if test "${enable_doxygen+set}" = set; then
5433 enableval=$enable_doxygen;
5438 case "$enableval" in
5439 yes) ENABLE_DOXYGEN=1
5441 no) ENABLE_DOXYGEN=0
5443 default) ENABLE_DOXYGEN=0
5445 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5446 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5447 { (exit 1); exit 1; }; } ;;
5450 # Check whether --enable-threads was given.
5451 if test "${enable_threads+set}" = set; then
5452 enableval=$enable_threads;
5457 case "$enableval" in
5458 yes) LLVM_ENABLE_THREADS=1
5460 no) LLVM_ENABLE_THREADS=0
5462 default) LLVM_ENABLE_THREADS=1
5464 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5465 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5466 { (exit 1); exit 1; }; } ;;
5469 cat >>confdefs.h <<_ACEOF
5470 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5474 # Check whether --enable-pthreads was given.
5475 if test "${enable_pthreads+set}" = set; then
5476 enableval=$enable_pthreads;
5481 case "$enableval" in
5482 yes) ENABLE_PTHREADS=1
5484 no) ENABLE_PTHREADS=0
5486 default) ENABLE_PTHREADS=1
5488 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5489 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5490 { (exit 1); exit 1; }; } ;;
5493 # Check whether --enable-zlib was given.
5494 if test "${enable_zlib+set}" = set; then
5495 enableval=$enable_zlib;
5500 case "$enableval" in
5501 yes) LLVM_ENABLE_ZLIB=1
5503 no) LLVM_ENABLE_ZLIB=0
5505 default) LLVM_ENABLE_ZLIB=1
5507 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5508 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5509 { (exit 1); exit 1; }; } ;;
5512 cat >>confdefs.h <<_ACEOF
5513 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5517 # Check whether --enable-pic was given.
5518 if test "${enable_pic+set}" = set; then
5519 enableval=$enable_pic;
5524 case "$enableval" in
5529 default) ENABLE_PIC=1
5531 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5532 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5533 { (exit 1); exit 1; }; } ;;
5536 cat >>confdefs.h <<_ACEOF
5537 #define ENABLE_PIC $ENABLE_PIC
5541 # Check whether --enable-shared was given.
5542 if test "${enable_shared+set}" = set; then
5543 enableval=$enable_shared;
5548 case "$enableval" in
5549 yes) ENABLE_SHARED=1
5553 default) ENABLE_SHARED=0
5555 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5556 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5557 { (exit 1); exit 1; }; } ;;
5560 # Check whether --enable-embed-stdcxx was given.
5561 if test "${enable_embed_stdcxx+set}" = set; then
5562 enableval=$enable_embed_stdcxx;
5567 case "$enableval" in
5568 yes) ENABLE_EMBED_STDCXX=1
5570 no) ENABLE_EMBED_STDCXX=0
5572 default) ENABLE_EMBED_STDCXX=0
5574 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5575 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5576 { (exit 1); exit 1; }; } ;;
5579 # Check whether --enable-timestamps was given.
5580 if test "${enable_timestamps+set}" = set; then
5581 enableval=$enable_timestamps;
5586 case "$enableval" in
5587 yes) ENABLE_TIMESTAMPS=1
5589 no) ENABLE_TIMESTAMPS=0
5591 default) ENABLE_TIMESTAMPS=1
5593 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5594 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5595 { (exit 1); exit 1; }; } ;;
5598 cat >>confdefs.h <<_ACEOF
5599 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5604 # Check whether --enable-backtraces was given.
5605 if test "${enable_backtraces+set}" = set; then
5606 enableval=$enable_backtraces;
5611 case "$enableval" in
5612 yes) ENABLE_BACKTRACES=1
5614 no) ENABLE_BACKTRACES=0
5616 default) ENABLE_BACKTRACES=1
5618 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5619 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5620 { (exit 1); exit 1; }; } ;;
5623 cat >>confdefs.h <<_ACEOF
5624 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5629 # Check whether --enable-targets was given.
5630 if test "${enable_targets+set}" = set; then
5631 enableval=$enable_targets;
5636 if test "$enableval" = host-only ; then
5639 case "$enableval" in
5640 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5641 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5643 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5644 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5645 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5646 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5647 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5648 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5649 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5652 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5653 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5654 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5655 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5656 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5657 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5658 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5659 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5660 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5661 host) case "$llvm_cv_target_arch" in
5662 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5663 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5664 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5665 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5666 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5667 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5668 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5669 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5670 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5671 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5672 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5673 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5674 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5675 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5676 echo "$as_me: error: Can not set target to build" >&2;}
5677 { (exit 1); exit 1; }; } ;;
5679 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5680 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5681 { (exit 1); exit 1; }; } ;;
5687 # Check whether --enable-experimental-targets was given.
5688 if test "${enable_experimental_targets+set}" = set; then
5689 enableval=$enable_experimental_targets;
5695 if test ${enableval} != "disable"
5697 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5700 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5703 for a_target in $TARGETS_TO_BUILD; do
5704 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5706 cat >>confdefs.h <<_ACEOF
5707 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5710 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5711 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5712 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5713 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5714 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5715 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5717 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5718 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5721 cat >>confdefs.h <<_ACEOF
5722 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5726 cat >>confdefs.h <<_ACEOF
5727 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5731 cat >>confdefs.h <<_ACEOF
5732 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5736 cat >>confdefs.h <<_ACEOF
5737 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5740 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5742 cat >>confdefs.h <<_ACEOF
5743 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5747 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5749 cat >>confdefs.h <<_ACEOF
5750 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5757 LLVM_ENUM_TARGETS=""
5758 LLVM_ENUM_ASM_PRINTERS=""
5759 LLVM_ENUM_ASM_PARSERS=""
5760 LLVM_ENUM_DISASSEMBLERS=""
5761 for target_to_build in $TARGETS_TO_BUILD; do
5762 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5763 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5764 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5766 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5767 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5769 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5770 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5779 # Check whether --with-optimize-option was given.
5780 if test "${with_optimize_option+set}" = set; then
5781 withval=$with_optimize_option;
5786 { echo "$as_me:$LINENO: checking optimization flags" >&5
5787 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5790 case "$llvm_cv_os_type" in
5791 FreeBSD) optimize_option=-O2 ;;
5792 MingW) optimize_option=-O2 ;;
5793 *) optimize_option=-O3 ;;
5795 *) optimize_option="$withval" ;;
5797 OPTIMIZE_OPTION=$optimize_option
5799 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5800 echo "${ECHO_T}$optimize_option" >&6; }
5803 # Check whether --with-extra-options was given.
5804 if test "${with_extra_options+set}" = set; then
5805 withval=$with_extra_options;
5811 default) EXTRA_OPTIONS= ;;
5812 *) EXTRA_OPTIONS=$withval ;;
5814 EXTRA_OPTIONS=$EXTRA_OPTIONS
5818 # Check whether --with-extra-ld-options was given.
5819 if test "${with_extra_ld_options+set}" = set; then
5820 withval=$with_extra_ld_options;
5826 default) EXTRA_LD_OPTIONS= ;;
5827 *) EXTRA_LD_OPTIONS=$withval ;;
5829 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5832 # Check whether --enable-bindings was given.
5833 if test "${enable_bindings+set}" = set; then
5834 enableval=$enable_bindings;
5839 BINDINGS_TO_BUILD=""
5840 case "$enableval" in
5841 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5842 all ) BINDINGS_TO_BUILD="ocaml" ;;
5843 none | no) BINDINGS_TO_BUILD="" ;;
5844 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5845 case "$a_binding" in
5846 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5847 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5848 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5849 { (exit 1); exit 1; }; } ;;
5856 # Check whether --with-ocaml-libdir was given.
5857 if test "${with_ocaml_libdir+set}" = set; then
5858 withval=$with_ocaml_libdir;
5864 auto) with_ocaml_libdir="$withval" ;;
5865 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5866 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5867 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5868 { (exit 1); exit 1; }; } ;;
5872 # Check whether --with-clang-srcdir was given.
5873 if test "${with_clang_srcdir+set}" = set; then
5874 withval=$with_clang_srcdir;
5880 -) clang_src_root="" ;;
5881 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5882 *) clang_src_root="$ac_pwd/$withval" ;;
5884 CLANG_SRC_ROOT=$clang_src_root
5888 # Check whether --with-clang-resource-dir was given.
5889 if test "${with_clang_resource_dir+set}" = set; then
5890 withval=$with_clang_resource_dir;
5896 cat >>confdefs.h <<_ACEOF
5897 #define CLANG_RESOURCE_DIR "$withval"
5902 # Check whether --with-c-include-dirs was given.
5903 if test "${with_c_include_dirs+set}" = set; then
5904 withval=$with_c_include_dirs;
5910 cat >>confdefs.h <<_ACEOF
5911 #define C_INCLUDE_DIRS "$withval"
5915 # Clang normally uses the system c++ headers and libraries. With this option,
5916 # clang will use the ones provided by a gcc installation instead. This option should
5917 # be passed the same value that was used with --prefix when configuring gcc.
5919 # Check whether --with-gcc-toolchain was given.
5920 if test "${with_gcc_toolchain+set}" = set; then
5921 withval=$with_gcc_toolchain;
5927 cat >>confdefs.h <<_ACEOF
5928 #define GCC_INSTALL_PREFIX "$withval"
5933 # Check whether --with-default-sysroot was given.
5934 if test "${with_default_sysroot+set}" = set; then
5935 withval=$with_default_sysroot;
5941 cat >>confdefs.h <<_ACEOF
5942 #define DEFAULT_SYSROOT "$withval"
5947 # Check whether --with-binutils-include was given.
5948 if test "${with_binutils_include+set}" = set; then
5949 withval=$with_binutils_include;
5955 default) WITH_BINUTILS_INCDIR=default ;;
5956 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5957 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5958 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5959 { (exit 1); exit 1; }; } ;;
5961 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5962 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5964 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5965 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5966 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5967 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5968 { (exit 1); exit 1; }; };
5973 # Check whether --with-bug-report-url was given.
5974 if test "${with_bug_report_url+set}" = set; then
5975 withval=$with_bug_report_url;
5977 withval="http://llvm.org/bugs/"
5981 cat >>confdefs.h <<_ACEOF
5982 #define BUG_REPORT_URL "$withval"
5986 # Check whether --enable-libffi was given.
5987 if test "${enable_libffi+set}" = set; then
5988 enableval=$enable_libffi; case "$enableval" in
5989 yes) llvm_cv_enable_libffi="yes" ;;
5990 no) llvm_cv_enable_libffi="no" ;;
5991 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5992 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5993 { (exit 1); exit 1; }; } ;;
5996 llvm_cv_enable_libffi=no
6001 # Check whether --with-internal-prefix was given.
6002 if test "${with_internal_prefix+set}" = set; then
6003 withval=$with_internal_prefix;
6008 INTERNAL_PREFIX=$withval
6012 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6013 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6014 if test "${lt_cv_path_NM+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 if test -n "$NM"; then
6018 # Let the user override the test.
6021 lt_nm_to_check="${ac_tool_prefix}nm"
6022 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6023 lt_nm_to_check="$lt_nm_to_check nm"
6025 for lt_tmp_nm in $lt_nm_to_check; do
6026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6027 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6029 test -z "$ac_dir" && ac_dir=.
6030 tmp_nm="$ac_dir/$lt_tmp_nm"
6031 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6032 # Check to see if the nm accepts a BSD-compat flag.
6033 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6034 # nm: unknown option "B" ignored
6035 # Tru64's nm complains that /dev/null is an invalid object file
6036 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6037 */dev/null* | *'Invalid file or object type'*)
6038 lt_cv_path_NM="$tmp_nm -B"
6042 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6044 lt_cv_path_NM="$tmp_nm -p"
6048 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6049 continue # so that we can try to find one that supports BSD flags
6058 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6061 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6062 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6067 { echo "$as_me:$LINENO: checking for GNU make" >&5
6068 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6069 if test "${llvm_cv_gnu_make_command+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 llvm_cv_gnu_make_command=''
6073 for a in "$MAKE" make gmake gnumake ; do
6074 if test -z "$a" ; then continue ; fi ;
6075 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6077 llvm_cv_gnu_make_command=$a ;
6082 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6083 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6084 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6088 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6089 echo "${ECHO_T}\"Not found\"" >&6; };
6093 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6094 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6096 if test "$LN_S" = "ln -s"; then
6097 { echo "$as_me:$LINENO: result: yes" >&5
6098 echo "${ECHO_T}yes" >&6; }
6100 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6101 echo "${ECHO_T}no, using $LN_S" >&6; }
6104 # Extract the first word of "cmp", so it can be a program name with args.
6105 set dummy cmp; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_path_CMP+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6136 if test -n "$CMP"; then
6137 { echo "$as_me:$LINENO: result: $CMP" >&5
6138 echo "${ECHO_T}$CMP" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6145 # Extract the first word of "cp", so it can be a program name with args.
6146 set dummy cp; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_path_CP+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6177 if test -n "$CP"; then
6178 { echo "$as_me:$LINENO: result: $CP" >&5
6179 echo "${ECHO_T}$CP" >&6; }
6181 { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6186 # Extract the first word of "date", so it can be a program name with args.
6187 set dummy date; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_path_DATE+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6217 DATE=$ac_cv_path_DATE
6218 if test -n "$DATE"; then
6219 { echo "$as_me:$LINENO: result: $DATE" >&5
6220 echo "${ECHO_T}$DATE" >&6; }
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6227 # Extract the first word of "find", so it can be a program name with args.
6228 set dummy find; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_path_FIND+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6258 FIND=$ac_cv_path_FIND
6259 if test -n "$FIND"; then
6260 { echo "$as_me:$LINENO: result: $FIND" >&5
6261 echo "${ECHO_T}$FIND" >&6; }
6263 { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6268 # Extract the first word of "grep", so it can be a program name with args.
6269 set dummy grep; ac_word=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_path_GREP+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6299 GREP=$ac_cv_path_GREP
6300 if test -n "$GREP"; then
6301 { echo "$as_me:$LINENO: result: $GREP" >&5
6302 echo "${ECHO_T}$GREP" >&6; }
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6309 # Extract the first word of "mkdir", so it can be a program name with args.
6310 set dummy mkdir; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_path_MKDIR+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6340 MKDIR=$ac_cv_path_MKDIR
6341 if test -n "$MKDIR"; then
6342 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6343 echo "${ECHO_T}$MKDIR" >&6; }
6345 { echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6; }
6350 # Extract the first word of "mv", so it can be a program name with args.
6351 set dummy mv; ac_word=$2
6352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6354 if test "${ac_cv_path_MV+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6382 if test -n "$MV"; then
6383 { echo "$as_me:$LINENO: result: $MV" >&5
6384 echo "${ECHO_T}$MV" >&6; }
6386 { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_RANLIB+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 if test -n "$RANLIB"; then
6400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 RANLIB=$ac_cv_prog_RANLIB
6420 if test -n "$RANLIB"; then
6421 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6422 echo "${ECHO_T}$RANLIB" >&6; }
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6430 if test -z "$ac_cv_prog_RANLIB"; then
6431 ac_ct_RANLIB=$RANLIB
6432 # Extract the first word of "ranlib", so it can be a program name with args.
6433 set dummy ranlib; ac_word=$2
6434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 if test -n "$ac_ct_RANLIB"; then
6440 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_ac_ct_RANLIB="ranlib"
6450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6460 if test -n "$ac_ct_RANLIB"; then
6461 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6462 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6464 { echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6; }
6468 if test "x$ac_ct_RANLIB" = x; then
6471 case $cross_compiling:$ac_tool_warned in
6473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6474 whose name does not start with the host triplet. If you think this
6475 configuration is useful to you, please write to autoconf@gnu.org." >&5
6476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6477 whose name does not start with the host triplet. If you think this
6478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6479 ac_tool_warned=yes ;;
6481 RANLIB=$ac_ct_RANLIB
6484 RANLIB="$ac_cv_prog_RANLIB"
6487 if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}ar; ac_word=$2
6490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492 if test "${ac_cv_prog_AR+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 if test -n "$AR"; then
6496 ac_cv_prog_AR="$AR" # Let the user override the test.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_AR="${ac_tool_prefix}ar"
6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 if test -n "$AR"; then
6517 { echo "$as_me:$LINENO: result: $AR" >&5
6518 echo "${ECHO_T}$AR" >&6; }
6520 { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6526 if test -z "$ac_cv_prog_AR"; then
6528 # Extract the first word of "ar", so it can be a program name with args.
6529 set dummy ar; ac_word=$2
6530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 if test -n "$ac_ct_AR"; then
6536 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_ac_ct_AR="ar"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6556 if test -n "$ac_ct_AR"; then
6557 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6558 echo "${ECHO_T}$ac_ct_AR" >&6; }
6560 { echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6; }
6564 if test "x$ac_ct_AR" = x; then
6567 case $cross_compiling:$ac_tool_warned in
6569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6570 whose name does not start with the host triplet. If you think this
6571 configuration is useful to you, please write to autoconf@gnu.org." >&5
6572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6573 whose name does not start with the host triplet. If you think this
6574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6575 ac_tool_warned=yes ;;
6583 # Extract the first word of "rm", so it can be a program name with args.
6584 set dummy rm; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_path_RM+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6615 if test -n "$RM"; then
6616 { echo "$as_me:$LINENO: result: $RM" >&5
6617 echo "${ECHO_T}$RM" >&6; }
6619 { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6624 # Extract the first word of "sed", so it can be a program name with args.
6625 set dummy sed; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_SED+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6656 if test -n "$SED"; then
6657 { echo "$as_me:$LINENO: result: $SED" >&5
6658 echo "${ECHO_T}$SED" >&6; }
6660 { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6665 # Extract the first word of "tar", so it can be a program name with args.
6666 set dummy tar; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_path_TAR+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6697 if test -n "$TAR"; then
6698 { echo "$as_me:$LINENO: result: $TAR" >&5
6699 echo "${ECHO_T}$TAR" >&6; }
6701 { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6706 # Extract the first word of "pwd", so it can be a program name with args.
6707 set dummy pwd; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_BINPWD+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6737 BINPWD=$ac_cv_path_BINPWD
6738 if test -n "$BINPWD"; then
6739 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6740 echo "${ECHO_T}$BINPWD" >&6; }
6742 { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6748 # Extract the first word of "Graphviz", so it can be a program name with args.
6749 set dummy Graphviz; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6779 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6780 if test -n "$GRAPHVIZ"; then
6781 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6782 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6789 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6791 cat >>confdefs.h <<\_ACEOF
6792 #define HAVE_GRAPHVIZ 1
6795 if test "$llvm_cv_os_type" = "MingW" ; then
6796 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6799 cat >>confdefs.h <<_ACEOF
6800 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6804 # Extract the first word of "dot", so it can be a program name with args.
6805 set dummy dot; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_DOT+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6836 if test -n "$DOT"; then
6837 { echo "$as_me:$LINENO: result: $DOT" >&5
6838 echo "${ECHO_T}$DOT" >&6; }
6840 { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6845 if test "$DOT" != "echo dot" ; then
6847 cat >>confdefs.h <<\_ACEOF
6851 if test "$llvm_cv_os_type" = "MingW" ; then
6852 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6855 cat >>confdefs.h <<_ACEOF
6856 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6860 # Extract the first word of "fdp", so it can be a program name with args.
6861 set dummy fdp; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_path_FDP+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6892 if test -n "$FDP"; then
6893 { echo "$as_me:$LINENO: result: $FDP" >&5
6894 echo "${ECHO_T}$FDP" >&6; }
6896 { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6901 if test "$FDP" != "echo fdp" ; then
6903 cat >>confdefs.h <<\_ACEOF
6907 if test "$llvm_cv_os_type" = "MingW" ; then
6908 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6911 cat >>confdefs.h <<_ACEOF
6912 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6916 # Extract the first word of "neato", so it can be a program name with args.
6917 set dummy neato; ac_word=$2
6918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6920 if test "${ac_cv_path_NEATO+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6947 NEATO=$ac_cv_path_NEATO
6948 if test -n "$NEATO"; then
6949 { echo "$as_me:$LINENO: result: $NEATO" >&5
6950 echo "${ECHO_T}$NEATO" >&6; }
6952 { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6957 if test "$NEATO" != "echo neato" ; then
6959 cat >>confdefs.h <<\_ACEOF
6960 #define HAVE_NEATO 1
6963 if test "$llvm_cv_os_type" = "MingW" ; then
6964 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6967 cat >>confdefs.h <<_ACEOF
6968 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6972 # Extract the first word of "twopi", so it can be a program name with args.
6973 set dummy twopi; ac_word=$2
6974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6976 if test "${ac_cv_path_TWOPI+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7003 TWOPI=$ac_cv_path_TWOPI
7004 if test -n "$TWOPI"; then
7005 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7006 echo "${ECHO_T}$TWOPI" >&6; }
7008 { echo "$as_me:$LINENO: result: no" >&5
7009 echo "${ECHO_T}no" >&6; }
7013 if test "$TWOPI" != "echo twopi" ; then
7015 cat >>confdefs.h <<\_ACEOF
7016 #define HAVE_TWOPI 1
7019 if test "$llvm_cv_os_type" = "MingW" ; then
7020 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7023 cat >>confdefs.h <<_ACEOF
7024 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7028 # Extract the first word of "circo", so it can be a program name with args.
7029 set dummy circo; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_path_CIRCO+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7047 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7059 CIRCO=$ac_cv_path_CIRCO
7060 if test -n "$CIRCO"; then
7061 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7062 echo "${ECHO_T}$CIRCO" >&6; }
7064 { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7069 if test "$CIRCO" != "echo circo" ; then
7071 cat >>confdefs.h <<\_ACEOF
7072 #define HAVE_CIRCO 1
7075 if test "$llvm_cv_os_type" = "MingW" ; then
7076 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7079 cat >>confdefs.h <<_ACEOF
7080 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7084 for ac_prog in gv gsview32
7086 # Extract the first word of "$ac_prog", so it can be a program name with args.
7087 set dummy $ac_prog; ac_word=$2
7088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090 if test "${ac_cv_path_GV+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 if test -n "$GV"; then
7118 { echo "$as_me:$LINENO: result: $GV" >&5
7119 echo "${ECHO_T}$GV" >&6; }
7121 { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7126 test -n "$GV" && break
7128 test -n "$GV" || GV="echo gv"
7130 if test "$GV" != "echo gv" ; then
7132 cat >>confdefs.h <<\_ACEOF
7136 if test "$llvm_cv_os_type" = "MingW" ; then
7137 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7140 cat >>confdefs.h <<_ACEOF
7141 #define LLVM_PATH_GV "$GV${EXEEXT}"
7145 # Extract the first word of "dotty", so it can be a program name with args.
7146 set dummy dotty; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_DOTTY+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7176 DOTTY=$ac_cv_path_DOTTY
7177 if test -n "$DOTTY"; then
7178 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7179 echo "${ECHO_T}$DOTTY" >&6; }
7181 { echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6; }
7186 if test "$DOTTY" != "echo dotty" ; then
7188 cat >>confdefs.h <<\_ACEOF
7189 #define HAVE_DOTTY 1
7192 if test "$llvm_cv_os_type" = "MingW" ; then
7193 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7196 cat >>confdefs.h <<_ACEOF
7197 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7201 # Extract the first word of "xdot.py", so it can be a program name with args.
7202 set dummy xdot.py; ac_word=$2
7203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7232 XDOT_PY=$ac_cv_path_XDOT_PY
7233 if test -n "$XDOT_PY"; then
7234 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7235 echo "${ECHO_T}$XDOT_PY" >&6; }
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7242 if test "$XDOT_PY" != "echo xdot.py" ; then
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_XDOT_PY 1
7248 if test "$llvm_cv_os_type" = "MingW" ; then
7249 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7252 cat >>confdefs.h <<_ACEOF
7253 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7258 # Find a good install program. We prefer a C program (faster),
7259 # so one script is as good as another. But avoid the broken or
7260 # incompatible versions:
7261 # SysV /etc/install, /usr/sbin/install
7262 # SunOS /usr/etc/install
7263 # IRIX /sbin/install
7265 # AmigaOS /C/install, which installs bootblocks on floppy discs
7266 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7269 # OS/2's system install, which has a completely different semantic
7270 # ./install, which can be erroneously created by make from ./install.sh.
7271 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7272 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7273 if test -z "$INSTALL"; then
7274 if test "${ac_cv_path_install+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 # Account for people who put trailing slashes in PATH elements.
7284 ./ | .// | /cC/* | \
7285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7286 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7289 # OSF1 and SCO ODT 3.0 have their own names for install.
7290 # Don't use installbsd from OSF since it installs stuff as root
7292 for ac_prog in ginstall scoinst install; do
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7295 if test $ac_prog = install &&
7296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7297 # AIX install. It has an incompatible calling convention.
7299 elif test $ac_prog = install &&
7300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7301 # program-specific install script used by HP pwplus--don't use.
7304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7317 if test "${ac_cv_path_install+set}" = set; then
7318 INSTALL=$ac_cv_path_install
7320 # As a last resort, use the slow shell script. Don't cache a
7321 # value for INSTALL within a source directory, because that will
7322 # break other packages using the cache if that directory is
7323 # removed, or if the value is a relative name.
7324 INSTALL=$ac_install_sh
7327 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7328 echo "${ECHO_T}$INSTALL" >&6; }
7330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7331 # It thinks the first close brace ends the variable substitution.
7332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7339 [\\/$]* | ?:[\\/]* ) ;;
7340 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7343 # Extract the first word of "bzip2", so it can be a program name with args.
7344 set dummy bzip2; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_BZIP2+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 BZIP2=$ac_cv_path_BZIP2
7374 if test -n "$BZIP2"; then
7375 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7376 echo "${ECHO_T}$BZIP2" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7383 # Extract the first word of "cat", so it can be a program name with args.
7384 set dummy cat; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_path_CAT+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7402 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 if test -n "$CAT"; then
7415 { echo "$as_me:$LINENO: result: $CAT" >&5
7416 echo "${ECHO_T}$CAT" >&6; }
7418 { echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6; }
7423 # Extract the first word of "doxygen", so it can be a program name with args.
7424 set dummy doxygen; ac_word=$2
7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 DOXYGEN=$ac_cv_path_DOXYGEN
7454 if test -n "$DOXYGEN"; then
7455 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7456 echo "${ECHO_T}$DOXYGEN" >&6; }
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7463 # Extract the first word of "groff", so it can be a program name with args.
7464 set dummy groff; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_GROFF+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 GROFF=$ac_cv_path_GROFF
7494 if test -n "$GROFF"; then
7495 { echo "$as_me:$LINENO: result: $GROFF" >&5
7496 echo "${ECHO_T}$GROFF" >&6; }
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 # Extract the first word of "gzip", so it can be a program name with args.
7504 set dummy gzip; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 GZIPBIN=$ac_cv_path_GZIPBIN
7534 if test -n "$GZIPBIN"; then
7535 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7536 echo "${ECHO_T}$GZIPBIN" >&6; }
7538 { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7543 # Extract the first word of "pdfroff", so it can be a program name with args.
7544 set dummy pdfroff; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_PDFROFF+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 PDFROFF=$ac_cv_path_PDFROFF
7574 if test -n "$PDFROFF"; then
7575 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7576 echo "${ECHO_T}$PDFROFF" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7583 # Extract the first word of "zip", so it can be a program name with args.
7584 set dummy zip; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_ZIP+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 if test -n "$ZIP"; then
7615 { echo "$as_me:$LINENO: result: $ZIP" >&5
7616 echo "${ECHO_T}$ZIP" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7623 for ac_prog in ocamlc
7625 # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy $ac_prog; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_OCAMLC+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 OCAMLC=$ac_cv_path_OCAMLC
7656 if test -n "$OCAMLC"; then
7657 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7658 echo "${ECHO_T}$OCAMLC" >&6; }
7660 { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7665 test -n "$OCAMLC" && break
7668 for ac_prog in ocamlopt
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 OCAMLOPT=$ac_cv_path_OCAMLOPT
7701 if test -n "$OCAMLOPT"; then
7702 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7703 echo "${ECHO_T}$OCAMLOPT" >&6; }
7705 { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7710 test -n "$OCAMLOPT" && break
7713 for ac_prog in ocamldep
7715 # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 OCAMLDEP=$ac_cv_path_OCAMLDEP
7746 if test -n "$OCAMLDEP"; then
7747 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7748 echo "${ECHO_T}$OCAMLDEP" >&6; }
7750 { echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6; }
7755 test -n "$OCAMLDEP" && break
7758 for ac_prog in ocamldoc
7760 # Extract the first word of "$ac_prog", so it can be a program name with args.
7761 set dummy $ac_prog; ac_word=$2
7762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 OCAMLDOC=$ac_cv_path_OCAMLDOC
7791 if test -n "$OCAMLDOC"; then
7792 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7793 echo "${ECHO_T}$OCAMLDOC" >&6; }
7795 { echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6; }
7800 test -n "$OCAMLDOC" && break
7803 for ac_prog in gas as
7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7809 if test "${ac_cv_path_GAS+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7824 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 if test -n "$GAS"; then
7837 { echo "$as_me:$LINENO: result: $GAS" >&5
7838 echo "${ECHO_T}$GAS" >&6; }
7840 { echo "$as_me:$LINENO: result: no" >&5
7841 echo "${ECHO_T}no" >&6; }
7845 test -n "$GAS" && break
7849 { echo "$as_me:$LINENO: checking for linker version" >&5
7850 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7851 if test "${llvm_cv_link_version+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 version_string="$(ld -v 2>&1 | head -1)"
7858 if (echo "$version_string" | grep -q "ld64"); then
7859 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7861 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7865 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7866 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7868 cat >>confdefs.h <<_ACEOF
7869 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7874 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7875 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7876 if test "${llvm_cv_link_use_r+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 ac_cpp='$CPP $CPPFLAGS'
7881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7886 CFLAGS="$CFLAGS -Wl,-R."
7887 cat >conftest.$ac_ext <<_ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7902 rm -f conftest.$ac_objext conftest$ac_exeext
7903 if { (ac_try="$ac_link"
7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906 *) ac_try_echo=$ac_try;;
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909 (eval "$ac_link") 2>conftest.er1
7911 grep -v '^ *+' conftest.er1 >conftest.err
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7917 { (case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_try") 2>&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; } &&
7926 { ac_try='test -s conftest$ac_exeext'
7927 { (case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_try") 2>&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; }; then
7936 llvm_cv_link_use_r=yes
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 llvm_cv_link_use_r=no
7944 rm -f core conftest.err conftest.$ac_objext \
7945 conftest$ac_exeext conftest.$ac_ext
7948 ac_cpp='$CPP $CPPFLAGS'
7949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7955 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7956 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7957 if test "$llvm_cv_link_use_r" = yes ; then
7959 cat >>confdefs.h <<\_ACEOF
7960 #define HAVE_LINK_R 1
7966 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7967 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7968 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 ac_cpp='$CPP $CPPFLAGS'
7973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7978 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7979 cat >conftest.$ac_ext <<_ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (ac_try="$ac_link"
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_link") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8009 { (case "(($ac_try" in
8010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011 *) ac_try_echo=$ac_try;;
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014 (eval "$ac_try") 2>&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; } &&
8018 { ac_try='test -s conftest$ac_exeext'
8019 { (case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_try") 2>&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 llvm_cv_link_use_export_dynamic=yes
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 llvm_cv_link_use_export_dynamic=no
8036 rm -f core conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
8040 ac_cpp='$CPP $CPPFLAGS'
8041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8047 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8048 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8049 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8051 cat >>confdefs.h <<\_ACEOF
8052 #define HAVE_LINK_EXPORT_DYNAMIC 1
8058 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8059 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8060 if test "${llvm_cv_link_use_version_script+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 ac_cpp='$CPP $CPPFLAGS'
8065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071 # The following code is from the autoconf manual,
8072 # "11.13: Limitations of Usual Tools".
8073 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8074 # Use mktemp if possible; otherwise fall back on mkdir,
8075 # with $RANDOM to make collisions less likely.
8079 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8081 test -n "$tmp" && test -d "$tmp"
8083 tmp=$TMPDIR/foo$$-$RANDOM
8084 (umask 077 && mkdir "$tmp")
8087 echo "{" > "$tmp/export.map"
8088 echo " global: main;" >> "$tmp/export.map"
8089 echo " local: *;" >> "$tmp/export.map"
8090 echo "};" >> "$tmp/export.map"
8092 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8093 cat >conftest.$ac_ext <<_ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (ac_try="$ac_link"
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_link") 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8123 { (case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_try") 2>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try='test -s conftest$ac_exeext'
8133 { (case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_try") 2>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 llvm_cv_link_use_version_script=yes
8144 echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8147 llvm_cv_link_use_version_script=no
8150 rm -f core conftest.err conftest.$ac_objext \
8151 conftest$ac_exeext conftest.$ac_ext
8152 rm "$tmp/export.map"
8156 ac_cpp='$CPP $CPPFLAGS'
8157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8164 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8165 if test "$llvm_cv_link_use_version_script" = yes ; then
8166 HAVE_LINK_VERSION_SCRIPT=1
8173 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8174 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8175 if test "${ac_cv_c_const+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8188 /* FIXME: Include the comments suggested by Paul. */
8190 /* Ultrix mips cc rejects this. */
8191 typedef int charset[2];
8193 /* SunOS 4.1.1 cc rejects this. */
8194 char const *const *ccp;
8196 /* NEC SVR4.0.2 mips cc rejects this. */
8197 struct point {int x, y;};
8198 static struct point const zero = {0,0};
8199 /* AIX XL C 1.02.0.0 rejects this.
8200 It does not let you subtract one const X* pointer from another in
8201 an arm of an if-expression whose if-part is not a constant
8203 const char *g = "string";
8204 ccp = &g + (g ? g-g : 0);
8205 /* HPUX 7.0 cc rejects these. */
8208 ccp = (char const *const *) p;
8209 { /* SCO 3.2v4 cc rejects this. */
8211 char const *s = 0 ? (char *) 0 : (char const *) 0;
8216 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8218 const int *foo = &x[0];
8221 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8222 typedef const int *iptr;
8226 { /* AIX XL C 1.02.0.0 rejects this saying
8227 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8228 struct s { int j; const int *ap[3]; };
8229 struct s *b; b->j = 5;
8231 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8235 return !x[0] && !zero.x;
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_compile") 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8257 { (case "(($ac_try" in
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_try") 2>&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try='test -s conftest.$ac_objext'
8267 { (case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_try") 2>&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8278 echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8287 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8288 if test $ac_cv_c_const = no; then
8290 cat >>confdefs.h <<\_ACEOF
8302 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8303 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8304 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8305 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 cat >conftest.$ac_ext <<_ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 #include <sys/types.h>
8327 rm -f conftest.$ac_objext
8328 if { (ac_try="$ac_compile"
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_compile") 2>conftest.er1
8336 grep -v '^ *+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342 { (case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_try") 2>&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; } &&
8351 { ac_try='test -s conftest.$ac_objext'
8352 { (case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_try") 2>&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 eval "$as_ac_Header=yes"
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8366 eval "$as_ac_Header=no"
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 ac_res=`eval echo '${'$as_ac_Header'}'`
8372 { echo "$as_me:$LINENO: result: $ac_res" >&5
8373 echo "${ECHO_T}$ac_res" >&6; }
8374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8375 cat >>confdefs.h <<_ACEOF
8376 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8379 ac_header_dirent=$ac_hdr; break
8383 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8384 if test $ac_header_dirent = dirent.h; then
8385 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8386 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8387 if test "${ac_cv_search_opendir+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 ac_func_search_save_LIBS=$LIBS
8391 cat >conftest.$ac_ext <<_ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8398 /* Override any GCC internal prototype to avoid an error.
8399 Use char because int might match the return type of a GCC
8400 builtin and then its argument prototype would still apply. */
8413 for ac_lib in '' dir; do
8414 if test -z "$ac_lib"; then
8415 ac_res="none required"
8418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (ac_try="$ac_link"
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_link") 2>conftest.er1
8429 grep -v '^ *+' conftest.er1 >conftest.err
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8435 { (case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_try") 2>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; } &&
8444 { ac_try='test -s conftest$ac_exeext'
8445 { (case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_try") 2>&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_cv_search_opendir=$ac_res
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8462 rm -f core conftest.err conftest.$ac_objext \
8464 if test "${ac_cv_search_opendir+set}" = set; then
8468 if test "${ac_cv_search_opendir+set}" = set; then
8471 ac_cv_search_opendir=no
8474 LIBS=$ac_func_search_save_LIBS
8476 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8477 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8478 ac_res=$ac_cv_search_opendir
8479 if test "$ac_res" != no; then
8480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8485 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8486 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8487 if test "${ac_cv_search_opendir+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 ac_func_search_save_LIBS=$LIBS
8491 cat >conftest.$ac_ext <<_ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8498 /* Override any GCC internal prototype to avoid an error.
8499 Use char because int might match the return type of a GCC
8500 builtin and then its argument prototype would still apply. */
8513 for ac_lib in '' x; do
8514 if test -z "$ac_lib"; then
8515 ac_res="none required"
8518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (ac_try="$ac_link"
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_link") 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8535 { (case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_try") 2>&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; } &&
8544 { ac_try='test -s conftest$ac_exeext'
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_try") 2>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 ac_cv_search_opendir=$ac_res
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8562 rm -f core conftest.err conftest.$ac_objext \
8564 if test "${ac_cv_search_opendir+set}" = set; then
8568 if test "${ac_cv_search_opendir+set}" = set; then
8571 ac_cv_search_opendir=no
8574 LIBS=$ac_func_search_save_LIBS
8576 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8577 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8578 ac_res=$ac_cv_search_opendir
8579 if test "$ac_res" != no; then
8580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8587 for ac_header in dlfcn.h
8589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 ac_res=`eval echo '${'$as_ac_Header'}'`
8597 { echo "$as_me:$LINENO: result: $ac_res" >&5
8598 echo "${ECHO_T}$ac_res" >&6; }
8600 # Is the header compilable?
8601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8603 cat >conftest.$ac_ext <<_ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 $ac_includes_default
8610 #include <$ac_header>
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8621 grep -v '^ *+' conftest.er1 >conftest.err
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } &&
8626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8627 { (case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_try") 2>&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8646 ac_header_compiler=yes
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8651 ac_header_compiler=no
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8656 echo "${ECHO_T}$ac_header_compiler" >&6; }
8658 # Is the header present?
8659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 #include <$ac_header>
8669 if { (ac_try="$ac_cpp conftest.$ac_ext"
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8677 grep -v '^ *+' conftest.er1 >conftest.err
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } >/dev/null; then
8682 if test -s conftest.err; then
8683 ac_cpp_err=$ac_c_preproc_warn_flag
8684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8691 if test -z "$ac_cpp_err"; then
8692 ac_header_preproc=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_header_preproc=no
8700 rm -f conftest.err conftest.$ac_ext
8701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8702 echo "${ECHO_T}$ac_header_preproc" >&6; }
8704 # So? What about this header?
8705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8711 ac_header_preproc=yes
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8727 ## ------------------------------------ ##
8728 ## Report this to http://llvm.org/bugs/ ##
8729 ## ------------------------------------ ##
8731 ) | sed "s/^/$as_me: WARNING: /" >&2
8734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 eval "$as_ac_Header=\$ac_header_preproc"
8741 ac_res=`eval echo '${'$as_ac_Header'}'`
8742 { echo "$as_me:$LINENO: result: $ac_res" >&5
8743 echo "${ECHO_T}$ac_res" >&6; }
8746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755 # Check whether --enable-ltdl-install was given.
8756 if test "${enable_ltdl_install+set}" = set; then
8757 enableval=$enable_ltdl_install;
8763 if test x"${enable_ltdl_install-no}" != xno; then
8765 INSTALL_LTDL_FALSE='#'
8767 INSTALL_LTDL_TRUE='#'
8773 if test x"${enable_ltdl_convenience-no}" != xno; then
8774 CONVENIENCE_LTDL_TRUE=
8775 CONVENIENCE_LTDL_FALSE='#'
8777 CONVENIENCE_LTDL_TRUE='#'
8778 CONVENIENCE_LTDL_FALSE=
8782 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8783 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8785 libname_spec='lib$name'
8793 shlibpath_overrides_runpath=unknown
8795 dynamic_linker="$host_os ld.so"
8796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8797 if test "$GCC" = yes; then
8798 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8799 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8800 # if the path contains ";" then we assume it to be the separator
8801 # otherwise default to the standard path separator (i.e. ":") - it is
8802 # assumed that no part of a normal pathname contains ";" but that should
8803 # okay in the real world where ";" in dirpaths is itself problematic.
8804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8809 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8811 need_lib_prefix=unknown
8812 hardcode_into_libs=no
8814 # when you set need_version to no, make sure it does not cause -set_version
8815 # flags to be left without arguments
8816 need_version=unknown
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8822 shlibpath_var=LIBPATH
8824 # AIX 3 has no versioning support, so we append a major version to the name.
8825 soname_spec='${libname}${release}${shared_ext}$major'
8832 hardcode_into_libs=yes
8833 if test "$host_cpu" = ia64; then
8834 # AIX 5 supports IA64
8835 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8836 shlibpath_var=LD_LIBRARY_PATH
8838 # With GCC up to 2.95.x, collect2 would create an import file
8839 # for dependence libraries. The import file would start with
8840 # the line `#! .'. This would cause the generated library to
8841 # depend on `.', always an invalid library. This was fixed in
8842 # development snapshots of GCC prior to 3.0.
8844 aix4 | aix4.[01] | aix4.[01].*)
8845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8847 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8854 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8855 # soname into executable. Probably we can add versioning support to
8856 # collect2, so additional links can be useful in future.
8857 if test "$aix_use_runtimelinking" = yes; then
8858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8859 # instead of lib<name>.a to let people know that these are not
8860 # typical AIX shared libraries.
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 # We preserve .a as extension for shared libraries through AIX4.2
8864 # and later when we are not doing run time linking.
8865 library_names_spec='${libname}${release}.a $libname.a'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8868 shlibpath_var=LIBPATH
8873 library_names_spec='$libname.ixlibrary $libname.a'
8874 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8875 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'
8879 library_names_spec='${libname}${shared_ext}'
8880 dynamic_linker="$host_os ld.so"
8881 shlibpath_var=LIBRARY_PATH
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8888 soname_spec='${libname}${release}${shared_ext}$major'
8889 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8890 shlibpath_var=LD_LIBRARY_PATH
8891 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8892 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8893 # the default ld.so.conf also contains /usr/contrib/lib and
8894 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8895 # libtool to hard-code these into programs
8898 cygwin* | mingw* | pw32*)
8899 version_type=windows
8904 case $GCC,$host_os in
8905 yes,cygwin* | yes,mingw* | yes,pw32*)
8906 library_names_spec='$libname.dll.a'
8907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8908 postinstall_cmds='base_file=`basename \${file}`~
8909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8910 dldir=$destdir/`dirname \$dlpath`~
8911 test -d \$dldir || mkdir -p \$dldir~
8912 $install_prog $dir/$dlname \$dldir/$dlname~
8913 chmod a+x \$dldir/$dlname'
8914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8915 dlpath=$dir/\$dldll~
8917 shlibpath_overrides_runpath=yes
8921 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8922 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8923 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8926 # MinGW DLLs use traditional 'lib' prefix
8927 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8929 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8930 # It is most probably a Windows format PATH printed by
8931 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8932 # path with ; separators, and with drive letters. We can handle the
8933 # drive letters (cygwin fileutils understands them), so leave them,
8934 # especially as we might pass files found there to a mingw objdump,
8935 # which wouldn't understand a cygwinified path. Ahh.
8936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8942 # pw32 DLLs use 'pw' prefix rather than 'lib'
8943 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8949 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8952 dynamic_linker='Win32 ld.exe'
8953 # FIXME: first we should search . and the directory the executable is in
8957 darwin* | rhapsody*)
8958 dynamic_linker="$host_os dyld"
8962 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8963 soname_spec='${libname}${release}${major}$shared_ext'
8964 shlibpath_overrides_runpath=yes
8965 shlibpath_var=DYLD_LIBRARY_PATH
8966 shrext_cmds='.dylib'
8967 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8968 if test "$GCC" = yes; then
8969 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"`
8971 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 shlibpath_var=LD_LIBRARY_PATH
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8994 soname_spec='${libname}${release}${shared_ext}$major'
8995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=no
8997 hardcode_into_libs=yes
8998 dynamic_linker='GNU ld.so'
9001 freebsd* | dragonfly*)
9002 # DragonFly does not have aout. When/if they implement a new
9003 # versioning mechanism, adjust this.
9004 if test -x /usr/bin/objformat; then
9005 objformat=`/usr/bin/objformat`
9008 freebsd[123].*) objformat=aout ;;
9012 version_type=freebsd-$objformat
9013 case $version_type in
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9024 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9029 freebsd3.[01]* | freebsdelf3.[01]*)
9030 shlibpath_overrides_runpath=yes
9031 hardcode_into_libs=yes
9033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9035 shlibpath_overrides_runpath=no
9036 hardcode_into_libs=yes
9038 freebsd*) # from 4.6 on
9039 shlibpath_overrides_runpath=yes
9040 hardcode_into_libs=yes
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9050 soname_spec='${libname}${release}${shared_ext}$major'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 hardcode_into_libs=yes
9055 hpux9* | hpux10* | hpux11*)
9056 # Give a soname corresponding to the major version so that dld.sl refuses to
9057 # link against other versions.
9064 hardcode_into_libs=yes
9065 dynamic_linker="$host_os dld.so"
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 if test "X$HPUX_IA64_MODE" = X32; then
9071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9079 hardcode_into_libs=yes
9080 dynamic_linker="$host_os dld.sl"
9081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9090 dynamic_linker="$host_os dld.sl"
9091 shlibpath_var=SHLIB_PATH
9092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9098 postinstall_cmds='chmod 555 $lib'
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9108 shlibpath_var=LD_LIBRARY_PATH
9109 shlibpath_overrides_runpath=no
9110 hardcode_into_libs=yes
9113 irix5* | irix6* | nonstopux*)
9115 nonstopux*) version_type=nonstopux ;;
9117 if test "$lt_cv_prog_gnu_ld" = yes; then
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9128 irix5* | nonstopux*)
9132 case $LD in # libtool.m4 will add one of these switches to LD
9133 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9134 libsuff= shlibsuff= libmagic=32-bit;;
9135 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9136 libsuff=32 shlibsuff=N32 libmagic=N32;;
9137 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9138 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9139 *) libsuff= shlibsuff= libmagic=never-match;;
9143 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9144 shlibpath_overrides_runpath=no
9145 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9146 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9147 hardcode_into_libs=yes
9150 # No shared lib support for Linux oldld, aout, or coff.
9151 linux*oldld* | linux*aout* | linux*coff*)
9155 # This must be Linux ELF.
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 shlibpath_overrides_runpath=no
9165 # This implies no fast_install, which is unacceptable.
9166 # Some rework will be needed to allow for fast_install
9167 # before this can be enabled.
9168 hardcode_into_libs=yes
9170 # Append ld.so.conf contents to the search path
9171 if test -f /etc/ld.so.conf; then
9172 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' ' '`
9173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9176 # We used to test for /lib/ld.so.1 and disable shared libraries on
9177 # powerpc, because MkLinux only supported shared libraries with the
9178 # GNU dynamic linker. Since this was broken with cross compilers,
9179 # most powerpc-linux boxes support dynamic linking these days and
9180 # people can always --disable-shared, the test was removed, and we
9181 # assume the GNU/Linux dynamic linker is in use.
9182 dynamic_linker='GNU/Linux ld.so'
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=no
9193 hardcode_into_libs=yes
9194 dynamic_linker='GNU ld.so'
9201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9204 dynamic_linker='NetBSD (a.out) ld.so'
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 dynamic_linker='NetBSD ld.elf_so'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=yes
9212 hardcode_into_libs=yes
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 shlibpath_overrides_runpath=yes
9234 sys_lib_dlsearch_path_spec="/usr/lib"
9236 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9238 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9239 *) need_version=no ;;
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9243 shlibpath_var=LD_LIBRARY_PATH
9244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9246 openbsd2.[89] | openbsd2.[89].*)
9247 shlibpath_overrides_runpath=no
9250 shlibpath_overrides_runpath=yes
9254 shlibpath_overrides_runpath=yes
9259 libname_spec='$name'
9262 library_names_spec='$libname${shared_ext} $libname.a'
9263 dynamic_linker='OS/2 ld.exe'
9264 shlibpath_var=LIBPATH
9267 osf3* | osf4* | osf5*)
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=yes
9286 hardcode_into_libs=yes
9287 # ldd complains unless libraries are executable
9288 postinstall_cmds='chmod +x $lib'
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 shlibpath_overrides_runpath=yes
9297 if test "$with_gnu_ld" = yes; then
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 case $host_vendor in
9310 shlibpath_overrides_runpath=no
9312 export_dynamic_flag_spec='${wl}-Blargedynsym'
9313 runpath_var=LD_RUN_PATH
9321 shlibpath_overrides_runpath=no
9322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9328 if test -d /usr/nec ;then
9330 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9331 soname_spec='$libname${shared_ext}.$major'
9332 shlibpath_var=LD_LIBRARY_PATH
9336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9337 version_type=freebsd-elf
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 hardcode_into_libs=yes
9344 if test "$with_gnu_ld" = yes; then
9345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9346 shlibpath_overrides_runpath=no
9348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9349 shlibpath_overrides_runpath=yes
9352 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9356 sys_lib_dlsearch_path_spec='/usr/lib'
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 shlibpath_var=LD_LIBRARY_PATH
9370 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9371 echo "${ECHO_T}$dynamic_linker" >&6; }
9372 test "$dynamic_linker" = no && can_build_shared=no
9374 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9375 if test "$GCC" = yes; then
9376 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9380 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9381 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9382 if test "${libltdl_cv_shlibext+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 eval libltdl_cv_shlibext=$shrext_cmds
9390 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9391 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9392 if test -n "$libltdl_cv_shlibext"; then
9394 cat >>confdefs.h <<_ACEOF
9395 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9401 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9402 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9403 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 libltdl_cv_shlibpath_var="$shlibpath_var"
9408 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9409 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9410 if test -n "$libltdl_cv_shlibpath_var"; then
9412 cat >>confdefs.h <<_ACEOF
9413 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9419 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9420 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9421 if test "${libltdl_cv_sys_search_path+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9426 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9427 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9428 if test -n "$libltdl_cv_sys_search_path"; then
9430 for dir in $libltdl_cv_sys_search_path; do
9431 if test -z "$sys_search_path"; then
9432 sys_search_path="$dir"
9434 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9438 cat >>confdefs.h <<_ACEOF
9439 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9444 { echo "$as_me:$LINENO: checking for objdir" >&5
9445 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9446 if test "${libltdl_cv_objdir+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 libltdl_cv_objdir="$objdir"
9450 if test -n "$objdir"; then
9453 rm -f .libs 2>/dev/null
9454 mkdir .libs 2>/dev/null
9455 if test -d .libs; then
9456 libltdl_cv_objdir=.libs
9458 # MS-DOS does not allow filenames that begin with a dot.
9459 libltdl_cv_objdir=_libs
9461 rmdir .libs 2>/dev/null
9465 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9466 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9468 cat >>confdefs.h <<_ACEOF
9469 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9477 # Check for command to grab the raw symbol name followed by C symbol from nm.
9478 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9479 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9480 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 # These are sane defaults that work on at least a few old systems.
9485 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9487 # Character class describing NM global symbol codes.
9488 symcode='[BCDEGRST]'
9490 # Regexp to match symbols that can be accessed directly from C.
9491 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9493 # Transform an extracted symbol line into a proper C declaration
9494 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9496 # Transform an extracted symbol line into symbol name and symbol address
9497 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'"
9499 # Define system-specific variables.
9504 cygwin* | mingw* | pw32*)
9505 symcode='[ABCDGISTW]'
9507 hpux*) # Its linker distinguishes data from code symbols
9508 if test "$host_cpu" = ia64; then
9509 symcode='[ABCDEGRST]'
9511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9512 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'"
9515 if test "$host_cpu" = ia64; then
9516 symcode='[ABCDGIRSTW]'
9517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9518 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'"
9522 symcode='[BCDEGRST]'
9525 symcode='[BCDEGQRST]'
9536 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9544 # Handle CRLF in mingw tool chain
9548 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9552 # If we're using GNU nm, then use its standard symbol codes.
9553 case `$NM -V 2>&1` in
9554 *GNU* | *'with BFD'*)
9555 symcode='[ABCDGIRSTW]' ;;
9558 # Try without a prefix undercore, then with it.
9559 for ac_symprfx in "" "_"; do
9561 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9562 symxfrm="\\1 $ac_symprfx\\2 \\2"
9564 # Write the raw and C identifiers.
9565 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9567 # Check to see that the pipe works correctly.
9571 cat > conftest.$ac_ext <<EOF
9576 void nm_test_func(){}
9580 int main(){nm_test_var='a';nm_test_func();return(0);}
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584 (eval $ac_compile) 2>&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; then
9588 # Now try to grab the symbols.
9590 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9591 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } && test -s "$nlist"; then
9595 # Try sorting and uniquifying the output.
9596 if sort "$nlist" | uniq > "$nlist"T; then
9597 mv -f "$nlist"T "$nlist"
9602 # Make sure that we snagged all the symbols we need.
9603 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9604 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9605 cat <<EOF > conftest.$ac_ext
9611 # Now generate the symbol file.
9612 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9614 cat <<EOF >> conftest.$ac_ext
9615 #if defined (__STDC__) && __STDC__
9616 # define lt_ptr_t void *
9618 # define lt_ptr_t char *
9622 /* The mapping between symbol names and symbols. */
9627 lt_preloaded_symbols[] =
9630 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9631 cat <<\EOF >> conftest.$ac_ext
9639 # Now try linking the two files.
9640 mv conftest.$ac_objext conftstm.$ac_objext
9641 lt_save_LIBS="$LIBS"
9642 lt_save_CFLAGS="$CFLAGS"
9643 LIBS="conftstm.$ac_objext"
9644 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646 (eval $ac_link) 2>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9652 LIBS="$lt_save_LIBS"
9653 CFLAGS="$lt_save_CFLAGS"
9655 echo "cannot find nm_test_func in $nlist" >&5
9658 echo "cannot find nm_test_var in $nlist" >&5
9661 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9664 echo "$progname: failed program was:" >&5
9665 cat conftest.$ac_ext >&5
9667 rm -f conftest* conftst*
9669 # Do not use the global_symbol_pipe unless it works.
9670 if test "$pipe_works" = yes; then
9673 lt_cv_sys_global_symbol_pipe=
9679 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9680 lt_cv_sys_global_symbol_to_cdecl=
9682 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9683 { echo "$as_me:$LINENO: result: failed" >&5
9684 echo "${ECHO_T}failed" >&6; }
9686 { echo "$as_me:$LINENO: result: ok" >&5
9687 echo "${ECHO_T}ok" >&6; }
9691 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9692 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9693 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9697 libltdl_cv_preloaded_symbols=yes
9699 libltdl_cv_preloaded_symbols=no
9703 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9704 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9705 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9707 cat >>confdefs.h <<\_ACEOF
9708 #define HAVE_PRELOADED_SYMBOLS 1
9716 ac_cpp='$CPP $CPPFLAGS'
9717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9722 { echo "$as_me:$LINENO: checking for shl_load" >&5
9723 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9724 if test "${ac_cv_func_shl_load+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9735 #define shl_load innocuous_shl_load
9737 /* System header to define __stub macros and hopefully few prototypes,
9738 which can conflict with char shl_load (); below.
9739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740 <limits.h> exists even on freestanding compilers. */
9743 # include <limits.h>
9745 # include <assert.h>
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9757 /* The GNU C library defines this for functions which it implements
9758 to always fail with ENOSYS. Some functions are actually named
9759 something starting with __ and the normal name is an alias. */
9760 #if defined __stub_shl_load || defined __stub___shl_load
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_link") 2>conftest.er1
9781 grep -v '^ *+' conftest.er1 >conftest.err
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787 { (case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_try") 2>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest$ac_exeext'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_func_shl_load=yes
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9811 ac_cv_func_shl_load=no
9814 rm -f core conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9817 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9818 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9819 if test $ac_cv_func_shl_load = yes; then
9821 cat >>confdefs.h <<\_ACEOF
9822 #define HAVE_SHL_LOAD 1
9826 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9827 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9828 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 ac_check_lib_save_LIBS=$LIBS
9833 cat >conftest.$ac_ext <<_ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9840 /* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_link") 2>conftest.er1
9864 grep -v '^ *+' conftest.er1 >conftest.err
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9870 { (case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_try") 2>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_lib_dld_shl_load=yes
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9894 ac_cv_lib_dld_shl_load=no
9897 rm -f core conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899 LIBS=$ac_check_lib_save_LIBS
9901 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9902 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9903 if test $ac_cv_lib_dld_shl_load = yes; then
9905 cat >>confdefs.h <<\_ACEOF
9906 #define HAVE_SHL_LOAD 1
9909 LIBADD_DL="$LIBADD_DL -ldld"
9911 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9912 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 ac_check_lib_save_LIBS=$LIBS
9918 cat >conftest.$ac_ext <<_ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9925 /* Override any GCC internal prototype to avoid an error.
9926 Use char because int might match the return type of a GCC
9927 builtin and then its argument prototype would still apply. */
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_link") 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9955 { (case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_try") 2>&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try='test -s conftest$ac_exeext'
9965 { (case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_try") 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 ac_cv_lib_dl_dlopen=yes
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 ac_cv_lib_dl_dlopen=no
9982 rm -f core conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
9984 LIBS=$ac_check_lib_save_LIBS
9986 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9987 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9988 if test $ac_cv_lib_dl_dlopen = yes; then
9990 cat >>confdefs.h <<\_ACEOF
9991 #define HAVE_LIBDL 1
9994 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9996 cat >conftest.$ac_ext <<_ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10003 # include <dlfcn.h>
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>conftest.er1
10023 grep -v '^ *+' conftest.er1 >conftest.err
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10029 { (case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_try") 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_try") 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10049 cat >>confdefs.h <<\_ACEOF
10050 #define HAVE_LIBDL 1
10052 libltdl_cv_func_dlopen="yes"
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10057 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10058 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10059 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 ac_check_lib_save_LIBS=$LIBS
10063 LIBS="-lsvld $LIBS"
10064 cat >conftest.$ac_ext <<_ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_link") 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10101 { (case "(($ac_try" in
10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_try") 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try='test -s conftest$ac_exeext'
10111 { (case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_try") 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 ac_cv_lib_svld_dlopen=yes
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10125 ac_cv_lib_svld_dlopen=no
10128 rm -f core conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
10130 LIBS=$ac_check_lib_save_LIBS
10132 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10133 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10134 if test $ac_cv_lib_svld_dlopen = yes; then
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_LIBDL 1
10140 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10142 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10143 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 ac_check_lib_save_LIBS=$LIBS
10149 cat >conftest.$ac_ext <<_ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10156 /* Override any GCC internal prototype to avoid an error.
10157 Use char because int might match the return type of a GCC
10158 builtin and then its argument prototype would still apply. */
10166 return dld_link ();
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (ac_try="$ac_link"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_link") 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10186 { (case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_try") 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest$ac_exeext'
10196 { (case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_try") 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_lib_dld_dld_link=yes
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_cv_lib_dld_dld_link=no
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10218 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10219 if test $ac_cv_lib_dld_dld_link = yes; then
10221 cat >>confdefs.h <<\_ACEOF
10225 LIBADD_DL="$LIBADD_DL -ldld"
10227 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10228 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10229 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 cat >conftest.$ac_ext <<_ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10240 #define _dyld_func_lookup innocuous__dyld_func_lookup
10242 /* System header to define __stub macros and hopefully few prototypes,
10243 which can conflict with char _dyld_func_lookup (); below.
10244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10245 <limits.h> exists even on freestanding compilers. */
10248 # include <limits.h>
10250 # include <assert.h>
10253 #undef _dyld_func_lookup
10255 /* Override any GCC internal prototype to avoid an error.
10256 Use char because int might match the return type of a GCC
10257 builtin and then its argument prototype would still apply. */
10261 char _dyld_func_lookup ();
10262 /* The GNU C library defines this for functions which it implements
10263 to always fail with ENOSYS. Some functions are actually named
10264 something starting with __ and the normal name is an alias. */
10265 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10272 return _dyld_func_lookup ();
10277 rm -f conftest.$ac_objext conftest$ac_exeext
10278 if { (ac_try="$ac_link"
10279 case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_link") 2>conftest.er1
10286 grep -v '^ *+' conftest.er1 >conftest.err
10288 cat conftest.err >&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; } &&
10301 { ac_try='test -s conftest$ac_exeext'
10302 { (case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_try") 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10311 ac_cv_func__dyld_func_lookup=yes
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10316 ac_cv_func__dyld_func_lookup=no
10319 rm -f core conftest.err conftest.$ac_objext \
10320 conftest$ac_exeext conftest.$ac_ext
10322 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10323 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10324 if test $ac_cv_func__dyld_func_lookup = yes; then
10326 cat >>confdefs.h <<\_ACEOF
10327 #define HAVE_DYLD 1
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10353 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10355 lt_save_LIBS="$LIBS"
10356 LIBS="$LIBS $LIBADD_DL"
10358 for ac_func in dlerror
10360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10374 #define $ac_func innocuous_$ac_func
10376 /* System header to define __stub macros and hopefully few prototypes,
10377 which can conflict with char $ac_func (); below.
10378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10379 <limits.h> exists even on freestanding compilers. */
10382 # include <limits.h>
10384 # include <assert.h>
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10396 /* The GNU C library defines this for functions which it implements
10397 to always fail with ENOSYS. Some functions are actually named
10398 something starting with __ and the normal name is an alias. */
10399 #if defined __stub_$ac_func || defined __stub___$ac_func
10406 return $ac_func ();
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_try") 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 eval "$as_ac_var=yes"
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 eval "$as_ac_var=no"
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10456 ac_res=`eval echo '${'$as_ac_var'}'`
10457 { echo "$as_me:$LINENO: result: $ac_res" >&5
10458 echo "${ECHO_T}$ac_res" >&6; }
10459 if test `eval echo '${'$as_ac_var'}'` = yes; then
10460 cat >>confdefs.h <<_ACEOF
10461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10467 LIBS="$lt_save_LIBS"
10470 ac_cpp='$CPP $CPPFLAGS'
10471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10477 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10478 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10479 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 ac_cv_sys_symbol_underscore=no
10483 cat > conftest.$ac_ext <<EOF
10484 void nm_test_func(){}
10485 int main(){nm_test_func;return 0;}
10487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488 (eval $ac_compile) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; then
10492 # Now try to grab the symbols.
10493 ac_nlist=conftest.nm
10494 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10495 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && test -s "$ac_nlist"; then
10499 # See whether the symbols have a leading underscore.
10500 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10501 ac_cv_sys_symbol_underscore=yes
10503 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10506 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10510 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10513 echo "configure: failed program was:" >&5
10519 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10520 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10523 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10524 if test x"$libltdl_cv_func_dlopen" = xyes ||
10525 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10526 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10527 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10528 if test "${libltdl_cv_need_uscore+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 libltdl_cv_need_uscore=unknown
10533 LIBS="$LIBS $LIBADD_DL"
10534 if test "$cross_compiling" = yes; then :
10535 libltdl_cv_need_uscore=cross
10537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10538 lt_status=$lt_dlunknown
10539 cat > conftest.$ac_ext <<EOF
10540 #line 10540 "configure"
10541 #include "confdefs.h"
10550 # define LT_DLGLOBAL RTLD_GLOBAL
10553 # define LT_DLGLOBAL DL_GLOBAL
10555 # define LT_DLGLOBAL 0
10559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10560 find out it does not work in some platform. */
10561 #ifndef LT_DLLAZY_OR_NOW
10563 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10566 # define LT_DLLAZY_OR_NOW DL_LAZY
10569 # define LT_DLLAZY_OR_NOW RTLD_NOW
10572 # define LT_DLLAZY_OR_NOW DL_NOW
10574 # define LT_DLLAZY_OR_NOW 0
10582 extern "C" void exit (int);
10585 void fnord() { int i=42;}
10588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10589 int status = $lt_dlunknown;
10593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10594 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10595 /* dlclose (self); */
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604 (eval $ac_link) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10608 (./conftest; exit; ) >&5 2>/dev/null
10610 case x$lt_status in
10611 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10612 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10613 x$lt_dlunknown|x*) ;;
10616 # compilation failed
10625 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10626 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10630 if test x"$libltdl_cv_need_uscore" = xyes; then
10632 cat >>confdefs.h <<\_ACEOF
10633 #define NEED_USCORE 1
10639 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10640 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10641 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 # PORTME does your system automatically load deplibs for dlopen?
10645 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10646 # For now, we just catch OSes we know something about -- in the
10647 # future, we'll try test this programmatically.
10648 libltdl_cv_sys_dlopen_deplibs=unknown
10650 aix3*|aix4.1.*|aix4.2.*)
10651 # Unknown whether this is true for these versions of AIX, but
10652 # we want this `case' here to explicitly catch those versions.
10653 libltdl_cv_sys_dlopen_deplibs=unknown
10656 libltdl_cv_sys_dlopen_deplibs=yes
10659 # Assuming the user has installed a libdl from somewhere, this is true
10660 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10661 libltdl_cv_sys_dlopen_deplibs=yes
10663 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10664 # GNU and its variants, using gnu ld.so (Glibc)
10665 libltdl_cv_sys_dlopen_deplibs=yes
10668 libltdl_cv_sys_dlopen_deplibs=yes
10671 libltdl_cv_sys_dlopen_deplibs=yes
10673 irix[12345]*|irix6.[01]*)
10674 # Catch all versions of IRIX before 6.2, and indicate that we don't
10675 # know how it worked for any of those versions.
10676 libltdl_cv_sys_dlopen_deplibs=unknown
10679 # The case above catches anything before 6.2, and it's known that
10680 # at 6.2 and later dlopen does load deplibs.
10681 libltdl_cv_sys_dlopen_deplibs=yes
10684 libltdl_cv_sys_dlopen_deplibs=yes
10687 libltdl_cv_sys_dlopen_deplibs=yes
10690 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10691 # it did *not* use an RPATH in a shared library to find objects the
10692 # library depends on, so we explicitly say `no'.
10693 libltdl_cv_sys_dlopen_deplibs=no
10695 osf5.0|osf5.0a|osf5.1)
10696 # dlopen *does* load deplibs and with the right loader patch applied
10697 # it even uses RPATH in a shared library to search for shared objects
10698 # that the library depends on, but there's no easy way to know if that
10699 # patch is installed. Since this is the case, all we can really
10700 # say is unknown -- it depends on the patch being installed. If
10701 # it is, this changes to `yes'. Without it, it would be `no'.
10702 libltdl_cv_sys_dlopen_deplibs=unknown
10705 # the two cases above should catch all versions of osf <= 5.1. Read
10706 # the comments above for what we know about them.
10707 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10708 # is used to find them so we can finally say `yes'.
10709 libltdl_cv_sys_dlopen_deplibs=yes
10712 libltdl_cv_sys_dlopen_deplibs=yes
10714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10715 libltdl_cv_sys_dlopen_deplibs=yes
10720 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10721 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10722 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10724 cat >>confdefs.h <<\_ACEOF
10725 #define LTDL_DLOPEN_DEPLIBS 1
10731 for ac_header in argz.h
10733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 ac_res=`eval echo '${'$as_ac_Header'}'`
10741 { echo "$as_me:$LINENO: result: $ac_res" >&5
10742 echo "${ECHO_T}$ac_res" >&6; }
10744 # Is the header compilable?
10745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 $ac_includes_default
10754 #include <$ac_header>
10756 rm -f conftest.$ac_objext
10757 if { (ac_try="$ac_compile"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_compile") 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771 { (case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_try") 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
10781 { (case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_try") 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_header_compiler=yes
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_header_compiler=no
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10800 echo "${ECHO_T}$ac_header_compiler" >&6; }
10802 # Is the header present?
10803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10805 cat >conftest.$ac_ext <<_ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10811 #include <$ac_header>
10813 if { (ac_try="$ac_cpp conftest.$ac_ext"
10814 case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10821 grep -v '^ *+' conftest.er1 >conftest.err
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } >/dev/null; then
10826 if test -s conftest.err; then
10827 ac_cpp_err=$ac_c_preproc_warn_flag
10828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10835 if test -z "$ac_cpp_err"; then
10836 ac_header_preproc=yes
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 ac_header_preproc=no
10844 rm -f conftest.err conftest.$ac_ext
10845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 echo "${ECHO_T}$ac_header_preproc" >&6; }
10848 # So? What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855 ac_header_preproc=yes
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10871 ## ------------------------------------ ##
10872 ## Report this to http://llvm.org/bugs/ ##
10873 ## ------------------------------------ ##
10875 ) | sed "s/^/$as_me: WARNING: /" >&2
10878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 eval "$as_ac_Header=\$ac_header_preproc"
10885 ac_res=`eval echo '${'$as_ac_Header'}'`
10886 { echo "$as_me:$LINENO: result: $ac_res" >&5
10887 echo "${ECHO_T}$ac_res" >&6; }
10890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10891 cat >>confdefs.h <<_ACEOF
10892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10900 { echo "$as_me:$LINENO: checking for error_t" >&5
10901 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10902 if test "${ac_cv_type_error_t+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 cat >conftest.$ac_ext <<_ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10915 typedef error_t ac__type_new_;
10919 if ((ac__type_new_ *) 0)
10921 if (sizeof (ac__type_new_))
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_compile") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_try") 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_cv_type_error_t=yes
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 ac_cv_type_error_t=no
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10972 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10973 if test $ac_cv_type_error_t = yes; then
10975 cat >>confdefs.h <<_ACEOF
10976 #define HAVE_ERROR_T 1
10982 cat >>confdefs.h <<\_ACEOF
10983 #define error_t int
10994 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 cat >conftest.$ac_ext <<_ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11010 #define $ac_func innocuous_$ac_func
11012 /* System header to define __stub macros and hopefully few prototypes,
11013 which can conflict with char $ac_func (); below.
11014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11015 <limits.h> exists even on freestanding compilers. */
11018 # include <limits.h>
11020 # include <assert.h>
11025 /* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
11032 /* The GNU C library defines this for functions which it implements
11033 to always fail with ENOSYS. Some functions are actually named
11034 something starting with __ and the normal name is an alias. */
11035 #if defined __stub_$ac_func || defined __stub___$ac_func
11042 return $ac_func ();
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (ac_try="$ac_link"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_link") 2>conftest.er1
11056 grep -v '^ *+' conftest.er1 >conftest.err
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest$ac_exeext'
11072 { (case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_try") 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 eval "$as_ac_var=yes"
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 eval "$as_ac_var=no"
11089 rm -f core conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11092 ac_res=`eval echo '${'$as_ac_var'}'`
11093 { echo "$as_me:$LINENO: result: $ac_res" >&5
11094 echo "${ECHO_T}$ac_res" >&6; }
11095 if test `eval echo '${'$as_ac_var'}'` = yes; then
11096 cat >>confdefs.h <<_ACEOF
11097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11130 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 ac_res=`eval echo '${'$as_ac_Header'}'`
11141 { echo "$as_me:$LINENO: result: $ac_res" >&5
11142 echo "${ECHO_T}$ac_res" >&6; }
11144 # Is the header compilable?
11145 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 $ac_includes_default
11154 #include <$ac_header>
11156 rm -f conftest.$ac_objext
11157 if { (ac_try="$ac_compile"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_compile") 2>conftest.er1
11165 grep -v '^ *+' conftest.er1 >conftest.err
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171 { (case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_try") 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest.$ac_objext'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 ac_header_compiler=yes
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ac_header_compiler=no
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 echo "${ECHO_T}$ac_header_compiler" >&6; }
11202 # Is the header present?
11203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11205 cat >conftest.$ac_ext <<_ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <$ac_header>
11213 if { (ac_try="$ac_cpp conftest.$ac_ext"
11214 case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221 grep -v '^ *+' conftest.er1 >conftest.err
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } >/dev/null; then
11226 if test -s conftest.err; then
11227 ac_cpp_err=$ac_c_preproc_warn_flag
11228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11235 if test -z "$ac_cpp_err"; then
11236 ac_header_preproc=yes
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 ac_header_preproc=no
11244 rm -f conftest.err conftest.$ac_ext
11245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11246 echo "${ECHO_T}$ac_header_preproc" >&6; }
11248 # So? What about this header?
11249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11255 ac_header_preproc=yes
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11271 ## ------------------------------------ ##
11272 ## Report this to http://llvm.org/bugs/ ##
11273 ## ------------------------------------ ##
11275 ) | sed "s/^/$as_me: WARNING: /" >&2
11278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 eval "$as_ac_Header=\$ac_header_preproc"
11285 ac_res=`eval echo '${'$as_ac_Header'}'`
11286 { echo "$as_me:$LINENO: result: $ac_res" >&5
11287 echo "${ECHO_T}$ac_res" >&6; }
11290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11303 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 ac_res=`eval echo '${'$as_ac_Header'}'`
11313 { echo "$as_me:$LINENO: result: $ac_res" >&5
11314 echo "${ECHO_T}$ac_res" >&6; }
11316 # Is the header compilable?
11317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11319 cat >conftest.$ac_ext <<_ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11325 $ac_includes_default
11326 #include <$ac_header>
11328 rm -f conftest.$ac_objext
11329 if { (ac_try="$ac_compile"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_compile") 2>conftest.er1
11337 grep -v '^ *+' conftest.er1 >conftest.err
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11343 { (case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_try") 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; } &&
11352 { ac_try='test -s conftest.$ac_objext'
11353 { (case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_try") 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 ac_header_compiler=yes
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_header_compiler=no
11370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11372 echo "${ECHO_T}$ac_header_compiler" >&6; }
11374 # Is the header present?
11375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11377 cat >conftest.$ac_ext <<_ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383 #include <$ac_header>
11385 if { (ac_try="$ac_cpp conftest.$ac_ext"
11386 case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11393 grep -v '^ *+' conftest.er1 >conftest.err
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } >/dev/null; then
11398 if test -s conftest.err; then
11399 ac_cpp_err=$ac_c_preproc_warn_flag
11400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11407 if test -z "$ac_cpp_err"; then
11408 ac_header_preproc=yes
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11413 ac_header_preproc=no
11416 rm -f conftest.err conftest.$ac_ext
11417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11418 echo "${ECHO_T}$ac_header_preproc" >&6; }
11420 # So? What about this header?
11421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11427 ac_header_preproc=yes
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11443 ## ------------------------------------ ##
11444 ## Report this to http://llvm.org/bugs/ ##
11445 ## ------------------------------------ ##
11447 ) | sed "s/^/$as_me: WARNING: /" >&2
11450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 eval "$as_ac_Header=\$ac_header_preproc"
11457 ac_res=`eval echo '${'$as_ac_Header'}'`
11458 { echo "$as_me:$LINENO: result: $ac_res" >&5
11459 echo "${ECHO_T}$ac_res" >&6; }
11462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11463 cat >>confdefs.h <<_ACEOF
11464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473 for ac_header in string.h strings.h
11475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 ac_res=`eval echo '${'$as_ac_Header'}'`
11483 { echo "$as_me:$LINENO: result: $ac_res" >&5
11484 echo "${ECHO_T}$ac_res" >&6; }
11486 # Is the header compilable?
11487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 $ac_includes_default
11496 #include <$ac_header>
11498 rm -f conftest.$ac_objext
11499 if { (ac_try="$ac_compile"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_compile") 2>conftest.er1
11507 grep -v '^ *+' conftest.er1 >conftest.err
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11513 { (case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_try") 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try='test -s conftest.$ac_objext'
11523 { (case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_try") 2>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 ac_header_compiler=yes
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_header_compiler=no
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11542 echo "${ECHO_T}$ac_header_compiler" >&6; }
11544 # Is the header present?
11545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11547 cat >conftest.$ac_ext <<_ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11553 #include <$ac_header>
11555 if { (ac_try="$ac_cpp conftest.$ac_ext"
11556 case "(($ac_try" in
11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558 *) ac_try_echo=$ac_try;;
11560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11563 grep -v '^ *+' conftest.er1 >conftest.err
11565 cat conftest.err >&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } >/dev/null; then
11568 if test -s conftest.err; then
11569 ac_cpp_err=$ac_c_preproc_warn_flag
11570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11577 if test -z "$ac_cpp_err"; then
11578 ac_header_preproc=yes
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 ac_header_preproc=no
11586 rm -f conftest.err conftest.$ac_ext
11587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11588 echo "${ECHO_T}$ac_header_preproc" >&6; }
11590 # So? What about this header?
11591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11597 ac_header_preproc=yes
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11613 ## ------------------------------------ ##
11614 ## Report this to http://llvm.org/bugs/ ##
11615 ## ------------------------------------ ##
11617 ) | sed "s/^/$as_me: WARNING: /" >&2
11620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 eval "$as_ac_Header=\$ac_header_preproc"
11627 ac_res=`eval echo '${'$as_ac_Header'}'`
11628 { echo "$as_me:$LINENO: result: $ac_res" >&5
11629 echo "${ECHO_T}$ac_res" >&6; }
11632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11633 cat >>confdefs.h <<_ACEOF
11634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11644 for ac_func in strchr index
11646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 cat >conftest.$ac_ext <<_ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11660 #define $ac_func innocuous_$ac_func
11662 /* System header to define __stub macros and hopefully few prototypes,
11663 which can conflict with char $ac_func (); below.
11664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11665 <limits.h> exists even on freestanding compilers. */
11668 # include <limits.h>
11670 # include <assert.h>
11675 /* Override any GCC internal prototype to avoid an error.
11676 Use char because int might match the return type of a GCC
11677 builtin and then its argument prototype would still apply. */
11682 /* The GNU C library defines this for functions which it implements
11683 to always fail with ENOSYS. Some functions are actually named
11684 something starting with __ and the normal name is an alias. */
11685 #if defined __stub_$ac_func || defined __stub___$ac_func
11692 return $ac_func ();
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (ac_try="$ac_link"
11699 case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_link") 2>conftest.er1
11706 grep -v '^ *+' conftest.er1 >conftest.err
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11712 { (case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_try") 2>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; } &&
11721 { ac_try='test -s conftest$ac_exeext'
11722 { (case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_try") 2>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 eval "$as_ac_var=yes"
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 eval "$as_ac_var=no"
11739 rm -f core conftest.err conftest.$ac_objext \
11740 conftest$ac_exeext conftest.$ac_ext
11742 ac_res=`eval echo '${'$as_ac_var'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11745 if test `eval echo '${'$as_ac_var'}'` = yes; then
11746 cat >>confdefs.h <<_ACEOF
11747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755 for ac_func in strrchr rindex
11757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 cat >conftest.$ac_ext <<_ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11771 #define $ac_func innocuous_$ac_func
11773 /* System header to define __stub macros and hopefully few prototypes,
11774 which can conflict with char $ac_func (); below.
11775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11776 <limits.h> exists even on freestanding compilers. */
11779 # include <limits.h>
11781 # include <assert.h>
11786 /* Override any GCC internal prototype to avoid an error.
11787 Use char because int might match the return type of a GCC
11788 builtin and then its argument prototype would still apply. */
11793 /* The GNU C library defines this for functions which it implements
11794 to always fail with ENOSYS. Some functions are actually named
11795 something starting with __ and the normal name is an alias. */
11796 #if defined __stub_$ac_func || defined __stub___$ac_func
11803 return $ac_func ();
11808 rm -f conftest.$ac_objext conftest$ac_exeext
11809 if { (ac_try="$ac_link"
11810 case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_link") 2>conftest.er1
11817 grep -v '^ *+' conftest.er1 >conftest.err
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11823 { (case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_try") 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest$ac_exeext'
11833 { (case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_try") 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 eval "$as_ac_var=yes"
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11847 eval "$as_ac_var=no"
11850 rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11853 ac_res=`eval echo '${'$as_ac_var'}'`
11854 { echo "$as_me:$LINENO: result: $ac_res" >&5
11855 echo "${ECHO_T}$ac_res" >&6; }
11856 if test `eval echo '${'$as_ac_var'}'` = yes; then
11857 cat >>confdefs.h <<_ACEOF
11858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11866 for ac_func in memcpy bcopy
11868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 cat >conftest.$ac_ext <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11882 #define $ac_func innocuous_$ac_func
11884 /* System header to define __stub macros and hopefully few prototypes,
11885 which can conflict with char $ac_func (); below.
11886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11887 <limits.h> exists even on freestanding compilers. */
11890 # include <limits.h>
11892 # include <assert.h>
11897 /* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11904 /* The GNU C library defines this for functions which it implements
11905 to always fail with ENOSYS. Some functions are actually named
11906 something starting with __ and the normal name is an alias. */
11907 #if defined __stub_$ac_func || defined __stub___$ac_func
11914 return $ac_func ();
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_link") 2>conftest.er1
11928 grep -v '^ *+' conftest.er1 >conftest.err
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11934 { (case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_try") 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest$ac_exeext'
11944 { (case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_try") 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 eval "$as_ac_var=yes"
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 eval "$as_ac_var=no"
11961 rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11964 ac_res=`eval echo '${'$as_ac_var'}'`
11965 { echo "$as_me:$LINENO: result: $ac_res" >&5
11966 echo "${ECHO_T}$ac_res" >&6; }
11967 if test `eval echo '${'$as_ac_var'}'` = yes; then
11968 cat >>confdefs.h <<_ACEOF
11969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977 for ac_func in memmove strcmp
11979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 cat >conftest.$ac_ext <<_ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11993 #define $ac_func innocuous_$ac_func
11995 /* System header to define __stub macros and hopefully few prototypes,
11996 which can conflict with char $ac_func (); below.
11997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11998 <limits.h> exists even on freestanding compilers. */
12001 # include <limits.h>
12003 # include <assert.h>
12008 /* Override any GCC internal prototype to avoid an error.
12009 Use char because int might match the return type of a GCC
12010 builtin and then its argument prototype would still apply. */
12015 /* The GNU C library defines this for functions which it implements
12016 to always fail with ENOSYS. Some functions are actually named
12017 something starting with __ and the normal name is an alias. */
12018 #if defined __stub_$ac_func || defined __stub___$ac_func
12025 return $ac_func ();
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (ac_try="$ac_link"
12032 case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_link") 2>conftest.er1
12039 grep -v '^ *+' conftest.er1 >conftest.err
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12045 { (case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_try") 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_try") 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 eval "$as_ac_var=yes"
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 eval "$as_ac_var=no"
12072 rm -f core conftest.err conftest.$ac_objext \
12073 conftest$ac_exeext conftest.$ac_ext
12075 ac_res=`eval echo '${'$as_ac_var'}'`
12076 { echo "$as_me:$LINENO: result: $ac_res" >&5
12077 echo "${ECHO_T}$ac_res" >&6; }
12078 if test `eval echo '${'$as_ac_var'}'` = yes; then
12079 cat >>confdefs.h <<_ACEOF
12080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12089 for ac_func in closedir opendir readdir
12091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12105 #define $ac_func innocuous_$ac_func
12107 /* System header to define __stub macros and hopefully few prototypes,
12108 which can conflict with char $ac_func (); below.
12109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12110 <limits.h> exists even on freestanding compilers. */
12113 # include <limits.h>
12115 # include <assert.h>
12120 /* Override any GCC internal prototype to avoid an error.
12121 Use char because int might match the return type of a GCC
12122 builtin and then its argument prototype would still apply. */
12127 /* The GNU C library defines this for functions which it implements
12128 to always fail with ENOSYS. Some functions are actually named
12129 something starting with __ and the normal name is an alias. */
12130 #if defined __stub_$ac_func || defined __stub___$ac_func
12137 return $ac_func ();
12142 rm -f conftest.$ac_objext conftest$ac_exeext
12143 if { (ac_try="$ac_link"
12144 case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_link") 2>conftest.er1
12151 grep -v '^ *+' conftest.er1 >conftest.err
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12157 { (case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_try") 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } &&
12166 { ac_try='test -s conftest$ac_exeext'
12167 { (case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_try") 2>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 eval "$as_ac_var=yes"
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 eval "$as_ac_var=no"
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12187 ac_res=`eval echo '${'$as_ac_var'}'`
12188 { echo "$as_me:$LINENO: result: $ac_res" >&5
12189 echo "${ECHO_T}$ac_res" >&6; }
12190 if test `eval echo '${'$as_ac_var'}'` = yes; then
12191 cat >>confdefs.h <<_ACEOF
12192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12200 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12201 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12214 if test "$GCC" != "yes" && test "$ICC" != "yes"
12216 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12217 echo "$as_me: error: gcc|icc required but not found" >&2;}
12218 { (exit 1); exit 1; }; }
12221 if test "$GXX" != "yes" && test "$IXX" != "yes"
12223 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12224 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12225 { (exit 1); exit 1; }; }
12228 if test "$GCC" = "yes"
12230 cat >conftest.$ac_ext <<_ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12238 #if !defined(__GNUC__) || __GNUC__ < 3
12239 #error Unsupported GCC version
12244 rm -f conftest.$ac_objext
12245 if { (ac_try="$ac_compile"
12246 case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_compile") 2>conftest.er1
12253 grep -v '^ *+' conftest.er1 >conftest.err
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
12258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12259 { (case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_try") 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest.$ac_objext'
12269 { (case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_try") 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12284 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12285 { (exit 1); exit 1; }; }
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 if test -z "$llvm_cv_gnu_make_command"
12293 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12294 echo "$as_me: error: GNU Make required but not found" >&2;}
12295 { (exit 1); exit 1; }; }
12298 { echo "$as_me:$LINENO: result: ok" >&5
12299 echo "${ECHO_T}ok" >&6; }
12301 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12302 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12303 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12305 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12307 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12311 NO_MAYBE_UNINITIALIZED=
12312 if test "$GXX" = "yes"
12314 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12316 if test -z "$NO_MAYBE_UNINITIALIZED"
12318 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12322 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12323 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12326 # Check whether --with-python was given.
12327 if test "${with_python+set}" = set; then
12328 withval=$with_python; PYTHON="$withval"
12332 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12333 { echo "$as_me:$LINENO: checking for python" >&5
12334 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12335 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12336 echo "${ECHO_T}user defined: $with_python" >&6; }
12338 if test -n "$PYTHON" ; then
12339 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12340 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12343 # Extract the first word of "python python2 python26", so it can be a program name with args.
12344 set dummy python python2 python26; ac_word=$2
12345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12347 if test "${ac_cv_path_PYTHON+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12362 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12371 echo "${ECHO_T}not found" >&6; }
12372 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12373 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12374 { (exit 1); exit 1; }; }"
12378 PYTHON=$ac_cv_path_PYTHON
12379 if test -n "$PYTHON"; then
12380 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12381 echo "${ECHO_T}$PYTHON" >&6; }
12383 { echo "$as_me:$LINENO: result: no" >&5
12384 echo "${ECHO_T}no" >&6; }
12390 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12391 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12392 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12393 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12394 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12395 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12396 if test "$ac_python_version_major" -eq "2" \
12397 && test "$ac_python_version_minor" -ge "5" ; then
12398 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12399 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12401 { echo "$as_me:$LINENO: result: not found" >&5
12402 echo "${ECHO_T}not found" >&6; }
12403 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12404 See \`config.log' for more details." >&5
12405 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12406 See \`config.log' for more details." >&2;}
12407 { (exit 1); exit 1; }; }
12412 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12413 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12414 if test "${ac_cv_lib_m_sin+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 ac_check_lib_save_LIBS=$LIBS
12419 cat >conftest.$ac_ext <<_ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12426 /* Override any GCC internal prototype to avoid an error.
12427 Use char because int might match the return type of a GCC
12428 builtin and then its argument prototype would still apply. */
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_link") 2>conftest.er1
12450 grep -v '^ *+' conftest.er1 >conftest.err
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12456 { (case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_try") 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest$ac_exeext'
12466 { (case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_try") 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_lib_m_sin=yes
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12483 rm -f core conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12485 LIBS=$ac_check_lib_save_LIBS
12487 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12488 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12489 if test $ac_cv_lib_m_sin = yes; then
12490 cat >>confdefs.h <<_ACEOF
12491 #define HAVE_LIBM 1
12498 if test "$llvm_cv_os_type" = "MingW" ; then
12500 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12501 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12502 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 ac_check_lib_save_LIBS=$LIBS
12506 LIBS="-limagehlp $LIBS"
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (ac_try="$ac_link"
12525 case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_link") 2>conftest.er1
12532 grep -v '^ *+' conftest.er1 >conftest.err
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12538 { (case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_try") 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try='test -s conftest$ac_exeext'
12548 { (case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_try") 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_lib_imagehlp_main=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 ac_cv_lib_imagehlp_main=no
12565 rm -f core conftest.err conftest.$ac_objext \
12566 conftest$ac_exeext conftest.$ac_ext
12567 LIBS=$ac_check_lib_save_LIBS
12569 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12570 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12571 if test $ac_cv_lib_imagehlp_main = yes; then
12572 cat >>confdefs.h <<_ACEOF
12573 #define HAVE_LIBIMAGEHLP 1
12576 LIBS="-limagehlp $LIBS"
12581 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12582 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12583 if test "${ac_cv_lib_psapi_main+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-lpsapi $LIBS"
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (ac_try="$ac_link"
12606 case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_link") 2>conftest.er1
12613 grep -v '^ *+' conftest.er1 >conftest.err
12615 cat conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } &&
12618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12619 { (case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_try") 2>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; } &&
12628 { ac_try='test -s conftest$ac_exeext'
12629 { (case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_try") 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_cv_lib_psapi_main=yes
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 ac_cv_lib_psapi_main=no
12646 rm -f core conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12648 LIBS=$ac_check_lib_save_LIBS
12650 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12651 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12652 if test $ac_cv_lib_psapi_main = yes; then
12653 cat >>confdefs.h <<_ACEOF
12654 #define HAVE_LIBPSAPI 1
12657 LIBS="-lpsapi $LIBS"
12663 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12664 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12665 if test "${ac_cv_search_dlopen+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 ac_func_search_save_LIBS=$LIBS
12669 cat >conftest.$ac_ext <<_ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 /* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
12691 for ac_lib in '' dl; do
12692 if test -z "$ac_lib"; then
12693 ac_res="none required"
12696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12698 rm -f conftest.$ac_objext conftest$ac_exeext
12699 if { (ac_try="$ac_link"
12700 case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_link") 2>conftest.er1
12707 grep -v '^ *+' conftest.er1 >conftest.err
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
12712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12713 { (case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_try") 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest$ac_exeext'
12723 { (case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_try") 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_cv_search_dlopen=$ac_res
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12740 rm -f core conftest.err conftest.$ac_objext \
12742 if test "${ac_cv_search_dlopen+set}" = set; then
12746 if test "${ac_cv_search_dlopen+set}" = set; then
12749 ac_cv_search_dlopen=no
12751 rm conftest.$ac_ext
12752 LIBS=$ac_func_search_save_LIBS
12754 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12755 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12756 ac_res=$ac_cv_search_dlopen
12757 if test "$ac_res" != no; then
12758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12760 cat >>confdefs.h <<\_ACEOF
12761 #define HAVE_DLOPEN 1
12765 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12766 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12770 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12771 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12772 if test "${ac_cv_search_clock_gettime+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 ac_func_search_save_LIBS=$LIBS
12776 cat >conftest.$ac_ext <<_ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12783 /* Override any GCC internal prototype to avoid an error.
12784 Use char because int might match the return type of a GCC
12785 builtin and then its argument prototype would still apply. */
12789 char clock_gettime ();
12793 return clock_gettime ();
12798 for ac_lib in '' rt; do
12799 if test -z "$ac_lib"; then
12800 ac_res="none required"
12803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12805 rm -f conftest.$ac_objext conftest$ac_exeext
12806 if { (ac_try="$ac_link"
12807 case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812 (eval "$ac_link") 2>conftest.er1
12814 grep -v '^ *+' conftest.er1 >conftest.err
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
12819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12820 { (case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825 (eval "$ac_try") 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; } &&
12829 { ac_try='test -s conftest$ac_exeext'
12830 { (case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_try") 2>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 ac_cv_search_clock_gettime=$ac_res
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12847 rm -f core conftest.err conftest.$ac_objext \
12849 if test "${ac_cv_search_clock_gettime+set}" = set; then
12853 if test "${ac_cv_search_clock_gettime+set}" = set; then
12856 ac_cv_search_clock_gettime=no
12858 rm conftest.$ac_ext
12859 LIBS=$ac_func_search_save_LIBS
12861 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12862 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12863 ac_res=$ac_cv_search_clock_gettime
12864 if test "$ac_res" != no; then
12865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12870 if test "$llvm_cv_enable_libffi" = "yes" ; then
12871 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12872 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12873 if test "${ac_cv_search_ffi_call+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 ac_func_search_save_LIBS=$LIBS
12877 cat >conftest.$ac_ext <<_ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12884 /* Override any GCC internal prototype to avoid an error.
12885 Use char because int might match the return type of a GCC
12886 builtin and then its argument prototype would still apply. */
12894 return ffi_call ();
12899 for ac_lib in '' ffi; do
12900 if test -z "$ac_lib"; then
12901 ac_res="none required"
12904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (ac_try="$ac_link"
12908 case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_link") 2>conftest.er1
12915 grep -v '^ *+' conftest.er1 >conftest.err
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } &&
12920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12921 { (case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_try") 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } &&
12930 { ac_try='test -s conftest$ac_exeext'
12931 { (case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936 (eval "$ac_try") 2>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; }; then
12940 ac_cv_search_ffi_call=$ac_res
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12948 rm -f core conftest.err conftest.$ac_objext \
12950 if test "${ac_cv_search_ffi_call+set}" = set; then
12954 if test "${ac_cv_search_ffi_call+set}" = set; then
12957 ac_cv_search_ffi_call=no
12959 rm conftest.$ac_ext
12960 LIBS=$ac_func_search_save_LIBS
12962 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12963 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12964 ac_res=$ac_cv_search_ffi_call
12965 if test "$ac_res" != no; then
12966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12968 cat >>confdefs.h <<\_ACEOF
12969 #define HAVE_FFI_CALL 1
12973 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12974 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12975 { (exit 1); exit 1; }; }
12980 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12981 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12982 if test "${ac_cv_search_mallinfo+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 ac_func_search_save_LIBS=$LIBS
12986 cat >conftest.$ac_ext <<_ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h. */
12993 /* Override any GCC internal prototype to avoid an error.
12994 Use char because int might match the return type of a GCC
12995 builtin and then its argument prototype would still apply. */
13003 return mallinfo ();
13008 for ac_lib in '' malloc; do
13009 if test -z "$ac_lib"; then
13010 ac_res="none required"
13013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13015 rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (ac_try="$ac_link"
13017 case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_link") 2>conftest.er1
13024 grep -v '^ *+' conftest.er1 >conftest.err
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
13029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13030 { (case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_try") 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } &&
13039 { ac_try='test -s conftest$ac_exeext'
13040 { (case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_try") 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; }; then
13049 ac_cv_search_mallinfo=$ac_res
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13057 rm -f core conftest.err conftest.$ac_objext \
13059 if test "${ac_cv_search_mallinfo+set}" = set; then
13063 if test "${ac_cv_search_mallinfo+set}" = set; then
13066 ac_cv_search_mallinfo=no
13068 rm conftest.$ac_ext
13069 LIBS=$ac_func_search_save_LIBS
13071 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13072 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13073 ac_res=$ac_cv_search_mallinfo
13074 if test "$ac_res" != no; then
13075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13077 cat >>confdefs.h <<\_ACEOF
13078 #define HAVE_MALLINFO 1
13084 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13086 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13087 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13088 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 ac_check_lib_save_LIBS=$LIBS
13092 LIBS="-lpthread $LIBS"
13093 cat >conftest.$ac_ext <<_ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13106 char pthread_mutex_init ();
13110 return pthread_mutex_init ();
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (ac_try="$ac_link"
13117 case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_link") 2>conftest.er1
13124 grep -v '^ *+' conftest.er1 >conftest.err
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
13129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; } &&
13139 { ac_try='test -s conftest$ac_exeext'
13140 { (case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_try") 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 ac_cv_lib_pthread_pthread_mutex_init=yes
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 ac_cv_lib_pthread_pthread_mutex_init=no
13157 rm -f core conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13161 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13162 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13163 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13164 cat >>confdefs.h <<_ACEOF
13165 #define HAVE_LIBPTHREAD 1
13168 LIBS="-lpthread $LIBS"
13172 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13173 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13174 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 ac_func_search_save_LIBS=$LIBS
13178 cat >conftest.$ac_ext <<_ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13185 /* Override any GCC internal prototype to avoid an error.
13186 Use char because int might match the return type of a GCC
13187 builtin and then its argument prototype would still apply. */
13191 char pthread_mutex_lock ();
13195 return pthread_mutex_lock ();
13200 for ac_lib in '' pthread; do
13201 if test -z "$ac_lib"; then
13202 ac_res="none required"
13205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13207 rm -f conftest.$ac_objext conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>conftest.er1
13216 grep -v '^ *+' conftest.er1 >conftest.err
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13222 { (case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_try") 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest$ac_exeext'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 ac_cv_search_pthread_mutex_lock=$ac_res
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13249 rm -f core conftest.err conftest.$ac_objext \
13251 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13255 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13258 ac_cv_search_pthread_mutex_lock=no
13260 rm conftest.$ac_ext
13261 LIBS=$ac_func_search_save_LIBS
13263 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13264 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13265 ac_res=$ac_cv_search_pthread_mutex_lock
13266 if test "$ac_res" != no; then
13267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13269 cat >>confdefs.h <<\_ACEOF
13270 #define HAVE_PTHREAD_MUTEX_LOCK 1
13275 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13276 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13277 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 ac_func_search_save_LIBS=$LIBS
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13288 /* Override any GCC internal prototype to avoid an error.
13289 Use char because int might match the return type of a GCC
13290 builtin and then its argument prototype would still apply. */
13294 char pthread_rwlock_init ();
13298 return pthread_rwlock_init ();
13303 for ac_lib in '' pthread; do
13304 if test -z "$ac_lib"; then
13305 ac_res="none required"
13308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13310 rm -f conftest.$ac_objext conftest$ac_exeext
13311 if { (ac_try="$ac_link"
13312 case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_link") 2>conftest.er1
13319 grep -v '^ *+' conftest.er1 >conftest.err
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest$ac_exeext'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_cv_search_pthread_rwlock_init=$ac_res
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13352 rm -f core conftest.err conftest.$ac_objext \
13354 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13358 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13361 ac_cv_search_pthread_rwlock_init=no
13363 rm conftest.$ac_ext
13364 LIBS=$ac_func_search_save_LIBS
13366 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13367 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13368 ac_res=$ac_cv_search_pthread_rwlock_init
13369 if test "$ac_res" != no; then
13370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13372 cat >>confdefs.h <<\_ACEOF
13373 #define HAVE_PTHREAD_RWLOCK_INIT 1
13378 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13379 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13380 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 ac_func_search_save_LIBS=$LIBS
13384 cat >conftest.$ac_ext <<_ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13397 char pthread_getspecific ();
13401 return pthread_getspecific ();
13406 for ac_lib in '' pthread; do
13407 if test -z "$ac_lib"; then
13408 ac_res="none required"
13411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13413 rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (ac_try="$ac_link"
13415 case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_link") 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest$ac_exeext'
13438 { (case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_try") 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_cv_search_pthread_getspecific=$ac_res
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13455 rm -f core conftest.err conftest.$ac_objext \
13457 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13461 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13464 ac_cv_search_pthread_getspecific=no
13466 rm conftest.$ac_ext
13467 LIBS=$ac_func_search_save_LIBS
13469 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13470 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13471 ac_res=$ac_cv_search_pthread_getspecific
13472 if test "$ac_res" != no; then
13473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13475 cat >>confdefs.h <<\_ACEOF
13476 #define HAVE_PTHREAD_GETSPECIFIC 1
13483 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13485 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13486 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13487 if test "${ac_cv_lib_z_compress2+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 ac_check_lib_save_LIBS=$LIBS
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13509 return compress2 ();
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (ac_try="$ac_link"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_link") 2>conftest.er1
13523 grep -v '^ *+' conftest.er1 >conftest.err
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest$ac_exeext'
13539 { (case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_try") 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_cv_lib_z_compress2=yes
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ac_cv_lib_z_compress2=no
13556 rm -f core conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
13558 LIBS=$ac_check_lib_save_LIBS
13560 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13561 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13562 if test $ac_cv_lib_z_compress2 = yes; then
13563 cat >>confdefs.h <<_ACEOF
13564 #define HAVE_LIBZ 1
13574 # Check whether --with-udis86 was given.
13575 if test "${with_udis86+set}" = set; then
13576 withval=$with_udis86;
13581 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13584 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13585 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13586 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 ac_check_lib_save_LIBS=$LIBS
13590 LIBS="-ludis86 $LIBS"
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13598 /* Override any GCC internal prototype to avoid an error.
13599 Use char because int might match the return type of a GCC
13600 builtin and then its argument prototype would still apply. */
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (ac_try="$ac_link"
13615 case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_link") 2>conftest.er1
13622 grep -v '^ *+' conftest.er1 >conftest.err
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13628 { (case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_try") 2>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; } &&
13637 { ac_try='test -s conftest$ac_exeext'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_try") 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_cv_lib_udis86_ud_init=yes
13649 echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13652 ac_cv_lib_udis86_ud_init=no
13655 rm -f core conftest.err conftest.$ac_objext \
13656 conftest$ac_exeext conftest.$ac_ext
13657 LIBS=$ac_check_lib_save_LIBS
13659 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13660 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13661 if test $ac_cv_lib_udis86_ud_init = yes; then
13662 cat >>confdefs.h <<_ACEOF
13663 #define HAVE_LIBUDIS86 1
13666 LIBS="-ludis86 $LIBS"
13670 echo "Error! You need to have libudis86 around."
13682 cat >>confdefs.h <<_ACEOF
13683 #define USE_UDIS86 $USE_UDIS86
13688 # Check whether --with-oprofile was given.
13689 if test "${with_oprofile+set}" = set; then
13690 withval=$with_oprofile;
13694 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13695 no) llvm_cv_oppath=
13698 *) llvm_cv_oppath="${withval}/lib/oprofile"
13699 CPPFLAGS="-I${withval}/include";;
13701 case $llvm_cv_os_type in
13703 if test -n "$llvm_cv_oppath" ; then
13704 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13705 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13706 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13707 if test "${ac_cv_search_bfd_init+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 ac_func_search_save_LIBS=$LIBS
13711 cat >conftest.$ac_ext <<_ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13718 /* Override any GCC internal prototype to avoid an error.
13719 Use char because int might match the return type of a GCC
13720 builtin and then its argument prototype would still apply. */
13728 return bfd_init ();
13733 for ac_lib in '' bfd; do
13734 if test -z "$ac_lib"; then
13735 ac_res="none required"
13738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13740 rm -f conftest.$ac_objext conftest$ac_exeext
13741 if { (ac_try="$ac_link"
13742 case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_link") 2>conftest.er1
13749 grep -v '^ *+' conftest.er1 >conftest.err
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; } &&
13764 { ac_try='test -s conftest$ac_exeext'
13765 { (case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_try") 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_search_bfd_init=$ac_res
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13782 rm -f core conftest.err conftest.$ac_objext \
13784 if test "${ac_cv_search_bfd_init+set}" = set; then
13788 if test "${ac_cv_search_bfd_init+set}" = set; then
13791 ac_cv_search_bfd_init=no
13793 rm conftest.$ac_ext
13794 LIBS=$ac_func_search_save_LIBS
13796 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13797 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13798 ac_res=$ac_cv_search_bfd_init
13799 if test "$ac_res" != no; then
13800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13804 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13805 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13806 if test "${ac_cv_search_op_open_agent+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 ac_func_search_save_LIBS=$LIBS
13810 cat >conftest.$ac_ext <<_ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13817 /* Override any GCC internal prototype to avoid an error.
13818 Use char because int might match the return type of a GCC
13819 builtin and then its argument prototype would still apply. */
13823 char op_open_agent ();
13827 return op_open_agent ();
13832 for ac_lib in '' opagent; do
13833 if test -z "$ac_lib"; then
13834 ac_res="none required"
13837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (ac_try="$ac_link"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_link") 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854 { (case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_try") 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; } &&
13863 { ac_try='test -s conftest$ac_exeext'
13864 { (case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_try") 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 ac_cv_search_op_open_agent=$ac_res
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13881 rm -f core conftest.err conftest.$ac_objext \
13883 if test "${ac_cv_search_op_open_agent+set}" = set; then
13887 if test "${ac_cv_search_op_open_agent+set}" = set; then
13890 ac_cv_search_op_open_agent=no
13892 rm conftest.$ac_ext
13893 LIBS=$ac_func_search_save_LIBS
13895 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13896 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13897 ac_res=$ac_cv_search_op_open_agent
13898 if test "$ac_res" != no; then
13899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13903 echo "Error! You need to have libopagent around."
13908 if test "${ac_cv_header_opagent_h+set}" = set; then
13909 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13910 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13911 if test "${ac_cv_header_opagent_h+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13915 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13917 # Is the header compilable?
13918 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13919 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13920 cat >conftest.$ac_ext <<_ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13926 $ac_includes_default
13927 #include <opagent.h>
13929 rm -f conftest.$ac_objext
13930 if { (ac_try="$ac_compile"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_compile") 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13944 { (case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_try") 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest.$ac_objext'
13954 { (case "(($ac_try" in
13955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956 *) ac_try_echo=$ac_try;;
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_try") 2>&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_header_compiler=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_header_compiler=no
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13977 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <opagent.h>
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13994 grep -v '^ *+' conftest.er1 >conftest.err
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev/null; then
13999 if test -s conftest.err; then
14000 ac_cpp_err=$ac_c_preproc_warn_flag
14001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14008 if test -z "$ac_cpp_err"; then
14009 ac_header_preproc=yes
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 ac_header_preproc=no
14017 rm -f conftest.err conftest.$ac_ext
14018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14019 echo "${ECHO_T}$ac_header_preproc" >&6; }
14021 # So? What about this header?
14022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14024 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14025 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14027 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14028 ac_header_preproc=yes
14031 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14032 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14034 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14036 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14038 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14040 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14042 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14044 ## ------------------------------------ ##
14045 ## Report this to http://llvm.org/bugs/ ##
14046 ## ------------------------------------ ##
14048 ) | sed "s/^/$as_me: WARNING: /" >&2
14051 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14052 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14053 if test "${ac_cv_header_opagent_h+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 ac_cv_header_opagent_h=$ac_header_preproc
14058 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14059 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14062 if test $ac_cv_header_opagent_h = yes; then
14066 echo "Error! You need to have opagent.h around."
14074 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14075 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14076 { (exit 1); exit 1; }; } ;;
14087 cat >>confdefs.h <<_ACEOF
14088 #define LLVM_USE_OPROFILE $USE_OPROFILE
14093 # Check whether --with-intel-jitevents was given.
14094 if test "${with_intel_jitevents+set}" = set; then
14095 withval=$with_intel_jitevents;
14097 yes) USE_INTEL_JITEVENTS=1
14099 no) USE_INTEL_JITEVENTS=0
14101 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14102 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14103 { (exit 1); exit 1; }; };;
14106 case $llvm_cv_os_type in
14107 Linux|Win32|Cygwin|MingW) ;;
14108 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14109 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14110 { (exit 1); exit 1; }; };;
14113 case "$llvm_cv_target_arch" in
14115 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14116 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14117 { (exit 1); exit 1; }; };;
14122 USE_INTEL_JITEVENTS=0
14128 cat >>confdefs.h <<_ACEOF
14129 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14133 for ac_prog in xml2-config
14135 # Extract the first word of "$ac_prog", so it can be a program name with args.
14136 set dummy $ac_prog; ac_word=$2
14137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14139 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 if test -n "$XML2CONFIG"; then
14143 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14149 test -z "$as_dir" && as_dir=.
14150 for ac_exec_ext in '' $ac_executable_extensions; do
14151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14152 ac_cv_prog_XML2CONFIG="$ac_prog"
14153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14162 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14163 if test -n "$XML2CONFIG"; then
14164 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14165 echo "${ECHO_T}$XML2CONFIG" >&6; }
14167 { echo "$as_me:$LINENO: result: no" >&5
14168 echo "${ECHO_T}no" >&6; }
14172 test -n "$XML2CONFIG" && break
14176 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14177 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14178 if test "x$XML2CONFIG" = "x"; then
14179 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14180 echo "${ECHO_T}xml2-config not found" >&6; }
14182 LIBXML2_INC=`$XML2CONFIG --cflags`
14183 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14184 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14185 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14186 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14187 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 ac_check_lib_save_LIBS=$LIBS
14191 LIBS="-lxml2 $LIBS"
14192 cat >conftest.$ac_ext <<_ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14199 /* Override any GCC internal prototype to avoid an error.
14200 Use char because int might match the return type of a GCC
14201 builtin and then its argument prototype would still apply. */
14205 char xmlReadFile ();
14209 return xmlReadFile ();
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (ac_try="$ac_link"
14216 case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_link") 2>conftest.er1
14223 grep -v '^ *+' conftest.er1 >conftest.err
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14229 { (case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_try") 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest$ac_exeext'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
14248 ac_cv_lib_xml2_xmlReadFile=yes
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 ac_cv_lib_xml2_xmlReadFile=no
14256 rm -f core conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14258 LIBS=$ac_check_lib_save_LIBS
14260 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14261 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14262 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14264 cat >>confdefs.h <<\_ACEOF
14265 #define CLANG_HAVE_LIBXML 1
14268 LIBXML2_LIBS="-lxml2"
14281 ac_header_dirent=no
14282 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14283 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14284 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14285 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 cat >conftest.$ac_ext <<_ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 #include <sys/types.h>
14307 rm -f conftest.$ac_objext
14308 if { (ac_try="$ac_compile"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_compile") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322 { (case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_try") 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest.$ac_objext'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 eval "$as_ac_Header=yes"
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 eval "$as_ac_Header=no"
14349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351 ac_res=`eval echo '${'$as_ac_Header'}'`
14352 { echo "$as_me:$LINENO: result: $ac_res" >&5
14353 echo "${ECHO_T}$ac_res" >&6; }
14354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355 cat >>confdefs.h <<_ACEOF
14356 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14359 ac_header_dirent=$ac_hdr; break
14363 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14364 if test $ac_header_dirent = dirent.h; then
14365 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14366 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14367 if test "${ac_cv_search_opendir+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 ac_func_search_save_LIBS=$LIBS
14371 cat >conftest.$ac_ext <<_ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14378 /* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply. */
14393 for ac_lib in '' dir; do
14394 if test -z "$ac_lib"; then
14395 ac_res="none required"
14398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (ac_try="$ac_link"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_link") 2>conftest.er1
14409 grep -v '^ *+' conftest.er1 >conftest.err
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14415 { (case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_try") 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest$ac_exeext'
14425 { (case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_try") 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 ac_cv_search_opendir=$ac_res
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14442 rm -f core conftest.err conftest.$ac_objext \
14444 if test "${ac_cv_search_opendir+set}" = set; then
14448 if test "${ac_cv_search_opendir+set}" = set; then
14451 ac_cv_search_opendir=no
14453 rm conftest.$ac_ext
14454 LIBS=$ac_func_search_save_LIBS
14456 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14457 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14458 ac_res=$ac_cv_search_opendir
14459 if test "$ac_res" != no; then
14460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14465 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14466 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14467 if test "${ac_cv_search_opendir+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 ac_func_search_save_LIBS=$LIBS
14471 cat >conftest.$ac_ext <<_ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14478 /* Override any GCC internal prototype to avoid an error.
14479 Use char because int might match the return type of a GCC
14480 builtin and then its argument prototype would still apply. */
14493 for ac_lib in '' x; do
14494 if test -z "$ac_lib"; then
14495 ac_res="none required"
14498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14500 rm -f conftest.$ac_objext conftest$ac_exeext
14501 if { (ac_try="$ac_link"
14502 case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_link") 2>conftest.er1
14509 grep -v '^ *+' conftest.er1 >conftest.err
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14515 { (case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_try") 2>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest$ac_exeext'
14525 { (case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_try") 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_cv_search_opendir=$ac_res
14536 echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14542 rm -f core conftest.err conftest.$ac_objext \
14544 if test "${ac_cv_search_opendir+set}" = set; then
14548 if test "${ac_cv_search_opendir+set}" = set; then
14551 ac_cv_search_opendir=no
14553 rm conftest.$ac_ext
14554 LIBS=$ac_func_search_save_LIBS
14556 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14557 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14558 ac_res=$ac_cv_search_opendir
14559 if test "$ac_res" != no; then
14560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14566 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14567 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14568 if test "${ac_cv_header_mmap_anon+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 ac_cpp='$CPP $CPPFLAGS'
14573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14577 cat >conftest.$ac_ext <<_ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 #include <sys/mman.h>
14584 #include <unistd.h>
14589 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_compile") 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609 { (case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_try") 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; } &&
14618 { ac_try='test -s conftest.$ac_objext'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_cv_header_mmap_anon=yes
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ac_cv_header_mmap_anon=no
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 ac_cpp='$CPP $CPPFLAGS'
14639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14645 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14646 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14647 if test "$ac_cv_header_mmap_anon" = yes; then
14649 cat >>confdefs.h <<\_ACEOF
14650 #define HAVE_MMAP_ANONYMOUS 1
14655 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14656 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14657 if test "${ac_cv_header_stat_broken+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 cat >conftest.$ac_ext <<_ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 #include <sys/types.h>
14667 #include <sys/stat.h>
14669 #if defined S_ISBLK && defined S_IFDIR
14670 # if S_ISBLK (S_IFDIR)
14675 #if defined S_ISBLK && defined S_IFCHR
14676 # if S_ISBLK (S_IFCHR)
14681 #if defined S_ISLNK && defined S_IFREG
14682 # if S_ISLNK (S_IFREG)
14687 #if defined S_ISSOCK && defined S_IFREG
14688 # if S_ISSOCK (S_IFREG)
14694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14695 $EGREP "You lose" >/dev/null 2>&1; then
14696 ac_cv_header_stat_broken=yes
14698 ac_cv_header_stat_broken=no
14703 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14704 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14705 if test $ac_cv_header_stat_broken = yes; then
14707 cat >>confdefs.h <<\_ACEOF
14708 #define STAT_MACROS_BROKEN 1
14713 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14714 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14715 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 cat >conftest.$ac_ext <<_ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 #include <sys/types.h>
14725 #include <sys/wait.h>
14726 #ifndef WEXITSTATUS
14727 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14730 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14738 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14743 rm -f conftest.$ac_objext
14744 if { (ac_try="$ac_compile"
14745 case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_compile") 2>conftest.er1
14752 grep -v '^ *+' conftest.er1 >conftest.err
14754 cat conftest.err >&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } &&
14757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_try") 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; } &&
14767 { ac_try='test -s conftest.$ac_objext'
14768 { (case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_try") 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 ac_cv_header_sys_wait_h=yes
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_cv_header_sys_wait_h=no
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14788 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14789 if test $ac_cv_header_sys_wait_h = yes; then
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_SYS_WAIT_H 1
14797 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14798 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14799 if test "${ac_cv_header_time+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 cat >conftest.$ac_ext <<_ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 #include <sys/types.h>
14809 #include <sys/time.h>
14815 if ((struct tm *) 0)
14821 rm -f conftest.$ac_objext
14822 if { (ac_try="$ac_compile"
14823 case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_compile") 2>conftest.er1
14830 grep -v '^ *+' conftest.er1 >conftest.err
14832 cat conftest.err >&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } &&
14835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14836 { (case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_try") 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; } &&
14845 { ac_try='test -s conftest.$ac_objext'
14846 { (case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_try") 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 ac_cv_header_time=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_cv_header_time=no
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14866 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14867 if test $ac_cv_header_time = yes; then
14869 cat >>confdefs.h <<\_ACEOF
14870 #define TIME_WITH_SYS_TIME 1
14877 ac_cpp='$CXXCPP $CPPFLAGS'
14878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14883 ac_cpp='$CXXCPP $CPPFLAGS'
14884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14887 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14888 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14889 if test -z "$CXXCPP"; then
14890 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14893 # Double quotes because CXXCPP needs to be expanded
14894 for CXXCPP in "$CXX -E" "/lib/cpp"
14896 ac_preproc_ok=false
14897 for ac_cxx_preproc_warn_flag in '' yes
14899 # Use a header file that comes with gcc, so configuring glibc
14900 # with a fresh cross-compiler works.
14901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14902 # <limits.h> exists even on freestanding compilers.
14903 # On the NeXT, cc -E runs the code through the compiler's parser,
14904 # not just through cpp. "Syntax error" is here to catch this case.
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14912 # include <limits.h>
14914 # include <assert.h>
14918 if { (ac_try="$ac_cpp conftest.$ac_ext"
14919 case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14926 grep -v '^ *+' conftest.er1 >conftest.err
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } >/dev/null; then
14931 if test -s conftest.err; then
14932 ac_cpp_err=$ac_cxx_preproc_warn_flag
14933 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14940 if test -z "$ac_cpp_err"; then
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 # Broken: fails on valid input.
14950 rm -f conftest.err conftest.$ac_ext
14952 # OK, works on sane cases. Now check whether nonexistent headers
14953 # can be detected and how.
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 #include <ac_nonexistent.h>
14962 if { (ac_try="$ac_cpp conftest.$ac_ext"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14970 grep -v '^ *+' conftest.er1 >conftest.err
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } >/dev/null; then
14975 if test -s conftest.err; then
14976 ac_cpp_err=$ac_cxx_preproc_warn_flag
14977 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14984 if test -z "$ac_cpp_err"; then
14985 # Broken: success on invalid input.
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 # Passes both tests.
14996 rm -f conftest.err conftest.$ac_ext
14999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15000 rm -f conftest.err conftest.$ac_ext
15001 if $ac_preproc_ok; then
15006 ac_cv_prog_CXXCPP=$CXXCPP
15009 CXXCPP=$ac_cv_prog_CXXCPP
15011 ac_cv_prog_CXXCPP=$CXXCPP
15013 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15014 echo "${ECHO_T}$CXXCPP" >&6; }
15015 ac_preproc_ok=false
15016 for ac_cxx_preproc_warn_flag in '' yes
15018 # Use a header file that comes with gcc, so configuring glibc
15019 # with a fresh cross-compiler works.
15020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15021 # <limits.h> exists even on freestanding compilers.
15022 # On the NeXT, cc -E runs the code through the compiler's parser,
15023 # not just through cpp. "Syntax error" is here to catch this case.
15024 cat >conftest.$ac_ext <<_ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15031 # include <limits.h>
15033 # include <assert.h>
15037 if { (ac_try="$ac_cpp conftest.$ac_ext"
15038 case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15045 grep -v '^ *+' conftest.er1 >conftest.err
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } >/dev/null; then
15050 if test -s conftest.err; then
15051 ac_cpp_err=$ac_cxx_preproc_warn_flag
15052 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15059 if test -z "$ac_cpp_err"; then
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15065 # Broken: fails on valid input.
15069 rm -f conftest.err conftest.$ac_ext
15071 # OK, works on sane cases. Now check whether nonexistent headers
15072 # can be detected and how.
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 #include <ac_nonexistent.h>
15081 if { (ac_try="$ac_cpp conftest.$ac_ext"
15082 case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15089 grep -v '^ *+' conftest.er1 >conftest.err
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } >/dev/null; then
15094 if test -s conftest.err; then
15095 ac_cpp_err=$ac_cxx_preproc_warn_flag
15096 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15103 if test -z "$ac_cpp_err"; then
15104 # Broken: success on invalid input.
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 # Passes both tests.
15115 rm -f conftest.err conftest.$ac_ext
15118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15119 rm -f conftest.err conftest.$ac_ext
15120 if $ac_preproc_ok; then
15123 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15124 See \`config.log' for more details." >&5
15125 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15126 See \`config.log' for more details." >&2;}
15127 { (exit 1); exit 1; }; }
15131 ac_cpp='$CXXCPP $CPPFLAGS'
15132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15138 for ac_header in cxxabi.h
15140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 ac_res=`eval echo '${'$as_ac_Header'}'`
15148 { echo "$as_me:$LINENO: result: $ac_res" >&5
15149 echo "${ECHO_T}$ac_res" >&6; }
15151 # Is the header compilable?
15152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15154 cat >conftest.$ac_ext <<_ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15160 $ac_includes_default
15161 #include <$ac_header>
15163 rm -f conftest.$ac_objext
15164 if { (ac_try="$ac_compile"
15165 case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_compile") 2>conftest.er1
15172 grep -v '^ *+' conftest.er1 >conftest.err
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15178 { (case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_try") 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_try") 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15197 ac_header_compiler=yes
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15202 ac_header_compiler=no
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15207 echo "${ECHO_T}$ac_header_compiler" >&6; }
15209 # Is the header present?
15210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15212 cat >conftest.$ac_ext <<_ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 #include <$ac_header>
15220 if { (ac_try="$ac_cpp conftest.$ac_ext"
15221 case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15228 grep -v '^ *+' conftest.er1 >conftest.err
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } >/dev/null; then
15233 if test -s conftest.err; then
15234 ac_cpp_err=$ac_cxx_preproc_warn_flag
15235 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15242 if test -z "$ac_cpp_err"; then
15243 ac_header_preproc=yes
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15248 ac_header_preproc=no
15251 rm -f conftest.err conftest.$ac_ext
15252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15253 echo "${ECHO_T}$ac_header_preproc" >&6; }
15255 # So? What about this header?
15256 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15262 ac_header_preproc=yes
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15278 ## ------------------------------------ ##
15279 ## Report this to http://llvm.org/bugs/ ##
15280 ## ------------------------------------ ##
15282 ) | sed "s/^/$as_me: WARNING: /" >&2
15285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 eval "$as_ac_Header=\$ac_header_preproc"
15292 ac_res=`eval echo '${'$as_ac_Header'}'`
15293 { echo "$as_me:$LINENO: result: $ac_res" >&5
15294 echo "${ECHO_T}$ac_res" >&6; }
15297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15298 cat >>confdefs.h <<_ACEOF
15299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15307 ac_cpp='$CPP $CPPFLAGS'
15308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15318 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 ac_res=`eval echo '${'$as_ac_Header'}'`
15328 { echo "$as_me:$LINENO: result: $ac_res" >&5
15329 echo "${ECHO_T}$ac_res" >&6; }
15331 # Is the header compilable?
15332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 $ac_includes_default
15341 #include <$ac_header>
15343 rm -f conftest.$ac_objext
15344 if { (ac_try="$ac_compile"
15345 case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_compile") 2>conftest.er1
15352 grep -v '^ *+' conftest.er1 >conftest.err
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
15357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15358 { (case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_try") 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; } &&
15367 { ac_try='test -s conftest.$ac_objext'
15368 { (case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_try") 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }; then
15377 ac_header_compiler=yes
15379 echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15382 ac_header_compiler=no
15385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15387 echo "${ECHO_T}$ac_header_compiler" >&6; }
15389 # Is the header present?
15390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15392 cat >conftest.$ac_ext <<_ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 #include <$ac_header>
15400 if { (ac_try="$ac_cpp conftest.$ac_ext"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15408 grep -v '^ *+' conftest.er1 >conftest.err
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } >/dev/null; then
15413 if test -s conftest.err; then
15414 ac_cpp_err=$ac_c_preproc_warn_flag
15415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15422 if test -z "$ac_cpp_err"; then
15423 ac_header_preproc=yes
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15428 ac_header_preproc=no
15431 rm -f conftest.err conftest.$ac_ext
15432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15433 echo "${ECHO_T}$ac_header_preproc" >&6; }
15435 # So? What about this header?
15436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15442 ac_header_preproc=yes
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15458 ## ------------------------------------ ##
15459 ## Report this to http://llvm.org/bugs/ ##
15460 ## ------------------------------------ ##
15462 ) | sed "s/^/$as_me: WARNING: /" >&2
15465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15470 eval "$as_ac_Header=\$ac_header_preproc"
15472 ac_res=`eval echo '${'$as_ac_Header'}'`
15473 { echo "$as_me:$LINENO: result: $ac_res" >&5
15474 echo "${ECHO_T}$ac_res" >&6; }
15477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15478 cat >>confdefs.h <<_ACEOF
15479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15492 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502 { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15505 # Is the header compilable?
15506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 $ac_includes_default
15515 #include <$ac_header>
15517 rm -f conftest.$ac_objext
15518 if { (ac_try="$ac_compile"
15519 case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_compile") 2>conftest.er1
15526 grep -v '^ *+' conftest.er1 >conftest.err
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15532 { (case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_try") 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest.$ac_objext'
15542 { (case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_try") 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_header_compiler=yes
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ac_header_compiler=no
15559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15561 echo "${ECHO_T}$ac_header_compiler" >&6; }
15563 # Is the header present?
15564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15566 cat >conftest.$ac_ext <<_ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15572 #include <$ac_header>
15574 if { (ac_try="$ac_cpp conftest.$ac_ext"
15575 case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15582 grep -v '^ *+' conftest.er1 >conftest.err
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } >/dev/null; then
15587 if test -s conftest.err; then
15588 ac_cpp_err=$ac_c_preproc_warn_flag
15589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15596 if test -z "$ac_cpp_err"; then
15597 ac_header_preproc=yes
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 ac_header_preproc=no
15605 rm -f conftest.err conftest.$ac_ext
15606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15607 echo "${ECHO_T}$ac_header_preproc" >&6; }
15609 # So? What about this header?
15610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15616 ac_header_preproc=yes
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15632 ## ------------------------------------ ##
15633 ## Report this to http://llvm.org/bugs/ ##
15634 ## ------------------------------------ ##
15636 ) | sed "s/^/$as_me: WARNING: /" >&2
15639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 eval "$as_ac_Header=\$ac_header_preproc"
15646 ac_res=`eval echo '${'$as_ac_Header'}'`
15647 { echo "$as_me:$LINENO: result: $ac_res" >&5
15648 echo "${ECHO_T}$ac_res" >&6; }
15651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15652 cat >>confdefs.h <<_ACEOF
15653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15662 for ac_header in utime.h windows.h
15664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 ac_res=`eval echo '${'$as_ac_Header'}'`
15672 { echo "$as_me:$LINENO: result: $ac_res" >&5
15673 echo "${ECHO_T}$ac_res" >&6; }
15675 # Is the header compilable?
15676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15678 cat >conftest.$ac_ext <<_ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 $ac_includes_default
15685 #include <$ac_header>
15687 rm -f conftest.$ac_objext
15688 if { (ac_try="$ac_compile"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_compile") 2>conftest.er1
15696 grep -v '^ *+' conftest.er1 >conftest.err
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15702 { (case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707 (eval "$ac_try") 2>&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; } &&
15711 { ac_try='test -s conftest.$ac_objext'
15712 { (case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_try") 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_header_compiler=yes
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15726 ac_header_compiler=no
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15731 echo "${ECHO_T}$ac_header_compiler" >&6; }
15733 # Is the header present?
15734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15736 cat >conftest.$ac_ext <<_ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 #include <$ac_header>
15744 if { (ac_try="$ac_cpp conftest.$ac_ext"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15752 grep -v '^ *+' conftest.er1 >conftest.err
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } >/dev/null; then
15757 if test -s conftest.err; then
15758 ac_cpp_err=$ac_c_preproc_warn_flag
15759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15766 if test -z "$ac_cpp_err"; then
15767 ac_header_preproc=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_header_preproc=no
15775 rm -f conftest.err conftest.$ac_ext
15776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15777 echo "${ECHO_T}$ac_header_preproc" >&6; }
15779 # So? What about this header?
15780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15786 ac_header_preproc=yes
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15802 ## ------------------------------------ ##
15803 ## Report this to http://llvm.org/bugs/ ##
15804 ## ------------------------------------ ##
15806 ) | sed "s/^/$as_me: WARNING: /" >&2
15809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15812 echo $ECHO_N "(cached) $ECHO_C" >&6
15814 eval "$as_ac_Header=\$ac_header_preproc"
15816 ac_res=`eval echo '${'$as_ac_Header'}'`
15817 { echo "$as_me:$LINENO: result: $ac_res" >&5
15818 echo "${ECHO_T}$ac_res" >&6; }
15821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15822 cat >>confdefs.h <<_ACEOF
15823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15835 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 ac_res=`eval echo '${'$as_ac_Header'}'`
15845 { echo "$as_me:$LINENO: result: $ac_res" >&5
15846 echo "${ECHO_T}$ac_res" >&6; }
15848 # Is the header compilable?
15849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 $ac_includes_default
15858 #include <$ac_header>
15860 rm -f conftest.$ac_objext
15861 if { (ac_try="$ac_compile"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_compile") 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
15874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15875 { (case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_try") 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; } &&
15884 { ac_try='test -s conftest.$ac_objext'
15885 { (case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_try") 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
15894 ac_header_compiler=yes
15896 echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15899 ac_header_compiler=no
15902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15904 echo "${ECHO_T}$ac_header_compiler" >&6; }
15906 # Is the header present?
15907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 #include <$ac_header>
15917 if { (ac_try="$ac_cpp conftest.$ac_ext"
15918 case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15925 grep -v '^ *+' conftest.er1 >conftest.err
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } >/dev/null; then
15930 if test -s conftest.err; then
15931 ac_cpp_err=$ac_c_preproc_warn_flag
15932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15939 if test -z "$ac_cpp_err"; then
15940 ac_header_preproc=yes
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_header_preproc=no
15948 rm -f conftest.err conftest.$ac_ext
15949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15950 echo "${ECHO_T}$ac_header_preproc" >&6; }
15952 # So? What about this header?
15953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15959 ac_header_preproc=yes
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15975 ## ------------------------------------ ##
15976 ## Report this to http://llvm.org/bugs/ ##
15977 ## ------------------------------------ ##
15979 ) | sed "s/^/$as_me: WARNING: /" >&2
15982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15987 eval "$as_ac_Header=\$ac_header_preproc"
15989 ac_res=`eval echo '${'$as_ac_Header'}'`
15990 { echo "$as_me:$LINENO: result: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15995 cat >>confdefs.h <<_ACEOF
15996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16007 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 ac_res=`eval echo '${'$as_ac_Header'}'`
16017 { echo "$as_me:$LINENO: result: $ac_res" >&5
16018 echo "${ECHO_T}$ac_res" >&6; }
16020 # Is the header compilable?
16021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16023 cat >conftest.$ac_ext <<_ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 $ac_includes_default
16030 #include <$ac_header>
16032 rm -f conftest.$ac_objext
16033 if { (ac_try="$ac_compile"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_compile") 2>conftest.er1
16041 grep -v '^ *+' conftest.er1 >conftest.err
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16047 { (case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_try") 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest.$ac_objext'
16057 { (case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_try") 2>&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16066 ac_header_compiler=yes
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 ac_header_compiler=no
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076 echo "${ECHO_T}$ac_header_compiler" >&6; }
16078 # Is the header present?
16079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16081 cat >conftest.$ac_ext <<_ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <$ac_header>
16089 if { (ac_try="$ac_cpp conftest.$ac_ext"
16090 case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16097 grep -v '^ *+' conftest.er1 >conftest.err
16099 cat conftest.err >&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } >/dev/null; then
16102 if test -s conftest.err; then
16103 ac_cpp_err=$ac_c_preproc_warn_flag
16104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16111 if test -z "$ac_cpp_err"; then
16112 ac_header_preproc=yes
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16117 ac_header_preproc=no
16120 rm -f conftest.err conftest.$ac_ext
16121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16122 echo "${ECHO_T}$ac_header_preproc" >&6; }
16124 # So? What about this header?
16125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16131 ac_header_preproc=yes
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16147 ## ------------------------------------ ##
16148 ## Report this to http://llvm.org/bugs/ ##
16149 ## ------------------------------------ ##
16151 ) | sed "s/^/$as_me: WARNING: /" >&2
16154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 eval "$as_ac_Header=\$ac_header_preproc"
16161 ac_res=`eval echo '${'$as_ac_Header'}'`
16162 { echo "$as_me:$LINENO: result: $ac_res" >&5
16163 echo "${ECHO_T}$ac_res" >&6; }
16166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16167 cat >>confdefs.h <<_ACEOF
16168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16176 for ac_header in valgrind/valgrind.h
16178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 ac_res=`eval echo '${'$as_ac_Header'}'`
16186 { echo "$as_me:$LINENO: result: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16189 # Is the header compilable?
16190 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16192 cat >conftest.$ac_ext <<_ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 $ac_includes_default
16199 #include <$ac_header>
16201 rm -f conftest.$ac_objext
16202 if { (ac_try="$ac_compile"
16203 case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_compile") 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
16215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16216 { (case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_try") 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; } &&
16225 { ac_try='test -s conftest.$ac_objext'
16226 { (case "(($ac_try" in
16227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228 *) ac_try_echo=$ac_try;;
16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231 (eval "$ac_try") 2>&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; }; then
16235 ac_header_compiler=yes
16237 echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16240 ac_header_compiler=no
16243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16245 echo "${ECHO_T}$ac_header_compiler" >&6; }
16247 # Is the header present?
16248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16250 cat >conftest.$ac_ext <<_ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16256 #include <$ac_header>
16258 if { (ac_try="$ac_cpp conftest.$ac_ext"
16259 case "(($ac_try" in
16260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16266 grep -v '^ *+' conftest.er1 >conftest.err
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } >/dev/null; then
16271 if test -s conftest.err; then
16272 ac_cpp_err=$ac_c_preproc_warn_flag
16273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16280 if test -z "$ac_cpp_err"; then
16281 ac_header_preproc=yes
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 ac_header_preproc=no
16289 rm -f conftest.err conftest.$ac_ext
16290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16291 echo "${ECHO_T}$ac_header_preproc" >&6; }
16293 # So? What about this header?
16294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16300 ac_header_preproc=yes
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16316 ## ------------------------------------ ##
16317 ## Report this to http://llvm.org/bugs/ ##
16318 ## ------------------------------------ ##
16320 ) | sed "s/^/$as_me: WARNING: /" >&2
16323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 eval "$as_ac_Header=\$ac_header_preproc"
16330 ac_res=`eval echo '${'$as_ac_Header'}'`
16331 { echo "$as_me:$LINENO: result: $ac_res" >&5
16332 echo "${ECHO_T}$ac_res" >&6; }
16335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16336 cat >>confdefs.h <<_ACEOF
16337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16345 for ac_header in fenv.h
16347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 ac_res=`eval echo '${'$as_ac_Header'}'`
16355 { echo "$as_me:$LINENO: result: $ac_res" >&5
16356 echo "${ECHO_T}$ac_res" >&6; }
16358 # Is the header compilable?
16359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16361 cat >conftest.$ac_ext <<_ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h. */
16367 $ac_includes_default
16368 #include <$ac_header>
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_compile") 2>conftest.er1
16379 grep -v '^ *+' conftest.er1 >conftest.err
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16385 { (case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_try") 2>&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; } &&
16394 { ac_try='test -s conftest.$ac_objext'
16395 { (case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_try") 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; }; then
16404 ac_header_compiler=yes
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16409 ac_header_compiler=no
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16414 echo "${ECHO_T}$ac_header_compiler" >&6; }
16416 # Is the header present?
16417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16419 cat >conftest.$ac_ext <<_ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 #include <$ac_header>
16427 if { (ac_try="$ac_cpp conftest.$ac_ext"
16428 case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16435 grep -v '^ *+' conftest.er1 >conftest.err
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } >/dev/null; then
16440 if test -s conftest.err; then
16441 ac_cpp_err=$ac_c_preproc_warn_flag
16442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16449 if test -z "$ac_cpp_err"; then
16450 ac_header_preproc=yes
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16455 ac_header_preproc=no
16458 rm -f conftest.err conftest.$ac_ext
16459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16460 echo "${ECHO_T}$ac_header_preproc" >&6; }
16462 # So? What about this header?
16463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16469 ac_header_preproc=yes
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16485 ## ------------------------------------ ##
16486 ## Report this to http://llvm.org/bugs/ ##
16487 ## ------------------------------------ ##
16489 ) | sed "s/^/$as_me: WARNING: /" >&2
16492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 eval "$as_ac_Header=\$ac_header_preproc"
16499 ac_res=`eval echo '${'$as_ac_Header'}'`
16500 { echo "$as_me:$LINENO: result: $ac_res" >&5
16501 echo "${ECHO_T}$ac_res" >&6; }
16504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16505 cat >>confdefs.h <<_ACEOF
16506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16513 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16514 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16515 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16529 #ifndef FE_ALL_EXCEPT
16530 char *p = (char *) FE_ALL_EXCEPT;
16538 rm -f conftest.$ac_objext
16539 if { (ac_try="$ac_compile"
16540 case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_compile") 2>conftest.er1
16547 grep -v '^ *+' conftest.er1 >conftest.err
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16553 { (case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_try") 2>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; } &&
16562 { ac_try='test -s conftest.$ac_objext'
16563 { (case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_try") 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ac_cv_have_decl_FE_ALL_EXCEPT=no
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16583 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16584 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16586 cat >>confdefs.h <<_ACEOF
16587 #define HAVE_DECL_FE_ALL_EXCEPT 1
16592 cat >>confdefs.h <<_ACEOF
16593 #define HAVE_DECL_FE_ALL_EXCEPT 0
16598 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16599 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16600 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 cat >conftest.$ac_ext <<_ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h. */
16615 char *p = (char *) FE_INEXACT;
16623 rm -f conftest.$ac_objext
16624 if { (ac_try="$ac_compile"
16625 case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_compile") 2>conftest.er1
16632 grep -v '^ *+' conftest.er1 >conftest.err
16634 cat conftest.err >&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); } &&
16637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16638 { (case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_try") 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try='test -s conftest.$ac_objext'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 ac_cv_have_decl_FE_INEXACT=yes
16659 echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16662 ac_cv_have_decl_FE_INEXACT=no
16665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16668 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16669 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16671 cat >>confdefs.h <<_ACEOF
16672 #define HAVE_DECL_FE_INEXACT 1
16677 cat >>confdefs.h <<_ACEOF
16678 #define HAVE_DECL_FE_INEXACT 0
16685 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16687 for ac_header in pthread.h
16689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16694 echo $ECHO_N "(cached) $ECHO_C" >&6
16696 ac_res=`eval echo '${'$as_ac_Header'}'`
16697 { echo "$as_me:$LINENO: result: $ac_res" >&5
16698 echo "${ECHO_T}$ac_res" >&6; }
16700 # Is the header compilable?
16701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16703 cat >conftest.$ac_ext <<_ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 $ac_includes_default
16710 #include <$ac_header>
16712 rm -f conftest.$ac_objext
16713 if { (ac_try="$ac_compile"
16714 case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_compile") 2>conftest.er1
16721 grep -v '^ *+' conftest.er1 >conftest.err
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest.$ac_objext'
16737 { (case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_try") 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_header_compiler=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_header_compiler=no
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16756 echo "${ECHO_T}$ac_header_compiler" >&6; }
16758 # Is the header present?
16759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16761 cat >conftest.$ac_ext <<_ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 #include <$ac_header>
16769 if { (ac_try="$ac_cpp conftest.$ac_ext"
16770 case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16777 grep -v '^ *+' conftest.er1 >conftest.err
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } >/dev/null; then
16782 if test -s conftest.err; then
16783 ac_cpp_err=$ac_c_preproc_warn_flag
16784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16791 if test -z "$ac_cpp_err"; then
16792 ac_header_preproc=yes
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 ac_header_preproc=no
16800 rm -f conftest.err conftest.$ac_ext
16801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16802 echo "${ECHO_T}$ac_header_preproc" >&6; }
16804 # So? What about this header?
16805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16811 ac_header_preproc=yes
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16827 ## ------------------------------------ ##
16828 ## Report this to http://llvm.org/bugs/ ##
16829 ## ------------------------------------ ##
16831 ) | sed "s/^/$as_me: WARNING: /" >&2
16834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16837 echo $ECHO_N "(cached) $ECHO_C" >&6
16839 eval "$as_ac_Header=\$ac_header_preproc"
16841 ac_res=`eval echo '${'$as_ac_Header'}'`
16842 { echo "$as_me:$LINENO: result: $ac_res" >&5
16843 echo "${ECHO_T}$ac_res" >&6; }
16846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16847 cat >>confdefs.h <<_ACEOF
16848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16863 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16865 for ac_header in zlib.h
16867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 ac_res=`eval echo '${'$as_ac_Header'}'`
16875 { echo "$as_me:$LINENO: result: $ac_res" >&5
16876 echo "${ECHO_T}$ac_res" >&6; }
16878 # Is the header compilable?
16879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16881 cat >conftest.$ac_ext <<_ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 $ac_includes_default
16888 #include <$ac_header>
16890 rm -f conftest.$ac_objext
16891 if { (ac_try="$ac_compile"
16892 case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_compile") 2>conftest.er1
16899 grep -v '^ *+' conftest.er1 >conftest.err
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest.$ac_objext'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_header_compiler=yes
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 ac_header_compiler=no
16932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16934 echo "${ECHO_T}$ac_header_compiler" >&6; }
16936 # Is the header present?
16937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 #include <$ac_header>
16947 if { (ac_try="$ac_cpp conftest.$ac_ext"
16948 case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16955 grep -v '^ *+' conftest.er1 >conftest.err
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } >/dev/null; then
16960 if test -s conftest.err; then
16961 ac_cpp_err=$ac_c_preproc_warn_flag
16962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16969 if test -z "$ac_cpp_err"; then
16970 ac_header_preproc=yes
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 ac_header_preproc=no
16978 rm -f conftest.err conftest.$ac_ext
16979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16980 echo "${ECHO_T}$ac_header_preproc" >&6; }
16982 # So? What about this header?
16983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16989 ac_header_preproc=yes
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17005 ## ------------------------------------ ##
17006 ## Report this to http://llvm.org/bugs/ ##
17007 ## ------------------------------------ ##
17009 ) | sed "s/^/$as_me: WARNING: /" >&2
17012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 eval "$as_ac_Header=\$ac_header_preproc"
17019 ac_res=`eval echo '${'$as_ac_Header'}'`
17020 { echo "$as_me:$LINENO: result: $ac_res" >&5
17021 echo "${ECHO_T}$ac_res" >&6; }
17024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17025 cat >>confdefs.h <<_ACEOF
17026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17042 if test "$llvm_cv_enable_libffi" = "yes" ; then
17045 for ac_header in ffi.h ffi/ffi.h
17047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 ac_res=`eval echo '${'$as_ac_Header'}'`
17055 { echo "$as_me:$LINENO: result: $ac_res" >&5
17056 echo "${ECHO_T}$ac_res" >&6; }
17058 # Is the header compilable?
17059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17061 cat >conftest.$ac_ext <<_ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17067 $ac_includes_default
17068 #include <$ac_header>
17070 rm -f conftest.$ac_objext
17071 if { (ac_try="$ac_compile"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_compile") 2>conftest.er1
17079 grep -v '^ *+' conftest.er1 >conftest.err
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
17084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17085 { (case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_try") 2>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; } &&
17094 { ac_try='test -s conftest.$ac_objext'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_header_compiler=yes
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 ac_header_compiler=no
17112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17114 echo "${ECHO_T}$ac_header_compiler" >&6; }
17116 # Is the header present?
17117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17119 cat >conftest.$ac_ext <<_ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 #include <$ac_header>
17127 if { (ac_try="$ac_cpp conftest.$ac_ext"
17128 case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17135 grep -v '^ *+' conftest.er1 >conftest.err
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } >/dev/null; then
17140 if test -s conftest.err; then
17141 ac_cpp_err=$ac_c_preproc_warn_flag
17142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17149 if test -z "$ac_cpp_err"; then
17150 ac_header_preproc=yes
17152 echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17155 ac_header_preproc=no
17158 rm -f conftest.err conftest.$ac_ext
17159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17160 echo "${ECHO_T}$ac_header_preproc" >&6; }
17162 # So? What about this header?
17163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17169 ac_header_preproc=yes
17172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17185 ## ------------------------------------ ##
17186 ## Report this to http://llvm.org/bugs/ ##
17187 ## ------------------------------------ ##
17189 ) | sed "s/^/$as_me: WARNING: /" >&2
17192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 eval "$as_ac_Header=\$ac_header_preproc"
17199 ac_res=`eval echo '${'$as_ac_Header'}'`
17200 { echo "$as_me:$LINENO: result: $ac_res" >&5
17201 echo "${ECHO_T}$ac_res" >&6; }
17204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17205 cat >>confdefs.h <<_ACEOF
17206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17216 for ac_header in CrashReporterClient.h
17218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 ac_res=`eval echo '${'$as_ac_Header'}'`
17226 { echo "$as_me:$LINENO: result: $ac_res" >&5
17227 echo "${ECHO_T}$ac_res" >&6; }
17229 # Is the header compilable?
17230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17232 cat >conftest.$ac_ext <<_ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 $ac_includes_default
17239 #include <$ac_header>
17241 rm -f conftest.$ac_objext
17242 if { (ac_try="$ac_compile"
17243 case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_compile") 2>conftest.er1
17250 grep -v '^ *+' conftest.er1 >conftest.err
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } &&
17255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17256 { (case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_try") 2>&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
17266 { (case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_try") 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 ac_header_compiler=yes
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 ac_header_compiler=no
17283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17285 echo "${ECHO_T}$ac_header_compiler" >&6; }
17287 # Is the header present?
17288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17290 cat >conftest.$ac_ext <<_ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296 #include <$ac_header>
17298 if { (ac_try="$ac_cpp conftest.$ac_ext"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } >/dev/null; then
17311 if test -s conftest.err; then
17312 ac_cpp_err=$ac_c_preproc_warn_flag
17313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17320 if test -z "$ac_cpp_err"; then
17321 ac_header_preproc=yes
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17326 ac_header_preproc=no
17329 rm -f conftest.err conftest.$ac_ext
17330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17331 echo "${ECHO_T}$ac_header_preproc" >&6; }
17333 # So? What about this header?
17334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17340 ac_header_preproc=yes
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17356 ## ------------------------------------ ##
17357 ## Report this to http://llvm.org/bugs/ ##
17358 ## ------------------------------------ ##
17360 ) | sed "s/^/$as_me: WARNING: /" >&2
17363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 eval "$as_ac_Header=\$ac_header_preproc"
17370 ac_res=`eval echo '${'$as_ac_Header'}'`
17371 { echo "$as_me:$LINENO: result: $ac_res" >&5
17372 echo "${ECHO_T}$ac_res" >&6; }
17375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17376 cat >>confdefs.h <<_ACEOF
17377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17385 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17386 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17387 cat >conftest.$ac_ext <<_ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h. */
17395 extern const char *__crashreporter_info__;
17397 __crashreporter_info__ = "test";
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
17412 grep -v '^ *+' conftest.er1 >conftest.err
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17438 { echo "$as_me:$LINENO: result: yes" >&5
17439 echo "${ECHO_T}yes" >&6; }
17441 cat >>confdefs.h <<\_ACEOF
17442 #define HAVE_CRASHREPORTER_INFO 1
17447 echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17451 { echo "$as_me:$LINENO: result: no" >&5
17452 echo "${ECHO_T}no" >&6; }
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_CRASHREPORTER_INFO 0
17461 rm -f core conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17466 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17467 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17468 if test "${ac_cv_huge_val_sanity+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 ac_cpp='$CXXCPP $CPPFLAGS'
17474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17478 ac_save_CXXFLAGS=$CXXFLAGS
17479 CXXFLAGS="$CXXFLAGS -pedantic"
17480 if test "$cross_compiling" = yes; then
17481 ac_cv_huge_val_sanity=yes
17483 cat >conftest.$ac_ext <<_ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17493 double x = HUGE_VAL; return x != x;
17498 rm -f conftest$ac_exeext
17499 if { (ac_try="$ac_link"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_link") 2>&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17509 { (case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_try") 2>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_cv_huge_val_sanity=yes
17520 echo "$as_me: program exited with status $ac_status" >&5
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17524 ( exit $ac_status )
17525 ac_cv_huge_val_sanity=no
17527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17531 CXXFLAGS=$ac_save_CXXFLAGS
17533 ac_cpp='$CPP $CPPFLAGS'
17534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17540 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17541 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17542 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17545 { echo "$as_me:$LINENO: checking for pid_t" >&5
17546 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17547 if test "${ac_cv_type_pid_t+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 $ac_includes_default
17557 typedef pid_t ac__type_new_;
17561 if ((ac__type_new_ *) 0)
17563 if (sizeof (ac__type_new_))
17569 rm -f conftest.$ac_objext
17570 if { (ac_try="$ac_compile"
17571 case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_compile") 2>conftest.er1
17578 grep -v '^ *+' conftest.er1 >conftest.err
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
17583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest.$ac_objext'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_cv_type_pid_t=yes
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17608 ac_cv_type_pid_t=no
17611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17613 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17614 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17615 if test $ac_cv_type_pid_t = yes; then
17619 cat >>confdefs.h <<_ACEOF
17625 { echo "$as_me:$LINENO: checking for size_t" >&5
17626 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17627 if test "${ac_cv_type_size_t+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 cat >conftest.$ac_ext <<_ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17636 $ac_includes_default
17637 typedef size_t ac__type_new_;
17641 if ((ac__type_new_ *) 0)
17643 if (sizeof (ac__type_new_))
17649 rm -f conftest.$ac_objext
17650 if { (ac_try="$ac_compile"
17651 case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17656 (eval "$ac_compile") 2>conftest.er1
17658 grep -v '^ *+' conftest.er1 >conftest.err
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
17663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17664 { (case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_try") 2>&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try='test -s conftest.$ac_objext'
17674 { (case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_try") 2>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; }; then
17683 ac_cv_type_size_t=yes
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 ac_cv_type_size_t=no
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17694 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17695 if test $ac_cv_type_size_t = yes; then
17699 cat >>confdefs.h <<_ACEOF
17700 #define size_t unsigned int
17706 cat >>confdefs.h <<_ACEOF
17707 #define RETSIGTYPE void
17710 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17711 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17712 if test "${ac_cv_struct_tm+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 cat >conftest.$ac_ext <<_ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 #include <sys/types.h>
17727 struct tm *tp; tp->tm_sec;
17732 rm -f conftest.$ac_objext
17733 if { (ac_try="$ac_compile"
17734 case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739 (eval "$ac_compile") 2>conftest.er1
17741 grep -v '^ *+' conftest.er1 >conftest.err
17743 cat conftest.err >&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
17746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17747 { (case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_try") 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest.$ac_objext'
17757 { (case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_try") 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_cv_struct_tm=time.h
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 ac_cv_struct_tm=sys/time.h
17774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17776 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17777 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17778 if test $ac_cv_struct_tm = sys/time.h; then
17780 cat >>confdefs.h <<\_ACEOF
17781 #define TM_IN_SYS_TIME 1
17786 { echo "$as_me:$LINENO: checking for int64_t" >&5
17787 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17788 if test "${ac_cv_type_int64_t+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 cat >conftest.$ac_ext <<_ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h. */
17797 $ac_includes_default
17798 typedef int64_t ac__type_new_;
17802 if ((ac__type_new_ *) 0)
17804 if (sizeof (ac__type_new_))
17810 rm -f conftest.$ac_objext
17811 if { (ac_try="$ac_compile"
17812 case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_compile") 2>conftest.er1
17819 grep -v '^ *+' conftest.er1 >conftest.err
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest.$ac_objext'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_type_int64_t=yes
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17849 ac_cv_type_int64_t=no
17852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17855 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17856 if test $ac_cv_type_int64_t = yes; then
17858 cat >>confdefs.h <<_ACEOF
17859 #define HAVE_INT64_T 1
17864 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17865 echo "$as_me: error: Type int64_t required but not found" >&2;}
17866 { (exit 1); exit 1; }; }
17869 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17870 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17871 if test "${ac_cv_type_uint64_t+set}" = set; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17874 cat >conftest.$ac_ext <<_ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h. */
17880 $ac_includes_default
17881 typedef uint64_t ac__type_new_;
17885 if ((ac__type_new_ *) 0)
17887 if (sizeof (ac__type_new_))
17893 rm -f conftest.$ac_objext
17894 if { (ac_try="$ac_compile"
17895 case "(($ac_try" in
17896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897 *) ac_try_echo=$ac_try;;
17899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900 (eval "$ac_compile") 2>conftest.er1
17902 grep -v '^ *+' conftest.er1 >conftest.err
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17908 { (case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_try") 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest.$ac_objext'
17918 { (case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_try") 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_cv_type_uint64_t=yes
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 ac_cv_type_uint64_t=no
17935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17938 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17939 if test $ac_cv_type_uint64_t = yes; then
17941 cat >>confdefs.h <<_ACEOF
17942 #define HAVE_UINT64_T 1
17947 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17948 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17949 if test "${ac_cv_type_u_int64_t+set}" = set; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17952 cat >conftest.$ac_ext <<_ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h. */
17958 $ac_includes_default
17959 typedef u_int64_t ac__type_new_;
17963 if ((ac__type_new_ *) 0)
17965 if (sizeof (ac__type_new_))
17971 rm -f conftest.$ac_objext
17972 if { (ac_try="$ac_compile"
17973 case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_compile") 2>conftest.er1
17980 grep -v '^ *+' conftest.er1 >conftest.err
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17986 { (case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_try") 2>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest.$ac_objext'
17996 { (case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_try") 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 ac_cv_type_u_int64_t=yes
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18010 ac_cv_type_u_int64_t=no
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18015 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18016 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18017 if test $ac_cv_type_u_int64_t = yes; then
18019 cat >>confdefs.h <<_ACEOF
18020 #define HAVE_U_INT64_T 1
18025 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18026 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18027 { (exit 1); exit 1; }; }
18041 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 cat >conftest.$ac_ext <<_ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18057 #define $ac_func innocuous_$ac_func
18059 /* System header to define __stub macros and hopefully few prototypes,
18060 which can conflict with char $ac_func (); below.
18061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18062 <limits.h> exists even on freestanding compilers. */
18065 # include <limits.h>
18067 # include <assert.h>
18072 /* Override any GCC internal prototype to avoid an error.
18073 Use char because int might match the return type of a GCC
18074 builtin and then its argument prototype would still apply. */
18079 /* The GNU C library defines this for functions which it implements
18080 to always fail with ENOSYS. Some functions are actually named
18081 something starting with __ and the normal name is an alias. */
18082 #if defined __stub_$ac_func || defined __stub___$ac_func
18089 return $ac_func ();
18094 rm -f conftest.$ac_objext conftest$ac_exeext
18095 if { (ac_try="$ac_link"
18096 case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_link") 2>conftest.er1
18103 grep -v '^ *+' conftest.er1 >conftest.err
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
18108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109 { (case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_try") 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest$ac_exeext'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 eval "$as_ac_var=yes"
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18133 eval "$as_ac_var=no"
18136 rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18139 ac_res=`eval echo '${'$as_ac_var'}'`
18140 { echo "$as_me:$LINENO: result: $ac_res" >&5
18141 echo "${ECHO_T}$ac_res" >&6; }
18142 if test `eval echo '${'$as_ac_var'}'` = yes; then
18143 cat >>confdefs.h <<_ACEOF
18144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18154 for ac_func in powf fmodf strtof round
18156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18162 cat >conftest.$ac_ext <<_ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18170 #define $ac_func innocuous_$ac_func
18172 /* System header to define __stub macros and hopefully few prototypes,
18173 which can conflict with char $ac_func (); below.
18174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18175 <limits.h> exists even on freestanding compilers. */
18178 # include <limits.h>
18180 # include <assert.h>
18185 /* Override any GCC internal prototype to avoid an error.
18186 Use char because int might match the return type of a GCC
18187 builtin and then its argument prototype would still apply. */
18192 /* The GNU C library defines this for functions which it implements
18193 to always fail with ENOSYS. Some functions are actually named
18194 something starting with __ and the normal name is an alias. */
18195 #if defined __stub_$ac_func || defined __stub___$ac_func
18202 return $ac_func ();
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (ac_try="$ac_link"
18209 case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_link") 2>conftest.er1
18216 grep -v '^ *+' conftest.er1 >conftest.err
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18222 { (case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_try") 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest$ac_exeext'
18232 { (case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_try") 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18241 eval "$as_ac_var=yes"
18243 echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18246 eval "$as_ac_var=no"
18249 rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18252 ac_res=`eval echo '${'$as_ac_var'}'`
18253 { echo "$as_me:$LINENO: result: $ac_res" >&5
18254 echo "${ECHO_T}$ac_res" >&6; }
18255 if test `eval echo '${'$as_ac_var'}'` = yes; then
18256 cat >>confdefs.h <<_ACEOF
18257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18268 for ac_func in log log2 log10 exp exp2
18270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 cat >conftest.$ac_ext <<_ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18284 #define $ac_func innocuous_$ac_func
18286 /* System header to define __stub macros and hopefully few prototypes,
18287 which can conflict with char $ac_func (); below.
18288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18289 <limits.h> exists even on freestanding compilers. */
18292 # include <limits.h>
18294 # include <assert.h>
18299 /* Override any GCC internal prototype to avoid an error.
18300 Use char because int might match the return type of a GCC
18301 builtin and then its argument prototype would still apply. */
18306 /* The GNU C library defines this for functions which it implements
18307 to always fail with ENOSYS. Some functions are actually named
18308 something starting with __ and the normal name is an alias. */
18309 #if defined __stub_$ac_func || defined __stub___$ac_func
18316 return $ac_func ();
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (ac_try="$ac_link"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_link") 2>conftest.er1
18330 grep -v '^ *+' conftest.er1 >conftest.err
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest$ac_exeext'
18346 { (case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_try") 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 eval "$as_ac_var=yes"
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 eval "$as_ac_var=no"
18363 rm -f core conftest.err conftest.$ac_objext \
18364 conftest$ac_exeext conftest.$ac_ext
18366 ac_res=`eval echo '${'$as_ac_var'}'`
18367 { echo "$as_me:$LINENO: result: $ac_res" >&5
18368 echo "${ECHO_T}$ac_res" >&6; }
18369 if test `eval echo '${'$as_ac_var'}'` = yes; then
18370 cat >>confdefs.h <<_ACEOF
18371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18382 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 cat >conftest.$ac_ext <<_ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h. */
18396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18398 #define $ac_func innocuous_$ac_func
18400 /* System header to define __stub macros and hopefully few prototypes,
18401 which can conflict with char $ac_func (); below.
18402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18403 <limits.h> exists even on freestanding compilers. */
18406 # include <limits.h>
18408 # include <assert.h>
18413 /* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18420 /* The GNU C library defines this for functions which it implements
18421 to always fail with ENOSYS. Some functions are actually named
18422 something starting with __ and the normal name is an alias. */
18423 #if defined __stub_$ac_func || defined __stub___$ac_func
18430 return $ac_func ();
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (ac_try="$ac_link"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_link") 2>conftest.er1
18444 grep -v '^ *+' conftest.er1 >conftest.err
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest$ac_exeext'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 eval "$as_ac_var=yes"
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 eval "$as_ac_var=no"
18477 rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
18480 ac_res=`eval echo '${'$as_ac_var'}'`
18481 { echo "$as_me:$LINENO: result: $ac_res" >&5
18482 echo "${ECHO_T}$ac_res" >&6; }
18483 if test `eval echo '${'$as_ac_var'}'` = yes; then
18484 cat >>confdefs.h <<_ACEOF
18485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18494 for ac_func in isatty mkdtemp mkstemp
18496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 cat >conftest.$ac_ext <<_ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18510 #define $ac_func innocuous_$ac_func
18512 /* System header to define __stub macros and hopefully few prototypes,
18513 which can conflict with char $ac_func (); below.
18514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18515 <limits.h> exists even on freestanding compilers. */
18518 # include <limits.h>
18520 # include <assert.h>
18525 /* Override any GCC internal prototype to avoid an error.
18526 Use char because int might match the return type of a GCC
18527 builtin and then its argument prototype would still apply. */
18532 /* The GNU C library defines this for functions which it implements
18533 to always fail with ENOSYS. Some functions are actually named
18534 something starting with __ and the normal name is an alias. */
18535 #if defined __stub_$ac_func || defined __stub___$ac_func
18542 return $ac_func ();
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_link") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1 >conftest.err
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
18561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest$ac_exeext'
18572 { (case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_try") 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 eval "$as_ac_var=yes"
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 eval "$as_ac_var=no"
18589 rm -f core conftest.err conftest.$ac_objext \
18590 conftest$ac_exeext conftest.$ac_ext
18592 ac_res=`eval echo '${'$as_ac_var'}'`
18593 { echo "$as_me:$LINENO: result: $ac_res" >&5
18594 echo "${ECHO_T}$ac_res" >&6; }
18595 if test `eval echo '${'$as_ac_var'}'` = yes; then
18596 cat >>confdefs.h <<_ACEOF
18597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18610 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18618 cat >conftest.$ac_ext <<_ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18626 #define $ac_func innocuous_$ac_func
18628 /* System header to define __stub macros and hopefully few prototypes,
18629 which can conflict with char $ac_func (); below.
18630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18631 <limits.h> exists even on freestanding compilers. */
18634 # include <limits.h>
18636 # include <assert.h>
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18648 /* The GNU C library defines this for functions which it implements
18649 to always fail with ENOSYS. Some functions are actually named
18650 something starting with __ and the normal name is an alias. */
18651 #if defined __stub_$ac_func || defined __stub___$ac_func
18658 return $ac_func ();
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_link") 2>conftest.er1
18672 grep -v '^ *+' conftest.er1 >conftest.err
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
18677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18678 { (case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_try") 2>&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest$ac_exeext'
18688 { (case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_try") 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 eval "$as_ac_var=yes"
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 eval "$as_ac_var=no"
18705 rm -f core conftest.err conftest.$ac_objext \
18706 conftest$ac_exeext conftest.$ac_ext
18708 ac_res=`eval echo '${'$as_ac_var'}'`
18709 { echo "$as_me:$LINENO: result: $ac_res" >&5
18710 echo "${ECHO_T}$ac_res" >&6; }
18711 if test `eval echo '${'$as_ac_var'}'` = yes; then
18712 cat >>confdefs.h <<_ACEOF
18713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18723 for ac_func in strerror strerror_r setenv arc4random
18725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 cat >conftest.$ac_ext <<_ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18739 #define $ac_func innocuous_$ac_func
18741 /* System header to define __stub macros and hopefully few prototypes,
18742 which can conflict with char $ac_func (); below.
18743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18744 <limits.h> exists even on freestanding compilers. */
18747 # include <limits.h>
18749 # include <assert.h>
18754 /* Override any GCC internal prototype to avoid an error.
18755 Use char because int might match the return type of a GCC
18756 builtin and then its argument prototype would still apply. */
18761 /* The GNU C library defines this for functions which it implements
18762 to always fail with ENOSYS. Some functions are actually named
18763 something starting with __ and the normal name is an alias. */
18764 #if defined __stub_$ac_func || defined __stub___$ac_func
18771 return $ac_func ();
18776 rm -f conftest.$ac_objext conftest$ac_exeext
18777 if { (ac_try="$ac_link"
18778 case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_link") 2>conftest.er1
18785 grep -v '^ *+' conftest.er1 >conftest.err
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
18790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest$ac_exeext'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 eval "$as_ac_var=yes"
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 eval "$as_ac_var=no"
18818 rm -f core conftest.err conftest.$ac_objext \
18819 conftest$ac_exeext conftest.$ac_ext
18821 ac_res=`eval echo '${'$as_ac_var'}'`
18822 { echo "$as_me:$LINENO: result: $ac_res" >&5
18823 echo "${ECHO_T}$ac_res" >&6; }
18824 if test `eval echo '${'$as_ac_var'}'` = yes; then
18825 cat >>confdefs.h <<_ACEOF
18826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18836 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 cat >conftest.$ac_ext <<_ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18852 #define $ac_func innocuous_$ac_func
18854 /* System header to define __stub macros and hopefully few prototypes,
18855 which can conflict with char $ac_func (); below.
18856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18857 <limits.h> exists even on freestanding compilers. */
18860 # include <limits.h>
18862 # include <assert.h>
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18874 /* The GNU C library defines this for functions which it implements
18875 to always fail with ENOSYS. Some functions are actually named
18876 something starting with __ and the normal name is an alias. */
18877 #if defined __stub_$ac_func || defined __stub___$ac_func
18884 return $ac_func ();
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18898 grep -v '^ *+' conftest.er1 >conftest.err
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904 { (case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_try") 2>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 eval "$as_ac_var=yes"
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18928 eval "$as_ac_var=no"
18931 rm -f core conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
18934 ac_res=`eval echo '${'$as_ac_var'}'`
18935 { echo "$as_me:$LINENO: result: $ac_res" >&5
18936 echo "${ECHO_T}$ac_res" >&6; }
18937 if test `eval echo '${'$as_ac_var'}'` = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18950 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 cat >conftest.$ac_ext <<_ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18966 #define $ac_func innocuous_$ac_func
18968 /* System header to define __stub macros and hopefully few prototypes,
18969 which can conflict with char $ac_func (); below.
18970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18971 <limits.h> exists even on freestanding compilers. */
18974 # include <limits.h>
18976 # include <assert.h>
18981 /* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
18988 /* The GNU C library defines this for functions which it implements
18989 to always fail with ENOSYS. Some functions are actually named
18990 something starting with __ and the normal name is an alias. */
18991 #if defined __stub_$ac_func || defined __stub___$ac_func
18998 return $ac_func ();
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (ac_try="$ac_link"
19005 case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_link") 2>conftest.er1
19012 grep -v '^ *+' conftest.er1 >conftest.err
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
19017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest$ac_exeext'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 eval "$as_ac_var=yes"
19039 echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19042 eval "$as_ac_var=no"
19045 rm -f core conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
19048 ac_res=`eval echo '${'$as_ac_var'}'`
19049 { echo "$as_me:$LINENO: result: $ac_res" >&5
19050 echo "${ECHO_T}$ac_res" >&6; }
19051 if test `eval echo '${'$as_ac_var'}'` = yes; then
19052 cat >>confdefs.h <<_ACEOF
19053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19059 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19060 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19061 if test "${llvm_cv_c_printf_a+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19065 ac_cpp='$CPP $CPPFLAGS'
19066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19070 if test "$cross_compiling" = yes; then
19071 llvmac_cv_c_printf_a=no
19073 cat >conftest.$ac_ext <<_ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19082 #include <stdlib.h>
19088 volatile double A, B;
19092 sprintf(Buffer, "%a", A);
19096 if (A != 0x1.999999999999ap-4)
19103 rm -f conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_link") 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19114 { (case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_try") 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 llvm_cv_c_printf_a=yes
19125 echo "$as_me: program exited with status $ac_status" >&5
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19129 ( exit $ac_status )
19130 llvmac_cv_c_printf_a=no
19132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19137 ac_cpp='$CPP $CPPFLAGS'
19138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19143 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19144 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19145 if test "$llvm_cv_c_printf_a" = "yes"; then
19147 cat >>confdefs.h <<\_ACEOF
19148 #define HAVE_PRINTF_A 1
19155 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19156 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19157 if test "${ac_cv_func_rand48+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19162 ac_cpp='$CXXCPP $CPPFLAGS'
19163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19167 cat >conftest.$ac_ext <<_ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19173 #include <stdlib.h>
19177 srand48(0);lrand48();drand48();
19182 rm -f conftest.$ac_objext
19183 if { (ac_try="$ac_compile"
19184 case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_compile") 2>conftest.er1
19191 grep -v '^ *+' conftest.er1 >conftest.err
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
19196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19197 { (case "(($ac_try" in
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202 (eval "$ac_try") 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; } &&
19206 { ac_try='test -s conftest.$ac_objext'
19207 { (case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_try") 2>&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; }; then
19216 ac_cv_func_rand48=yes
19218 echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19221 ac_cv_func_rand48=no
19224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226 ac_cpp='$CPP $CPPFLAGS'
19227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19234 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19236 if test "$ac_cv_func_rand48" = "yes" ; then
19238 cat >>confdefs.h <<\_ACEOF
19239 #define HAVE_RAND48 1
19245 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19246 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19247 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 $ac_includes_default
19261 char *p = (char *) strerror_s;
19269 rm -f conftest.$ac_objext
19270 if { (ac_try="$ac_compile"
19271 case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_compile") 2>conftest.er1
19278 grep -v '^ *+' conftest.er1 >conftest.err
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
19283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19284 { (case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_try") 2>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; } &&
19293 { ac_try='test -s conftest.$ac_objext'
19294 { (case "(($ac_try" in
19295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296 *) ac_try_echo=$ac_try;;
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299 (eval "$ac_try") 2>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; }; then
19303 ac_cv_have_decl_strerror_s=yes
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19308 ac_cv_have_decl_strerror_s=no
19311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19314 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19315 if test $ac_cv_have_decl_strerror_s = yes; then
19317 cat >>confdefs.h <<_ACEOF
19318 #define HAVE_DECL_STRERROR_S 1
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_DECL_STRERROR_S 0
19332 if test "$llvm_cv_os_type" = "MingW" ; then
19333 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19334 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19335 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 ac_check_lib_save_LIBS=$LIBS
19340 cat >conftest.$ac_ext <<_ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19347 /* Override any GCC internal prototype to avoid an error.
19348 Use char because int might match the return type of a GCC
19349 builtin and then its argument prototype would still apply. */
19362 rm -f conftest.$ac_objext conftest$ac_exeext
19363 if { (ac_try="$ac_link"
19364 case "(($ac_try" in
19365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369 (eval "$ac_link") 2>conftest.er1
19371 grep -v '^ *+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19377 { (case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_try") 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest$ac_exeext'
19387 { (case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_try") 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_cv_lib_gcc__alloca=yes
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19401 ac_cv_lib_gcc__alloca=no
19404 rm -f core conftest.err conftest.$ac_objext \
19405 conftest$ac_exeext conftest.$ac_ext
19406 LIBS=$ac_check_lib_save_LIBS
19408 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19409 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19410 if test $ac_cv_lib_gcc__alloca = yes; then
19412 cat >>confdefs.h <<\_ACEOF
19413 #define HAVE__ALLOCA 1
19418 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19419 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19420 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 ac_check_lib_save_LIBS=$LIBS
19425 cat >conftest.$ac_ext <<_ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19432 /* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19442 return __alloca ();
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>conftest.er1
19456 grep -v '^ *+' conftest.er1 >conftest.err
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19462 { (case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_try") 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest$ac_exeext'
19472 { (case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_try") 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_lib_gcc___alloca=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_lib_gcc___alloca=no
19489 rm -f core conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19493 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19494 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19495 if test $ac_cv_lib_gcc___alloca = yes; then
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE___ALLOCA 1
19503 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19504 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19505 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 ac_check_lib_save_LIBS=$LIBS
19510 cat >conftest.$ac_ext <<_ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19517 /* Override any GCC internal prototype to avoid an error.
19518 Use char because int might match the return type of a GCC
19519 builtin and then its argument prototype would still apply. */
19527 return __chkstk ();
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (ac_try="$ac_link"
19534 case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_link") 2>conftest.er1
19541 grep -v '^ *+' conftest.er1 >conftest.err
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19547 { (case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_try") 2>&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest$ac_exeext'
19557 { (case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562 (eval "$ac_try") 2>&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; }; then
19566 ac_cv_lib_gcc___chkstk=yes
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 ac_cv_lib_gcc___chkstk=no
19574 rm -f core conftest.err conftest.$ac_objext \
19575 conftest$ac_exeext conftest.$ac_ext
19576 LIBS=$ac_check_lib_save_LIBS
19578 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19579 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19580 if test $ac_cv_lib_gcc___chkstk = yes; then
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE___CHKSTK 1
19588 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19589 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19590 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 ac_check_lib_save_LIBS=$LIBS
19595 cat >conftest.$ac_ext <<_ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19602 /* Override any GCC internal prototype to avoid an error.
19603 Use char because int might match the return type of a GCC
19604 builtin and then its argument prototype would still apply. */
19612 return ___chkstk ();
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (ac_try="$ac_link"
19619 case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624 (eval "$ac_link") 2>conftest.er1
19626 grep -v '^ *+' conftest.er1 >conftest.err
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
19631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19632 { (case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_try") 2>&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; } &&
19641 { ac_try='test -s conftest$ac_exeext'
19642 { (case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_try") 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_lib_gcc____chkstk=yes
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ac_cv_lib_gcc____chkstk=no
19659 rm -f core conftest.err conftest.$ac_objext \
19660 conftest$ac_exeext conftest.$ac_ext
19661 LIBS=$ac_check_lib_save_LIBS
19663 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19664 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19665 if test $ac_cv_lib_gcc____chkstk = yes; then
19667 cat >>confdefs.h <<\_ACEOF
19668 #define HAVE____CHKSTK 1
19674 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19675 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19676 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 ac_check_lib_save_LIBS=$LIBS
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19688 /* Override any GCC internal prototype to avoid an error.
19689 Use char because int might match the return type of a GCC
19690 builtin and then its argument prototype would still apply. */
19698 return __ashldi3 ();
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (ac_try="$ac_link"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_link") 2>conftest.er1
19712 grep -v '^ *+' conftest.er1 >conftest.err
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19718 { (case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_try") 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; } &&
19727 { ac_try='test -s conftest$ac_exeext'
19728 { (case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_try") 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_lib_gcc___ashldi3=yes
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 ac_cv_lib_gcc___ashldi3=no
19745 rm -f core conftest.err conftest.$ac_objext \
19746 conftest$ac_exeext conftest.$ac_ext
19747 LIBS=$ac_check_lib_save_LIBS
19749 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19750 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19751 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19753 cat >>confdefs.h <<\_ACEOF
19754 #define HAVE___ASHLDI3 1
19759 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19760 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19761 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 ac_check_lib_save_LIBS=$LIBS
19766 cat >conftest.$ac_ext <<_ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19773 /* Override any GCC internal prototype to avoid an error.
19774 Use char because int might match the return type of a GCC
19775 builtin and then its argument prototype would still apply. */
19783 return __ashrdi3 ();
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (ac_try="$ac_link"
19790 case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_link") 2>conftest.er1
19797 grep -v '^ *+' conftest.er1 >conftest.err
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19803 { (case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_try") 2>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; } &&
19812 { ac_try='test -s conftest$ac_exeext'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
19822 ac_cv_lib_gcc___ashrdi3=yes
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19827 ac_cv_lib_gcc___ashrdi3=no
19830 rm -f core conftest.err conftest.$ac_objext \
19831 conftest$ac_exeext conftest.$ac_ext
19832 LIBS=$ac_check_lib_save_LIBS
19834 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19835 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19836 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19838 cat >>confdefs.h <<\_ACEOF
19839 #define HAVE___ASHRDI3 1
19844 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19845 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19846 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 ac_check_lib_save_LIBS=$LIBS
19851 cat >conftest.$ac_ext <<_ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19858 /* Override any GCC internal prototype to avoid an error.
19859 Use char because int might match the return type of a GCC
19860 builtin and then its argument prototype would still apply. */
19868 return __divdi3 ();
19873 rm -f conftest.$ac_objext conftest$ac_exeext
19874 if { (ac_try="$ac_link"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_link") 2>conftest.er1
19882 grep -v '^ *+' conftest.er1 >conftest.err
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19888 { (case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_try") 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; } &&
19897 { ac_try='test -s conftest$ac_exeext'
19898 { (case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_try") 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_cv_lib_gcc___divdi3=yes
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ac_cv_lib_gcc___divdi3=no
19915 rm -f core conftest.err conftest.$ac_objext \
19916 conftest$ac_exeext conftest.$ac_ext
19917 LIBS=$ac_check_lib_save_LIBS
19919 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19920 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19921 if test $ac_cv_lib_gcc___divdi3 = yes; then
19923 cat >>confdefs.h <<\_ACEOF
19924 #define HAVE___DIVDI3 1
19929 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19930 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19931 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 ac_check_lib_save_LIBS=$LIBS
19936 cat >conftest.$ac_ext <<_ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19943 /* Override any GCC internal prototype to avoid an error.
19944 Use char because int might match the return type of a GCC
19945 builtin and then its argument prototype would still apply. */
19953 return __fixdfdi ();
19958 rm -f conftest.$ac_objext conftest$ac_exeext
19959 if { (ac_try="$ac_link"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_link") 2>conftest.er1
19967 grep -v '^ *+' conftest.er1 >conftest.err
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } &&
19972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19973 { (case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_try") 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } &&
19982 { ac_try='test -s conftest$ac_exeext'
19983 { (case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_try") 2>&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19992 ac_cv_lib_gcc___fixdfdi=yes
19994 echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19997 ac_cv_lib_gcc___fixdfdi=no
20000 rm -f core conftest.err conftest.$ac_objext \
20001 conftest$ac_exeext conftest.$ac_ext
20002 LIBS=$ac_check_lib_save_LIBS
20004 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20005 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20006 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20008 cat >>confdefs.h <<\_ACEOF
20009 #define HAVE___FIXDFDI 1
20014 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20015 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20016 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20017 echo $ECHO_N "(cached) $ECHO_C" >&6
20019 ac_check_lib_save_LIBS=$LIBS
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 /* Override any GCC internal prototype to avoid an error.
20029 Use char because int might match the return type of a GCC
20030 builtin and then its argument prototype would still apply. */
20038 return __fixsfdi ();
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (ac_try="$ac_link"
20045 case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_link") 2>conftest.er1
20052 grep -v '^ *+' conftest.er1 >conftest.err
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
20057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20058 { (case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_try") 2>&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; } &&
20067 { ac_try='test -s conftest$ac_exeext'
20068 { (case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_try") 2>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; }; then
20077 ac_cv_lib_gcc___fixsfdi=yes
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20082 ac_cv_lib_gcc___fixsfdi=no
20085 rm -f core conftest.err conftest.$ac_objext \
20086 conftest$ac_exeext conftest.$ac_ext
20087 LIBS=$ac_check_lib_save_LIBS
20089 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20090 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20091 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20093 cat >>confdefs.h <<\_ACEOF
20094 #define HAVE___FIXSFDI 1
20099 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20100 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20101 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 ac_check_lib_save_LIBS=$LIBS
20106 cat >conftest.$ac_ext <<_ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20113 /* Override any GCC internal prototype to avoid an error.
20114 Use char because int might match the return type of a GCC
20115 builtin and then its argument prototype would still apply. */
20119 char __floatdidf ();
20123 return __floatdidf ();
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_link") 2>conftest.er1
20137 grep -v '^ *+' conftest.er1 >conftest.err
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143 { (case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_try") 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest$ac_exeext'
20153 { (case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_try") 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 ac_cv_lib_gcc___floatdidf=yes
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 ac_cv_lib_gcc___floatdidf=no
20170 rm -f core conftest.err conftest.$ac_objext \
20171 conftest$ac_exeext conftest.$ac_ext
20172 LIBS=$ac_check_lib_save_LIBS
20174 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20175 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20176 if test $ac_cv_lib_gcc___floatdidf = yes; then
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE___FLOATDIDF 1
20184 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20185 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20186 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20189 ac_check_lib_save_LIBS=$LIBS
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20198 /* Override any GCC internal prototype to avoid an error.
20199 Use char because int might match the return type of a GCC
20200 builtin and then its argument prototype would still apply. */
20208 return __lshrdi3 ();
20213 rm -f conftest.$ac_objext conftest$ac_exeext
20214 if { (ac_try="$ac_link"
20215 case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_link") 2>conftest.er1
20222 grep -v '^ *+' conftest.er1 >conftest.err
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20228 { (case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_try") 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } &&
20237 { ac_try='test -s conftest$ac_exeext'
20238 { (case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_try") 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_lib_gcc___lshrdi3=yes
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ac_cv_lib_gcc___lshrdi3=no
20255 rm -f core conftest.err conftest.$ac_objext \
20256 conftest$ac_exeext conftest.$ac_ext
20257 LIBS=$ac_check_lib_save_LIBS
20259 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20260 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20261 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE___LSHRDI3 1
20269 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20270 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20271 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20274 ac_check_lib_save_LIBS=$LIBS
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20283 /* Override any GCC internal prototype to avoid an error.
20284 Use char because int might match the return type of a GCC
20285 builtin and then its argument prototype would still apply. */
20293 return __moddi3 ();
20298 rm -f conftest.$ac_objext conftest$ac_exeext
20299 if { (ac_try="$ac_link"
20300 case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305 (eval "$ac_link") 2>conftest.er1
20307 grep -v '^ *+' conftest.er1 >conftest.err
20309 cat conftest.err >&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); } &&
20312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20313 { (case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_try") 2>&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; } &&
20322 { ac_try='test -s conftest$ac_exeext'
20323 { (case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328 (eval "$ac_try") 2>&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; }; then
20332 ac_cv_lib_gcc___moddi3=yes
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20337 ac_cv_lib_gcc___moddi3=no
20340 rm -f core conftest.err conftest.$ac_objext \
20341 conftest$ac_exeext conftest.$ac_ext
20342 LIBS=$ac_check_lib_save_LIBS
20344 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20345 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20346 if test $ac_cv_lib_gcc___moddi3 = yes; then
20348 cat >>confdefs.h <<\_ACEOF
20349 #define HAVE___MODDI3 1
20354 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20355 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20356 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20359 ac_check_lib_save_LIBS=$LIBS
20361 cat >conftest.$ac_ext <<_ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20368 /* Override any GCC internal prototype to avoid an error.
20369 Use char because int might match the return type of a GCC
20370 builtin and then its argument prototype would still apply. */
20378 return __udivdi3 ();
20383 rm -f conftest.$ac_objext conftest$ac_exeext
20384 if { (ac_try="$ac_link"
20385 case "(($ac_try" in
20386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387 *) ac_try_echo=$ac_try;;
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390 (eval "$ac_link") 2>conftest.er1
20392 grep -v '^ *+' conftest.er1 >conftest.err
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } &&
20397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20398 { (case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_try") 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; } &&
20407 { ac_try='test -s conftest$ac_exeext'
20408 { (case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413 (eval "$ac_try") 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_cv_lib_gcc___udivdi3=yes
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ac_cv_lib_gcc___udivdi3=no
20425 rm -f core conftest.err conftest.$ac_objext \
20426 conftest$ac_exeext conftest.$ac_ext
20427 LIBS=$ac_check_lib_save_LIBS
20429 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20430 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20431 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20433 cat >>confdefs.h <<\_ACEOF
20434 #define HAVE___UDIVDI3 1
20439 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20440 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20441 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 ac_check_lib_save_LIBS=$LIBS
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20453 /* Override any GCC internal prototype to avoid an error.
20454 Use char because int might match the return type of a GCC
20455 builtin and then its argument prototype would still apply. */
20463 return __umoddi3 ();
20468 rm -f conftest.$ac_objext conftest$ac_exeext
20469 if { (ac_try="$ac_link"
20470 case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_link") 2>conftest.er1
20477 grep -v '^ *+' conftest.er1 >conftest.err
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20483 { (case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_try") 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; } &&
20492 { ac_try='test -s conftest$ac_exeext'
20493 { (case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_try") 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502 ac_cv_lib_gcc___umoddi3=yes
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20507 ac_cv_lib_gcc___umoddi3=no
20510 rm -f core conftest.err conftest.$ac_objext \
20511 conftest$ac_exeext conftest.$ac_ext
20512 LIBS=$ac_check_lib_save_LIBS
20514 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20515 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20516 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20518 cat >>confdefs.h <<\_ACEOF
20519 #define HAVE___UMODDI3 1
20525 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20526 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20527 if test "${ac_cv_lib_gcc___main+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 ac_check_lib_save_LIBS=$LIBS
20532 cat >conftest.$ac_ext <<_ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_link") 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } &&
20568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20569 { (case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_try") 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest$ac_exeext'
20579 { (case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_try") 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_lib_gcc___main=yes
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_cv_lib_gcc___main=no
20596 rm -f core conftest.err conftest.$ac_objext \
20597 conftest$ac_exeext conftest.$ac_ext
20598 LIBS=$ac_check_lib_save_LIBS
20600 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20601 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20602 if test $ac_cv_lib_gcc___main = yes; then
20604 cat >>confdefs.h <<\_ACEOF
20605 #define HAVE___MAIN 1
20610 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20611 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20612 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20615 ac_check_lib_save_LIBS=$LIBS
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20624 /* Override any GCC internal prototype to avoid an error.
20625 Use char because int might match the return type of a GCC
20626 builtin and then its argument prototype would still apply. */
20634 return __cmpdi2 ();
20639 rm -f conftest.$ac_objext conftest$ac_exeext
20640 if { (ac_try="$ac_link"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_link") 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
20653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20654 { (case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_try") 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; } &&
20663 { ac_try='test -s conftest$ac_exeext'
20664 { (case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669 (eval "$ac_try") 2>&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 ac_cv_lib_gcc___cmpdi2=yes
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20678 ac_cv_lib_gcc___cmpdi2=no
20681 rm -f core conftest.err conftest.$ac_objext \
20682 conftest$ac_exeext conftest.$ac_ext
20683 LIBS=$ac_check_lib_save_LIBS
20685 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20686 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20687 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20689 cat >>confdefs.h <<\_ACEOF
20690 #define HAVE___CMPDI2 1
20697 if test "$llvm_cv_os_type" = "MingW" ; then
20698 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20699 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20700 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20708 #include <windows.h>
20709 #include <imagehlp.h>
20710 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20711 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_compile") 2>conftest.er1
20724 grep -v '^ *+' conftest.er1 >conftest.err
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20730 { (case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_try") 2>&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; } &&
20739 { ac_try='test -s conftest.$ac_objext'
20740 { (case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_try") 2>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; }; then
20750 { echo "$as_me:$LINENO: result: yes" >&5
20751 echo "${ECHO_T}yes" >&6; }
20752 llvm_cv_win32_elmcb_pcstr="PCSTR"
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20759 { echo "$as_me:$LINENO: result: no" >&5
20760 echo "${ECHO_T}no" >&6; }
20761 llvm_cv_win32_elmcb_pcstr="PSTR"
20765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767 cat >>confdefs.h <<_ACEOF
20768 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20775 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20776 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20777 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 ac_cpp='$CXXCPP $CPPFLAGS'
20783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20787 cat >conftest.$ac_ext <<_ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20802 rm -f conftest.$ac_objext
20803 if { (ac_try="$ac_compile"
20804 case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_compile") 2>conftest.er1
20811 grep -v '^ *+' conftest.er1 >conftest.err
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
20816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20817 { (case "(($ac_try" in
20818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819 *) ac_try_echo=$ac_try;;
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822 (eval "$ac_try") 2>&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (case "(($ac_try" in
20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829 *) ac_try_echo=$ac_try;;
20831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20832 (eval "$ac_try") 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 ac_cv_func_isnan_in_math_h=yes
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 ac_cv_func_isnan_in_math_h=no
20844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 ac_cpp='$CPP $CPPFLAGS'
20847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20853 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20854 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20857 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20859 cat >>confdefs.h <<\_ACEOF
20860 #define HAVE_ISNAN_IN_MATH_H 1
20866 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20867 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20868 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20873 ac_cpp='$CXXCPP $CPPFLAGS'
20874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20893 rm -f conftest.$ac_objext
20894 if { (ac_try="$ac_compile"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_compile") 2>conftest.er1
20902 grep -v '^ *+' conftest.er1 >conftest.err
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } &&
20907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20908 { (case "(($ac_try" in
20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910 *) ac_try_echo=$ac_try;;
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913 (eval "$ac_try") 2>&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; } &&
20917 { ac_try='test -s conftest.$ac_objext'
20918 { (case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_try") 2>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 ac_cv_func_isnan_in_cmath=yes
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20932 ac_cv_func_isnan_in_cmath=no
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 ac_cpp='$CPP $CPPFLAGS'
20938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20944 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20945 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20947 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20949 cat >>confdefs.h <<\_ACEOF
20950 #define HAVE_ISNAN_IN_CMATH 1
20956 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20957 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20958 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 ac_cpp='$CXXCPP $CPPFLAGS'
20964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20978 float f; std::isnan(f);
20983 rm -f conftest.$ac_objext
20984 if { (ac_try="$ac_compile"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_compile") 2>conftest.er1
20992 grep -v '^ *+' conftest.er1 >conftest.err
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } &&
20997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20998 { (case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_try") 2>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; } &&
21007 { ac_try='test -s conftest.$ac_objext'
21008 { (case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_try") 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; }; then
21017 ac_cv_func_std_isnan_in_cmath=yes
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 ac_cv_func_std_isnan_in_cmath=no
21025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 ac_cpp='$CPP $CPPFLAGS'
21028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21034 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21035 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21037 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21039 cat >>confdefs.h <<\_ACEOF
21040 #define HAVE_STD_ISNAN_IN_CMATH 1
21048 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21049 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21050 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21055 ac_cpp='$CXXCPP $CPPFLAGS'
21056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21060 cat >conftest.$ac_ext <<_ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21075 rm -f conftest.$ac_objext
21076 if { (ac_try="$ac_compile"
21077 case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21084 grep -v '^ *+' conftest.er1 >conftest.err
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } &&
21089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21090 { (case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_try") 2>&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; } &&
21099 { ac_try='test -s conftest.$ac_objext'
21100 { (case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105 (eval "$ac_try") 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21109 ac_cv_func_isinf_in_math_h=yes
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ac_cv_func_isinf_in_math_h=no
21117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21119 ac_cpp='$CPP $CPPFLAGS'
21120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21126 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21127 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21129 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21131 cat >>confdefs.h <<\_ACEOF
21132 #define HAVE_ISINF_IN_MATH_H 1
21138 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21139 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21140 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 ac_cpp='$CXXCPP $CPPFLAGS'
21146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21150 cat >conftest.$ac_ext <<_ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169 *) ac_try_echo=$ac_try;;
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172 (eval "$ac_compile") 2>conftest.er1
21174 grep -v '^ *+' conftest.er1 >conftest.err
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } &&
21179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21180 { (case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_try") 2>&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest.$ac_objext'
21190 { (case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_try") 2>&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
21199 ac_cv_func_isinf_in_cmath=yes
21201 echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21204 ac_cv_func_isinf_in_cmath=no
21207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21209 ac_cpp='$CPP $CPPFLAGS'
21210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21216 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21217 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21219 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21221 cat >>confdefs.h <<\_ACEOF
21222 #define HAVE_ISINF_IN_CMATH 1
21228 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21229 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21230 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21231 echo $ECHO_N "(cached) $ECHO_C" >&6
21235 ac_cpp='$CXXCPP $CPPFLAGS'
21236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21240 cat >conftest.$ac_ext <<_ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21250 float f; std::isinf(f);
21255 rm -f conftest.$ac_objext
21256 if { (ac_try="$ac_compile"
21257 case "(($ac_try" in
21258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259 *) ac_try_echo=$ac_try;;
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262 (eval "$ac_compile") 2>conftest.er1
21264 grep -v '^ *+' conftest.er1 >conftest.err
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
21269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21270 { (case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_try") 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest.$ac_objext'
21280 { (case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_try") 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_func_std_isinf_in_cmath=yes
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_cv_func_std_isinf_in_cmath=no
21297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21299 ac_cpp='$CPP $CPPFLAGS'
21300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21306 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21307 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21309 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21311 cat >>confdefs.h <<\_ACEOF
21312 #define HAVE_STD_ISINF_IN_CMATH 1
21318 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21319 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21320 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 ac_cpp='$CXXCPP $CPPFLAGS'
21326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21336 #include <ieeefp.h>
21340 float f; finite(f);
21345 rm -f conftest.$ac_objext
21346 if { (ac_try="$ac_compile"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_compile") 2>conftest.er1
21354 grep -v '^ *+' conftest.er1 >conftest.err
21356 cat conftest.err >&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } &&
21359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21360 { (case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365 (eval "$ac_try") 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; } &&
21369 { ac_try='test -s conftest.$ac_objext'
21370 { (case "(($ac_try" in
21371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372 *) ac_try_echo=$ac_try;;
21374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21375 (eval "$ac_try") 2>&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21379 ac_cv_func_finite_in_ieeefp_h=yes
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 ac_cv_func_finite_in_ieeefp_h=no
21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389 ac_cpp='$CPP $CPPFLAGS'
21390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21396 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21397 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21399 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21401 cat >>confdefs.h <<\_ACEOF
21402 #define HAVE_FINITE_IN_IEEEFP_H 1
21409 if test "$llvm_cv_platform_type" = "Unix" ; then
21412 for ac_header in stdlib.h unistd.h
21414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21419 echo $ECHO_N "(cached) $ECHO_C" >&6
21421 ac_res=`eval echo '${'$as_ac_Header'}'`
21422 { echo "$as_me:$LINENO: result: $ac_res" >&5
21423 echo "${ECHO_T}$ac_res" >&6; }
21425 # Is the header compilable?
21426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21428 cat >conftest.$ac_ext <<_ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21434 $ac_includes_default
21435 #include <$ac_header>
21437 rm -f conftest.$ac_objext
21438 if { (ac_try="$ac_compile"
21439 case "(($ac_try" in
21440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441 *) ac_try_echo=$ac_try;;
21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444 (eval "$ac_compile") 2>conftest.er1
21446 grep -v '^ *+' conftest.er1 >conftest.err
21448 cat conftest.err >&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } &&
21451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21452 { (case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457 (eval "$ac_try") 2>&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; } &&
21461 { ac_try='test -s conftest.$ac_objext'
21462 { (case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467 (eval "$ac_try") 2>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; }; then
21471 ac_header_compiler=yes
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_header_compiler=no
21479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21481 echo "${ECHO_T}$ac_header_compiler" >&6; }
21483 # Is the header present?
21484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21486 cat >conftest.$ac_ext <<_ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21492 #include <$ac_header>
21494 if { (ac_try="$ac_cpp conftest.$ac_ext"
21495 case "(($ac_try" in
21496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497 *) ac_try_echo=$ac_try;;
21499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21502 grep -v '^ *+' conftest.er1 >conftest.err
21504 cat conftest.err >&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } >/dev/null; then
21507 if test -s conftest.err; then
21508 ac_cpp_err=$ac_c_preproc_warn_flag
21509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21516 if test -z "$ac_cpp_err"; then
21517 ac_header_preproc=yes
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21522 ac_header_preproc=no
21525 rm -f conftest.err conftest.$ac_ext
21526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21527 echo "${ECHO_T}$ac_header_preproc" >&6; }
21529 # So? What about this header?
21530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21536 ac_header_preproc=yes
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21552 ## ------------------------------------ ##
21553 ## Report this to http://llvm.org/bugs/ ##
21554 ## ------------------------------------ ##
21556 ) | sed "s/^/$as_me: WARNING: /" >&2
21559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 eval "$as_ac_Header=\$ac_header_preproc"
21566 ac_res=`eval echo '${'$as_ac_Header'}'`
21567 { echo "$as_me:$LINENO: result: $ac_res" >&5
21568 echo "${ECHO_T}$ac_res" >&6; }
21571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21572 cat >>confdefs.h <<_ACEOF
21573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21581 for ac_func in getpagesize
21583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21589 cat >conftest.$ac_ext <<_ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21597 #define $ac_func innocuous_$ac_func
21599 /* System header to define __stub macros and hopefully few prototypes,
21600 which can conflict with char $ac_func (); below.
21601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21602 <limits.h> exists even on freestanding compilers. */
21605 # include <limits.h>
21607 # include <assert.h>
21612 /* Override any GCC internal prototype to avoid an error.
21613 Use char because int might match the return type of a GCC
21614 builtin and then its argument prototype would still apply. */
21619 /* The GNU C library defines this for functions which it implements
21620 to always fail with ENOSYS. Some functions are actually named
21621 something starting with __ and the normal name is an alias. */
21622 #if defined __stub_$ac_func || defined __stub___$ac_func
21629 return $ac_func ();
21634 rm -f conftest.$ac_objext conftest$ac_exeext
21635 if { (ac_try="$ac_link"
21636 case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_link") 2>conftest.er1
21643 grep -v '^ *+' conftest.er1 >conftest.err
21645 cat conftest.err >&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); } &&
21648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21649 { (case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_try") 2>&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; } &&
21658 { ac_try='test -s conftest$ac_exeext'
21659 { (case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_try") 2>&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; }; then
21668 eval "$as_ac_var=yes"
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21673 eval "$as_ac_var=no"
21676 rm -f core conftest.err conftest.$ac_objext \
21677 conftest$ac_exeext conftest.$ac_ext
21679 ac_res=`eval echo '${'$as_ac_var'}'`
21680 { echo "$as_me:$LINENO: result: $ac_res" >&5
21681 echo "${ECHO_T}$ac_res" >&6; }
21682 if test `eval echo '${'$as_ac_var'}'` = yes; then
21683 cat >>confdefs.h <<_ACEOF
21684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21690 { echo "$as_me:$LINENO: checking for working mmap" >&5
21691 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21692 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21693 echo $ECHO_N "(cached) $ECHO_C" >&6
21695 if test "$cross_compiling" = yes; then
21696 ac_cv_func_mmap_fixed_mapped=no
21698 cat >conftest.$ac_ext <<_ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 $ac_includes_default
21705 /* malloc might have been renamed as rpl_malloc. */
21708 /* Thanks to Mike Haertel and Jim Avera for this test.
21709 Here is a matrix of mmap possibilities:
21710 mmap private not fixed
21711 mmap private fixed at somewhere currently unmapped
21712 mmap private fixed at somewhere already mapped
21713 mmap shared not fixed
21714 mmap shared fixed at somewhere currently unmapped
21715 mmap shared fixed at somewhere already mapped
21716 For private mappings, we should verify that changes cannot be read()
21717 back from the file, nor mmap's back from the file at a different
21718 address. (There have been systems where private was not correctly
21719 implemented like the infamous i386 svr4.0, and systems where the
21720 VM page cache was not coherent with the file system buffer cache
21721 like early versions of FreeBSD and possibly contemporary NetBSD.)
21722 For shared mappings, we should conversely verify that changes get
21723 propagated back to all the places they're supposed to be.
21725 Grep wants private fixed already mapped.
21726 The main things grep needs to know about mmap are:
21727 * does it exist and is it safe to write into the mmap'd area
21728 * how to use it (BSD variants) */
21731 #include <sys/mman.h>
21733 #if !STDC_HEADERS && !HAVE_STDLIB_H
21737 /* This mess was copied from the GNU getpagesize.h. */
21738 #if !HAVE_GETPAGESIZE
21739 /* Assume that all systems that can run configure have sys/param.h. */
21740 # if !HAVE_SYS_PARAM_H
21741 # define HAVE_SYS_PARAM_H 1
21744 # ifdef _SC_PAGESIZE
21745 # define getpagesize() sysconf(_SC_PAGESIZE)
21746 # else /* no _SC_PAGESIZE */
21747 # if HAVE_SYS_PARAM_H
21748 # include <sys/param.h>
21749 # ifdef EXEC_PAGESIZE
21750 # define getpagesize() EXEC_PAGESIZE
21751 # else /* no EXEC_PAGESIZE */
21753 # define getpagesize() NBPG * CLSIZE
21756 # endif /* no CLSIZE */
21757 # else /* no NBPG */
21759 # define getpagesize() NBPC
21760 # else /* no NBPC */
21762 # define getpagesize() PAGESIZE
21763 # endif /* PAGESIZE */
21764 # endif /* no NBPC */
21765 # endif /* no NBPG */
21766 # endif /* no EXEC_PAGESIZE */
21767 # else /* no HAVE_SYS_PARAM_H */
21768 # define getpagesize() 8192 /* punt totally */
21769 # endif /* no HAVE_SYS_PARAM_H */
21770 # endif /* no _SC_PAGESIZE */
21772 #endif /* no HAVE_GETPAGESIZE */
21777 char *data, *data2, *data3;
21781 pagesize = getpagesize ();
21783 /* First, make a file with some known garbage in it. */
21784 data = (char *) malloc (pagesize);
21787 for (i = 0; i < pagesize; ++i)
21788 *(data + i) = rand ();
21790 fd = creat ("conftest.mmap", 0600);
21793 if (write (fd, data, pagesize) != pagesize)
21797 /* Next, try to mmap the file at a fixed address which already has
21798 something else allocated at it. If we can, also make sure that
21799 we see the same garbage. */
21800 fd = open ("conftest.mmap", O_RDWR);
21803 data2 = (char *) malloc (2 * pagesize);
21806 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21807 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21808 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21810 for (i = 0; i < pagesize; ++i)
21811 if (*(data + i) != *(data2 + i))
21814 /* Finally, make sure that changes to the mapped area do not
21815 percolate back to the file as seen by read(). (This is a bug on
21816 some variants of i386 svr4.0.) */
21817 for (i = 0; i < pagesize; ++i)
21818 *(data2 + i) = *(data2 + i) + 1;
21819 data3 = (char *) malloc (pagesize);
21822 if (read (fd, data3, pagesize) != pagesize)
21824 for (i = 0; i < pagesize; ++i)
21825 if (*(data + i) != *(data3 + i))
21831 rm -f conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_link") 2>&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842 { (case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_try") 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 ac_cv_func_mmap_fixed_mapped=yes
21853 echo "$as_me: program exited with status $ac_status" >&5
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 ( exit $ac_status )
21858 ac_cv_func_mmap_fixed_mapped=no
21860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21865 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21866 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21867 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21869 cat >>confdefs.h <<\_ACEOF
21870 #define HAVE_MMAP 1
21874 rm -f conftest.mmap
21876 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21877 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21878 if test "${ac_cv_func_mmap_file+set}" = set; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 ac_cpp='$CPP $CPPFLAGS'
21883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21887 if test "$cross_compiling" = yes; then
21888 ac_cv_func_mmap_file=no
21890 cat >conftest.$ac_ext <<_ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21898 #include <sys/types.h>
21899 #include <sys/mman.h>
21907 fd = creat ("foo",0777);
21908 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21910 return (fd != (int) MAP_FAILED);
21915 rm -f conftest$ac_exeext
21916 if { (ac_try="$ac_link"
21917 case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_link") 2>&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21926 { (case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931 (eval "$ac_try") 2>&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); }; }; then
21935 ac_cv_func_mmap_file=yes
21937 echo "$as_me: program exited with status $ac_status" >&5
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21941 ( exit $ac_status )
21942 ac_cv_func_mmap_file=no
21944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21949 ac_cpp='$CPP $CPPFLAGS'
21950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21956 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21957 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21958 if test "$ac_cv_func_mmap_file" = yes; then
21960 cat >>confdefs.h <<\_ACEOF
21961 #define HAVE_MMAP_FILE
21968 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21969 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21970 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21973 if test "$llvm_cv_os_type" = "Interix" ; then
21974 ac_cv_need_dev_zero_for_mmap=yes
21976 ac_cv_need_dev_zero_for_mmap=no
21980 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21981 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21982 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21984 cat >>confdefs.h <<\_ACEOF
21985 #define NEED_DEV_ZERO_FOR_MMAP 1
21990 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21992 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21993 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21995 if test "$ac_cv_func_mmap_file" = "no"
21997 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21998 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22002 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22003 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22005 ac_cpp='$CXXCPP $CPPFLAGS'
22006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22010 cat >conftest.$ac_ext <<_ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h. */
22019 volatile unsigned long val = 1;
22020 __sync_synchronize();
22021 __sync_val_compare_and_swap(&val, 1, 0);
22022 __sync_add_and_fetch(&val, 1);
22023 __sync_sub_and_fetch(&val, 1);
22029 rm -f conftest.$ac_objext conftest$ac_exeext
22030 if { (ac_try="$ac_link"
22031 case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_link") 2>conftest.er1
22038 grep -v '^ *+' conftest.er1 >conftest.err
22040 cat conftest.err >&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } &&
22043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
22053 { ac_try='test -s conftest$ac_exeext'
22054 { (case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_try") 2>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; }; then
22064 { echo "$as_me:$LINENO: result: yes" >&5
22065 echo "${ECHO_T}yes" >&6; }
22067 cat >>confdefs.h <<\_ACEOF
22068 #define LLVM_HAS_ATOMICS 1
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22077 { echo "$as_me:$LINENO: result: no" >&5
22078 echo "${ECHO_T}no" >&6; }
22080 cat >>confdefs.h <<\_ACEOF
22081 #define LLVM_HAS_ATOMICS 0
22084 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22085 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22089 rm -f core conftest.err conftest.$ac_objext \
22090 conftest$ac_exeext conftest.$ac_ext
22092 ac_cpp='$CPP $CPPFLAGS'
22093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22099 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22100 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22101 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22102 if test "${llvm_cv_linux_mixed+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22106 ac_cpp='$CPP $CPPFLAGS'
22107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22111 cat >conftest.$ac_ext <<_ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h. */
22118 error: Not x86-64 even if uname says so!
22129 rm -f conftest.$ac_objext
22130 if { (ac_try="$ac_compile"
22131 case "(($ac_try" in
22132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133 *) ac_try_echo=$ac_try;;
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136 (eval "$ac_compile") 2>conftest.er1
22138 grep -v '^ *+' conftest.er1 >conftest.err
22140 cat conftest.err >&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } &&
22143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22144 { (case "(($ac_try" in
22145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146 *) ac_try_echo=$ac_try;;
22148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22149 (eval "$ac_try") 2>&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; } &&
22153 { ac_try='test -s conftest.$ac_objext'
22154 { (case "(($ac_try" in
22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156 *) ac_try_echo=$ac_try;;
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159 (eval "$ac_try") 2>&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }; then
22163 llvm_cv_linux_mixed=no
22165 echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22168 llvm_cv_linux_mixed=yes
22171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 ac_cpp='$CPP $CPPFLAGS'
22174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22180 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22181 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22183 if test "$llvm_cv_linux_mixed" = "yes"; then
22184 llvm_cv_target_arch="x86"
22190 for ac_func in __dso_handle
22192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 cat >conftest.$ac_ext <<_ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22206 #define $ac_func innocuous_$ac_func
22208 /* System header to define __stub macros and hopefully few prototypes,
22209 which can conflict with char $ac_func (); below.
22210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22211 <limits.h> exists even on freestanding compilers. */
22214 # include <limits.h>
22216 # include <assert.h>
22221 /* Override any GCC internal prototype to avoid an error.
22222 Use char because int might match the return type of a GCC
22223 builtin and then its argument prototype would still apply. */
22228 /* The GNU C library defines this for functions which it implements
22229 to always fail with ENOSYS. Some functions are actually named
22230 something starting with __ and the normal name is an alias. */
22231 #if defined __stub_$ac_func || defined __stub___$ac_func
22238 return $ac_func ();
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (ac_try="$ac_link"
22245 case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_link") 2>conftest.er1
22252 grep -v '^ *+' conftest.er1 >conftest.err
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } &&
22257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22258 { (case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_try") 2>&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest$ac_exeext'
22268 { (case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_try") 2>&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; }; then
22277 eval "$as_ac_var=yes"
22279 echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22282 eval "$as_ac_var=no"
22285 rm -f core conftest.err conftest.$ac_objext \
22286 conftest$ac_exeext conftest.$ac_ext
22288 ac_res=`eval echo '${'$as_ac_var'}'`
22289 { echo "$as_me:$LINENO: result: $ac_res" >&5
22290 echo "${ECHO_T}$ac_res" >&6; }
22291 if test `eval echo '${'$as_ac_var'}'` = yes; then
22292 cat >>confdefs.h <<_ACEOF
22293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22300 SHLIBEXT=$libltdl_cv_shlibext
22303 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22306 if test "${prefix}" = "NONE" ; then
22307 prefix="/usr/local"
22309 eval LLVM_PREFIX="${prefix}";
22310 eval LLVM_BINDIR="${prefix}/bin";
22311 eval LLVM_LIBDIR="${prefix}/lib";
22312 eval LLVM_DATADIR="${prefix}/share/llvm";
22313 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22314 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22315 eval LLVM_INCLUDEDIR="${prefix}/include";
22316 eval LLVM_INFODIR="${prefix}/info";
22317 eval LLVM_MANDIR="${prefix}/man";
22318 LLVM_CONFIGTIME=`date`
22330 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22331 LLVM_CONFIGTIME="(timestamp not enabled)"
22335 cat >>confdefs.h <<_ACEOF
22336 #define LLVM_PREFIX "$LLVM_PREFIX"
22340 cat >>confdefs.h <<_ACEOF
22341 #define LLVM_BINDIR "$LLVM_BINDIR"
22345 cat >>confdefs.h <<_ACEOF
22346 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22350 cat >>confdefs.h <<_ACEOF
22351 #define LLVM_DATADIR "$LLVM_DATADIR"
22355 cat >>confdefs.h <<_ACEOF
22356 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22360 cat >>confdefs.h <<_ACEOF
22361 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22365 cat >>confdefs.h <<_ACEOF
22366 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22370 cat >>confdefs.h <<_ACEOF
22371 #define LLVM_INFODIR "$LLVM_INFODIR"
22375 cat >>confdefs.h <<_ACEOF
22376 #define LLVM_MANDIR "$LLVM_MANDIR"
22380 cat >>confdefs.h <<_ACEOF
22381 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22385 cat >>confdefs.h <<_ACEOF
22386 #define LLVM_HOST_TRIPLE "$host"
22390 cat >>confdefs.h <<_ACEOF
22391 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22395 if test "$BINDINGS_TO_BUILD" = auto ; then
22396 BINDINGS_TO_BUILD=""
22397 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22398 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22401 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22407 binding_prereqs_failed=0
22408 for a_binding in $BINDINGS_TO_BUILD ; do
22409 case "$a_binding" in
22411 if test "x$OCAMLC" = x ; then
22412 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22413 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22414 binding_prereqs_failed=1
22416 if test "x$OCAMLDEP" = x ; then
22417 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22418 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22419 binding_prereqs_failed=1
22421 if test "x$OCAMLOPT" = x ; then
22422 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22423 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22425 if test "x$with_ocaml_libdir" != xauto ; then
22426 OCAML_LIBDIR=$with_ocaml_libdir
22429 ocaml_stdlib="`"$OCAMLC" -where`"
22430 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22432 # ocaml stdlib is beneath our prefix; use stdlib
22433 OCAML_LIBDIR=$ocaml_stdlib
22436 # ocaml stdlib is outside our prefix; use libdir/ocaml
22437 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22444 if test "$binding_prereqs_failed" = 1 ; then
22445 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22446 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22447 { (exit 1); exit 1; }; }
22450 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22451 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22452 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22456 ac_cpp='$CXXCPP $CPPFLAGS'
22457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22461 oldcxxflags="$CXXFLAGS"
22462 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22463 cat >conftest.$ac_ext <<_ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22478 rm -f conftest.$ac_objext
22479 if { (ac_try="$ac_compile"
22480 case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_compile") 2>conftest.er1
22487 grep -v '^ *+' conftest.er1 >conftest.err
22489 cat conftest.err >&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); } &&
22492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22493 { (case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_try") 2>&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }; } &&
22502 { ac_try='test -s conftest.$ac_objext'
22503 { (case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_try") 2>&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; }; then
22512 llvm_cv_cxx_visibility_inlines_hidden=yes
22514 echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22517 llvm_cv_cxx_visibility_inlines_hidden=no
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22521 CXXFLAGS="$oldcxxflags"
22523 ac_cpp='$CPP $CPPFLAGS'
22524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22530 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22531 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22532 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22533 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22536 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22541 if test "$llvm_cv_link_use_r" = "yes" ; then
22548 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22549 RDYNAMIC="-Wl,-export-dynamic"
22556 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22563 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22565 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22567 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22569 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22571 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22574 ac_config_files="$ac_config_files Makefile.config"
22577 ac_config_files="$ac_config_files llvm.spec"
22580 ac_config_files="$ac_config_files docs/doxygen.cfg"
22583 if test "${clang_src_root}" = ""; then
22584 clang_src_root="$srcdir/tools/clang"
22586 if test -f ${clang_src_root}/README.txt; then
22587 configh="include/clang/Config/config.h"
22588 doxy="docs/doxygen.cfg"
22589 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22591 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22595 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22598 test "x$program_prefix" = "xNONE" && program_prefix=""
22602 ac_config_commands="$ac_config_commands setup"
22604 ac_config_commands="$ac_config_commands Makefile"
22607 ac_config_commands="$ac_config_commands Makefile.common"
22610 ac_config_commands="$ac_config_commands examples/Makefile"
22613 ac_config_commands="$ac_config_commands lib/Makefile"
22616 ac_config_commands="$ac_config_commands runtime/Makefile"
22619 ac_config_commands="$ac_config_commands test/Makefile"
22622 ac_config_commands="$ac_config_commands test/Makefile.tests"
22625 ac_config_commands="$ac_config_commands unittests/Makefile"
22628 ac_config_commands="$ac_config_commands tools/Makefile"
22631 ac_config_commands="$ac_config_commands utils/Makefile"
22634 ac_config_commands="$ac_config_commands projects/Makefile"
22637 ac_config_commands="$ac_config_commands bindings/Makefile"
22640 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22644 cat >confcache <<\_ACEOF
22645 # This file is a shell script that caches the results of configure
22646 # tests run on this system so they can be shared between configure
22647 # scripts and configure runs, see configure's option --config-cache.
22648 # It is not useful on other systems. If it contains results you don't
22649 # want to keep, you may remove or edit it.
22651 # config.status only pays attention to the cache file if you give it
22652 # the --recheck option to rerun configure.
22654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22656 # following values.
22660 # The following way of writing the cache mishandles newlines in values,
22661 # but we know of no workaround that is simple, portable, and efficient.
22662 # So, we kill variables containing newlines.
22663 # Ultrix sh set writes to stderr and can't be redirected directly,
22664 # and sets the high bit in the cache file unless we assign to the vars.
22666 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22667 eval ac_val=\$$ac_var
22671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22675 _ | IFS | as_nl) ;; #(
22676 *) $as_unset $ac_var ;;
22682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22683 *${as_nl}ac_space=\ *)
22684 # `set' does not quote correctly, so add quotes (double-quote
22685 # substitution turns \\\\ into \\, and sed turns \\ into \).
22688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22691 # `set' quotes correctly as required by POSIX, so do not add quotes.
22692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22705 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22706 if test -w "$cache_file"; then
22707 test "x$cache_file" != "x/dev/null" &&
22708 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22709 echo "$as_me: updating cache $cache_file" >&6;}
22710 cat confcache >$cache_file
22712 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22713 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22719 # Let make expand exec_prefix.
22720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22722 DEFS=-DHAVE_CONFIG_H
22726 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22727 # 1. Remove the extension, and $U if already installed.
22728 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22729 ac_i=`echo "$ac_i" | sed "$ac_script"`
22730 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22731 # will be set to the directory where LIBOBJS objects are built.
22732 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22733 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22735 LIBOBJS=$ac_libobjs
22737 LTLIBOBJS=$ac_ltlibobjs
22740 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22741 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22742 Usually this means the macro was only invoked conditionally." >&5
22743 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22744 Usually this means the macro was only invoked conditionally." >&2;}
22745 { (exit 1); exit 1; }; }
22747 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22748 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22749 Usually this means the macro was only invoked conditionally." >&5
22750 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22751 Usually this means the macro was only invoked conditionally." >&2;}
22752 { (exit 1); exit 1; }; }
22755 : ${CONFIG_STATUS=./config.status}
22756 ac_clean_files_save=$ac_clean_files
22757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22760 cat >$CONFIG_STATUS <<_ACEOF
22762 # Generated by $as_me.
22763 # Run this file to recreate the current configuration.
22764 # Compiler output produced by configure, useful for debugging
22765 # configure, is in config.log if it exists.
22768 ac_cs_recheck=false
22770 SHELL=\${CONFIG_SHELL-$SHELL}
22773 cat >>$CONFIG_STATUS <<\_ACEOF
22774 ## --------------------- ##
22775 ## M4sh Initialization. ##
22776 ## --------------------- ##
22778 # Be Bourne compatible
22779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22782 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22783 # is contrary to our usage. Disable this feature.
22784 alias -g '${1+"$@"}'='"$@"'
22785 setopt NO_GLOB_SUBST
22787 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22789 BIN_SH=xpg4; export BIN_SH # for Tru64
22790 DUALCASE=1; export DUALCASE # for MKS sh
22794 # Avoid depending upon Character Ranges.
22795 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22796 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22797 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22798 as_cr_digits='0123456789'
22799 as_cr_alnum=$as_cr_Letters$as_cr_digits
22801 # The user is always right.
22802 if test "${PATH_SEPARATOR+set}" != set; then
22803 echo "#! /bin/sh" >conf$$.sh
22804 echo "exit 0" >>conf$$.sh
22806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22814 # Support unset when possible.
22815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22823 # We need space, tab and new line, in precisely that order. Quoting is
22824 # there to prevent editors from complaining about space-tab.
22825 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22826 # splitting by setting IFS to empty value.)
22831 # Find who we are. Look in the path if we contain no directory separator.
22833 *[\\/]* ) as_myself=$0 ;;
22834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22835 for as_dir in $PATH
22838 test -z "$as_dir" && as_dir=.
22839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22845 # We did not find ourselves, most probably we were run as `sh COMMAND'
22846 # in which case we are not to be found in the path.
22847 if test "x$as_myself" = x; then
22850 if test ! -f "$as_myself"; then
22851 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22852 { (exit 1); exit 1; }
22855 # Work around bugs in pre-3.0 UWIN ksh.
22856 for as_var in ENV MAIL MAILPATH
22857 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22865 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22866 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22867 LC_TELEPHONE LC_TIME
22869 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22870 eval $as_var=C; export $as_var
22872 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22876 # Required to use basename.
22877 if expr a : '\(a\)' >/dev/null 2>&1 &&
22878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22885 as_basename=basename
22891 # Name of the executable.
22892 as_me=`$as_basename -- "$0" ||
22893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22894 X"$0" : 'X\(//\)$' \| \
22895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22897 sed '/^.*\/\([^/][^/]*\)\/*$/{
22916 as_lineno_1=$LINENO
22917 as_lineno_2=$LINENO
22918 test "x$as_lineno_1" != "x$as_lineno_2" &&
22919 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22921 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22922 # uniformly replaced by the line number. The first 'sed' inserts a
22923 # line-number line after each line using $LINENO; the second 'sed'
22924 # does the real work. The second script uses 'N' to pair each
22925 # line-number line with the line containing $LINENO, and appends
22926 # trailing '-' during substitution so that $LINENO is not a special
22927 # case at line end.
22928 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22929 # scripts with optimization help from Paolo Bonzini. Blame Lee
22930 # E. McMahon (1931-1989) for sed's syntax. :-)
22942 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22945 ' >$as_me.lineno &&
22946 chmod +x "$as_me.lineno" ||
22947 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22948 { (exit 1); exit 1; }; }
22950 # Don't try to exec as it changes $[0], causing all sort of problems
22951 # (the dirname of $[0] is not the place where we might find the
22952 # original and so on. Autoconf is especially sensitive to this).
22953 . "./$as_me.lineno"
22954 # Exit status is that of the last command.
22959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22965 ECHO_C= ECHO_N= ECHO_T=
22966 case `echo -n x` in
22968 case `echo 'x\c'` in
22969 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22976 if expr a : '\(a\)' >/dev/null 2>&1 &&
22977 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22983 rm -f conf$$ conf$$.exe conf$$.file
22984 if test -d conf$$.dir; then
22985 rm -f conf$$.dir/conf$$.file
22991 if ln -s conf$$.file conf$$ 2>/dev/null; then
22993 # ... but there are two gotchas:
22994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22996 # In both cases, we have to default to `cp -p'.
22997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22999 elif ln conf$$.file conf$$ 2>/dev/null; then
23004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23005 rmdir conf$$.dir 2>/dev/null
23007 if mkdir -p . 2>/dev/null; then
23010 test -d ./-p && rmdir ./-p
23014 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23015 # systems may use methods other than mode bits to determine executability.
23016 cat >conf$$.file <<_ASEOF
23020 chmod +x conf$$.file
23021 if test -x conf$$.file >/dev/null 2>&1; then
23022 as_executable_p="test -x"
23028 # Sed expression to map a string onto a valid CPP name.
23029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23031 # Sed expression to map a string onto a valid variable name.
23032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23037 # Save the log message, to keep $[0] and so on meaningful, and to
23038 # report actual input values of CONFIG_FILES etc. instead of their
23039 # values after options handling.
23041 This file was extended by LLVM $as_me 3.4svn, which was
23042 generated by GNU Autoconf 2.60. Invocation command line was
23044 CONFIG_FILES = $CONFIG_FILES
23045 CONFIG_HEADERS = $CONFIG_HEADERS
23046 CONFIG_LINKS = $CONFIG_LINKS
23047 CONFIG_COMMANDS = $CONFIG_COMMANDS
23050 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23055 cat >>$CONFIG_STATUS <<_ACEOF
23056 # Files that config.status was made for.
23057 config_files="$ac_config_files"
23058 config_headers="$ac_config_headers"
23059 config_commands="$ac_config_commands"
23063 cat >>$CONFIG_STATUS <<\_ACEOF
23065 \`$as_me' instantiates files from templates according to the
23066 current configuration.
23068 Usage: $0 [OPTIONS] [FILE]...
23070 -h, --help print this help, then exit
23071 -V, --version print version number, then exit
23072 -q, --quiet do not print progress messages
23073 -d, --debug don't remove temporary files
23074 --recheck update $as_me by reconfiguring in the same conditions
23075 --file=FILE[:TEMPLATE]
23076 instantiate the configuration file FILE
23077 --header=FILE[:TEMPLATE]
23078 instantiate the configuration header FILE
23080 Configuration files:
23083 Configuration headers:
23086 Configuration commands:
23089 Report bugs to <bug-autoconf@gnu.org>."
23092 cat >>$CONFIG_STATUS <<_ACEOF
23094 LLVM config.status 3.4svn
23095 configured by $0, generated by GNU Autoconf 2.60,
23096 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23098 Copyright (C) 2006 Free Software Foundation, Inc.
23099 This config.status script is free software; the Free Software Foundation
23100 gives unlimited permission to copy, distribute and modify it."
23107 cat >>$CONFIG_STATUS <<\_ACEOF
23108 # If no file are specified by the user, then we need to provide default
23109 # value. By we need to know if files were specified by the user.
23115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23127 # Handling of the options.
23128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23131 echo "$ac_cs_version"; exit ;;
23132 --debug | --debu | --deb | --de | --d | -d )
23134 --file | --fil | --fi | --f )
23136 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23137 ac_need_defaults=false;;
23138 --header | --heade | --head | --hea )
23140 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23141 ac_need_defaults=false;;
23143 # Conflict between --help and --header
23144 { echo "$as_me: error: ambiguous option: $1
23145 Try \`$0 --help' for more information." >&2
23146 { (exit 1); exit 1; }; };;
23147 --help | --hel | -h )
23148 echo "$ac_cs_usage"; exit ;;
23149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23150 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23153 # This is an error.
23154 -*) { echo "$as_me: error: unrecognized option: $1
23155 Try \`$0 --help' for more information." >&2
23156 { (exit 1); exit 1; }; } ;;
23158 *) ac_config_targets="$ac_config_targets $1"
23159 ac_need_defaults=false ;;
23165 ac_configure_extra_args=
23167 if $ac_cs_silent; then
23169 ac_configure_extra_args="$ac_configure_extra_args --silent"
23173 cat >>$CONFIG_STATUS <<_ACEOF
23174 if \$ac_cs_recheck; then
23175 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23176 CONFIG_SHELL=$SHELL
23177 export CONFIG_SHELL
23178 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23182 cat >>$CONFIG_STATUS <<\_ACEOF
23186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23187 ## Running $as_me. ##
23193 cat >>$CONFIG_STATUS <<_ACEOF
23197 llvm_src="${srcdir}"
23201 cat >>$CONFIG_STATUS <<\_ACEOF
23203 # Handling of arguments.
23204 for ac_config_target in $ac_config_targets
23206 case $ac_config_target in
23207 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23208 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23209 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23210 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23211 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23212 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23213 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23214 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23215 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23216 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23217 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23218 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23219 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23220 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23221 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23222 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23223 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23224 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23225 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23226 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23227 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23228 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23229 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23230 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23231 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23232 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23233 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23235 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23236 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23237 { (exit 1); exit 1; }; };;
23242 # If the user did not use the arguments to specify the items to instantiate,
23243 # then the envvar interface is used. Set only those that are not.
23244 # We use the long form for the default assignment because of an extremely
23245 # bizarre bug on SunOS 4.1.3.
23246 if $ac_need_defaults; then
23247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23249 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23252 # Have a temporary directory for convenience. Make it in the build tree
23253 # simply because there is no reason against having it here, and in addition,
23254 # creating and moving files from /tmp can sometimes cause problems.
23255 # Hook for its removal unless debugging.
23256 # Note that there is a small window in which the directory will not be cleaned:
23257 # after its creation but before its name has been assigned to `$tmp'.
23261 trap 'exit_status=$?
23262 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23264 trap '{ (exit 1); exit 1; }' 1 2 13 15
23266 # Create a (secure) tmp directory for tmp files.
23269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23270 test -n "$tmp" && test -d "$tmp"
23273 tmp=./conf$$-$RANDOM
23274 (umask 077 && mkdir "$tmp")
23277 echo "$me: cannot create a temporary directory in ." >&2
23278 { (exit 1); exit 1; }
23282 # Set up the sed scripts for CONFIG_FILES section.
23285 # No need to generate the scripts if there are no CONFIG_FILES.
23286 # This happens for instance when ./config.status config.h
23287 if test -n "$CONFIG_FILES"; then
23294 for ac_last_try in false false false false false :; do
23295 cat >conf$$subs.sed <<_ACEOF
23296 SHELL!$SHELL$ac_delim
23297 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23298 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23299 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23300 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23301 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23302 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23303 exec_prefix!$exec_prefix$ac_delim
23304 prefix!$prefix$ac_delim
23305 program_transform_name!$program_transform_name$ac_delim
23306 bindir!$bindir$ac_delim
23307 sbindir!$sbindir$ac_delim
23308 libexecdir!$libexecdir$ac_delim
23309 datarootdir!$datarootdir$ac_delim
23310 datadir!$datadir$ac_delim
23311 sysconfdir!$sysconfdir$ac_delim
23312 sharedstatedir!$sharedstatedir$ac_delim
23313 localstatedir!$localstatedir$ac_delim
23314 includedir!$includedir$ac_delim
23315 oldincludedir!$oldincludedir$ac_delim
23316 docdir!$docdir$ac_delim
23317 infodir!$infodir$ac_delim
23318 htmldir!$htmldir$ac_delim
23319 dvidir!$dvidir$ac_delim
23320 pdfdir!$pdfdir$ac_delim
23321 psdir!$psdir$ac_delim
23322 libdir!$libdir$ac_delim
23323 localedir!$localedir$ac_delim
23324 mandir!$mandir$ac_delim
23325 DEFS!$DEFS$ac_delim
23326 ECHO_C!$ECHO_C$ac_delim
23327 ECHO_N!$ECHO_N$ac_delim
23328 ECHO_T!$ECHO_T$ac_delim
23329 LIBS!$LIBS$ac_delim
23330 build_alias!$build_alias$ac_delim
23331 host_alias!$host_alias$ac_delim
23332 target_alias!$target_alias$ac_delim
23333 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23335 CFLAGS!$CFLAGS$ac_delim
23336 LDFLAGS!$LDFLAGS$ac_delim
23337 CPPFLAGS!$CPPFLAGS$ac_delim
23338 ac_ct_CC!$ac_ct_CC$ac_delim
23339 EXEEXT!$EXEEXT$ac_delim
23340 OBJEXT!$OBJEXT$ac_delim
23342 CXXFLAGS!$CXXFLAGS$ac_delim
23343 ac_ct_CXX!$ac_ct_CXX$ac_delim
23345 subdirs!$subdirs$ac_delim
23346 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23347 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23348 build!$build$ac_delim
23349 build_cpu!$build_cpu$ac_delim
23350 build_vendor!$build_vendor$ac_delim
23351 build_os!$build_os$ac_delim
23352 host!$host$ac_delim
23353 host_cpu!$host_cpu$ac_delim
23354 host_vendor!$host_vendor$ac_delim
23355 host_os!$host_os$ac_delim
23356 target!$target$ac_delim
23357 target_cpu!$target_cpu$ac_delim
23358 target_vendor!$target_vendor$ac_delim
23359 target_os!$target_os$ac_delim
23361 HOST_OS!$HOST_OS$ac_delim
23362 TARGET_OS!$TARGET_OS$ac_delim
23363 LINKALL!$LINKALL$ac_delim
23364 NOLINKALL!$NOLINKALL$ac_delim
23365 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23366 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23367 ARCH!$ARCH$ac_delim
23368 HOST_ARCH!$HOST_ARCH$ac_delim
23369 ENDIAN!$ENDIAN$ac_delim
23370 GREP!$GREP$ac_delim
23371 EGREP!$EGREP$ac_delim
23372 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23373 BUILD_CC!$BUILD_CC$ac_delim
23374 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23375 BUILD_CXX!$BUILD_CXX$ac_delim
23376 CVSBUILD!$CVSBUILD$ac_delim
23377 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23378 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23379 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23380 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23381 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23382 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23383 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23384 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23385 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23386 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23387 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23388 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23389 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23390 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23392 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23395 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23397 elif $ac_last_try; then
23398 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23399 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23400 { (exit 1); exit 1; }; }
23402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23406 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23407 if test -n "$ac_eof"; then
23408 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23409 ac_eof=`expr $ac_eof + 1`
23412 cat >>$CONFIG_STATUS <<_ACEOF
23413 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23417 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23418 s/^/s,@/; s/!/@,|#_!!_#|/
23421 s/'"$ac_delim"'$/,g/; t
23423 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23424 ' >>$CONFIG_STATUS <conf$$subs.sed
23425 rm -f conf$$subs.sed
23426 cat >>$CONFIG_STATUS <<_ACEOF
23432 for ac_last_try in false false false false false :; do
23433 cat >conf$$subs.sed <<_ACEOF
23434 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23435 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23436 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23437 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23438 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23439 ENABLE_PIC!$ENABLE_PIC$ac_delim
23440 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23441 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23442 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23443 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23444 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23445 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23446 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23447 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23448 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23449 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23450 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23451 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23452 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23453 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23454 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23456 ifGNUmake!$ifGNUmake$ac_delim
23457 LN_S!$LN_S$ac_delim
23460 DATE!$DATE$ac_delim
23461 FIND!$FIND$ac_delim
23462 MKDIR!$MKDIR$ac_delim
23464 RANLIB!$RANLIB$ac_delim
23469 BINPWD!$BINPWD$ac_delim
23470 GRAPHVIZ!$GRAPHVIZ$ac_delim
23473 NEATO!$NEATO$ac_delim
23474 TWOPI!$TWOPI$ac_delim
23475 CIRCO!$CIRCO$ac_delim
23477 DOTTY!$DOTTY$ac_delim
23478 XDOT_PY!$XDOT_PY$ac_delim
23479 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23480 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23481 INSTALL_DATA!$INSTALL_DATA$ac_delim
23482 BZIP2!$BZIP2$ac_delim
23484 DOXYGEN!$DOXYGEN$ac_delim
23485 GROFF!$GROFF$ac_delim
23486 GZIPBIN!$GZIPBIN$ac_delim
23487 PDFROFF!$PDFROFF$ac_delim
23489 OCAMLC!$OCAMLC$ac_delim
23490 OCAMLOPT!$OCAMLOPT$ac_delim
23491 OCAMLDEP!$OCAMLDEP$ac_delim
23492 OCAMLDOC!$OCAMLDOC$ac_delim
23494 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23495 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23496 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23497 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23498 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23499 LIBADD_DL!$LIBADD_DL$ac_delim
23500 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23501 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23502 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23503 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23504 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23505 PYTHON!$PYTHON$ac_delim
23506 USE_UDIS86!$USE_UDIS86$ac_delim
23507 USE_OPROFILE!$USE_OPROFILE$ac_delim
23508 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23509 XML2CONFIG!$XML2CONFIG$ac_delim
23510 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23511 LIBXML2_INC!$LIBXML2_INC$ac_delim
23512 CXXCPP!$CXXCPP$ac_delim
23513 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23514 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23515 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23516 MMAP_FILE!$MMAP_FILE$ac_delim
23517 SHLIBEXT!$SHLIBEXT$ac_delim
23518 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23519 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23520 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23521 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23522 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23523 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23524 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23525 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23526 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23527 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23528 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23529 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23530 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23533 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23535 elif $ac_last_try; then
23536 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23537 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23538 { (exit 1); exit 1; }; }
23540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23544 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23545 if test -n "$ac_eof"; then
23546 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23547 ac_eof=`expr $ac_eof + 1`
23550 cat >>$CONFIG_STATUS <<_ACEOF
23551 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23555 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23556 s/^/s,@/; s/!/@,|#_!!_#|/
23559 s/'"$ac_delim"'$/,g/; t
23561 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23562 ' >>$CONFIG_STATUS <conf$$subs.sed
23563 rm -f conf$$subs.sed
23564 cat >>$CONFIG_STATUS <<_ACEOF
23570 for ac_last_try in false false false false false :; do
23571 cat >conf$$subs.sed <<_ACEOF
23572 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23573 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23574 RPATH!$RPATH$ac_delim
23575 RDYNAMIC!$RDYNAMIC$ac_delim
23576 program_prefix!$program_prefix$ac_delim
23577 LIBOBJS!$LIBOBJS$ac_delim
23578 LTLIBOBJS!$LTLIBOBJS$ac_delim
23581 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23583 elif $ac_last_try; then
23584 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23585 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23586 { (exit 1); exit 1; }; }
23588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23592 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23593 if test -n "$ac_eof"; then
23594 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23595 ac_eof=`expr $ac_eof + 1`
23598 cat >>$CONFIG_STATUS <<_ACEOF
23599 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23603 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23604 s/^/s,@/; s/!/@,|#_!!_#|/
23607 s/'"$ac_delim"'$/,g/; t
23609 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23610 ' >>$CONFIG_STATUS <conf$$subs.sed
23611 rm -f conf$$subs.sed
23612 cat >>$CONFIG_STATUS <<_ACEOF
23619 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23620 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23621 # trailing colons and then remove the whole line if VPATH becomes empty
23622 # (actually we leave an empty line to preserve line numbers).
23623 if test "x$srcdir" = x.; then
23624 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23625 s/:*\$(srcdir):*/:/
23626 s/:*\${srcdir}:*/:/
23628 s/^\([^=]*=[ ]*\):*/\1/
23634 cat >>$CONFIG_STATUS <<\_ACEOF
23635 fi # test -n "$CONFIG_FILES"
23638 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23641 :[FHLC]) ac_mode=$ac_tag; continue;;
23643 case $ac_mode$ac_tag in
23645 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23646 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23647 { (exit 1); exit 1; }; };;
23648 :[FH]-) ac_tag=-:-;;
23649 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23666 -) ac_f="$tmp/stdin";;
23667 *) # Look for the file first in the build tree, then in the source tree
23668 # (if the path is not absolute). The absolute path cannot be DOS-style,
23669 # because $ac_f cannot contain `:'.
23673 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23675 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23676 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23677 { (exit 1); exit 1; }; };;
23679 ac_file_inputs="$ac_file_inputs $ac_f"
23682 # Let's still pretend it is `configure' which instantiates (i.e., don't
23683 # use $as_me), people would be surprised to read:
23684 # /* config.h. Generated by config.status. */
23685 configure_input="Generated from "`IFS=:
23686 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23687 if test x"$ac_file" != x-; then
23688 configure_input="$ac_file. $configure_input"
23689 { echo "$as_me:$LINENO: creating $ac_file" >&5
23690 echo "$as_me: creating $ac_file" >&6;}
23694 *:-:* | *:-) cat >"$tmp/stdin";;
23699 ac_dir=`$as_dirname -- "$ac_file" ||
23700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23701 X"$ac_file" : 'X\(//\)[^/]' \| \
23702 X"$ac_file" : 'X\(//\)$' \| \
23703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23709 /^X\(\/\/\)[^/].*/{
23724 -*) as_dir=./$as_dir;;
23726 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23730 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23731 *) as_qdir=$as_dir;;
23733 as_dirs="'$as_qdir' $as_dirs"
23734 as_dir=`$as_dirname -- "$as_dir" ||
23735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736 X"$as_dir" : 'X\(//\)[^/]' \| \
23737 X"$as_dir" : 'X\(//\)$' \| \
23738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23744 /^X\(\/\/\)[^/].*/{
23757 test -d "$as_dir" && break
23759 test -z "$as_dirs" || eval "mkdir $as_dirs"
23760 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23761 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23762 { (exit 1); exit 1; }; }; }
23766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23769 # A ".." for each directory in $ac_dir_suffix.
23770 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23771 case $ac_top_builddir_sub in
23772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23776 ac_abs_top_builddir=$ac_pwd
23777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23778 # for backward compatibility:
23779 ac_top_builddir=$ac_top_build_prefix
23782 .) # We are building in place.
23784 ac_top_srcdir=$ac_top_builddir_sub
23785 ac_abs_top_srcdir=$ac_pwd ;;
23786 [\\/]* | ?:[\\/]* ) # Absolute name.
23787 ac_srcdir=$srcdir$ac_dir_suffix;
23788 ac_top_srcdir=$srcdir
23789 ac_abs_top_srcdir=$srcdir ;;
23790 *) # Relative name.
23791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23792 ac_top_srcdir=$ac_top_build_prefix$srcdir
23793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23805 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23806 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23810 cat >>$CONFIG_STATUS <<\_ACEOF
23811 # If the template does not know about datarootdir, expand it.
23812 # FIXME: This hack should be removed a few years after 2.60.
23813 ac_datarootdir_hack=; ac_datarootdir_seen=
23815 case `sed -n '/datarootdir/ {
23824 ' $ac_file_inputs` in
23825 *datarootdir*) ac_datarootdir_seen=yes;;
23826 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23827 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23828 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23830 cat >>$CONFIG_STATUS <<_ACEOF
23831 ac_datarootdir_hack='
23832 s&@datadir@&$datadir&g
23833 s&@docdir@&$docdir&g
23834 s&@infodir@&$infodir&g
23835 s&@localedir@&$localedir&g
23836 s&@mandir@&$mandir&g
23837 s&\\\${datarootdir}&$datarootdir&g' ;;
23841 # Neutralize VPATH when `$srcdir' = `.'.
23842 # Shell code in configure.ac might set extrasub.
23843 # FIXME: do we really want to maintain this feature?
23844 cat >>$CONFIG_STATUS <<_ACEOF
23848 cat >>$CONFIG_STATUS <<\_ACEOF
23850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23851 s&@configure_input@&$configure_input&;t t
23852 s&@top_builddir@&$ac_top_builddir_sub&;t t
23853 s&@srcdir@&$ac_srcdir&;t t
23854 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23855 s&@top_srcdir@&$ac_top_srcdir&;t t
23856 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23857 s&@builddir@&$ac_builddir&;t t
23858 s&@abs_builddir@&$ac_abs_builddir&;t t
23859 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23860 s&@INSTALL@&$ac_INSTALL&;t t
23861 $ac_datarootdir_hack
23862 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23864 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23865 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23866 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23867 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23868 which seems to be undefined. Please make sure it is defined." >&5
23869 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23870 which seems to be undefined. Please make sure it is defined." >&2;}
23874 -) cat "$tmp/out"; rm -f "$tmp/out";;
23875 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23884 # Transform confdefs.h into a sed script `conftest.defines', that
23885 # substitutes the proper values into config.h.in to produce config.h.
23886 rm -f conftest.defines conftest.tail
23887 # First, append a space to every undef/define line, to ease matching.
23888 echo 's/$/ /' >conftest.defines
23889 # Then, protect against being on the right side of a sed subst, or in
23890 # an unquoted here document, in config.status. If some macros were
23891 # called several times there might be several #defines for the same
23892 # symbol, which is useless. But do not sort them, since the last
23893 # AC_DEFINE must be honored.
23894 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23895 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23896 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23897 # PARAMS is the parameter list in the macro definition--in most cases, it's
23898 # just an empty string.
23899 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23900 ac_dB='\\)[ (].*,\\1define\\2'
23908 s/^[ ]*#[ ]*define[ ][ ]*//
23913 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23914 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23915 ' >>conftest.defines
23917 # Remove the space that was appended to ease matching.
23918 # Then replace #undef with comments. This is necessary, for
23919 # example, in the case of _POSIX_SOURCE, which is predefined and required
23920 # on some systems where configure will not decide to define it.
23921 # (The regexp can be short, since the line contains either #define or #undef.)
23923 s,^[ #]*u.*,/* & */,' >>conftest.defines
23925 # Break up conftest.defines:
23926 ac_max_sed_lines=50
23928 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23929 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23930 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23932 ac_in='$ac_file_inputs'
23933 ac_out='"$tmp/out1"'
23934 ac_nxt='"$tmp/out2"'
23938 # Write a here document:
23939 cat >>$CONFIG_STATUS <<_ACEOF
23940 # First, check the format of the line:
23941 cat >"\$tmp/defines.sed" <<\\CEOF
23942 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23943 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23947 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23949 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23950 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23951 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23952 grep . conftest.tail >/dev/null || break
23953 rm -f conftest.defines
23954 mv conftest.tail conftest.defines
23956 rm -f conftest.defines conftest.tail
23958 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23959 cat >>$CONFIG_STATUS <<\_ACEOF
23960 if test x"$ac_file" != x-; then
23961 echo "/* $configure_input */" >"$tmp/config.h"
23962 cat "$ac_result" >>"$tmp/config.h"
23963 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23964 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23965 echo "$as_me: $ac_file is unchanged" >&6;}
23968 mv "$tmp/config.h" $ac_file
23971 echo "/* $configure_input */"
23977 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23978 echo "$as_me: executing $ac_file commands" >&6;}
23983 case $ac_file$ac_mode in
23984 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23986 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23988 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23990 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23992 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23994 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23996 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23998 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24000 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24002 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24004 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24006 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24008 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24015 { (exit 0); exit 0; }
24017 chmod +x $CONFIG_STATUS
24018 ac_clean_files=$ac_clean_files_save
24021 # configure is writing to config.log, and then calls config.status.
24022 # config.status does its own redirection, appending to config.log.
24023 # Unfortunately, on DOS this fails, as config.log is still kept open
24024 # by configure, so config.status won't be able to write to it; its
24025 # output is simply discarded. So we exec the FD to /dev/null,
24026 # effectively closing config.log, so it can be properly (re)opened and
24027 # appended to by config.status. When coming back to configure, we
24028 # need to make the FD available again.
24029 if test "$no_create" != yes; then
24031 ac_config_status_args=
24032 test "$silent" = yes &&
24033 ac_config_status_args="$ac_config_status_args --quiet"
24035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24038 # would make configure fail if this is the last instruction.
24039 $ac_cs_success || { (exit 1); exit 1; }
24043 # CONFIG_SUBDIRS section.
24045 if test "$no_recursion" != yes; then
24047 # Remove --cache-file and --srcdir arguments so they do not pile up.
24048 ac_sub_configure_args=
24050 eval "set x $ac_configure_args"
24054 if test -n "$ac_prev"; then
24059 -cache-file | --cache-file | --cache-fil | --cache-fi \
24060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24061 ac_prev=cache_file ;;
24062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24066 --config-cache | -C)
24068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24078 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24080 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24084 # Always prepend --prefix to ensure using the same prefix
24085 # in subdir configurations.
24086 ac_arg="--prefix=$prefix"
24088 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24090 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24093 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24095 # Do not complain, so a configure script can configure whichever
24096 # parts of a large source tree are present.
24097 test -d "$srcdir/$ac_dir" || continue
24099 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24100 echo "$as_me:$LINENO: $ac_msg" >&5
24104 -*) as_dir=./$as_dir;;
24106 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24110 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24111 *) as_qdir=$as_dir;;
24113 as_dirs="'$as_qdir' $as_dirs"
24114 as_dir=`$as_dirname -- "$as_dir" ||
24115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24116 X"$as_dir" : 'X\(//\)[^/]' \| \
24117 X"$as_dir" : 'X\(//\)$' \| \
24118 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24124 /^X\(\/\/\)[^/].*/{
24137 test -d "$as_dir" && break
24139 test -z "$as_dirs" || eval "mkdir $as_dirs"
24140 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24141 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24142 { (exit 1); exit 1; }; }; }
24146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24149 # A ".." for each directory in $ac_dir_suffix.
24150 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24151 case $ac_top_builddir_sub in
24152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24156 ac_abs_top_builddir=$ac_pwd
24157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24158 # for backward compatibility:
24159 ac_top_builddir=$ac_top_build_prefix
24162 .) # We are building in place.
24164 ac_top_srcdir=$ac_top_builddir_sub
24165 ac_abs_top_srcdir=$ac_pwd ;;
24166 [\\/]* | ?:[\\/]* ) # Absolute name.
24167 ac_srcdir=$srcdir$ac_dir_suffix;
24168 ac_top_srcdir=$srcdir
24169 ac_abs_top_srcdir=$srcdir ;;
24170 *) # Relative name.
24171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24172 ac_top_srcdir=$ac_top_build_prefix$srcdir
24173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24180 # Check for guested configure; otherwise get Cygnus style configure.
24181 if test -f "$ac_srcdir/configure.gnu"; then
24182 ac_sub_configure=$ac_srcdir/configure.gnu
24183 elif test -f "$ac_srcdir/configure"; then
24184 ac_sub_configure=$ac_srcdir/configure
24185 elif test -f "$ac_srcdir/configure.in"; then
24186 # This should be Cygnus configure.
24187 ac_sub_configure=$ac_aux_dir/configure
24189 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24190 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24194 # The recursion is here.
24195 if test -n "$ac_sub_configure"; then
24196 # Make the cache file name correct relative to the subdirectory.
24197 case $cache_file in
24198 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24199 *) # Relative name.
24200 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24203 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24204 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24205 # The eval makes quoting arguments work.
24206 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24207 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24208 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24209 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24210 { (exit 1); exit 1; }; }