2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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-2011 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.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/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
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
772 NO_MISSING_FIELD_INITIALIZERS
784 LLVMCC_DISABLEOPT_FLAGS
800 ENABLE_VISIBILITY_INLINES_HIDDEN
806 ac_precious_vars='build_alias
817 ac_subdirs_all='projects/llvm-gcc
821 projects/llvm-poolalloc
824 projects/llvm-stacker
832 # Initialize some variables set by options.
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name=s,x,x,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-pic Build LLVM with Position Independent Code (default
1424 --enable-shared Build a shared library and link tools against it
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
1428 --enable-timestamps Enable embedding timestamp information in build
1430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
1439 --enable-libffi Check for the presence of libffi (default is NO)
1440 --enable-ltdl-install install libltdl
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1447 --with-llvmgcc Specify location of llvm-gcc driver (default
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1451 --with-clang Specify location of clang compiler (default is
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1464 --with-c-include-dirs Colon separated list of directories clang will
1466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org/bugs/)
1476 --with-tclinclude directory where tcl headers are
1477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
1479 --with-udis86=<path> Use udis86 external x86 disassembler library
1480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1497 Report bugs to <llvmbugs@cs.uiuc.edu>.
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" || continue
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1525 .) # We are building in place.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1558 llvm configure 3.0svn
1559 generated by GNU Autoconf 2.60
1561 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1562 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1566 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1574 It was created by llvm $as_me 3.0svn, which was
1575 generated by GNU Autoconf 2.60. Invocation command line was
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1600 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1635 ac_must_keep_next=false
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664 -* ) ac_must_keep_next=true ;;
1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log. We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1691 # The following way of writing the cache mishandles newlines in values,
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1728 for ac_var in $ac_subst_vars
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 echo "$ac_var='\''$ac_val'\''"
1738 if test -n "$ac_subst_files"; then
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1745 for ac_var in $ac_subst_files
1747 eval ac_val=\$$ac_var
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 echo "$ac_var='\''$ac_val'\''"
1756 if test -s confdefs.h; then
1766 test "$ac_signal" != 0 &&
1767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774 for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1782 # Predefined preprocessor variables.
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812 set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1830 if test -r "$cache_file"; then
1831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1847 # Check that the precious variables saved in the cache have kept the same
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
1855 case $ac_old_set,$ac_new_set in
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870 echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872 echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 *) ac_arg=$ac_var=$ac_new_val ;;
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1888 if $ac_cache_corrupted; then
1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938 if test -f "$ac_dir/install-sh"; then
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 elif test -f "$ac_dir/install.sh"; then
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 elif test -f "$ac_dir/shtool"; then
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 if test ${srcdir} != "." ; then
1969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982 for ac_prog in clang llvm-gcc gcc
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 { echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6; }
2016 { echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6; }
2021 test -n "$CC" && break
2024 if test -z "$CC"; then
2026 for ac_prog in clang llvm-gcc gcc
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2045 ac_cv_prog_ac_ct_CC="$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6; }
2060 { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2065 test -n "$ac_ct_CC" && break
2068 if test "x$ac_ct_CC" = x; then
2071 case $cross_compiling:$ac_tool_warned in
2073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet. If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&5
2076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2077 whose name does not start with the host triplet. If you think this
2078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2079 ac_tool_warned=yes ;;
2086 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: no acceptable C compiler found in \$PATH
2089 See \`config.log' for more details." >&2;}
2090 { (exit 1); exit 1; }; }
2092 # Provide some information about the compiler.
2093 echo "$as_me:$LINENO: checking for C compiler version" >&5
2094 ac_compiler=`set X $ac_compile; echo $2`
2095 { (ac_try="$ac_compiler --version >&5"
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler --version >&5") 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105 { (ac_try="$ac_compiler -v >&5"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -v >&5") 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (ac_try="$ac_compiler -V >&5"
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121 (eval "$ac_compiler -V >&5") 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2126 cat >conftest.$ac_ext <<_ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2146 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2147 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150 # List of possible output files, starting from the most likely.
2151 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2152 # only as a last resort. b.out is created by i960 compilers.
2153 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2155 # The IRIX 6 linker writes into existing files which may not be
2156 # executable, retaining their permissions. Remove them first so a
2157 # subsequent execution test works.
2159 for ac_file in $ac_files
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2163 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2168 if { (ac_try="$ac_link_default"
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2174 (eval "$ac_link_default") 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; then
2178 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2179 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2180 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2181 # so that the user can short-circuit this test for compilers unknown to
2183 for ac_file in $ac_files
2185 test -f "$ac_file" || continue
2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2190 # We found the default executable, but exeext='' is most
2194 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 # We set ac_cv_exeext here because the later test for it is not
2199 # safe: cross compilers may not add the suffix if given an `-o'
2200 # argument, so we may need to know it at that point already.
2201 # Even if this section looks crufty: it has the advantage of
2208 test "$ac_cv_exeext" = no && ac_cv_exeext=
2211 echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2214 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: C compiler cannot create executables
2217 See \`config.log' for more details." >&2;}
2218 { (exit 77); exit 77; }; }
2221 ac_exeext=$ac_cv_exeext
2222 { echo "$as_me:$LINENO: result: $ac_file" >&5
2223 echo "${ECHO_T}$ac_file" >&6; }
2225 # Check that the compiler produces executables we can run. If not, either
2226 # the compiler is broken, or we cross compile.
2227 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2228 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2229 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2230 # If not cross compiling, check that we can run a simple program.
2231 if test "$cross_compiling" != yes; then
2232 if { ac_try='./$ac_file'
2233 { (case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_try") 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 if test "$cross_compiling" = maybe; then
2247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check that the compiler produces executables we can run. If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2266 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6; }
2269 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2271 if { (ac_try="$ac_link"
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_link") 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; then
2281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2285 for ac_file in conftest.exe conftest conftest.*; do
2286 test -f "$ac_file" || continue
2288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&2;}
2299 { (exit 1); exit 1; }; }
2302 rm -f conftest$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2306 rm -f conftest.$ac_ext
2307 EXEEXT=$ac_cv_exeext
2309 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2311 if test "${ac_cv_objext+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 cat >conftest.$ac_ext <<_ACEOF
2317 cat confdefs.h >>conftest.$ac_ext
2318 cat >>conftest.$ac_ext <<_ACEOF
2319 /* end confdefs.h. */
2329 rm -f conftest.o conftest.obj
2330 if { (ac_try="$ac_compile"
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336 (eval "$ac_compile") 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
2340 for ac_file in conftest.o conftest.obj conftest.*; do
2341 test -f "$ac_file" || continue;
2343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362 echo "${ECHO_T}$ac_cv_objext" >&6; }
2363 OBJEXT=$ac_cv_objext
2365 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2367 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat >conftest.$ac_ext <<_ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2388 rm -f conftest.$ac_objext
2389 if { (ac_try="$ac_compile"
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compile") 2>conftest.er1
2397 grep -v '^ *+' conftest.er1 >conftest.err
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_try") 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2434 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2436 GCC=`test $ac_compiler_gnu = yes && echo yes`
2437 ac_test_CFLAGS=${CFLAGS+set}
2438 ac_save_CFLAGS=$CFLAGS
2439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_cc_g+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 ac_save_c_werror_flag=$ac_c_werror_flag
2445 ac_c_werror_flag=yes
2448 cat >conftest.$ac_ext <<_ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2463 rm -f conftest.$ac_objext
2464 if { (ac_try="$ac_compile"
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_compile") 2>conftest.er1
2472 grep -v '^ *+' conftest.er1 >conftest.err
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; } &&
2487 { ac_try='test -s conftest.$ac_objext'
2488 { (case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_try") 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2503 cat >conftest.$ac_ext <<_ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2518 rm -f conftest.$ac_objext
2519 if { (ac_try="$ac_compile"
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_compile") 2>conftest.er1
2527 grep -v '^ *+' conftest.er1 >conftest.err
2529 cat conftest.err >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_try") 2>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 ac_c_werror_flag=$ac_save_c_werror_flag
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 ac_c_werror_flag=$ac_save_c_werror_flag
2625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2627 if test "$ac_test_CFLAGS" = set; then
2628 CFLAGS=$ac_save_CFLAGS
2629 elif test $ac_cv_prog_cc_g = yes; then
2630 if test "$GCC" = yes; then
2636 if test "$GCC" = yes; then
2642 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2643 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_cc_c89+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 ac_cv_prog_cc_c89=no
2649 cat >conftest.$ac_ext <<_ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2657 #include <sys/types.h>
2658 #include <sys/stat.h>
2659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2660 struct buf { int x; };
2661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662 static char *e (p, i)
2668 static char *f (char * (*g) (char **, int), char **p, ...)
2673 s = g (p, va_arg (v,int));
2678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2679 function prototypes and stuff, but not '\xHH' hex character constants.
2680 These don't provoke an error unfortunately, instead are silently treated
2681 as 'x'. The following induces an error, until -std is added to get
2682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2683 array size at least. It's necessary to write '\x00'==0 to get something
2684 that's true only with -std. */
2685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2688 inside strings and character constants. */
2690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2692 int test (int i, double x);
2693 struct s1 {int (*f) (int a);};
2694 struct s2 {int (*f) (double a);};
2695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2709 CC="$ac_save_CC $ac_arg"
2710 rm -f conftest.$ac_objext
2711 if { (ac_try="$ac_compile"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compile") 2>conftest.er1
2719 grep -v '^ *+' conftest.er1 >conftest.err
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_try") 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 ac_cv_prog_cc_c89=$ac_arg
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2752 rm -f core conftest.err conftest.$ac_objext
2753 test "x$ac_cv_prog_cc_c89" != "xno" && break
2755 rm -f conftest.$ac_ext
2760 case "x$ac_cv_prog_cc_c89" in
2762 { echo "$as_me:$LINENO: result: none needed" >&5
2763 echo "${ECHO_T}none needed" >&6; } ;;
2765 { echo "$as_me:$LINENO: result: unsupported" >&5
2766 echo "${ECHO_T}unsupported" >&6; } ;;
2768 CC="$CC $ac_cv_prog_cc_c89"
2769 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 ac_cpp='$CXXCPP $CPPFLAGS'
2782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2785 if test -z "$CXX"; then
2786 if test -n "$CCC"; then
2789 if test -n "$ac_tool_prefix"; then
2790 for ac_prog in clang++ llvm-g++ g++
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_CXX+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 if test -n "$CXX"; then
2800 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test -n "$CXX"; then
2821 { echo "$as_me:$LINENO: result: $CXX" >&5
2822 echo "${ECHO_T}$CXX" >&6; }
2824 { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2829 test -n "$CXX" && break
2832 if test -z "$CXX"; then
2834 for ac_prog in clang++ llvm-g++ g++
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 if test -n "$ac_ct_CXX"; then
2844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_ac_ct_CXX="$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2864 if test -n "$ac_ct_CXX"; then
2865 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2866 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2868 { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2873 test -n "$ac_ct_CXX" && break
2876 if test "x$ac_ct_CXX" = x; then
2879 case $cross_compiling:$ac_tool_warned in
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet. If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet. If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2897 ac_compiler=`set X $ac_compile; echo $2`
2898 { (ac_try="$ac_compiler --version >&5"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler --version >&5") 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908 { (ac_try="$ac_compiler -v >&5"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -v >&5") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918 { (ac_try="$ac_compiler -V >&5"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compiler -V >&5") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2961 grep -v '^ *+' conftest.er1 >conftest.err
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2998 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3000 GXX=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CXXFLAGS=${CXXFLAGS+set}
3002 ac_save_CXXFLAGS=$CXXFLAGS
3003 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3004 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cxx_g+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3009 ac_cxx_werror_flag=yes
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_prog_cxx_g=yes
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 ac_cv_prog_cxx_g=yes
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3191 if test "$ac_test_CXXFLAGS" = set; then
3192 CXXFLAGS=$ac_save_CXXFLAGS
3193 elif test $ac_cv_prog_cxx_g = yes; then
3194 if test "$GXX" = yes; then
3200 if test "$GXX" = yes; then
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3218 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3219 # On Suns, sometimes $CPP names a directory.
3220 if test -n "$CPP" && test -d "$CPP"; then
3223 if test -z "$CPP"; then
3224 if test "${ac_cv_prog_CPP+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 # Double quotes because CPP needs to be expanded
3228 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3231 for ac_c_preproc_warn_flag in '' yes
3233 # Use a header file that comes with gcc, so configuring glibc
3234 # with a fresh cross-compiler works.
3235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236 # <limits.h> exists even on freestanding compilers.
3237 # On the NeXT, cc -E runs the code through the compiler's parser,
3238 # not just through cpp. "Syntax error" is here to catch this case.
3239 cat >conftest.$ac_ext <<_ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3246 # include <limits.h>
3248 # include <assert.h>
3252 if { (ac_try="$ac_cpp conftest.$ac_ext"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3260 grep -v '^ *+' conftest.er1 >conftest.err
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } >/dev/null; then
3265 if test -s conftest.err; then
3266 ac_cpp_err=$ac_c_preproc_warn_flag
3267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3274 if test -z "$ac_cpp_err"; then
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 # Broken: fails on valid input.
3284 rm -f conftest.err conftest.$ac_ext
3286 # OK, works on sane cases. Now check whether nonexistent headers
3287 # can be detected and how.
3288 cat >conftest.$ac_ext <<_ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294 #include <ac_nonexistent.h>
3296 if { (ac_try="$ac_cpp conftest.$ac_ext"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3304 grep -v '^ *+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } >/dev/null; then
3309 if test -s conftest.err; then
3310 ac_cpp_err=$ac_c_preproc_warn_flag
3311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3318 if test -z "$ac_cpp_err"; then
3319 # Broken: success on invalid input.
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 # Passes both tests.
3330 rm -f conftest.err conftest.$ac_ext
3333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334 rm -f conftest.err conftest.$ac_ext
3335 if $ac_preproc_ok; then
3347 { echo "$as_me:$LINENO: result: $CPP" >&5
3348 echo "${ECHO_T}$CPP" >&6; }
3350 for ac_c_preproc_warn_flag in '' yes
3352 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser,
3357 # not just through cpp. "Syntax error" is here to catch this case.
3358 cat >conftest.$ac_ext <<_ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3365 # include <limits.h>
3367 # include <assert.h>
3371 if { (ac_try="$ac_cpp conftest.$ac_ext"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3379 grep -v '^ *+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3393 if test -z "$ac_cpp_err"; then
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Broken: fails on valid input.
3403 rm -f conftest.err conftest.$ac_ext
3405 # OK, works on sane cases. Now check whether nonexistent headers
3406 # can be detected and how.
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <ac_nonexistent.h>
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423 grep -v '^ *+' conftest.er1 >conftest.err
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3437 if test -z "$ac_cpp_err"; then
3438 # Broken: success on invalid input.
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 # Passes both tests.
3449 rm -f conftest.err conftest.$ac_ext
3452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453 rm -f conftest.err conftest.$ac_ext
3454 if $ac_preproc_ok; then
3457 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&5
3459 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3460 See \`config.log' for more details." >&2;}
3461 { (exit 1); exit 1; }; }
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 if test -d ${srcdir}/projects/llvm-gcc ; then
3474 subdirs="$subdirs projects/llvm-gcc"
3478 if test -d ${srcdir}/projects/test-suite ; then
3479 subdirs="$subdirs projects/test-suite"
3483 if test -d ${srcdir}/projects/llvm-test ; then
3484 subdirs="$subdirs projects/llvm-test"
3488 if test -d ${srcdir}/projects/poolalloc ; then
3489 subdirs="$subdirs projects/poolalloc"
3493 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3494 subdirs="$subdirs projects/llvm-poolalloc"
3498 for i in `ls ${srcdir}/projects`
3500 if test -d ${srcdir}/projects/${i} ; then
3502 sample) subdirs="$subdirs projects/sample"
3504 privbracket) subdirs="$subdirs projects/privbracket"
3506 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3508 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3510 llvm-java) subdirs="$subdirs projects/llvm-java"
3512 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3514 safecode) subdirs="$subdirs projects/safecode"
3516 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3524 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3525 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3531 # Check whether --enable-polly was given.
3532 if test "${enable_polly+set}" = set; then
3533 enableval=$enable_polly;
3538 case "$enableval" in
3543 default) ENABLE_POLLY=1
3545 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3546 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3547 { (exit 1); exit 1; }; } ;;
3551 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3554 subdirs="$subdirs tools/polly"
3559 # Make sure we can run config.sub.
3560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3561 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3562 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3563 { (exit 1); exit 1; }; }
3565 { echo "$as_me:$LINENO: checking build system type" >&5
3566 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3567 if test "${ac_cv_build+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 ac_build_alias=$build_alias
3571 test "x$ac_build_alias" = x &&
3572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3573 test "x$ac_build_alias" = x &&
3574 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3575 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3576 { (exit 1); exit 1; }; }
3577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3579 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3580 { (exit 1); exit 1; }; }
3583 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3584 echo "${ECHO_T}$ac_cv_build" >&6; }
3585 case $ac_cv_build in
3587 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3588 echo "$as_me: error: invalid value of canonical build" >&2;}
3589 { (exit 1); exit 1; }; };;
3592 ac_save_IFS=$IFS; IFS='-'
3598 # Remember, the first character of IFS is used to create $*,
3599 # except with old shells:
3602 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3605 { echo "$as_me:$LINENO: checking host system type" >&5
3606 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3607 if test "${ac_cv_host+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 if test "x$host_alias" = x; then
3611 ac_cv_host=$ac_cv_build
3613 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3614 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3615 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3616 { (exit 1); exit 1; }; }
3620 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3621 echo "${ECHO_T}$ac_cv_host" >&6; }
3624 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3625 echo "$as_me: error: invalid value of canonical host" >&2;}
3626 { (exit 1); exit 1; }; };;
3629 ac_save_IFS=$IFS; IFS='-'
3635 # Remember, the first character of IFS is used to create $*,
3636 # except with old shells:
3639 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3642 { echo "$as_me:$LINENO: checking target system type" >&5
3643 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3644 if test "${ac_cv_target+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 if test "x$target_alias" = x; then
3648 ac_cv_target=$ac_cv_host
3650 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3651 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3652 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3653 { (exit 1); exit 1; }; }
3657 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3658 echo "${ECHO_T}$ac_cv_target" >&6; }
3659 case $ac_cv_target in
3661 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3662 echo "$as_me: error: invalid value of canonical target" >&2;}
3663 { (exit 1); exit 1; }; };;
3665 target=$ac_cv_target
3666 ac_save_IFS=$IFS; IFS='-'
3672 # Remember, the first character of IFS is used to create $*,
3673 # except with old shells:
3676 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3679 # The aliases save the names the user supplied, while $host etc.
3680 # will get canonicalized.
3681 test -n "$target_alias" &&
3682 test "$program_prefix$program_suffix$program_transform_name" = \
3684 program_prefix=${target_alias}-
3686 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3687 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3688 if test "${llvm_cv_os_type+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="AIX"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="IRIX"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Cygwin"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,-all_load"
3709 llvm_cv_no_link_all_option="-Wl,-noall_load"
3710 llvm_cv_os_type="Darwin"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,-all_load"
3714 llvm_cv_no_link_all_option="-Wl,-noall_load"
3715 llvm_cv_os_type="Minix"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="FreeBSD"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="OpenBSD"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="NetBSD"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="DragonFly"
3736 llvm_cv_platform_type="Unix" ;;
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="HP-UX"
3741 llvm_cv_platform_type="Unix" ;;
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="Interix"
3746 llvm_cv_platform_type="Unix" ;;
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Linux"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,-z,allextract"
3754 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755 llvm_cv_os_type="SunOS"
3756 llvm_cv_platform_type="Unix" ;;
3758 llvm_cv_link_all_option="-Wl,-z,allextract"
3759 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760 llvm_cv_os_type="AuroraUX"
3761 llvm_cv_platform_type="Unix" ;;
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Win32"
3766 llvm_cv_platform_type="Win32" ;;
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="MingW"
3771 llvm_cv_platform_type="Win32" ;;
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Haiku"
3776 llvm_cv_platform_type="Unix" ;;
3778 llvm_cv_link_all_option="-Wl,--whole-archive"
3779 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780 llvm_cv_os_type="Freestanding"
3781 llvm_cv_platform_type="Unix" ;;
3783 llvm_cv_link_all_option="-Wl,--whole-archive"
3784 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785 llvm_cv_os_type="Freestanding"
3786 llvm_cv_platform_type="Unix" ;;
3788 llvm_cv_link_all_option=""
3789 llvm_cv_no_link_all_option=""
3790 llvm_cv_os_type="Unknown"
3791 llvm_cv_platform_type="Unknown" ;;
3794 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3797 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799 if test "${llvm_cv_target_os_type+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 llvm_cv_target_os_type="AIX" ;;
3806 llvm_cv_target_os_type="IRIX" ;;
3808 llvm_cv_target_os_type="Cygwin" ;;
3810 llvm_cv_target_os_type="Darwin" ;;
3812 llvm_cv_target_os_type="Minix" ;;
3814 llvm_cv_target_os_type="FreeBSD" ;;
3816 llvm_cv_target_os_type="OpenBSD" ;;
3818 llvm_cv_target_os_type="NetBSD" ;;
3820 llvm_cv_target_os_type="DragonFly" ;;
3822 llvm_cv_target_os_type="HP-UX" ;;
3824 llvm_cv_target_os_type="Interix" ;;
3826 llvm_cv_target_os_type="Linux" ;;
3828 llvm_cv_target_os_type="SunOS" ;;
3830 llvm_cv_target_os_type="AuroraUX" ;;
3832 llvm_cv_target_os_type="Win32" ;;
3834 llvm_cv_target_os_type="MingW" ;;
3836 llvm_cv_target_os_type="Haiku" ;;
3838 llvm_cv_target_os_type="RTEMS" ;;
3840 llvm_cv_target_os_type="NativeClient" ;;
3842 llvm_cv_target_os_type="Freestanding" ;;
3844 llvm_cv_target_os_type="Unknown" ;;
3847 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3848 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3850 if test "$llvm_cv_os_type" = "Unknown" ; then
3851 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3852 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3853 { (exit 1); exit 1; }; }
3858 HOST_OS=$llvm_cv_os_type
3860 TARGET_OS=$llvm_cv_target_os_type
3863 LINKALL=$llvm_cv_link_all_option
3865 NOLINKALL=$llvm_cv_no_link_all_option
3868 case $llvm_cv_platform_type in
3871 cat >>confdefs.h <<\_ACEOF
3872 #define LLVM_ON_UNIX 1
3882 cat >>confdefs.h <<\_ACEOF
3883 #define LLVM_ON_WIN32 1
3893 { echo "$as_me:$LINENO: checking target architecture" >&5
3894 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3895 if test "${llvm_cv_target_arch+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 i?86-*) llvm_cv_target_arch="x86" ;;
3900 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3901 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3902 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3903 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3904 arm*-*) llvm_cv_target_arch="ARM" ;;
3905 mips-*) llvm_cv_target_arch="Mips" ;;
3906 xcore-*) llvm_cv_target_arch="XCore" ;;
3907 msp430-*) llvm_cv_target_arch="MSP430" ;;
3908 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3909 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3910 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3911 ptx-*) llvm_cv_target_arch="PTX" ;;
3912 *) llvm_cv_target_arch="Unknown" ;;
3915 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3918 if test "$llvm_cv_target_arch" = "Unknown" ; then
3919 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3923 # Determine the LLVM native architecture for the target
3924 case "$llvm_cv_target_arch" in
3925 x86) LLVM_NATIVE_ARCH="X86" ;;
3926 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3927 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3930 ARCH=$llvm_cv_target_arch
3935 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3936 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3937 if test "${ac_cv_path_GREP+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 # Extract the first word of "grep ggrep" to use in msg output
3941 if test -z "$GREP"; then
3942 set dummy grep ggrep; ac_prog_name=$2
3943 if test "${ac_cv_path_GREP+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 ac_path_GREP_found=false
3947 # Loop through the user's path and test for each of PROGNAME-LIST
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3952 test -z "$as_dir" && as_dir=.
3953 for ac_prog in grep ggrep; do
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3956 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3957 # Check for GNU ac_path_GREP and select it if it is found.
3958 # Check for GNU $ac_path_GREP
3959 case `"$ac_path_GREP" --version 2>&1` in
3961 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3964 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3967 cat "conftest.in" "conftest.in" >"conftest.tmp"
3968 mv "conftest.tmp" "conftest.in"
3969 cp "conftest.in" "conftest.nl"
3970 echo 'GREP' >> "conftest.nl"
3971 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3973 ac_count=`expr $ac_count + 1`
3974 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3975 # Best one so far, save it but keep looking for a better one
3976 ac_cv_path_GREP="$ac_path_GREP"
3977 ac_path_GREP_max=$ac_count
3979 # 10*(2^10) chars as input seems more than enough
3980 test $ac_count -gt 10 && break
3982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986 $ac_path_GREP_found && break 3
3996 GREP="$ac_cv_path_GREP"
3997 if test -z "$GREP"; then
3998 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3999 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4000 { (exit 1); exit 1; }; }
4004 ac_cv_path_GREP=$GREP
4009 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4010 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4011 GREP="$ac_cv_path_GREP"
4014 { echo "$as_me:$LINENO: checking for egrep" >&5
4015 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4016 if test "${ac_cv_path_EGREP+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020 then ac_cv_path_EGREP="$GREP -E"
4022 # Extract the first word of "egrep" to use in msg output
4023 if test -z "$EGREP"; then
4024 set dummy egrep; ac_prog_name=$2
4025 if test "${ac_cv_path_EGREP+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_path_EGREP_found=false
4029 # Loop through the user's path and test for each of PROGNAME-LIST
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4034 test -z "$as_dir" && as_dir=.
4035 for ac_prog in egrep; do
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4038 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4039 # Check for GNU ac_path_EGREP and select it if it is found.
4040 # Check for GNU $ac_path_EGREP
4041 case `"$ac_path_EGREP" --version 2>&1` in
4043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4046 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4049 cat "conftest.in" "conftest.in" >"conftest.tmp"
4050 mv "conftest.tmp" "conftest.in"
4051 cp "conftest.in" "conftest.nl"
4052 echo 'EGREP' >> "conftest.nl"
4053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4055 ac_count=`expr $ac_count + 1`
4056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4057 # Best one so far, save it but keep looking for a better one
4058 ac_cv_path_EGREP="$ac_path_EGREP"
4059 ac_path_EGREP_max=$ac_count
4061 # 10*(2^10) chars as input seems more than enough
4062 test $ac_count -gt 10 && break
4064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 $ac_path_EGREP_found && break 3
4078 EGREP="$ac_cv_path_EGREP"
4079 if test -z "$EGREP"; then
4080 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4081 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4082 { (exit 1); exit 1; }; }
4086 ac_cv_path_EGREP=$EGREP
4092 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4093 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4094 EGREP="$ac_cv_path_EGREP"
4097 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4099 if test "${ac_cv_header_stdc+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 cat >conftest.$ac_ext <<_ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4130 grep -v '^ *+' conftest.er1 >conftest.err
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_header_stdc=yes
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 ac_cv_header_stdc=no
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 if test $ac_cv_header_stdc = yes; then
4166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177 $EGREP "memchr" >/dev/null 2>&1; then
4180 ac_cv_header_stdc=no
4186 if test $ac_cv_header_stdc = yes; then
4187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 $EGREP "free" >/dev/null 2>&1; then
4201 ac_cv_header_stdc=no
4207 if test $ac_cv_header_stdc = yes; then
4208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209 if test "$cross_compiling" = yes; then
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4220 #if ((' ' & 0x0FF) == 0x020)
4221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4224 # define ISLOWER(c) \
4225 (('a' <= (c) && (c) <= 'i') \
4226 || ('j' <= (c) && (c) <= 'r') \
4227 || ('s' <= (c) && (c) <= 'z'))
4228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4236 for (i = 0; i < 256; i++)
4237 if (XOR (islower (i), ISLOWER (i))
4238 || toupper (i) != TOUPPER (i))
4243 rm -f conftest$ac_exeext
4244 if { (ac_try="$ac_link"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_link") 2>&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254 { (case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_try") 2>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4265 echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4270 ac_cv_header_stdc=no
4272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4278 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4279 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4280 if test $ac_cv_header_stdc = yes; then
4282 cat >>confdefs.h <<\_ACEOF
4283 #define STDC_HEADERS 1
4288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4299 inttypes.h stdint.h unistd.h
4301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 $ac_includes_default
4315 #include <$ac_header>
4317 rm -f conftest.$ac_objext
4318 if { (ac_try="$ac_compile"
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_compile") 2>conftest.er1
4326 grep -v '^ *+' conftest.er1 >conftest.err
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_try") 2>&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 eval "$as_ac_Header=yes"
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 eval "$as_ac_Header=no"
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 ac_res=`eval echo '${'$as_ac_Header'}'`
4362 { echo "$as_me:$LINENO: result: $ac_res" >&5
4363 echo "${ECHO_T}$ac_res" >&6; }
4364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4365 cat >>confdefs.h <<_ACEOF
4366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4374 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4375 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4376 if test "${ac_cv_c_bigendian+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 # See if sys/param.h defines the BYTE_ORDER macro.
4380 cat >conftest.$ac_ext <<_ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 #include <sys/types.h>
4387 #include <sys/param.h>
4392 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4400 rm -f conftest.$ac_objext
4401 if { (ac_try="$ac_compile"
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_compile") 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4415 { (case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_try") 2>&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_try") 2>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 # It does; now see whether it defined to BIG_ENDIAN or not.
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 #include <sys/types.h>
4442 #include <sys/param.h>
4447 #if BYTE_ORDER != BIG_ENDIAN
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_compile") 2>conftest.er1
4464 grep -v '^ *+' conftest.er1 >conftest.err
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470 { (case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_try") 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_c_bigendian=yes
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 ac_cv_c_bigendian=no
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 # It does not; compile a test program.
4503 if test "$cross_compiling" = yes; then
4504 # try to guess the endianness by grepping values into an object file
4505 ac_cv_c_bigendian=unknown
4506 cat >conftest.$ac_ext <<_ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4513 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4514 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4515 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4516 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4517 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4521 _ascii (); _ebcdic ();
4526 rm -f conftest.$ac_objext
4527 if { (ac_try="$ac_compile"
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_compile") 2>conftest.er1
4535 grep -v '^ *+' conftest.er1 >conftest.err
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4541 { (case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_try") 2>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_try") 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4561 ac_cv_c_bigendian=yes
4563 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4564 if test "$ac_cv_c_bigendian" = unknown; then
4565 ac_cv_c_bigendian=no
4567 # finding both strings is unlikely to happen, but who knows?
4568 ac_cv_c_bigendian=unknown
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 cat >conftest.$ac_ext <<_ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 $ac_includes_default
4591 /* Are we little or big endian? From Harbison&Steele. */
4595 char c[sizeof (long int)];
4598 return u.c[sizeof (long int) - 1] == 1;
4604 rm -f conftest$ac_exeext
4605 if { (ac_try="$ac_link"
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_link") 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_cv_c_bigendian=no
4626 echo "$as_me: program exited with status $ac_status" >&5
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4631 ac_cv_c_bigendian=yes
4633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4642 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4643 case $ac_cv_c_bigendian in
4651 { { echo "$as_me:$LINENO: error: unknown endianness
4652 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4653 echo "$as_me: error: unknown endianness
4654 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4655 { (exit 1); exit 1; }; } ;;
4659 if test "$cross_compiling" = yes; then
4660 LLVM_CROSS_COMPILING=1
4663 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4664 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4665 if test "${ac_cv_build_exeext+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4669 ac_cv_build_exeext=.exe
4671 ac_build_prefix=${build_alias}-
4673 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4674 set dummy ${ac_build_prefix}gcc; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 if test -n "$BUILD_CC"; then
4681 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 BUILD_CC=$ac_cv_prog_BUILD_CC
4701 if test -n "$BUILD_CC"; then
4702 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4703 echo "${ECHO_T}$BUILD_CC" >&6; }
4705 { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4710 if test -z "$BUILD_CC"; then
4711 # Extract the first word of "gcc", so it can be a program name with args.
4712 set dummy gcc; ac_word=$2
4713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 if test -n "$BUILD_CC"; then
4719 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_BUILD_CC="gcc"
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 BUILD_CC=$ac_cv_prog_BUILD_CC
4739 if test -n "$BUILD_CC"; then
4740 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4741 echo "${ECHO_T}$BUILD_CC" >&6; }
4743 { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4748 if test -z "$BUILD_CC"; then
4749 # Extract the first word of "cc", so it can be a program name with args.
4750 set dummy cc; ac_word=$2
4751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4753 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 if test -n "$BUILD_CC"; then
4757 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4768 ac_prog_rejected=yes
4771 ac_cv_prog_BUILD_CC="cc"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 if test $ac_prog_rejected = yes; then
4780 # We found a bogon in the path, so make sure we never use it.
4781 set dummy $ac_cv_prog_BUILD_CC
4783 if test $# != 0; then
4784 # We chose a different compiler from the bogus one.
4785 # However, it has the same basename, so the bogon will be chosen
4786 # first if we set BUILD_CC to just the basename; use the full file name.
4788 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4793 BUILD_CC=$ac_cv_prog_BUILD_CC
4794 if test -n "$BUILD_CC"; then
4795 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4796 echo "${ECHO_T}$BUILD_CC" >&6; }
4798 { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4805 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4806 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4807 { (exit 1); exit 1; }; }
4808 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4810 echo 'int main () { return 0; }' > conftest.$ac_ext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4813 (eval $ac_build_link) 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; then
4817 for file in conftest.*; do
4819 *.c | *.o | *.obj | *.dSYM) ;;
4820 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4824 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4825 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4826 { (exit 1); exit 1; }; }
4829 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4834 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4835 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4836 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4837 ac_build_exeext=$BUILD_EXEEXT
4839 ac_build_prefix=${build_alias}-
4840 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4841 set dummy ${ac_build_prefix}g++; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 if test -n "$BUILD_CXX"; then
4848 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4868 if test -n "$BUILD_CXX"; then
4869 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4870 echo "${ECHO_T}$BUILD_CXX" >&6; }
4872 { echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6; }
4877 if test -z "$BUILD_CXX"; then
4878 # Extract the first word of "g++", so it can be a program name with args.
4879 set dummy g++; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 if test -n "$BUILD_CXX"; then
4886 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_BUILD_CXX="g++"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4906 if test -n "$BUILD_CXX"; then
4907 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4908 echo "${ECHO_T}$BUILD_CXX" >&6; }
4910 { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4915 if test -z "$BUILD_CXX"; then
4916 # Extract the first word of "c++", so it can be a program name with args.
4917 set dummy c++; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 if test -n "$BUILD_CXX"; then
4924 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4935 ac_prog_rejected=yes
4938 ac_cv_prog_BUILD_CXX="c++"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 if test $ac_prog_rejected = yes; then
4947 # We found a bogon in the path, so make sure we never use it.
4948 set dummy $ac_cv_prog_BUILD_CXX
4950 if test $# != 0; then
4951 # We chose a different compiler from the bogus one.
4952 # However, it has the same basename, so the bogon will be chosen
4953 # first if we set BUILD_CXX to just the basename; use the full file name.
4955 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4960 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4961 if test -n "$BUILD_CXX"; then
4962 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4963 echo "${ECHO_T}$BUILD_CXX" >&6; }
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4973 LLVM_CROSS_COMPILING=0
4977 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4988 # Check whether --enable-optimized was given.
4989 if test "${enable_optimized+set}" = set; then
4990 enableval=$enable_optimized;
4995 if test ${enableval} = "no" ; then
4999 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5003 # Check whether --enable-profiling was given.
5004 if test "${enable_profiling+set}" = set; then
5005 enableval=$enable_profiling;
5010 if test ${enableval} = "no" ; then
5014 ENABLE_PROFILING=ENABLE_PROFILING=1
5018 # Check whether --enable-assertions was given.
5019 if test "${enable_assertions+set}" = set; then
5020 enableval=$enable_assertions;
5025 if test ${enableval} = "yes" ; then
5029 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5033 # Check whether --enable-expensive-checks was given.
5034 if test "${enable_expensive_checks+set}" = set; then
5035 enableval=$enable_expensive_checks;
5040 if test ${enableval} = "yes" ; then
5041 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043 EXPENSIVE_CHECKS=yes
5046 ENABLE_EXPENSIVE_CHECKS=
5052 # Check whether --enable-debug-runtime was given.
5053 if test "${enable_debug_runtime+set}" = set; then
5054 enableval=$enable_debug_runtime;
5059 if test ${enableval} = "no" ; then
5063 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5067 # Check whether --enable-debug-symbols was given.
5068 if test "${enable_debug_symbols+set}" = set; then
5069 enableval=$enable_debug_symbols;
5074 if test ${enableval} = "no" ; then
5078 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5082 # Check whether --enable-jit was given.
5083 if test "${enable_jit+set}" = set; then
5084 enableval=$enable_jit;
5089 if test ${enableval} = "no"
5094 case "$llvm_cv_target_arch" in
5095 x86) TARGET_HAS_JIT=1
5097 Sparc) TARGET_HAS_JIT=0
5099 PowerPC) TARGET_HAS_JIT=1
5101 x86_64) TARGET_HAS_JIT=1
5103 Alpha) TARGET_HAS_JIT=0
5105 ARM) TARGET_HAS_JIT=1
5107 Mips) TARGET_HAS_JIT=1
5109 XCore) TARGET_HAS_JIT=0
5111 MSP430) TARGET_HAS_JIT=0
5113 SystemZ) TARGET_HAS_JIT=0
5115 Blackfin) TARGET_HAS_JIT=0
5117 MBlaze) TARGET_HAS_JIT=0
5119 PTX) TARGET_HAS_JIT=0
5126 # Check whether --enable-docs was given.
5127 if test "${enable_docs+set}" = set; then
5128 enableval=$enable_docs;
5133 case "$enableval" in
5138 default) ENABLE_DOCS=1
5140 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5141 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5142 { (exit 1); exit 1; }; } ;;
5145 # Check whether --enable-doxygen was given.
5146 if test "${enable_doxygen+set}" = set; then
5147 enableval=$enable_doxygen;
5152 case "$enableval" in
5153 yes) ENABLE_DOXYGEN=1
5155 no) ENABLE_DOXYGEN=0
5157 default) ENABLE_DOXYGEN=0
5159 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5160 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5161 { (exit 1); exit 1; }; } ;;
5164 # Check whether --enable-threads was given.
5165 if test "${enable_threads+set}" = set; then
5166 enableval=$enable_threads;
5171 case "$enableval" in
5172 yes) ENABLE_THREADS=1
5174 no) ENABLE_THREADS=0
5176 default) ENABLE_THREADS=1
5178 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5183 cat >>confdefs.h <<_ACEOF
5184 #define ENABLE_THREADS $ENABLE_THREADS
5188 # Check whether --enable-pthreads was given.
5189 if test "${enable_pthreads+set}" = set; then
5190 enableval=$enable_pthreads;
5195 case "$enableval" in
5196 yes) ENABLE_PTHREADS=1
5198 no) ENABLE_PTHREADS=0
5200 default) ENABLE_PTHREADS=1
5202 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5207 # Check whether --enable-pic was given.
5208 if test "${enable_pic+set}" = set; then
5209 enableval=$enable_pic;
5214 case "$enableval" in
5219 default) ENABLE_PIC=1
5221 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5222 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5226 cat >>confdefs.h <<_ACEOF
5227 #define ENABLE_PIC $ENABLE_PIC
5231 # Check whether --enable-shared was given.
5232 if test "${enable_shared+set}" = set; then
5233 enableval=$enable_shared;
5238 case "$enableval" in
5239 yes) ENABLE_SHARED=1
5243 default) ENABLE_SHARED=0
5245 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5246 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5247 { (exit 1); exit 1; }; } ;;
5250 # Check whether --enable-embed-stdcxx was given.
5251 if test "${enable_embed_stdcxx+set}" = set; then
5252 enableval=$enable_embed_stdcxx;
5257 case "$enableval" in
5258 yes) ENABLE_EMBED_STDCXX=1
5260 no) ENABLE_EMBED_STDCXX=0
5262 default) ENABLE_EMBED_STDCXX=1
5264 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5265 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5269 # Check whether --enable-timestamps was given.
5270 if test "${enable_timestamps+set}" = set; then
5271 enableval=$enable_timestamps;
5276 case "$enableval" in
5277 yes) ENABLE_TIMESTAMPS=1
5279 no) ENABLE_TIMESTAMPS=0
5281 default) ENABLE_TIMESTAMPS=1
5283 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5284 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5288 cat >>confdefs.h <<_ACEOF
5289 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5294 # Check whether --enable-targets was given.
5295 if test "${enable_targets+set}" = set; then
5296 enableval=$enable_targets;
5301 if test "$enableval" = host-only ; then
5304 case "$enableval" in
5305 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5306 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5308 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5313 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5316 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5319 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5320 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5321 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5322 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5323 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5324 host) case "$llvm_cv_target_arch" in
5325 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5329 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5330 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5331 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5332 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5333 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5334 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5335 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5336 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5337 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5338 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5339 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5340 echo "$as_me: error: Can not set target to build" >&2;}
5341 { (exit 1); exit 1; }; } ;;
5343 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5344 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5345 { (exit 1); exit 1; }; } ;;
5350 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5353 # Determine whether we are building LLVM support for the native architecture.
5354 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5355 for a_target in $TARGETS_TO_BUILD; do
5356 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5362 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5363 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5364 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5365 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5366 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5367 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5370 cat >>confdefs.h <<_ACEOF
5371 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5389 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5399 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5400 # target feature def files.
5401 LLVM_ENUM_TARGETS=""
5402 LLVM_ENUM_ASM_PRINTERS=""
5403 LLVM_ENUM_ASM_PARSERS=""
5404 LLVM_ENUM_DISASSEMBLERS=""
5405 for target_to_build in $TARGETS_TO_BUILD; do
5406 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5407 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5408 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5410 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5411 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5413 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5414 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5422 # Check whether --enable-cbe-printf-a was given.
5423 if test "${enable_cbe_printf_a+set}" = set; then
5424 enableval=$enable_cbe_printf_a;
5429 case "$enableval" in
5430 yes) ENABLE_CBE_PRINTF_A=1
5432 no) ENABLE_CBE_PRINTF_A=0
5434 default) ENABLE_CBE_PRINTF_A=1
5436 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5437 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5438 { (exit 1); exit 1; }; } ;;
5441 cat >>confdefs.h <<_ACEOF
5442 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5447 # Check whether --with-llvmgccdir was given.
5448 if test "${with_llvmgccdir+set}" = set; then
5449 withval=$with_llvmgccdir;
5455 default) WITH_LLVMGCCDIR=default ;;
5456 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5457 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5458 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5459 { (exit 1); exit 1; }; } ;;
5463 # Check whether --with-llvmgcc was given.
5464 if test "${with_llvmgcc+set}" = set; then
5465 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5471 # Check whether --with-llvmgxx was given.
5472 if test "${with_llvmgxx+set}" = set; then
5473 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5478 if test -n "$LLVMGCC"; then
5479 LLVMGCCCOMMAND="$LLVMGCC"
5482 if test -n "$LLVMGXX"; then
5483 LLVMGXXCOMMAND="$LLVMGXX"
5486 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5487 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5488 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5489 { (exit 1); exit 1; }; };
5492 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5493 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5494 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5495 { (exit 1); exit 1; }; };
5499 # Check whether --with-clang was given.
5500 if test "${with_clang+set}" = set; then
5501 withval=$with_clang;
5508 # Check whether --with-built-clang was given.
5509 if test "${with_built_clang+set}" = set; then
5510 withval=$with_built_clang;
5512 with_built_clang=check
5516 { echo "$as_me:$LINENO: checking clang compiler" >&5
5517 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5520 if test "$with_clang" != "default"; then
5521 WITH_CLANGPATH="$with_clang"
5522 if ! test -x "$WITH_CLANGPATH"; then
5523 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5524 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5525 { (exit 1); exit 1; }; }
5527 elif test "$with_built_clang" = "yes"; then
5529 elif test "$with_built_clang" = "no"; then
5532 if test "$with_built_clang" != "check"; then
5533 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5534 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5535 { (exit 1); exit 1; }; }
5538 if test -f ${srcdir}/tools/clang/README.txt; then
5543 if ! test -z "$WITH_CLANGPATH"; then
5544 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5545 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5546 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5547 elif test "$WITH_BUILT_CLANG" = "1"; then
5548 { echo "$as_me:$LINENO: result: built" >&5
5549 echo "${ECHO_T}built" >&6; }
5551 { echo "$as_me:$LINENO: result: none" >&5
5552 echo "${ECHO_T}none" >&6; }
5554 CLANGPATH=$WITH_CLANGPATH
5556 CLANGXXPATH=$WITH_CLANGXXPATH
5558 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5562 # Check whether --with-optimize-option was given.
5563 if test "${with_optimize_option+set}" = set; then
5564 withval=$with_optimize_option;
5569 { echo "$as_me:$LINENO: checking optimization flags" >&5
5570 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5573 case "$llvm_cv_os_type" in
5574 FreeBSD) optimize_option=-O2 ;;
5575 MingW) optimize_option=-O2 ;;
5576 *) optimize_option=-O3 ;;
5578 *) optimize_option="$withval" ;;
5580 OPTIMIZE_OPTION=$optimize_option
5582 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5583 echo "${ECHO_T}$optimize_option" >&6; }
5586 # Check whether --with-extra-options was given.
5587 if test "${with_extra_options+set}" = set; then
5588 withval=$with_extra_options;
5594 default) EXTRA_OPTIONS= ;;
5595 *) EXTRA_OPTIONS=$withval ;;
5597 EXTRA_OPTIONS=$EXTRA_OPTIONS
5601 # Check whether --with-extra-ld-options was given.
5602 if test "${with_extra_ld_options+set}" = set; then
5603 withval=$with_extra_ld_options;
5609 default) EXTRA_LD_OPTIONS= ;;
5610 *) EXTRA_LD_OPTIONS=$withval ;;
5612 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5615 # Check whether --enable-bindings was given.
5616 if test "${enable_bindings+set}" = set; then
5617 enableval=$enable_bindings;
5622 BINDINGS_TO_BUILD=""
5623 case "$enableval" in
5624 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5625 all ) BINDINGS_TO_BUILD="ocaml" ;;
5626 none | no) BINDINGS_TO_BUILD="" ;;
5627 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5628 case "$a_binding" in
5629 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5630 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5631 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5632 { (exit 1); exit 1; }; } ;;
5639 # Check whether --with-ocaml-libdir was given.
5640 if test "${with_ocaml_libdir+set}" = set; then
5641 withval=$with_ocaml_libdir;
5647 auto) with_ocaml_libdir="$withval" ;;
5648 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5649 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5650 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5651 { (exit 1); exit 1; }; } ;;
5655 # Check whether --with-clang-resource-dir was given.
5656 if test "${with_clang_resource_dir+set}" = set; then
5657 withval=$with_clang_resource_dir;
5663 cat >>confdefs.h <<_ACEOF
5664 #define CLANG_RESOURCE_DIR "$withval"
5669 # Check whether --with-c-include-dirs was given.
5670 if test "${with_c_include_dirs+set}" = set; then
5671 withval=$with_c_include_dirs;
5677 cat >>confdefs.h <<_ACEOF
5678 #define C_INCLUDE_DIRS "$withval"
5683 # Check whether --with-cxx-include-root was given.
5684 if test "${with_cxx_include_root+set}" = set; then
5685 withval=$with_cxx_include_root;
5691 cat >>confdefs.h <<_ACEOF
5692 #define CXX_INCLUDE_ROOT "$withval"
5697 # Check whether --with-cxx-include-arch was given.
5698 if test "${with_cxx_include_arch+set}" = set; then
5699 withval=$with_cxx_include_arch;
5705 cat >>confdefs.h <<_ACEOF
5706 #define CXX_INCLUDE_ARCH "$withval"
5711 # Check whether --with-cxx-include-32bit-dir was given.
5712 if test "${with_cxx_include_32bit_dir+set}" = set; then
5713 withval=$with_cxx_include_32bit_dir;
5719 cat >>confdefs.h <<_ACEOF
5720 #define CXX_INCLUDE_32BIT_DIR "$withval"
5725 # Check whether --with-cxx-include-64bit-dir was given.
5726 if test "${with_cxx_include_64bit_dir+set}" = set; then
5727 withval=$with_cxx_include_64bit_dir;
5733 cat >>confdefs.h <<_ACEOF
5734 #define CXX_INCLUDE_64BIT_DIR "$withval"
5739 # Check whether --with-binutils-include was given.
5740 if test "${with_binutils_include+set}" = set; then
5741 withval=$with_binutils_include;
5747 default) WITH_BINUTILS_INCDIR=default ;;
5748 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5749 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5750 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5751 { (exit 1); exit 1; }; } ;;
5753 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5754 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5756 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5757 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5758 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5759 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5760 { (exit 1); exit 1; }; };
5765 # Check whether --with-bug-report-url was given.
5766 if test "${with_bug_report_url+set}" = set; then
5767 withval=$with_bug_report_url;
5769 withval="http://llvm.org/bugs/"
5773 cat >>confdefs.h <<_ACEOF
5774 #define BUG_REPORT_URL "$withval"
5778 # Check whether --enable-libffi was given.
5779 if test "${enable_libffi+set}" = set; then
5780 enableval=$enable_libffi; case "$enableval" in
5781 yes) llvm_cv_enable_libffi="yes" ;;
5782 no) llvm_cv_enable_libffi="no" ;;
5783 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5784 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5785 { (exit 1); exit 1; }; } ;;
5788 llvm_cv_enable_libffi=no
5793 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5794 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5795 if test "${lt_cv_path_NM+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 if test -n "$NM"; then
5799 # Let the user override the test.
5802 lt_nm_to_check="${ac_tool_prefix}nm"
5803 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5804 lt_nm_to_check="$lt_nm_to_check nm"
5806 for lt_tmp_nm in $lt_nm_to_check; do
5807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5808 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5810 test -z "$ac_dir" && ac_dir=.
5811 tmp_nm="$ac_dir/$lt_tmp_nm"
5812 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5813 # Check to see if the nm accepts a BSD-compat flag.
5814 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5815 # nm: unknown option "B" ignored
5816 # Tru64's nm complains that /dev/null is an invalid object file
5817 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5818 */dev/null* | *'Invalid file or object type'*)
5819 lt_cv_path_NM="$tmp_nm -B"
5823 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5825 lt_cv_path_NM="$tmp_nm -p"
5829 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5830 continue # so that we can try to find one that supports BSD flags
5839 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5842 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5843 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5848 { echo "$as_me:$LINENO: checking for GNU make" >&5
5849 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5850 if test "${llvm_cv_gnu_make_command+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 llvm_cv_gnu_make_command=''
5854 for a in "$MAKE" make gmake gnumake ; do
5855 if test -z "$a" ; then continue ; fi ;
5856 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5858 llvm_cv_gnu_make_command=$a ;
5863 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5864 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5865 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5869 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5870 echo "${ECHO_T}\"Not found\"" >&6; };
5874 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5875 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5877 if test "$LN_S" = "ln -s"; then
5878 { echo "$as_me:$LINENO: result: yes" >&5
5879 echo "${ECHO_T}yes" >&6; }
5881 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5882 echo "${ECHO_T}no, using $LN_S" >&6; }
5885 # Extract the first word of "cmp", so it can be a program name with args.
5886 set dummy cmp; ac_word=$2
5887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5889 if test "${ac_cv_path_CMP+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5917 if test -n "$CMP"; then
5918 { echo "$as_me:$LINENO: result: $CMP" >&5
5919 echo "${ECHO_T}$CMP" >&6; }
5921 { echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6; }
5926 # Extract the first word of "cp", so it can be a program name with args.
5927 set dummy cp; ac_word=$2
5928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5930 if test "${ac_cv_path_CP+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5958 if test -n "$CP"; then
5959 { echo "$as_me:$LINENO: result: $CP" >&5
5960 echo "${ECHO_T}$CP" >&6; }
5962 { echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6; }
5967 # Extract the first word of "date", so it can be a program name with args.
5968 set dummy date; ac_word=$2
5969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971 if test "${ac_cv_path_DATE+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5998 DATE=$ac_cv_path_DATE
5999 if test -n "$DATE"; then
6000 { echo "$as_me:$LINENO: result: $DATE" >&5
6001 echo "${ECHO_T}$DATE" >&6; }
6003 { echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6; }
6008 # Extract the first word of "find", so it can be a program name with args.
6009 set dummy find; ac_word=$2
6010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6012 if test "${ac_cv_path_FIND+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6039 FIND=$ac_cv_path_FIND
6040 if test -n "$FIND"; then
6041 { echo "$as_me:$LINENO: result: $FIND" >&5
6042 echo "${ECHO_T}$FIND" >&6; }
6044 { echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6; }
6049 # Extract the first word of "grep", so it can be a program name with args.
6050 set dummy grep; ac_word=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_path_GREP+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6080 GREP=$ac_cv_path_GREP
6081 if test -n "$GREP"; then
6082 { echo "$as_me:$LINENO: result: $GREP" >&5
6083 echo "${ECHO_T}$GREP" >&6; }
6085 { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6090 # Extract the first word of "mkdir", so it can be a program name with args.
6091 set dummy mkdir; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_path_MKDIR+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6121 MKDIR=$ac_cv_path_MKDIR
6122 if test -n "$MKDIR"; then
6123 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6124 echo "${ECHO_T}$MKDIR" >&6; }
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6131 # Extract the first word of "mv", so it can be a program name with args.
6132 set dummy mv; ac_word=$2
6133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135 if test "${ac_cv_path_MV+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6163 if test -n "$MV"; then
6164 { echo "$as_me:$LINENO: result: $MV" >&5
6165 echo "${ECHO_T}$MV" >&6; }
6167 { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6172 if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177 if test "${ac_cv_prog_RANLIB+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 if test -n "$RANLIB"; then
6181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 RANLIB=$ac_cv_prog_RANLIB
6201 if test -n "$RANLIB"; then
6202 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6203 echo "${ECHO_T}$RANLIB" >&6; }
6205 { echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6; }
6211 if test -z "$ac_cv_prog_RANLIB"; then
6212 ac_ct_RANLIB=$RANLIB
6213 # Extract the first word of "ranlib", so it can be a program name with args.
6214 set dummy ranlib; ac_word=$2
6215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 if test -n "$ac_ct_RANLIB"; then
6221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_ac_ct_RANLIB="ranlib"
6231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6241 if test -n "$ac_ct_RANLIB"; then
6242 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6243 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6245 { echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6; }
6249 if test "x$ac_ct_RANLIB" = x; then
6252 case $cross_compiling:$ac_tool_warned in
6254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6255 whose name does not start with the host triplet. If you think this
6256 configuration is useful to you, please write to autoconf@gnu.org." >&5
6257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6258 whose name does not start with the host triplet. If you think this
6259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6260 ac_tool_warned=yes ;;
6262 RANLIB=$ac_ct_RANLIB
6265 RANLIB="$ac_cv_prog_RANLIB"
6268 if test -n "$ac_tool_prefix"; then
6269 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6270 set dummy ${ac_tool_prefix}ar; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_prog_AR+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 if test -n "$AR"; then
6277 ac_cv_prog_AR="$AR" # Let the user override the test.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_prog_AR="${ac_tool_prefix}ar"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 if test -n "$AR"; then
6298 { echo "$as_me:$LINENO: result: $AR" >&5
6299 echo "${ECHO_T}$AR" >&6; }
6301 { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6307 if test -z "$ac_cv_prog_AR"; then
6309 # Extract the first word of "ar", so it can be a program name with args.
6310 set dummy ar; 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_prog_ac_ct_AR+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 if test -n "$ac_ct_AR"; then
6317 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_prog_ac_ct_AR="ar"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6337 if test -n "$ac_ct_AR"; then
6338 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6339 echo "${ECHO_T}$ac_ct_AR" >&6; }
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6345 if test "x$ac_ct_AR" = x; then
6348 case $cross_compiling:$ac_tool_warned in
6350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6351 whose name does not start with the host triplet. If you think this
6352 configuration is useful to you, please write to autoconf@gnu.org." >&5
6353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6354 whose name does not start with the host triplet. If you think this
6355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6356 ac_tool_warned=yes ;;
6364 # Extract the first word of "rm", so it can be a program name with args.
6365 set dummy rm; ac_word=$2
6366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6368 if test "${ac_cv_path_RM+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6396 if test -n "$RM"; then
6397 { echo "$as_me:$LINENO: result: $RM" >&5
6398 echo "${ECHO_T}$RM" >&6; }
6400 { echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6; }
6405 # Extract the first word of "sed", so it can be a program name with args.
6406 set dummy sed; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_path_SED+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6437 if test -n "$SED"; then
6438 { echo "$as_me:$LINENO: result: $SED" >&5
6439 echo "${ECHO_T}$SED" >&6; }
6441 { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6446 # Extract the first word of "tar", so it can be a program name with args.
6447 set dummy tar; ac_word=$2
6448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6450 if test "${ac_cv_path_TAR+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6478 if test -n "$TAR"; then
6479 { echo "$as_me:$LINENO: result: $TAR" >&5
6480 echo "${ECHO_T}$TAR" >&6; }
6482 { echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6; }
6487 # Extract the first word of "pwd", so it can be a program name with args.
6488 set dummy pwd; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_path_BINPWD+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6518 BINPWD=$ac_cv_path_BINPWD
6519 if test -n "$BINPWD"; then
6520 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6521 echo "${ECHO_T}$BINPWD" >&6; }
6523 { echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6; }
6529 # Extract the first word of "Graphviz", so it can be a program name with args.
6530 set dummy Graphviz; ac_word=$2
6531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6533 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6560 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6561 if test -n "$GRAPHVIZ"; then
6562 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6563 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6565 { echo "$as_me:$LINENO: result: no" >&5
6566 echo "${ECHO_T}no" >&6; }
6570 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6572 cat >>confdefs.h <<\_ACEOF
6573 #define HAVE_GRAPHVIZ 1
6576 if test "$llvm_cv_os_type" = "MingW" ; then
6577 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6580 cat >>confdefs.h <<_ACEOF
6581 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6585 # Extract the first word of "dot", so it can be a program name with args.
6586 set dummy dot; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_DOT+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6617 if test -n "$DOT"; then
6618 { echo "$as_me:$LINENO: result: $DOT" >&5
6619 echo "${ECHO_T}$DOT" >&6; }
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6626 if test "$DOT" != "echo dot" ; then
6628 cat >>confdefs.h <<\_ACEOF
6632 if test "$llvm_cv_os_type" = "MingW" ; then
6633 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6636 cat >>confdefs.h <<_ACEOF
6637 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6641 # Extract the first word of "fdp", so it can be a program name with args.
6642 set dummy fdp; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_path_FDP+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6673 if test -n "$FDP"; then
6674 { echo "$as_me:$LINENO: result: $FDP" >&5
6675 echo "${ECHO_T}$FDP" >&6; }
6677 { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6682 if test "$FDP" != "echo fdp" ; then
6684 cat >>confdefs.h <<\_ACEOF
6688 if test "$llvm_cv_os_type" = "MingW" ; then
6689 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6692 cat >>confdefs.h <<_ACEOF
6693 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6697 # Extract the first word of "neato", so it can be a program name with args.
6698 set dummy neato; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_NEATO+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6728 NEATO=$ac_cv_path_NEATO
6729 if test -n "$NEATO"; then
6730 { echo "$as_me:$LINENO: result: $NEATO" >&5
6731 echo "${ECHO_T}$NEATO" >&6; }
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6738 if test "$NEATO" != "echo neato" ; then
6740 cat >>confdefs.h <<\_ACEOF
6741 #define HAVE_NEATO 1
6744 if test "$llvm_cv_os_type" = "MingW" ; then
6745 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6748 cat >>confdefs.h <<_ACEOF
6749 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6753 # Extract the first word of "twopi", so it can be a program name with args.
6754 set dummy twopi; ac_word=$2
6755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757 if test "${ac_cv_path_TWOPI+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6784 TWOPI=$ac_cv_path_TWOPI
6785 if test -n "$TWOPI"; then
6786 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6787 echo "${ECHO_T}$TWOPI" >&6; }
6789 { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6794 if test "$TWOPI" != "echo twopi" ; then
6796 cat >>confdefs.h <<\_ACEOF
6797 #define HAVE_TWOPI 1
6800 if test "$llvm_cv_os_type" = "MingW" ; then
6801 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6804 cat >>confdefs.h <<_ACEOF
6805 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6809 # Extract the first word of "circo", so it can be a program name with args.
6810 set dummy circo; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_path_CIRCO+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6840 CIRCO=$ac_cv_path_CIRCO
6841 if test -n "$CIRCO"; then
6842 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6843 echo "${ECHO_T}$CIRCO" >&6; }
6845 { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6850 if test "$CIRCO" != "echo circo" ; then
6852 cat >>confdefs.h <<\_ACEOF
6853 #define HAVE_CIRCO 1
6856 if test "$llvm_cv_os_type" = "MingW" ; then
6857 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6860 cat >>confdefs.h <<_ACEOF
6861 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6865 for ac_prog in gv gsview32
6867 # Extract the first word of "$ac_prog", so it can be a program name with args.
6868 set dummy $ac_prog; ac_word=$2
6869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6871 if test "${ac_cv_path_GV+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 if test -n "$GV"; then
6899 { echo "$as_me:$LINENO: result: $GV" >&5
6900 echo "${ECHO_T}$GV" >&6; }
6902 { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6907 test -n "$GV" && break
6909 test -n "$GV" || GV="echo gv"
6911 if test "$GV" != "echo gv" ; then
6913 cat >>confdefs.h <<\_ACEOF
6917 if test "$llvm_cv_os_type" = "MingW" ; then
6918 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6921 cat >>confdefs.h <<_ACEOF
6922 #define LLVM_PATH_GV "$GV${EXEEXT}"
6926 # Extract the first word of "dotty", so it can be a program name with args.
6927 set dummy dotty; ac_word=$2
6928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930 if test "${ac_cv_path_DOTTY+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6957 DOTTY=$ac_cv_path_DOTTY
6958 if test -n "$DOTTY"; then
6959 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6960 echo "${ECHO_T}$DOTTY" >&6; }
6962 { echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6; }
6967 if test "$DOTTY" != "echo dotty" ; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_DOTTY 1
6973 if test "$llvm_cv_os_type" = "MingW" ; then
6974 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6977 cat >>confdefs.h <<_ACEOF
6978 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6982 # Extract the first word of "xdot.py", so it can be a program name with args.
6983 set dummy xdot.py; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7013 XDOT_PY=$ac_cv_path_XDOT_PY
7014 if test -n "$XDOT_PY"; then
7015 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7016 echo "${ECHO_T}$XDOT_PY" >&6; }
7018 { echo "$as_me:$LINENO: result: no" >&5
7019 echo "${ECHO_T}no" >&6; }
7023 if test "$XDOT_PY" != "echo xdot.py" ; then
7025 cat >>confdefs.h <<\_ACEOF
7026 #define HAVE_XDOT_PY 1
7029 if test "$llvm_cv_os_type" = "MingW" ; then
7030 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7033 cat >>confdefs.h <<_ACEOF
7034 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7040 # Extract the first word of "perl", so it can be a program name with args.
7041 set dummy perl; ac_word=$2
7042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044 if test "${ac_cv_path_PERL+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7071 PERL=$ac_cv_path_PERL
7072 if test -n "$PERL"; then
7073 { echo "$as_me:$LINENO: result: $PERL" >&5
7074 echo "${ECHO_T}$PERL" >&6; }
7076 { echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6; }
7081 if test "$PERL" != "none"; then
7082 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7083 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7084 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7085 { echo "$as_me:$LINENO: result: yes" >&5
7086 echo "${ECHO_T}yes" >&6; }
7089 { echo "$as_me:$LINENO: result: not found" >&5
7090 echo "${ECHO_T}not found" >&6; }
7095 if test x"$PERL" = xnone; then
7098 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7099 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7100 { (exit 1); exit 1; }; }
7106 # Find a good install program. We prefer a C program (faster),
7107 # so one script is as good as another. But avoid the broken or
7108 # incompatible versions:
7109 # SysV /etc/install, /usr/sbin/install
7110 # SunOS /usr/etc/install
7111 # IRIX /sbin/install
7113 # AmigaOS /C/install, which installs bootblocks on floppy discs
7114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7117 # OS/2's system install, which has a completely different semantic
7118 # ./install, which can be erroneously created by make from ./install.sh.
7119 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7121 if test -z "$INSTALL"; then
7122 if test "${ac_cv_path_install+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir=.
7130 # Account for people who put trailing slashes in PATH elements.
7132 ./ | .// | /cC/* | \
7133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7134 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7137 # OSF1 and SCO ODT 3.0 have their own names for install.
7138 # Don't use installbsd from OSF since it installs stuff as root
7140 for ac_prog in ginstall scoinst install; do
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7143 if test $ac_prog = install &&
7144 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7145 # AIX install. It has an incompatible calling convention.
7147 elif test $ac_prog = install &&
7148 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7149 # program-specific install script used by HP pwplus--don't use.
7152 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7165 if test "${ac_cv_path_install+set}" = set; then
7166 INSTALL=$ac_cv_path_install
7168 # As a last resort, use the slow shell script. Don't cache a
7169 # value for INSTALL within a source directory, because that will
7170 # break other packages using the cache if that directory is
7171 # removed, or if the value is a relative name.
7172 INSTALL=$ac_install_sh
7175 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7176 echo "${ECHO_T}$INSTALL" >&6; }
7178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7179 # It thinks the first close brace ends the variable substitution.
7180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7187 [\\/$]* | ?:[\\/]* ) ;;
7188 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7191 # Extract the first word of "bzip2", so it can be a program name with args.
7192 set dummy bzip2; ac_word=$2
7193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195 if test "${ac_cv_path_BZIP2+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7210 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 BZIP2=$ac_cv_path_BZIP2
7222 if test -n "$BZIP2"; then
7223 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7224 echo "${ECHO_T}$BZIP2" >&6; }
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7231 # Extract the first word of "cat", so it can be a program name with args.
7232 set dummy cat; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_path_CAT+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 if test -n "$CAT"; then
7263 { echo "$as_me:$LINENO: result: $CAT" >&5
7264 echo "${ECHO_T}$CAT" >&6; }
7266 { echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6; }
7271 # Extract the first word of "doxygen", so it can be a program name with args.
7272 set dummy doxygen; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 DOXYGEN=$ac_cv_path_DOXYGEN
7302 if test -n "$DOXYGEN"; then
7303 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7304 echo "${ECHO_T}$DOXYGEN" >&6; }
7306 { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7311 # Extract the first word of "groff", so it can be a program name with args.
7312 set dummy groff; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_path_GROFF+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 GROFF=$ac_cv_path_GROFF
7342 if test -n "$GROFF"; then
7343 { echo "$as_me:$LINENO: result: $GROFF" >&5
7344 echo "${ECHO_T}$GROFF" >&6; }
7346 { echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6; }
7351 # Extract the first word of "gzip", so it can be a program name with args.
7352 set dummy gzip; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 GZIPBIN=$ac_cv_path_GZIPBIN
7382 if test -n "$GZIPBIN"; then
7383 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7384 echo "${ECHO_T}$GZIPBIN" >&6; }
7386 { echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6; }
7391 # Extract the first word of "pod2html", so it can be a program name with args.
7392 set dummy pod2html; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_POD2HTML+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 POD2HTML=$ac_cv_path_POD2HTML
7422 if test -n "$POD2HTML"; then
7423 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7424 echo "${ECHO_T}$POD2HTML" >&6; }
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7431 # Extract the first word of "pod2man", so it can be a program name with args.
7432 set dummy pod2man; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_path_POD2MAN+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 POD2MAN=$ac_cv_path_POD2MAN
7462 if test -n "$POD2MAN"; then
7463 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7464 echo "${ECHO_T}$POD2MAN" >&6; }
7466 { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7471 # Extract the first word of "pdfroff", so it can be a program name with args.
7472 set dummy pdfroff; ac_word=$2
7473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7475 if test "${ac_cv_path_PDFROFF+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 PDFROFF=$ac_cv_path_PDFROFF
7502 if test -n "$PDFROFF"; then
7503 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7504 echo "${ECHO_T}$PDFROFF" >&6; }
7506 { echo "$as_me:$LINENO: result: no" >&5
7507 echo "${ECHO_T}no" >&6; }
7511 # Extract the first word of "runtest", so it can be a program name with args.
7512 set dummy runtest; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_path_RUNTEST+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 RUNTEST=$ac_cv_path_RUNTEST
7542 if test -n "$RUNTEST"; then
7543 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7544 echo "${ECHO_T}$RUNTEST" >&6; }
7546 { echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6; }
7553 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7554 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7556 # Check whether --with-tclinclude was given.
7557 if test "${with_tclinclude+set}" = set; then
7558 withval=$with_tclinclude; with_tclinclude=${withval}
7563 if test "${ac_cv_path_tclsh+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 if test x"${with_tclinclude}" != x ; then
7568 if test -f ${with_tclinclude}/tclsh ; then
7569 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7570 elif test -f ${with_tclinclude}/src/tclsh ; then
7571 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7573 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7574 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7575 { (exit 1); exit 1; }; }
7581 if test x"${ac_cv_path_tclsh}" = x ; then
7582 { echo "$as_me:$LINENO: result: none" >&5
7583 echo "${ECHO_T}none" >&6; }
7584 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_TCLSH+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 TCLSH=$ac_cv_path_TCLSH
7617 if test -n "$TCLSH"; then
7618 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7619 echo "${ECHO_T}$TCLSH" >&6; }
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 test -n "$TCLSH" && break
7629 if test x"${TCLSH}" = x ; then
7630 ac_cv_path_tclsh='';
7632 ac_cv_path_tclsh="${TCLSH}";
7635 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7636 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7637 TCLSH="${ac_cv_path_tclsh}"
7641 # Extract the first word of "zip", so it can be a program name with args.
7642 set dummy zip; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_path_ZIP+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 if test -n "$ZIP"; then
7673 { echo "$as_me:$LINENO: result: $ZIP" >&5
7674 echo "${ECHO_T}$ZIP" >&6; }
7676 { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7681 for ac_prog in ocamlc
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_OCAMLC+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 OCAMLC=$ac_cv_path_OCAMLC
7714 if test -n "$OCAMLC"; then
7715 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7716 echo "${ECHO_T}$OCAMLC" >&6; }
7718 { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7723 test -n "$OCAMLC" && break
7726 for ac_prog in ocamlopt
7728 # Extract the first word of "$ac_prog", so it can be a program name with args.
7729 set dummy $ac_prog; ac_word=$2
7730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7747 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 OCAMLOPT=$ac_cv_path_OCAMLOPT
7759 if test -n "$OCAMLOPT"; then
7760 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7761 echo "${ECHO_T}$OCAMLOPT" >&6; }
7763 { echo "$as_me:$LINENO: result: no" >&5
7764 echo "${ECHO_T}no" >&6; }
7768 test -n "$OCAMLOPT" && break
7771 for ac_prog in ocamldep
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 OCAMLDEP=$ac_cv_path_OCAMLDEP
7804 if test -n "$OCAMLDEP"; then
7805 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7806 echo "${ECHO_T}$OCAMLDEP" >&6; }
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7813 test -n "$OCAMLDEP" && break
7816 for ac_prog in ocamldoc
7818 # Extract the first word of "$ac_prog", so it can be a program name with args.
7819 set dummy $ac_prog; ac_word=$2
7820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 OCAMLDOC=$ac_cv_path_OCAMLDOC
7849 if test -n "$OCAMLDOC"; then
7850 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7851 echo "${ECHO_T}$OCAMLDOC" >&6; }
7853 { echo "$as_me:$LINENO: result: no" >&5
7854 echo "${ECHO_T}no" >&6; }
7858 test -n "$OCAMLDOC" && break
7861 for ac_prog in gas as
7863 # Extract the first word of "$ac_prog", so it can be a program name with args.
7864 set dummy $ac_prog; ac_word=$2
7865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867 if test "${ac_cv_path_GAS+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7882 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 if test -n "$GAS"; then
7895 { echo "$as_me:$LINENO: result: $GAS" >&5
7896 echo "${ECHO_T}$GAS" >&6; }
7898 { echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6; }
7903 test -n "$GAS" && break
7907 { echo "$as_me:$LINENO: checking for linker version" >&5
7908 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7909 if test "${llvm_cv_link_version+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 version_string="$(ld -v 2>&1 | head -1)"
7916 if (echo "$version_string" | grep -q "ld64"); then
7917 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7919 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7923 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7924 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7926 cat >>confdefs.h <<_ACEOF
7927 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7932 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7933 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7934 if test "${llvm_cv_link_use_r+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 ac_cpp='$CPP $CPPFLAGS'
7939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944 CFLAGS="$CFLAGS -Wl,-R."
7945 cat >conftest.$ac_ext <<_ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (ac_try="$ac_link"
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_link") 2>conftest.er1
7969 grep -v '^ *+' conftest.er1 >conftest.err
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_try") 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; } &&
7984 { ac_try='test -s conftest$ac_exeext'
7985 { (case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_try") 2>&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 llvm_cv_link_use_r=yes
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7999 llvm_cv_link_use_r=no
8002 rm -f core conftest.err conftest.$ac_objext \
8003 conftest$ac_exeext conftest.$ac_ext
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8013 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8014 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8015 if test "$llvm_cv_link_use_r" = yes ; then
8017 cat >>confdefs.h <<\_ACEOF
8018 #define HAVE_LINK_R 1
8024 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8025 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8026 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 ac_cpp='$CPP $CPPFLAGS'
8031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (ac_try="$ac_link"
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_link") 2>conftest.er1
8061 grep -v '^ *+' conftest.er1 >conftest.err
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8067 { (case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_try") 2>&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try='test -s conftest$ac_exeext'
8077 { (case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_try") 2>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 llvm_cv_link_use_export_dynamic=yes
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8091 llvm_cv_link_use_export_dynamic=no
8094 rm -f core conftest.err conftest.$ac_objext \
8095 conftest$ac_exeext conftest.$ac_ext
8098 ac_cpp='$CPP $CPPFLAGS'
8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8105 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8106 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8107 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8109 cat >>confdefs.h <<\_ACEOF
8110 #define HAVE_LINK_EXPORT_DYNAMIC 1
8116 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8117 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8118 if test "${llvm_cv_link_use_version_script+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8129 # The following code is from the autoconf manual,
8130 # "11.13: Limitations of Usual Tools".
8131 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8132 # Use mktemp if possible; otherwise fall back on mkdir,
8133 # with $RANDOM to make collisions less likely.
8137 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8139 test -n "$tmp" && test -d "$tmp"
8141 tmp=$TMPDIR/foo$$-$RANDOM
8142 (umask 077 && mkdir "$tmp")
8145 echo "{" > "$tmp/export.map"
8146 echo " global: main;" >> "$tmp/export.map"
8147 echo " local: *;" >> "$tmp/export.map"
8148 echo "};" >> "$tmp/export.map"
8150 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8151 cat >conftest.$ac_ext <<_ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (ac_try="$ac_link"
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_link") 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try='test -s conftest$ac_exeext'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 llvm_cv_link_use_version_script=yes
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 llvm_cv_link_use_version_script=no
8208 rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8210 rm "$tmp/export.map"
8214 ac_cpp='$CPP $CPPFLAGS'
8215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8221 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8222 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8223 if test "$llvm_cv_link_use_version_script" = yes ; then
8224 HAVE_LINK_VERSION_SCRIPT=1
8231 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8232 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8233 if test "${ac_cv_c_const+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8246 /* FIXME: Include the comments suggested by Paul. */
8248 /* Ultrix mips cc rejects this. */
8249 typedef int charset[2];
8251 /* SunOS 4.1.1 cc rejects this. */
8252 char const *const *ccp;
8254 /* NEC SVR4.0.2 mips cc rejects this. */
8255 struct point {int x, y;};
8256 static struct point const zero = {0,0};
8257 /* AIX XL C 1.02.0.0 rejects this.
8258 It does not let you subtract one const X* pointer from another in
8259 an arm of an if-expression whose if-part is not a constant
8261 const char *g = "string";
8262 ccp = &g + (g ? g-g : 0);
8263 /* HPUX 7.0 cc rejects these. */
8266 ccp = (char const *const *) p;
8267 { /* SCO 3.2v4 cc rejects this. */
8269 char const *s = 0 ? (char *) 0 : (char const *) 0;
8274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8276 const int *foo = &x[0];
8279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8280 typedef const int *iptr;
8284 { /* AIX XL C 1.02.0.0 rejects this saying
8285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8286 struct s { int j; const int *ap[3]; };
8287 struct s *b; b->j = 5;
8289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8293 return !x[0] && !zero.x;
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_compile") 2>conftest.er1
8309 grep -v '^ *+' conftest.er1 >conftest.err
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest.$ac_objext'
8325 { (case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_try") 2>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8345 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8346 if test $ac_cv_c_const = no; then
8348 cat >>confdefs.h <<\_ACEOF
8360 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8361 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8362 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8363 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 #include <sys/types.h>
8385 rm -f conftest.$ac_objext
8386 if { (ac_try="$ac_compile"
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_compile") 2>conftest.er1
8394 grep -v '^ *+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest.$ac_objext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 eval "$as_ac_Header=yes"
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 eval "$as_ac_Header=no"
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 ac_res=`eval echo '${'$as_ac_Header'}'`
8430 { echo "$as_me:$LINENO: result: $ac_res" >&5
8431 echo "${ECHO_T}$ac_res" >&6; }
8432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8437 ac_header_dirent=$ac_hdr; break
8441 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8442 if test $ac_header_dirent = dirent.h; then
8443 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8444 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8445 if test "${ac_cv_search_opendir+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_func_search_save_LIBS=$LIBS
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8456 /* Override any GCC internal prototype to avoid an error.
8457 Use char because int might match the return type of a GCC
8458 builtin and then its argument prototype would still apply. */
8471 for ac_lib in '' dir; do
8472 if test -z "$ac_lib"; then
8473 ac_res="none required"
8476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_link") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_search_opendir=$ac_res
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8520 rm -f core conftest.err conftest.$ac_objext \
8522 if test "${ac_cv_search_opendir+set}" = set; then
8526 if test "${ac_cv_search_opendir+set}" = set; then
8529 ac_cv_search_opendir=no
8532 LIBS=$ac_func_search_save_LIBS
8534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8536 ac_res=$ac_cv_search_opendir
8537 if test "$ac_res" != no; then
8538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8543 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8544 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8545 if test "${ac_cv_search_opendir+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_func_search_save_LIBS=$LIBS
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8556 /* Override any GCC internal prototype to avoid an error.
8557 Use char because int might match the return type of a GCC
8558 builtin and then its argument prototype would still apply. */
8571 for ac_lib in '' x; do
8572 if test -z "$ac_lib"; then
8573 ac_res="none required"
8576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_link") 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593 { (case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_try") 2>&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest$ac_exeext'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_try") 2>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 ac_cv_search_opendir=$ac_res
8614 echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8620 rm -f core conftest.err conftest.$ac_objext \
8622 if test "${ac_cv_search_opendir+set}" = set; then
8626 if test "${ac_cv_search_opendir+set}" = set; then
8629 ac_cv_search_opendir=no
8632 LIBS=$ac_func_search_save_LIBS
8634 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8635 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8636 ac_res=$ac_cv_search_opendir
8637 if test "$ac_res" != no; then
8638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8645 for ac_header in dlfcn.h
8647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 ac_res=`eval echo '${'$as_ac_Header'}'`
8655 { echo "$as_me:$LINENO: result: $ac_res" >&5
8656 echo "${ECHO_T}$ac_res" >&6; }
8658 # Is the header compilable?
8659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8660 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
8668 #include <$ac_header>
8670 rm -f conftest.$ac_objext
8671 if { (ac_try="$ac_compile"
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_compile") 2>conftest.er1
8679 grep -v '^ *+' conftest.er1 >conftest.err
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8685 { (case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_try") 2>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_try") 2>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 ac_header_compiler=yes
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8709 ac_header_compiler=no
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8714 echo "${ECHO_T}$ac_header_compiler" >&6; }
8716 # Is the header present?
8717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8719 cat >conftest.$ac_ext <<_ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 #include <$ac_header>
8727 if { (ac_try="$ac_cpp conftest.$ac_ext"
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8735 grep -v '^ *+' conftest.er1 >conftest.err
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } >/dev/null; then
8740 if test -s conftest.err; then
8741 ac_cpp_err=$ac_c_preproc_warn_flag
8742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8749 if test -z "$ac_cpp_err"; then
8750 ac_header_preproc=yes
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 ac_header_preproc=no
8758 rm -f conftest.err conftest.$ac_ext
8759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8760 echo "${ECHO_T}$ac_header_preproc" >&6; }
8762 # So? What about this header?
8763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8769 ac_header_preproc=yes
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8785 ## ----------------------------------- ##
8786 ## Report this to llvmbugs@cs.uiuc.edu ##
8787 ## ----------------------------------- ##
8789 ) | sed "s/^/$as_me: WARNING: /" >&2
8792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 eval "$as_ac_Header=\$ac_header_preproc"
8799 ac_res=`eval echo '${'$as_ac_Header'}'`
8800 { echo "$as_me:$LINENO: result: $ac_res" >&5
8801 echo "${ECHO_T}$ac_res" >&6; }
8804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8805 cat >>confdefs.h <<_ACEOF
8806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8813 # Check whether --enable-ltdl-install was given.
8814 if test "${enable_ltdl_install+set}" = set; then
8815 enableval=$enable_ltdl_install;
8821 if test x"${enable_ltdl_install-no}" != xno; then
8823 INSTALL_LTDL_FALSE='#'
8825 INSTALL_LTDL_TRUE='#'
8831 if test x"${enable_ltdl_convenience-no}" != xno; then
8832 CONVENIENCE_LTDL_TRUE=
8833 CONVENIENCE_LTDL_FALSE='#'
8835 CONVENIENCE_LTDL_TRUE='#'
8836 CONVENIENCE_LTDL_FALSE=
8840 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8841 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8843 libname_spec='lib$name'
8851 shlibpath_overrides_runpath=unknown
8853 dynamic_linker="$host_os ld.so"
8854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8855 if test "$GCC" = yes; then
8856 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8857 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8858 # if the path contains ";" then we assume it to be the separator
8859 # otherwise default to the standard path separator (i.e. ":") - it is
8860 # assumed that no part of a normal pathname contains ";" but that should
8861 # okay in the real world where ";" in dirpaths is itself problematic.
8862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8867 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8869 need_lib_prefix=unknown
8870 hardcode_into_libs=no
8872 # when you set need_version to no, make sure it does not cause -set_version
8873 # flags to be left without arguments
8874 need_version=unknown
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8880 shlibpath_var=LIBPATH
8882 # AIX 3 has no versioning support, so we append a major version to the name.
8883 soname_spec='${libname}${release}${shared_ext}$major'
8890 hardcode_into_libs=yes
8891 if test "$host_cpu" = ia64; then
8892 # AIX 5 supports IA64
8893 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8894 shlibpath_var=LD_LIBRARY_PATH
8896 # With GCC up to 2.95.x, collect2 would create an import file
8897 # for dependence libraries. The import file would start with
8898 # the line `#! .'. This would cause the generated library to
8899 # depend on `.', always an invalid library. This was fixed in
8900 # development snapshots of GCC prior to 3.0.
8902 aix4 | aix4.[01] | aix4.[01].*)
8903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8905 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8912 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8913 # soname into executable. Probably we can add versioning support to
8914 # collect2, so additional links can be useful in future.
8915 if test "$aix_use_runtimelinking" = yes; then
8916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8917 # instead of lib<name>.a to let people know that these are not
8918 # typical AIX shared libraries.
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 # We preserve .a as extension for shared libraries through AIX4.2
8922 # and later when we are not doing run time linking.
8923 library_names_spec='${libname}${release}.a $libname.a'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8926 shlibpath_var=LIBPATH
8931 library_names_spec='$libname.ixlibrary $libname.a'
8932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8933 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'
8937 library_names_spec='${libname}${shared_ext}'
8938 dynamic_linker="$host_os ld.so"
8939 shlibpath_var=LIBRARY_PATH
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8948 shlibpath_var=LD_LIBRARY_PATH
8949 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8950 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8951 # the default ld.so.conf also contains /usr/contrib/lib and
8952 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8953 # libtool to hard-code these into programs
8956 cygwin* | mingw* | pw32*)
8957 version_type=windows
8962 case $GCC,$host_os in
8963 yes,cygwin* | yes,mingw* | yes,pw32*)
8964 library_names_spec='$libname.dll.a'
8965 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8966 postinstall_cmds='base_file=`basename \${file}`~
8967 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8968 dldir=$destdir/`dirname \$dlpath`~
8969 test -d \$dldir || mkdir -p \$dldir~
8970 $install_prog $dir/$dlname \$dldir/$dlname~
8971 chmod a+x \$dldir/$dlname'
8972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8973 dlpath=$dir/\$dldll~
8975 shlibpath_overrides_runpath=yes
8979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8980 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8981 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8984 # MinGW DLLs use traditional 'lib' prefix
8985 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8986 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8987 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8988 # It is most probably a Windows format PATH printed by
8989 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8990 # path with ; separators, and with drive letters. We can handle the
8991 # drive letters (cygwin fileutils understands them), so leave them,
8992 # especially as we might pass files found there to a mingw objdump,
8993 # which wouldn't understand a cygwinified path. Ahh.
8994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9000 # pw32 DLLs use 'pw' prefix rather than 'lib'
9001 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9007 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9010 dynamic_linker='Win32 ld.exe'
9011 # FIXME: first we should search . and the directory the executable is in
9015 darwin* | rhapsody*)
9016 dynamic_linker="$host_os dyld"
9020 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9021 soname_spec='${libname}${release}${major}$shared_ext'
9022 shlibpath_overrides_runpath=yes
9023 shlibpath_var=DYLD_LIBRARY_PATH
9024 shrext_cmds='.dylib'
9025 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9026 if test "$GCC" = yes; then
9027 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"`
9029 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9031 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 shlibpath_var=LD_LIBRARY_PATH
9054 shlibpath_overrides_runpath=no
9055 hardcode_into_libs=yes
9056 dynamic_linker='GNU ld.so'
9059 freebsd* | dragonfly*)
9060 # DragonFly does not have aout. When/if they implement a new
9061 # versioning mechanism, adjust this.
9062 if test -x /usr/bin/objformat; then
9063 objformat=`/usr/bin/objformat`
9066 freebsd[123]*) objformat=aout ;;
9070 version_type=freebsd-$objformat
9071 case $version_type in
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9082 shlibpath_var=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath=yes
9087 freebsd3.[01]* | freebsdelf3.[01]*)
9088 shlibpath_overrides_runpath=yes
9089 hardcode_into_libs=yes
9091 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9092 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9093 shlibpath_overrides_runpath=no
9094 hardcode_into_libs=yes
9096 freebsd*) # from 4.6 on
9097 shlibpath_overrides_runpath=yes
9098 hardcode_into_libs=yes
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 hardcode_into_libs=yes
9113 hpux9* | hpux10* | hpux11*)
9114 # Give a soname corresponding to the major version so that dld.sl refuses to
9115 # link against other versions.
9122 hardcode_into_libs=yes
9123 dynamic_linker="$host_os dld.so"
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 if test "X$HPUX_IA64_MODE" = X32; then
9129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9131 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9137 hardcode_into_libs=yes
9138 dynamic_linker="$host_os dld.sl"
9139 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9148 dynamic_linker="$host_os dld.sl"
9149 shlibpath_var=SHLIB_PATH
9150 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9155 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9156 postinstall_cmds='chmod 555 $lib'
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9166 shlibpath_var=LD_LIBRARY_PATH
9167 shlibpath_overrides_runpath=no
9168 hardcode_into_libs=yes
9171 irix5* | irix6* | nonstopux*)
9173 nonstopux*) version_type=nonstopux ;;
9175 if test "$lt_cv_prog_gnu_ld" = yes; then
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9186 irix5* | nonstopux*)
9190 case $LD in # libtool.m4 will add one of these switches to LD
9191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9192 libsuff= shlibsuff= libmagic=32-bit;;
9193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9194 libsuff=32 shlibsuff=N32 libmagic=N32;;
9195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9197 *) libsuff= shlibsuff= libmagic=never-match;;
9201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9202 shlibpath_overrides_runpath=no
9203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9205 hardcode_into_libs=yes
9208 # No shared lib support for Linux oldld, aout, or coff.
9209 linux*oldld* | linux*aout* | linux*coff*)
9213 # This must be Linux ELF.
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=no
9223 # This implies no fast_install, which is unacceptable.
9224 # Some rework will be needed to allow for fast_install
9225 # before this can be enabled.
9226 hardcode_into_libs=yes
9228 # Append ld.so.conf contents to the search path
9229 if test -f /etc/ld.so.conf; then
9230 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' ' '`
9231 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9234 # We used to test for /lib/ld.so.1 and disable shared libraries on
9235 # powerpc, because MkLinux only supported shared libraries with the
9236 # GNU dynamic linker. Since this was broken with cross compilers,
9237 # most powerpc-linux boxes support dynamic linking these days and
9238 # people can always --disable-shared, the test was removed, and we
9239 # assume the GNU/Linux dynamic linker is in use.
9240 dynamic_linker='GNU/Linux ld.so'
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 shlibpath_overrides_runpath=no
9251 hardcode_into_libs=yes
9252 dynamic_linker='GNU ld.so'
9259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9262 dynamic_linker='NetBSD (a.out) ld.so'
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 dynamic_linker='NetBSD ld.elf_so'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 shlibpath_overrides_runpath=yes
9270 hardcode_into_libs=yes
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 shlibpath_var=LD_LIBRARY_PATH
9287 shlibpath_overrides_runpath=yes
9292 sys_lib_dlsearch_path_spec="/usr/lib"
9294 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9296 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9297 *) need_version=no ;;
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9304 openbsd2.[89] | openbsd2.[89].*)
9305 shlibpath_overrides_runpath=no
9308 shlibpath_overrides_runpath=yes
9312 shlibpath_overrides_runpath=yes
9317 libname_spec='$name'
9320 library_names_spec='$libname${shared_ext} $libname.a'
9321 dynamic_linker='OS/2 ld.exe'
9322 shlibpath_var=LIBPATH
9325 osf3* | osf4* | osf5*)
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9333 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 shlibpath_overrides_runpath=yes
9344 hardcode_into_libs=yes
9345 # ldd complains unless libraries are executable
9346 postinstall_cmds='chmod +x $lib'
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9352 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 shlibpath_overrides_runpath=yes
9355 if test "$with_gnu_ld" = yes; then
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 case $host_vendor in
9368 shlibpath_overrides_runpath=no
9370 export_dynamic_flag_spec='${wl}-Blargedynsym'
9371 runpath_var=LD_RUN_PATH
9379 shlibpath_overrides_runpath=no
9380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9386 if test -d /usr/nec ;then
9388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9389 soname_spec='$libname${shared_ext}.$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9395 version_type=freebsd-elf
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 hardcode_into_libs=yes
9402 if test "$with_gnu_ld" = yes; then
9403 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9404 shlibpath_overrides_runpath=no
9406 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9407 shlibpath_overrides_runpath=yes
9410 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9414 sys_lib_dlsearch_path_spec='/usr/lib'
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9428 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9429 echo "${ECHO_T}$dynamic_linker" >&6; }
9430 test "$dynamic_linker" = no && can_build_shared=no
9432 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9433 if test "$GCC" = yes; then
9434 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9438 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9439 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9440 if test "${libltdl_cv_shlibext+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 eval libltdl_cv_shlibext=$shrext_cmds
9448 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9449 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9450 if test -n "$libltdl_cv_shlibext"; then
9452 cat >>confdefs.h <<_ACEOF
9453 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9459 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9460 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9461 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 libltdl_cv_shlibpath_var="$shlibpath_var"
9466 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9467 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9468 if test -n "$libltdl_cv_shlibpath_var"; then
9470 cat >>confdefs.h <<_ACEOF
9471 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9477 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9478 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9479 if test "${libltdl_cv_sys_search_path+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9484 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9485 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9486 if test -n "$libltdl_cv_sys_search_path"; then
9488 for dir in $libltdl_cv_sys_search_path; do
9489 if test -z "$sys_search_path"; then
9490 sys_search_path="$dir"
9492 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9496 cat >>confdefs.h <<_ACEOF
9497 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9502 { echo "$as_me:$LINENO: checking for objdir" >&5
9503 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9504 if test "${libltdl_cv_objdir+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 libltdl_cv_objdir="$objdir"
9508 if test -n "$objdir"; then
9511 rm -f .libs 2>/dev/null
9512 mkdir .libs 2>/dev/null
9513 if test -d .libs; then
9514 libltdl_cv_objdir=.libs
9516 # MS-DOS does not allow filenames that begin with a dot.
9517 libltdl_cv_objdir=_libs
9519 rmdir .libs 2>/dev/null
9523 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9524 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9526 cat >>confdefs.h <<_ACEOF
9527 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9535 # Check for command to grab the raw symbol name followed by C symbol from nm.
9536 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9537 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9538 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 # These are sane defaults that work on at least a few old systems.
9543 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9545 # Character class describing NM global symbol codes.
9546 symcode='[BCDEGRST]'
9548 # Regexp to match symbols that can be accessed directly from C.
9549 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9551 # Transform an extracted symbol line into a proper C declaration
9552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9554 # Transform an extracted symbol line into symbol name and symbol address
9555 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'"
9557 # Define system-specific variables.
9562 cygwin* | mingw* | pw32*)
9563 symcode='[ABCDGISTW]'
9565 hpux*) # Its linker distinguishes data from code symbols
9566 if test "$host_cpu" = ia64; then
9567 symcode='[ABCDEGRST]'
9569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9570 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'"
9573 if test "$host_cpu" = ia64; then
9574 symcode='[ABCDGIRSTW]'
9575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9576 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'"
9580 symcode='[BCDEGRST]'
9583 symcode='[BCDEGQRST]'
9594 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9602 # Handle CRLF in mingw tool chain
9606 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9610 # If we're using GNU nm, then use its standard symbol codes.
9611 case `$NM -V 2>&1` in
9612 *GNU* | *'with BFD'*)
9613 symcode='[ABCDGIRSTW]' ;;
9616 # Try without a prefix undercore, then with it.
9617 for ac_symprfx in "" "_"; do
9619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9620 symxfrm="\\1 $ac_symprfx\\2 \\2"
9622 # Write the raw and C identifiers.
9623 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9625 # Check to see that the pipe works correctly.
9629 cat > conftest.$ac_ext <<EOF
9634 void nm_test_func(){}
9638 int main(){nm_test_var='a';nm_test_func();return(0);}
9641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9642 (eval $ac_compile) 2>&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; then
9646 # Now try to grab the symbols.
9648 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9649 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } && test -s "$nlist"; then
9653 # Try sorting and uniquifying the output.
9654 if sort "$nlist" | uniq > "$nlist"T; then
9655 mv -f "$nlist"T "$nlist"
9660 # Make sure that we snagged all the symbols we need.
9661 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9662 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9663 cat <<EOF > conftest.$ac_ext
9669 # Now generate the symbol file.
9670 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9672 cat <<EOF >> conftest.$ac_ext
9673 #if defined (__STDC__) && __STDC__
9674 # define lt_ptr_t void *
9676 # define lt_ptr_t char *
9680 /* The mapping between symbol names and symbols. */
9685 lt_preloaded_symbols[] =
9688 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9689 cat <<\EOF >> conftest.$ac_ext
9697 # Now try linking the two files.
9698 mv conftest.$ac_objext conftstm.$ac_objext
9699 lt_save_LIBS="$LIBS"
9700 lt_save_CFLAGS="$CFLAGS"
9701 LIBS="conftstm.$ac_objext"
9702 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9710 LIBS="$lt_save_LIBS"
9711 CFLAGS="$lt_save_CFLAGS"
9713 echo "cannot find nm_test_func in $nlist" >&5
9716 echo "cannot find nm_test_var in $nlist" >&5
9719 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9722 echo "$progname: failed program was:" >&5
9723 cat conftest.$ac_ext >&5
9725 rm -f conftest* conftst*
9727 # Do not use the global_symbol_pipe unless it works.
9728 if test "$pipe_works" = yes; then
9731 lt_cv_sys_global_symbol_pipe=
9737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9738 lt_cv_sys_global_symbol_to_cdecl=
9740 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9741 { echo "$as_me:$LINENO: result: failed" >&5
9742 echo "${ECHO_T}failed" >&6; }
9744 { echo "$as_me:$LINENO: result: ok" >&5
9745 echo "${ECHO_T}ok" >&6; }
9749 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9750 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9751 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9755 libltdl_cv_preloaded_symbols=yes
9757 libltdl_cv_preloaded_symbols=no
9761 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9762 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9763 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9765 cat >>confdefs.h <<\_ACEOF
9766 #define HAVE_PRELOADED_SYMBOLS 1
9774 ac_cpp='$CPP $CPPFLAGS'
9775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9780 { echo "$as_me:$LINENO: checking for shl_load" >&5
9781 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9782 if test "${ac_cv_func_shl_load+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 cat >conftest.$ac_ext <<_ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9793 #define shl_load innocuous_shl_load
9795 /* System header to define __stub macros and hopefully few prototypes,
9796 which can conflict with char shl_load (); below.
9797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9798 <limits.h> exists even on freestanding compilers. */
9801 # include <limits.h>
9803 # include <assert.h>
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9815 /* The GNU C library defines this for functions which it implements
9816 to always fail with ENOSYS. Some functions are actually named
9817 something starting with __ and the normal name is an alias. */
9818 #if defined __stub_shl_load || defined __stub___shl_load
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest$ac_exeext'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_func_shl_load=yes
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ac_cv_func_shl_load=no
9872 rm -f core conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9875 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9876 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9877 if test $ac_cv_func_shl_load = yes; then
9879 cat >>confdefs.h <<\_ACEOF
9880 #define HAVE_SHL_LOAD 1
9884 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9885 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9886 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 ac_check_lib_save_LIBS=$LIBS
9891 cat >conftest.$ac_ext <<_ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_link") 2>conftest.er1
9922 grep -v '^ *+' conftest.er1 >conftest.err
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest$ac_exeext'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_lib_dld_shl_load=yes
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_cv_lib_dld_shl_load=no
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_lib_save_LIBS
9959 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9960 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9961 if test $ac_cv_lib_dld_shl_load = yes; then
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_SHL_LOAD 1
9967 LIBADD_DL="$LIBADD_DL -ldld"
9969 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 ac_check_lib_save_LIBS=$LIBS
9976 cat >conftest.$ac_ext <<_ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9983 /* Override any GCC internal prototype to avoid an error.
9984 Use char because int might match the return type of a GCC
9985 builtin and then its argument prototype would still apply. */
9998 rm -f conftest.$ac_objext conftest$ac_exeext
9999 if { (ac_try="$ac_link"
10000 case "(($ac_try" in
10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval "$ac_link") 2>conftest.er1
10007 grep -v '^ *+' conftest.er1 >conftest.err
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10013 { (case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_try") 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try='test -s conftest$ac_exeext'
10023 { (case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_try") 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 ac_cv_lib_dl_dlopen=yes
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 ac_cv_lib_dl_dlopen=no
10040 rm -f core conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042 LIBS=$ac_check_lib_save_LIBS
10044 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10045 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10046 if test $ac_cv_lib_dl_dlopen = yes; then
10048 cat >>confdefs.h <<\_ACEOF
10049 #define HAVE_LIBDL 1
10052 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10054 cat >conftest.$ac_ext <<_ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10061 # include <dlfcn.h>
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (ac_try="$ac_link"
10074 case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_link") 2>conftest.er1
10081 grep -v '^ *+' conftest.er1 >conftest.err
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10087 { (case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_try") 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_try") 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; }; then
10107 cat >>confdefs.h <<\_ACEOF
10108 #define HAVE_LIBDL 1
10110 libltdl_cv_func_dlopen="yes"
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10115 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10116 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10117 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 ac_check_lib_save_LIBS=$LIBS
10121 LIBS="-lsvld $LIBS"
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10144 rm -f conftest.$ac_objext conftest$ac_exeext
10145 if { (ac_try="$ac_link"
10146 case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_link") 2>conftest.er1
10153 grep -v '^ *+' conftest.er1 >conftest.err
10155 cat conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } &&
10158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10159 { (case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_try") 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; } &&
10168 { ac_try='test -s conftest$ac_exeext'
10169 { (case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_try") 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_lib_svld_dlopen=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_lib_svld_dlopen=no
10186 rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10190 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10191 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10192 if test $ac_cv_lib_svld_dlopen = yes; then
10194 cat >>confdefs.h <<\_ACEOF
10195 #define HAVE_LIBDL 1
10198 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10200 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10201 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10202 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 ac_check_lib_save_LIBS=$LIBS
10207 cat >conftest.$ac_ext <<_ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10224 return dld_link ();
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
10238 grep -v '^ *+' conftest.er1 >conftest.err
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 ac_cv_lib_dld_dld_link=yes
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 ac_cv_lib_dld_dld_link=no
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273 LIBS=$ac_check_lib_save_LIBS
10275 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10276 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10277 if test $ac_cv_lib_dld_dld_link = yes; then
10279 cat >>confdefs.h <<\_ACEOF
10283 LIBADD_DL="$LIBADD_DL -ldld"
10285 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10286 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10287 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 cat >conftest.$ac_ext <<_ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10296 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10298 #define _dyld_func_lookup innocuous__dyld_func_lookup
10300 /* System header to define __stub macros and hopefully few prototypes,
10301 which can conflict with char _dyld_func_lookup (); below.
10302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10303 <limits.h> exists even on freestanding compilers. */
10306 # include <limits.h>
10308 # include <assert.h>
10311 #undef _dyld_func_lookup
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10319 char _dyld_func_lookup ();
10320 /* The GNU C library defines this for functions which it implements
10321 to always fail with ENOSYS. Some functions are actually named
10322 something starting with __ and the normal name is an alias. */
10323 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10330 return _dyld_func_lookup ();
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_link") 2>conftest.er1
10344 grep -v '^ *+' conftest.er1 >conftest.err
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10350 { (case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_try") 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest$ac_exeext'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_func__dyld_func_lookup=yes
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 ac_cv_func__dyld_func_lookup=no
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10380 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10381 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10382 if test $ac_cv_func__dyld_func_lookup = yes; then
10384 cat >>confdefs.h <<\_ACEOF
10385 #define HAVE_DYLD 1
10399 rm -f core conftest.err conftest.$ac_objext \
10400 conftest$ac_exeext conftest.$ac_ext
10411 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10413 lt_save_LIBS="$LIBS"
10414 LIBS="$LIBS $LIBADD_DL"
10416 for ac_func in dlerror
10418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 cat >conftest.$ac_ext <<_ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10432 #define $ac_func innocuous_$ac_func
10434 /* System header to define __stub macros and hopefully few prototypes,
10435 which can conflict with char $ac_func (); below.
10436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10437 <limits.h> exists even on freestanding compilers. */
10440 # include <limits.h>
10442 # include <assert.h>
10447 /* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10454 /* The GNU C library defines this for functions which it implements
10455 to always fail with ENOSYS. Some functions are actually named
10456 something starting with __ and the normal name is an alias. */
10457 #if defined __stub_$ac_func || defined __stub___$ac_func
10464 return $ac_func ();
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (ac_try="$ac_link"
10471 case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476 (eval "$ac_link") 2>conftest.er1
10478 grep -v '^ *+' conftest.er1 >conftest.err
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10484 { (case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_try") 2>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; } &&
10493 { ac_try='test -s conftest$ac_exeext'
10494 { (case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10499 (eval "$ac_try") 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 eval "$as_ac_var=yes"
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 eval "$as_ac_var=no"
10511 rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10514 ac_res=`eval echo '${'$as_ac_var'}'`
10515 { echo "$as_me:$LINENO: result: $ac_res" >&5
10516 echo "${ECHO_T}$ac_res" >&6; }
10517 if test `eval echo '${'$as_ac_var'}'` = yes; then
10518 cat >>confdefs.h <<_ACEOF
10519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10525 LIBS="$lt_save_LIBS"
10528 ac_cpp='$CPP $CPPFLAGS'
10529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10535 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10536 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10537 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 ac_cv_sys_symbol_underscore=no
10541 cat > conftest.$ac_ext <<EOF
10542 void nm_test_func(){}
10543 int main(){nm_test_func;return 0;}
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; then
10550 # Now try to grab the symbols.
10551 ac_nlist=conftest.nm
10552 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10553 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && test -s "$ac_nlist"; then
10557 # See whether the symbols have a leading underscore.
10558 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10559 ac_cv_sys_symbol_underscore=yes
10561 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10564 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10568 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10571 echo "configure: failed program was:" >&5
10577 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10578 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10581 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10582 if test x"$libltdl_cv_func_dlopen" = xyes ||
10583 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10584 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10585 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10586 if test "${libltdl_cv_need_uscore+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 libltdl_cv_need_uscore=unknown
10591 LIBS="$LIBS $LIBADD_DL"
10592 if test "$cross_compiling" = yes; then :
10593 libltdl_cv_need_uscore=cross
10595 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10596 lt_status=$lt_dlunknown
10597 cat > conftest.$ac_ext <<EOF
10598 #line 10598 "configure"
10599 #include "confdefs.h"
10608 # define LT_DLGLOBAL RTLD_GLOBAL
10611 # define LT_DLGLOBAL DL_GLOBAL
10613 # define LT_DLGLOBAL 0
10617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10618 find out it does not work in some platform. */
10619 #ifndef LT_DLLAZY_OR_NOW
10621 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10624 # define LT_DLLAZY_OR_NOW DL_LAZY
10627 # define LT_DLLAZY_OR_NOW RTLD_NOW
10630 # define LT_DLLAZY_OR_NOW DL_NOW
10632 # define LT_DLLAZY_OR_NOW 0
10640 extern "C" void exit (int);
10643 void fnord() { int i=42;}
10646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10647 int status = $lt_dlunknown;
10651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10652 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10653 /* dlclose (self); */
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10666 (./conftest; exit; ) >&5 2>/dev/null
10668 case x$lt_status in
10669 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10670 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10671 x$lt_dlunknown|x*) ;;
10674 # compilation failed
10683 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10684 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10688 if test x"$libltdl_cv_need_uscore" = xyes; then
10690 cat >>confdefs.h <<\_ACEOF
10691 #define NEED_USCORE 1
10697 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10698 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10699 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 # PORTME does your system automatically load deplibs for dlopen?
10703 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10704 # For now, we just catch OSes we know something about -- in the
10705 # future, we'll try test this programmatically.
10706 libltdl_cv_sys_dlopen_deplibs=unknown
10708 aix3*|aix4.1.*|aix4.2.*)
10709 # Unknown whether this is true for these versions of AIX, but
10710 # we want this `case' here to explicitly catch those versions.
10711 libltdl_cv_sys_dlopen_deplibs=unknown
10714 libltdl_cv_sys_dlopen_deplibs=yes
10717 # Assuming the user has installed a libdl from somewhere, this is true
10718 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10719 libltdl_cv_sys_dlopen_deplibs=yes
10721 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10722 # GNU and its variants, using gnu ld.so (Glibc)
10723 libltdl_cv_sys_dlopen_deplibs=yes
10726 libltdl_cv_sys_dlopen_deplibs=yes
10729 libltdl_cv_sys_dlopen_deplibs=yes
10731 irix[12345]*|irix6.[01]*)
10732 # Catch all versions of IRIX before 6.2, and indicate that we don't
10733 # know how it worked for any of those versions.
10734 libltdl_cv_sys_dlopen_deplibs=unknown
10737 # The case above catches anything before 6.2, and it's known that
10738 # at 6.2 and later dlopen does load deplibs.
10739 libltdl_cv_sys_dlopen_deplibs=yes
10742 libltdl_cv_sys_dlopen_deplibs=yes
10745 libltdl_cv_sys_dlopen_deplibs=yes
10748 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10749 # it did *not* use an RPATH in a shared library to find objects the
10750 # library depends on, so we explicitly say `no'.
10751 libltdl_cv_sys_dlopen_deplibs=no
10753 osf5.0|osf5.0a|osf5.1)
10754 # dlopen *does* load deplibs and with the right loader patch applied
10755 # it even uses RPATH in a shared library to search for shared objects
10756 # that the library depends on, but there's no easy way to know if that
10757 # patch is installed. Since this is the case, all we can really
10758 # say is unknown -- it depends on the patch being installed. If
10759 # it is, this changes to `yes'. Without it, it would be `no'.
10760 libltdl_cv_sys_dlopen_deplibs=unknown
10763 # the two cases above should catch all versions of osf <= 5.1. Read
10764 # the comments above for what we know about them.
10765 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10766 # is used to find them so we can finally say `yes'.
10767 libltdl_cv_sys_dlopen_deplibs=yes
10770 libltdl_cv_sys_dlopen_deplibs=yes
10772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10773 libltdl_cv_sys_dlopen_deplibs=yes
10778 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10779 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10780 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10782 cat >>confdefs.h <<\_ACEOF
10783 #define LTDL_DLOPEN_DEPLIBS 1
10789 for ac_header in argz.h
10791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10796 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 ac_res=`eval echo '${'$as_ac_Header'}'`
10799 { echo "$as_me:$LINENO: result: $ac_res" >&5
10800 echo "${ECHO_T}$ac_res" >&6; }
10802 # Is the header compilable?
10803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10804 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10812 #include <$ac_header>
10814 rm -f conftest.$ac_objext
10815 if { (ac_try="$ac_compile"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_compile") 2>conftest.er1
10823 grep -v '^ *+' conftest.er1 >conftest.err
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } &&
10828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10829 { (case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_try") 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; } &&
10838 { ac_try='test -s conftest.$ac_objext'
10839 { (case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_try") 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_header_compiler=yes
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ac_header_compiler=no
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10858 echo "${ECHO_T}$ac_header_compiler" >&6; }
10860 # Is the header present?
10861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10863 cat >conftest.$ac_ext <<_ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 #include <$ac_header>
10871 if { (ac_try="$ac_cpp conftest.$ac_ext"
10872 case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10879 grep -v '^ *+' conftest.er1 >conftest.err
10881 cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } >/dev/null; then
10884 if test -s conftest.err; then
10885 ac_cpp_err=$ac_c_preproc_warn_flag
10886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10893 if test -z "$ac_cpp_err"; then
10894 ac_header_preproc=yes
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_header_preproc=no
10902 rm -f conftest.err conftest.$ac_ext
10903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10904 echo "${ECHO_T}$ac_header_preproc" >&6; }
10906 # So? What about this header?
10907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10913 ac_header_preproc=yes
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10929 ## ----------------------------------- ##
10930 ## Report this to llvmbugs@cs.uiuc.edu ##
10931 ## ----------------------------------- ##
10933 ) | sed "s/^/$as_me: WARNING: /" >&2
10936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 eval "$as_ac_Header=\$ac_header_preproc"
10943 ac_res=`eval echo '${'$as_ac_Header'}'`
10944 { echo "$as_me:$LINENO: result: $ac_res" >&5
10945 echo "${ECHO_T}$ac_res" >&6; }
10948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10949 cat >>confdefs.h <<_ACEOF
10950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10958 { echo "$as_me:$LINENO: checking for error_t" >&5
10959 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10960 if test "${ac_cv_type_error_t+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10973 typedef error_t ac__type_new_;
10977 if ((ac__type_new_ *) 0)
10979 if (sizeof (ac__type_new_))
10985 rm -f conftest.$ac_objext
10986 if { (ac_try="$ac_compile"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_compile") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000 { (case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; } &&
11009 { ac_try='test -s conftest.$ac_objext'
11010 { (case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_try") 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_cv_type_error_t=yes
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 ac_cv_type_error_t=no
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11030 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11031 if test $ac_cv_type_error_t = yes; then
11033 cat >>confdefs.h <<_ACEOF
11034 #define HAVE_ERROR_T 1
11040 cat >>confdefs.h <<\_ACEOF
11041 #define error_t int
11052 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 cat >conftest.$ac_ext <<_ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11068 #define $ac_func innocuous_$ac_func
11070 /* System header to define __stub macros and hopefully few prototypes,
11071 which can conflict with char $ac_func (); below.
11072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11073 <limits.h> exists even on freestanding compilers. */
11076 # include <limits.h>
11078 # include <assert.h>
11083 /* Override any GCC internal prototype to avoid an error.
11084 Use char because int might match the return type of a GCC
11085 builtin and then its argument prototype would still apply. */
11090 /* The GNU C library defines this for functions which it implements
11091 to always fail with ENOSYS. Some functions are actually named
11092 something starting with __ and the normal name is an alias. */
11093 #if defined __stub_$ac_func || defined __stub___$ac_func
11100 return $ac_func ();
11105 rm -f conftest.$ac_objext conftest$ac_exeext
11106 if { (ac_try="$ac_link"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_link") 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11120 { (case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_try") 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest$ac_exeext'
11130 { (case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_try") 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 eval "$as_ac_var=yes"
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 eval "$as_ac_var=no"
11147 rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11150 ac_res=`eval echo '${'$as_ac_var'}'`
11151 { echo "$as_me:$LINENO: result: $ac_res" >&5
11152 echo "${ECHO_T}$ac_res" >&6; }
11153 if test `eval echo '${'$as_ac_var'}'` = yes; then
11154 cat >>confdefs.h <<_ACEOF
11155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11188 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 ac_res=`eval echo '${'$as_ac_Header'}'`
11199 { echo "$as_me:$LINENO: result: $ac_res" >&5
11200 echo "${ECHO_T}$ac_res" >&6; }
11202 # Is the header compilable?
11203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11204 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11212 #include <$ac_header>
11214 rm -f conftest.$ac_objext
11215 if { (ac_try="$ac_compile"
11216 case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_compile") 2>conftest.er1
11223 grep -v '^ *+' conftest.er1 >conftest.err
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229 { (case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_try") 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest.$ac_objext'
11239 { (case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_try") 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_header_compiler=yes
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 ac_header_compiler=no
11256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11258 echo "${ECHO_T}$ac_header_compiler" >&6; }
11260 # Is the header present?
11261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11263 cat >conftest.$ac_ext <<_ACEOF
11266 cat confdefs.h >>conftest.$ac_ext
11267 cat >>conftest.$ac_ext <<_ACEOF
11268 /* end confdefs.h. */
11269 #include <$ac_header>
11271 if { (ac_try="$ac_cpp conftest.$ac_ext"
11272 case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11279 grep -v '^ *+' conftest.er1 >conftest.err
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } >/dev/null; then
11284 if test -s conftest.err; then
11285 ac_cpp_err=$ac_c_preproc_warn_flag
11286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11293 if test -z "$ac_cpp_err"; then
11294 ac_header_preproc=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ac_header_preproc=no
11302 rm -f conftest.err conftest.$ac_ext
11303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11304 echo "${ECHO_T}$ac_header_preproc" >&6; }
11306 # So? What about this header?
11307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11313 ac_header_preproc=yes
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11329 ## ----------------------------------- ##
11330 ## Report this to llvmbugs@cs.uiuc.edu ##
11331 ## ----------------------------------- ##
11333 ) | sed "s/^/$as_me: WARNING: /" >&2
11336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 eval "$as_ac_Header=\$ac_header_preproc"
11343 ac_res=`eval echo '${'$as_ac_Header'}'`
11344 { echo "$as_me:$LINENO: result: $ac_res" >&5
11345 echo "${ECHO_T}$ac_res" >&6; }
11348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11349 cat >>confdefs.h <<_ACEOF
11350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11361 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 ac_res=`eval echo '${'$as_ac_Header'}'`
11371 { echo "$as_me:$LINENO: result: $ac_res" >&5
11372 echo "${ECHO_T}$ac_res" >&6; }
11374 # Is the header compilable?
11375 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11376 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11384 #include <$ac_header>
11386 rm -f conftest.$ac_objext
11387 if { (ac_try="$ac_compile"
11388 case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393 (eval "$ac_compile") 2>conftest.er1
11395 grep -v '^ *+' conftest.er1 >conftest.err
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11401 { (case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_try") 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try='test -s conftest.$ac_objext'
11411 { (case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_try") 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_header_compiler=yes
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11425 ac_header_compiler=no
11428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11430 echo "${ECHO_T}$ac_header_compiler" >&6; }
11432 # Is the header present?
11433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11435 cat >conftest.$ac_ext <<_ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 #include <$ac_header>
11443 if { (ac_try="$ac_cpp conftest.$ac_ext"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } >/dev/null; then
11456 if test -s conftest.err; then
11457 ac_cpp_err=$ac_c_preproc_warn_flag
11458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11465 if test -z "$ac_cpp_err"; then
11466 ac_header_preproc=yes
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 ac_header_preproc=no
11474 rm -f conftest.err conftest.$ac_ext
11475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11476 echo "${ECHO_T}$ac_header_preproc" >&6; }
11478 # So? What about this header?
11479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11485 ac_header_preproc=yes
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11501 ## ----------------------------------- ##
11502 ## Report this to llvmbugs@cs.uiuc.edu ##
11503 ## ----------------------------------- ##
11505 ) | sed "s/^/$as_me: WARNING: /" >&2
11508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 eval "$as_ac_Header=\$ac_header_preproc"
11515 ac_res=`eval echo '${'$as_ac_Header'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517 echo "${ECHO_T}$ac_res" >&6; }
11520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11521 cat >>confdefs.h <<_ACEOF
11522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11531 for ac_header in string.h strings.h
11533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 ac_res=`eval echo '${'$as_ac_Header'}'`
11541 { echo "$as_me:$LINENO: result: $ac_res" >&5
11542 echo "${ECHO_T}$ac_res" >&6; }
11544 # Is the header compilable?
11545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11546 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11554 #include <$ac_header>
11556 rm -f conftest.$ac_objext
11557 if { (ac_try="$ac_compile"
11558 case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_compile") 2>conftest.er1
11565 grep -v '^ *+' conftest.er1 >conftest.err
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11571 { (case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_try") 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try='test -s conftest.$ac_objext'
11581 { (case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586 (eval "$ac_try") 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 ac_header_compiler=yes
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ac_header_compiler=no
11598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11600 echo "${ECHO_T}$ac_header_compiler" >&6; }
11602 # Is the header present?
11603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11605 cat >conftest.$ac_ext <<_ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 #include <$ac_header>
11613 if { (ac_try="$ac_cpp conftest.$ac_ext"
11614 case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11621 grep -v '^ *+' conftest.er1 >conftest.err
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } >/dev/null; then
11626 if test -s conftest.err; then
11627 ac_cpp_err=$ac_c_preproc_warn_flag
11628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11635 if test -z "$ac_cpp_err"; then
11636 ac_header_preproc=yes
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ac_header_preproc=no
11644 rm -f conftest.err conftest.$ac_ext
11645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11646 echo "${ECHO_T}$ac_header_preproc" >&6; }
11648 # So? What about this header?
11649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11655 ac_header_preproc=yes
11658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11671 ## ----------------------------------- ##
11672 ## Report this to llvmbugs@cs.uiuc.edu ##
11673 ## ----------------------------------- ##
11675 ) | sed "s/^/$as_me: WARNING: /" >&2
11678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 eval "$as_ac_Header=\$ac_header_preproc"
11685 ac_res=`eval echo '${'$as_ac_Header'}'`
11686 { echo "$as_me:$LINENO: result: $ac_res" >&5
11687 echo "${ECHO_T}$ac_res" >&6; }
11690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11691 cat >>confdefs.h <<_ACEOF
11692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11702 for ac_func in strchr index
11704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 cat >conftest.$ac_ext <<_ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11718 #define $ac_func innocuous_$ac_func
11720 /* System header to define __stub macros and hopefully few prototypes,
11721 which can conflict with char $ac_func (); below.
11722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11723 <limits.h> exists even on freestanding compilers. */
11726 # include <limits.h>
11728 # include <assert.h>
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11740 /* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743 #if defined __stub_$ac_func || defined __stub___$ac_func
11750 return $ac_func ();
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (ac_try="$ac_link"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_link") 2>conftest.er1
11764 grep -v '^ *+' conftest.er1 >conftest.err
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11770 { (case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_try") 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest$ac_exeext'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_try") 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 eval "$as_ac_var=yes"
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 eval "$as_ac_var=no"
11797 rm -f core conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
11800 ac_res=`eval echo '${'$as_ac_var'}'`
11801 { echo "$as_me:$LINENO: result: $ac_res" >&5
11802 echo "${ECHO_T}$ac_res" >&6; }
11803 if test `eval echo '${'$as_ac_var'}'` = yes; then
11804 cat >>confdefs.h <<_ACEOF
11805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11813 for ac_func in strrchr rindex
11815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 cat >conftest.$ac_ext <<_ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11829 #define $ac_func innocuous_$ac_func
11831 /* System header to define __stub macros and hopefully few prototypes,
11832 which can conflict with char $ac_func (); below.
11833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834 <limits.h> exists even on freestanding compilers. */
11837 # include <limits.h>
11839 # include <assert.h>
11844 /* Override any GCC internal prototype to avoid an error.
11845 Use char because int might match the return type of a GCC
11846 builtin and then its argument prototype would still apply. */
11851 /* The GNU C library defines this for functions which it implements
11852 to always fail with ENOSYS. Some functions are actually named
11853 something starting with __ and the normal name is an alias. */
11854 #if defined __stub_$ac_func || defined __stub___$ac_func
11861 return $ac_func ();
11866 rm -f conftest.$ac_objext conftest$ac_exeext
11867 if { (ac_try="$ac_link"
11868 case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_link") 2>conftest.er1
11875 grep -v '^ *+' conftest.er1 >conftest.err
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11881 { (case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_try") 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_try") 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 eval "$as_ac_var=yes"
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 eval "$as_ac_var=no"
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11911 ac_res=`eval echo '${'$as_ac_var'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913 echo "${ECHO_T}$ac_res" >&6; }
11914 if test `eval echo '${'$as_ac_var'}'` = yes; then
11915 cat >>confdefs.h <<_ACEOF
11916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11924 for ac_func in memcpy bcopy
11926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 cat >conftest.$ac_ext <<_ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11940 #define $ac_func innocuous_$ac_func
11942 /* System header to define __stub macros and hopefully few prototypes,
11943 which can conflict with char $ac_func (); below.
11944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11945 <limits.h> exists even on freestanding compilers. */
11948 # include <limits.h>
11950 # include <assert.h>
11955 /* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11962 /* The GNU C library defines this for functions which it implements
11963 to always fail with ENOSYS. Some functions are actually named
11964 something starting with __ and the normal name is an alias. */
11965 #if defined __stub_$ac_func || defined __stub___$ac_func
11972 return $ac_func ();
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_link") 2>conftest.er1
11986 grep -v '^ *+' conftest.er1 >conftest.err
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11992 { (case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_try") 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 eval "$as_ac_var=yes"
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 eval "$as_ac_var=no"
12019 rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12022 ac_res=`eval echo '${'$as_ac_var'}'`
12023 { echo "$as_me:$LINENO: result: $ac_res" >&5
12024 echo "${ECHO_T}$ac_res" >&6; }
12025 if test `eval echo '${'$as_ac_var'}'` = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12035 for ac_func in memmove strcmp
12037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12051 #define $ac_func innocuous_$ac_func
12053 /* System header to define __stub macros and hopefully few prototypes,
12054 which can conflict with char $ac_func (); below.
12055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12056 <limits.h> exists even on freestanding compilers. */
12059 # include <limits.h>
12061 # include <assert.h>
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12073 /* The GNU C library defines this for functions which it implements
12074 to always fail with ENOSYS. Some functions are actually named
12075 something starting with __ and the normal name is an alias. */
12076 #if defined __stub_$ac_func || defined __stub___$ac_func
12083 return $ac_func ();
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (ac_try="$ac_link"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_link") 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12103 { (case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_try") 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 eval "$as_ac_var=yes"
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 eval "$as_ac_var=no"
12130 rm -f core conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext
12133 ac_res=`eval echo '${'$as_ac_var'}'`
12134 { echo "$as_me:$LINENO: result: $ac_res" >&5
12135 echo "${ECHO_T}$ac_res" >&6; }
12136 if test `eval echo '${'$as_ac_var'}'` = yes; then
12137 cat >>confdefs.h <<_ACEOF
12138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12147 for ac_func in closedir opendir readdir
12149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12163 #define $ac_func innocuous_$ac_func
12165 /* System header to define __stub macros and hopefully few prototypes,
12166 which can conflict with char $ac_func (); below.
12167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168 <limits.h> exists even on freestanding compilers. */
12171 # include <limits.h>
12173 # include <assert.h>
12178 /* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12185 /* The GNU C library defines this for functions which it implements
12186 to always fail with ENOSYS. Some functions are actually named
12187 something starting with __ and the normal name is an alias. */
12188 #if defined __stub_$ac_func || defined __stub___$ac_func
12195 return $ac_func ();
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 eval "$as_ac_var=yes"
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 eval "$as_ac_var=no"
12242 rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12245 ac_res=`eval echo '${'$as_ac_var'}'`
12246 { echo "$as_me:$LINENO: result: $ac_res" >&5
12247 echo "${ECHO_T}$ac_res" >&6; }
12248 if test `eval echo '${'$as_ac_var'}'` = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12258 if test "$WITH_LLVMGCCDIR" = "default" ; then
12259 LLVMGCC="llvm-gcc${EXEEXT}"
12260 LLVMGXX="llvm-g++${EXEEXT}"
12261 LLVMGCCCOMMAND="$LLVMGCC"
12262 LLVMGXXCOMMAND="$LLVMGXX"
12263 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12265 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12267 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12268 set dummy $LLVMGCC; ac_word=$2
12269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12271 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 LLVMGCC=$ac_cv_path_LLVMGCC
12298 if test -n "$LLVMGCC"; then
12299 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12300 echo "${ECHO_T}$LLVMGCC" >&6; }
12302 { echo "$as_me:$LINENO: result: no" >&5
12303 echo "${ECHO_T}no" >&6; }
12307 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12308 set dummy $LLVMGXX; ac_word=$2
12309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12311 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320 for as_dir in $PATH
12323 test -z "$as_dir" && as_dir=.
12324 for ac_exec_ext in '' $ac_executable_extensions; do
12325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12326 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 LLVMGXX=$ac_cv_path_LLVMGXX
12338 if test -n "$LLVMGXX"; then
12339 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12340 echo "${ECHO_T}$LLVMGXX" >&6; }
12342 { echo "$as_me:$LINENO: result: no" >&5
12343 echo "${ECHO_T}no" >&6; }
12348 if test -z "$LLVMGCC"; then
12349 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12350 LLVMGCCCOMMAND="$LLVMGCC"
12352 if test -z "$LLVMGXX"; then
12353 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12354 LLVMGXXCOMMAND="$LLVMGXX"
12361 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12363 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12368 # Check whether --with-llvmcc was given.
12369 if test "${with_llvmcc+set}" = set; then
12370 withval=$with_llvmcc;
12375 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12376 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12377 if test "$with_llvmcc" != "check"; then
12378 if (test "$with_llvmcc" != "llvm-gcc" &&
12379 test "$with_llvmcc" != "clang" &&
12380 test "$with_llvmcc" != "none"); then
12381 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12382 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12383 { (exit 1); exit 1; }; }
12385 WITH_LLVMCC="$with_llvmcc"
12386 elif test -n "$LLVMGCC"; then
12387 WITH_LLVMCC=llvm-gcc
12388 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12393 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12394 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12395 LLVMCC_OPTION=$WITH_LLVMCC
12398 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12399 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12412 if test "$GCC" != "yes" && test "$ICC" != "yes"
12414 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12415 echo "$as_me: error: gcc|icc required but not found" >&2;}
12416 { (exit 1); exit 1; }; }
12419 if test "$GXX" != "yes" && test "$IXX" != "yes"
12421 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12422 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12423 { (exit 1); exit 1; }; }
12426 if test "$GCC" = "yes"
12428 cat >conftest.$ac_ext <<_ACEOF
12429 #if !defined(__GNUC__) || __GNUC__ < 3
12430 #error Unsupported GCC version
12434 rm -f conftest.$ac_objext
12435 if { (ac_try="$ac_compile"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_compile") 2>conftest.er1
12443 grep -v '^ *+' conftest.er1 >conftest.err
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest.$ac_objext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12474 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12475 { (exit 1); exit 1; }; }
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481 if test -z "$llvm_cv_gnu_make_command"
12483 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12484 echo "$as_me: error: GNU Make required but not found" >&2;}
12485 { (exit 1); exit 1; }; }
12488 { echo "$as_me:$LINENO: result: ok" >&5
12489 echo "${ECHO_T}ok" >&6; }
12491 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12492 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12493 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12495 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12497 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12498 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12502 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12503 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12504 if test "${ac_cv_lib_m_sin+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 ac_check_lib_save_LIBS=$LIBS
12509 cat >conftest.$ac_ext <<_ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12516 /* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12531 rm -f conftest.$ac_objext conftest$ac_exeext
12532 if { (ac_try="$ac_link"
12533 case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_link") 2>conftest.er1
12540 grep -v '^ *+' conftest.er1 >conftest.err
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } &&
12545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12546 { (case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_try") 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest$ac_exeext'
12556 { (case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_try") 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 ac_cv_lib_m_sin=yes
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12573 rm -f core conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12575 LIBS=$ac_check_lib_save_LIBS
12577 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12578 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12579 if test $ac_cv_lib_m_sin = yes; then
12580 cat >>confdefs.h <<_ACEOF
12581 #define HAVE_LIBM 1
12588 if test "$llvm_cv_os_type" = "MingW" ; then
12590 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12591 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12592 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 ac_check_lib_save_LIBS=$LIBS
12596 LIBS="-limagehlp $LIBS"
12597 cat >conftest.$ac_ext <<_ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_link") 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_try") 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 ac_cv_lib_imagehlp_main=yes
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12652 ac_cv_lib_imagehlp_main=no
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12657 LIBS=$ac_check_lib_save_LIBS
12659 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12660 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12661 if test $ac_cv_lib_imagehlp_main = yes; then
12662 cat >>confdefs.h <<_ACEOF
12663 #define HAVE_LIBIMAGEHLP 1
12666 LIBS="-limagehlp $LIBS"
12671 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12672 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12673 if test "${ac_cv_lib_psapi_main+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 ac_check_lib_save_LIBS=$LIBS
12677 LIBS="-lpsapi $LIBS"
12678 cat >conftest.$ac_ext <<_ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (ac_try="$ac_link"
12696 case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_link") 2>conftest.er1
12703 grep -v '^ *+' conftest.er1 >conftest.err
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12709 { (case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_try") 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; } &&
12718 { ac_try='test -s conftest$ac_exeext'
12719 { (case "(($ac_try" in
12720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721 *) ac_try_echo=$ac_try;;
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724 (eval "$ac_try") 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 ac_cv_lib_psapi_main=yes
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 ac_cv_lib_psapi_main=no
12736 rm -f core conftest.err conftest.$ac_objext \
12737 conftest$ac_exeext conftest.$ac_ext
12738 LIBS=$ac_check_lib_save_LIBS
12740 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12741 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12742 if test $ac_cv_lib_psapi_main = yes; then
12743 cat >>confdefs.h <<_ACEOF
12744 #define HAVE_LIBPSAPI 1
12747 LIBS="-lpsapi $LIBS"
12753 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12754 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12755 if test "${ac_cv_search_dlopen+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12758 ac_func_search_save_LIBS=$LIBS
12759 cat >conftest.$ac_ext <<_ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12766 /* Override any GCC internal prototype to avoid an error.
12767 Use char because int might match the return type of a GCC
12768 builtin and then its argument prototype would still apply. */
12781 for ac_lib in '' dl; do
12782 if test -z "$ac_lib"; then
12783 ac_res="none required"
12786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12788 rm -f conftest.$ac_objext conftest$ac_exeext
12789 if { (ac_try="$ac_link"
12790 case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_link") 2>conftest.er1
12797 grep -v '^ *+' conftest.er1 >conftest.err
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; } &&
12812 { ac_try='test -s conftest$ac_exeext'
12813 { (case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_try") 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_search_dlopen=$ac_res
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12830 rm -f core conftest.err conftest.$ac_objext \
12832 if test "${ac_cv_search_dlopen+set}" = set; then
12836 if test "${ac_cv_search_dlopen+set}" = set; then
12839 ac_cv_search_dlopen=no
12841 rm conftest.$ac_ext
12842 LIBS=$ac_func_search_save_LIBS
12844 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12845 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12846 ac_res=$ac_cv_search_dlopen
12847 if test "$ac_res" != no; then
12848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_DLOPEN 1
12855 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12856 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12860 if test "$llvm_cv_enable_libffi" = "yes" ; then
12861 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12862 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12863 if test "${ac_cv_search_ffi_call+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 ac_func_search_save_LIBS=$LIBS
12867 cat >conftest.$ac_ext <<_ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12874 /* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12884 return ffi_call ();
12889 for ac_lib in '' ffi; do
12890 if test -z "$ac_lib"; then
12891 ac_res="none required"
12894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12896 rm -f conftest.$ac_objext conftest$ac_exeext
12897 if { (ac_try="$ac_link"
12898 case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_link") 2>conftest.er1
12905 grep -v '^ *+' conftest.er1 >conftest.err
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12911 { (case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_try") 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12930 ac_cv_search_ffi_call=$ac_res
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12938 rm -f core conftest.err conftest.$ac_objext \
12940 if test "${ac_cv_search_ffi_call+set}" = set; then
12944 if test "${ac_cv_search_ffi_call+set}" = set; then
12947 ac_cv_search_ffi_call=no
12949 rm conftest.$ac_ext
12950 LIBS=$ac_func_search_save_LIBS
12952 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12953 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12954 ac_res=$ac_cv_search_ffi_call
12955 if test "$ac_res" != no; then
12956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12958 cat >>confdefs.h <<\_ACEOF
12959 #define HAVE_FFI_CALL 1
12963 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12964 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12965 { (exit 1); exit 1; }; }
12970 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12971 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12972 if test "${ac_cv_search_mallinfo+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 ac_func_search_save_LIBS=$LIBS
12976 cat >conftest.$ac_ext <<_ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12983 /* Override any GCC internal prototype to avoid an error.
12984 Use char because int might match the return type of a GCC
12985 builtin and then its argument prototype would still apply. */
12993 return mallinfo ();
12998 for ac_lib in '' malloc; do
12999 if test -z "$ac_lib"; then
13000 ac_res="none required"
13003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13005 rm -f conftest.$ac_objext conftest$ac_exeext
13006 if { (ac_try="$ac_link"
13007 case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_link") 2>conftest.er1
13014 grep -v '^ *+' conftest.er1 >conftest.err
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13020 { (case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_try") 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; } &&
13029 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13039 ac_cv_search_mallinfo=$ac_res
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13047 rm -f core conftest.err conftest.$ac_objext \
13049 if test "${ac_cv_search_mallinfo+set}" = set; then
13053 if test "${ac_cv_search_mallinfo+set}" = set; then
13056 ac_cv_search_mallinfo=no
13058 rm conftest.$ac_ext
13059 LIBS=$ac_func_search_save_LIBS
13061 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13062 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13063 ac_res=$ac_cv_search_mallinfo
13064 if test "$ac_res" != no; then
13065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13067 cat >>confdefs.h <<\_ACEOF
13068 #define HAVE_MALLINFO 1
13074 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13076 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13077 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13078 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 ac_check_lib_save_LIBS=$LIBS
13082 LIBS="-lpthread $LIBS"
13083 cat >conftest.$ac_ext <<_ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13090 /* Override any GCC internal prototype to avoid an error.
13091 Use char because int might match the return type of a GCC
13092 builtin and then its argument prototype would still apply. */
13096 char pthread_mutex_init ();
13100 return pthread_mutex_init ();
13105 rm -f conftest.$ac_objext conftest$ac_exeext
13106 if { (ac_try="$ac_link"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_link") 2>conftest.er1
13114 grep -v '^ *+' conftest.er1 >conftest.err
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13120 { (case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13139 ac_cv_lib_pthread_pthread_mutex_init=yes
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13144 ac_cv_lib_pthread_pthread_mutex_init=no
13147 rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext conftest.$ac_ext
13149 LIBS=$ac_check_lib_save_LIBS
13151 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13152 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13153 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13154 cat >>confdefs.h <<_ACEOF
13155 #define HAVE_LIBPTHREAD 1
13158 LIBS="-lpthread $LIBS"
13162 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13163 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13164 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 ac_func_search_save_LIBS=$LIBS
13168 cat >conftest.$ac_ext <<_ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13175 /* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
13181 char pthread_mutex_lock ();
13185 return pthread_mutex_lock ();
13190 for ac_lib in '' pthread; do
13191 if test -z "$ac_lib"; then
13192 ac_res="none required"
13195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (ac_try="$ac_link"
13199 case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_link") 2>conftest.er1
13206 grep -v '^ *+' conftest.er1 >conftest.err
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13212 { (case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_try") 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; } &&
13221 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13231 ac_cv_search_pthread_mutex_lock=$ac_res
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13239 rm -f core conftest.err conftest.$ac_objext \
13241 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13245 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13248 ac_cv_search_pthread_mutex_lock=no
13250 rm conftest.$ac_ext
13251 LIBS=$ac_func_search_save_LIBS
13253 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13254 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13255 ac_res=$ac_cv_search_pthread_mutex_lock
13256 if test "$ac_res" != no; then
13257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13259 cat >>confdefs.h <<\_ACEOF
13260 #define HAVE_PTHREAD_MUTEX_LOCK 1
13265 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13266 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13267 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 ac_func_search_save_LIBS=$LIBS
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13284 char pthread_rwlock_init ();
13288 return pthread_rwlock_init ();
13293 for ac_lib in '' pthread; do
13294 if test -z "$ac_lib"; then
13295 ac_res="none required"
13298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13300 rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (ac_try="$ac_link"
13302 case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_link") 2>conftest.er1
13309 grep -v '^ *+' conftest.er1 >conftest.err
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } &&
13324 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13334 ac_cv_search_pthread_rwlock_init=$ac_res
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13342 rm -f core conftest.err conftest.$ac_objext \
13344 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13348 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13351 ac_cv_search_pthread_rwlock_init=no
13353 rm conftest.$ac_ext
13354 LIBS=$ac_func_search_save_LIBS
13356 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13357 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13358 ac_res=$ac_cv_search_pthread_rwlock_init
13359 if test "$ac_res" != no; then
13360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13362 cat >>confdefs.h <<\_ACEOF
13363 #define HAVE_PTHREAD_RWLOCK_INIT 1
13368 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13369 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13370 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 ac_func_search_save_LIBS=$LIBS
13374 cat >conftest.$ac_ext <<_ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13381 /* Override any GCC internal prototype to avoid an error.
13382 Use char because int might match the return type of a GCC
13383 builtin and then its argument prototype would still apply. */
13387 char pthread_getspecific ();
13391 return pthread_getspecific ();
13396 for ac_lib in '' pthread; do
13397 if test -z "$ac_lib"; then
13398 ac_res="none required"
13401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>conftest.er1
13412 grep -v '^ *+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
13417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; } &&
13427 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13437 ac_cv_search_pthread_getspecific=$ac_res
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13445 rm -f core conftest.err conftest.$ac_objext \
13447 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13451 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13454 ac_cv_search_pthread_getspecific=no
13456 rm conftest.$ac_ext
13457 LIBS=$ac_func_search_save_LIBS
13459 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13460 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13461 ac_res=$ac_cv_search_pthread_getspecific
13462 if test "$ac_res" != no; then
13463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13465 cat >>confdefs.h <<\_ACEOF
13466 #define HAVE_PTHREAD_GETSPECIFIC 1
13474 # Check whether --with-udis86 was given.
13475 if test "${with_udis86+set}" = set; then
13476 withval=$with_udis86;
13481 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13484 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13485 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13486 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 ac_check_lib_save_LIBS=$LIBS
13490 LIBS="-ludis86 $LIBS"
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_link") 2>conftest.er1
13522 grep -v '^ *+' conftest.er1 >conftest.err
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13528 { (case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest$ac_exeext'
13538 { (case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_try") 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_cv_lib_udis86_ud_init=yes
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13552 ac_cv_lib_udis86_ud_init=no
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13559 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13560 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13561 if test $ac_cv_lib_udis86_ud_init = yes; then
13562 cat >>confdefs.h <<_ACEOF
13563 #define HAVE_LIBUDIS86 1
13566 LIBS="-ludis86 $LIBS"
13570 echo "Error! You need to have libudis86 around."
13582 cat >>confdefs.h <<_ACEOF
13583 #define USE_UDIS86 $USE_UDIS86
13588 # Check whether --with-oprofile was given.
13589 if test "${with_oprofile+set}" = set; then
13590 withval=$with_oprofile;
13594 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13595 no) llvm_cv_oppath=
13598 *) llvm_cv_oppath="${withval}/lib/oprofile"
13599 CPPFLAGS="-I${withval}/include";;
13601 if test -n "$llvm_cv_oppath" ; then
13602 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13603 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13604 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13605 if test "${ac_cv_search_bfd_init+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 ac_func_search_save_LIBS=$LIBS
13609 cat >conftest.$ac_ext <<_ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13626 return bfd_init ();
13631 for ac_lib in '' bfd; do
13632 if test -z "$ac_lib"; then
13633 ac_res="none required"
13636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_link") 2>conftest.er1
13647 grep -v '^ *+' conftest.er1 >conftest.err
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13653 { (case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_try") 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; } &&
13662 { ac_try='test -s conftest$ac_exeext'
13663 { (case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_try") 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_cv_search_bfd_init=$ac_res
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13680 rm -f core conftest.err conftest.$ac_objext \
13682 if test "${ac_cv_search_bfd_init+set}" = set; then
13686 if test "${ac_cv_search_bfd_init+set}" = set; then
13689 ac_cv_search_bfd_init=no
13691 rm conftest.$ac_ext
13692 LIBS=$ac_func_search_save_LIBS
13694 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13695 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13696 ac_res=$ac_cv_search_bfd_init
13697 if test "$ac_res" != no; then
13698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13702 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13703 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13704 if test "${ac_cv_search_op_open_agent+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 ac_func_search_save_LIBS=$LIBS
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13715 /* Override any GCC internal prototype to avoid an error.
13716 Use char because int might match the return type of a GCC
13717 builtin and then its argument prototype would still apply. */
13721 char op_open_agent ();
13725 return op_open_agent ();
13730 for ac_lib in '' opagent; do
13731 if test -z "$ac_lib"; then
13732 ac_res="none required"
13735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13737 rm -f conftest.$ac_objext conftest$ac_exeext
13738 if { (ac_try="$ac_link"
13739 case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_link") 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest$ac_exeext'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
13771 ac_cv_search_op_open_agent=$ac_res
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13779 rm -f core conftest.err conftest.$ac_objext \
13781 if test "${ac_cv_search_op_open_agent+set}" = set; then
13785 if test "${ac_cv_search_op_open_agent+set}" = set; then
13788 ac_cv_search_op_open_agent=no
13790 rm conftest.$ac_ext
13791 LIBS=$ac_func_search_save_LIBS
13793 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13794 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13795 ac_res=$ac_cv_search_op_open_agent
13796 if test "$ac_res" != no; then
13797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13801 echo "Error! You need to have libopagent around."
13806 if test "${ac_cv_header_opagent_h+set}" = set; then
13807 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13808 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13809 if test "${ac_cv_header_opagent_h+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13813 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13815 # Is the header compilable?
13816 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13817 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13818 cat >conftest.$ac_ext <<_ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13824 $ac_includes_default
13825 #include <opagent.h>
13827 rm -f conftest.$ac_objext
13828 if { (ac_try="$ac_compile"
13829 case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_compile") 2>conftest.er1
13836 grep -v '^ *+' conftest.er1 >conftest.err
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13842 { (case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_try") 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest.$ac_objext'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_header_compiler=yes
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 ac_header_compiler=no
13869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13871 echo "${ECHO_T}$ac_header_compiler" >&6; }
13873 # Is the header present?
13874 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13875 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13876 cat >conftest.$ac_ext <<_ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 #include <opagent.h>
13884 if { (ac_try="$ac_cpp conftest.$ac_ext"
13885 case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13892 grep -v '^ *+' conftest.er1 >conftest.err
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } >/dev/null; then
13897 if test -s conftest.err; then
13898 ac_cpp_err=$ac_c_preproc_warn_flag
13899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13906 if test -z "$ac_cpp_err"; then
13907 ac_header_preproc=yes
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 ac_header_preproc=no
13915 rm -f conftest.err conftest.$ac_ext
13916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13917 echo "${ECHO_T}$ac_header_preproc" >&6; }
13919 # So? What about this header?
13920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13922 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13923 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13924 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13925 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13926 ac_header_preproc=yes
13929 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13930 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13932 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13934 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13936 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13938 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13939 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13940 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13942 ## ----------------------------------- ##
13943 ## Report this to llvmbugs@cs.uiuc.edu ##
13944 ## ----------------------------------- ##
13946 ) | sed "s/^/$as_me: WARNING: /" >&2
13949 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13950 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13951 if test "${ac_cv_header_opagent_h+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 ac_cv_header_opagent_h=$ac_header_preproc
13956 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13957 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13960 if test $ac_cv_header_opagent_h = yes; then
13964 echo "Error! You need to have opagent.h around."
13980 cat >>confdefs.h <<_ACEOF
13981 #define USE_OPROFILE $USE_OPROFILE
13991 ac_header_dirent=no
13992 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13993 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13994 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13995 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 cat >conftest.$ac_ext <<_ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 #include <sys/types.h>
14017 rm -f conftest.$ac_objext
14018 if { (ac_try="$ac_compile"
14019 case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_compile") 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032 { (case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_try") 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } &&
14041 { ac_try='test -s conftest.$ac_objext'
14042 { (case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_try") 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 eval "$as_ac_Header=yes"
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14056 eval "$as_ac_Header=no"
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 ac_res=`eval echo '${'$as_ac_Header'}'`
14062 { echo "$as_me:$LINENO: result: $ac_res" >&5
14063 echo "${ECHO_T}$ac_res" >&6; }
14064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14065 cat >>confdefs.h <<_ACEOF
14066 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14069 ac_header_dirent=$ac_hdr; break
14073 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14074 if test $ac_header_dirent = dirent.h; then
14075 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14076 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14077 if test "${ac_cv_search_opendir+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 ac_func_search_save_LIBS=$LIBS
14081 cat >conftest.$ac_ext <<_ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14088 /* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
14103 for ac_lib in '' dir; do
14104 if test -z "$ac_lib"; then
14105 ac_res="none required"
14108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14110 rm -f conftest.$ac_objext conftest$ac_exeext
14111 if { (ac_try="$ac_link"
14112 case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_link") 2>conftest.er1
14119 grep -v '^ *+' conftest.er1 >conftest.err
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest$ac_exeext'
14135 { (case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_try") 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 ac_cv_search_opendir=$ac_res
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14152 rm -f core conftest.err conftest.$ac_objext \
14154 if test "${ac_cv_search_opendir+set}" = set; then
14158 if test "${ac_cv_search_opendir+set}" = set; then
14161 ac_cv_search_opendir=no
14163 rm conftest.$ac_ext
14164 LIBS=$ac_func_search_save_LIBS
14166 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14167 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14168 ac_res=$ac_cv_search_opendir
14169 if test "$ac_res" != no; then
14170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14175 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14176 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14177 if test "${ac_cv_search_opendir+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 ac_func_search_save_LIBS=$LIBS
14181 cat >conftest.$ac_ext <<_ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14188 /* Override any GCC internal prototype to avoid an error.
14189 Use char because int might match the return type of a GCC
14190 builtin and then its argument prototype would still apply. */
14203 for ac_lib in '' x; do
14204 if test -z "$ac_lib"; then
14205 ac_res="none required"
14208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14210 rm -f conftest.$ac_objext conftest$ac_exeext
14211 if { (ac_try="$ac_link"
14212 case "(($ac_try" in
14213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_link") 2>conftest.er1
14219 grep -v '^ *+' conftest.er1 >conftest.err
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14225 { (case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_try") 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; } &&
14234 { ac_try='test -s conftest$ac_exeext'
14235 { (case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_try") 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_search_opendir=$ac_res
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14252 rm -f core conftest.err conftest.$ac_objext \
14254 if test "${ac_cv_search_opendir+set}" = set; then
14258 if test "${ac_cv_search_opendir+set}" = set; then
14261 ac_cv_search_opendir=no
14263 rm conftest.$ac_ext
14264 LIBS=$ac_func_search_save_LIBS
14266 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14267 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14268 ac_res=$ac_cv_search_opendir
14269 if test "$ac_res" != no; then
14270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14276 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14277 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14278 if test "${ac_cv_header_mmap_anon+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 ac_cpp='$CPP $CPPFLAGS'
14283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 #include <sys/mman.h>
14294 #include <unistd.h>
14299 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14304 rm -f conftest.$ac_objext
14305 if { (ac_try="$ac_compile"
14306 case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_compile") 2>conftest.er1
14313 grep -v '^ *+' conftest.er1 >conftest.err
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14319 { (case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_try") 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_try") 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 ac_cv_header_mmap_anon=yes
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 ac_cv_header_mmap_anon=no
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348 ac_cpp='$CPP $CPPFLAGS'
14349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14355 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14356 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14357 if test "$ac_cv_header_mmap_anon" = yes; then
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_MMAP_ANONYMOUS 1
14365 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14366 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14367 if test "${ac_cv_header_stat_broken+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 cat >conftest.$ac_ext <<_ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 #include <sys/types.h>
14377 #include <sys/stat.h>
14379 #if defined S_ISBLK && defined S_IFDIR
14380 # if S_ISBLK (S_IFDIR)
14385 #if defined S_ISBLK && defined S_IFCHR
14386 # if S_ISBLK (S_IFCHR)
14391 #if defined S_ISLNK && defined S_IFREG
14392 # if S_ISLNK (S_IFREG)
14397 #if defined S_ISSOCK && defined S_IFREG
14398 # if S_ISSOCK (S_IFREG)
14404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14405 $EGREP "You lose" >/dev/null 2>&1; then
14406 ac_cv_header_stat_broken=yes
14408 ac_cv_header_stat_broken=no
14413 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14414 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14415 if test $ac_cv_header_stat_broken = yes; then
14417 cat >>confdefs.h <<\_ACEOF
14418 #define STAT_MACROS_BROKEN 1
14423 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14424 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14425 if test "${ac_cv_header_stdc+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 cat >conftest.$ac_ext <<_ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14434 #include <stdlib.h>
14435 #include <stdarg.h>
14436 #include <string.h>
14447 rm -f conftest.$ac_objext
14448 if { (ac_try="$ac_compile"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_compile") 2>conftest.er1
14456 grep -v '^ *+' conftest.er1 >conftest.err
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14462 { (case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_try") 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; } &&
14471 { ac_try='test -s conftest.$ac_objext'
14472 { (case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_try") 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_cv_header_stdc=yes
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_cv_header_stdc=no
14489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 if test $ac_cv_header_stdc = yes; then
14492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14493 cat >conftest.$ac_ext <<_ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 #include <string.h>
14502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14503 $EGREP "memchr" >/dev/null 2>&1; then
14506 ac_cv_header_stdc=no
14512 if test $ac_cv_header_stdc = yes; then
14513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <stdlib.h>
14523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14524 $EGREP "free" >/dev/null 2>&1; then
14527 ac_cv_header_stdc=no
14533 if test $ac_cv_header_stdc = yes; then
14534 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14535 if test "$cross_compiling" = yes; then
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14545 #include <stdlib.h>
14546 #if ((' ' & 0x0FF) == 0x020)
14547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14550 # define ISLOWER(c) \
14551 (('a' <= (c) && (c) <= 'i') \
14552 || ('j' <= (c) && (c) <= 'r') \
14553 || ('s' <= (c) && (c) <= 'z'))
14554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14562 for (i = 0; i < 256; i++)
14563 if (XOR (islower (i), ISLOWER (i))
14564 || toupper (i) != TOUPPER (i))
14569 rm -f conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_link") 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14591 echo "$as_me: program exited with status $ac_status" >&5
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ( exit $ac_status )
14596 ac_cv_header_stdc=no
14598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14604 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14605 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14606 if test $ac_cv_header_stdc = yes; then
14608 cat >>confdefs.h <<\_ACEOF
14609 #define STDC_HEADERS 1
14614 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14615 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14616 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 cat >conftest.$ac_ext <<_ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h. */
14625 #include <sys/types.h>
14626 #include <sys/wait.h>
14627 #ifndef WEXITSTATUS
14628 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14631 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14639 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14644 rm -f conftest.$ac_objext
14645 if { (ac_try="$ac_compile"
14646 case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_compile") 2>conftest.er1
14653 grep -v '^ *+' conftest.er1 >conftest.err
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14659 { (case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_try") 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_try") 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_cv_header_sys_wait_h=yes
14680 echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 ac_cv_header_sys_wait_h=no
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14689 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14690 if test $ac_cv_header_sys_wait_h = yes; then
14692 cat >>confdefs.h <<\_ACEOF
14693 #define HAVE_SYS_WAIT_H 1
14698 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14699 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14700 if test "${ac_cv_header_time+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 cat >conftest.$ac_ext <<_ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 #include <sys/types.h>
14710 #include <sys/time.h>
14716 if ((struct tm *) 0)
14722 rm -f conftest.$ac_objext
14723 if { (ac_try="$ac_compile"
14724 case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_compile") 2>conftest.er1
14731 grep -v '^ *+' conftest.er1 >conftest.err
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_try") 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest.$ac_objext'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 ac_cv_header_time=yes
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14761 ac_cv_header_time=no
14764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14767 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14768 if test $ac_cv_header_time = yes; then
14770 cat >>confdefs.h <<\_ACEOF
14771 #define TIME_WITH_SYS_TIME 1
14783 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793 { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14796 # Is the header compilable?
14797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14799 cat >conftest.$ac_ext <<_ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 $ac_includes_default
14806 #include <$ac_header>
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14817 grep -v '^ *+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest.$ac_objext'
14833 { (case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_try") 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_header_compiler=yes
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14847 ac_header_compiler=no
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14852 echo "${ECHO_T}$ac_header_compiler" >&6; }
14854 # Is the header present?
14855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 #include <$ac_header>
14865 if { (ac_try="$ac_cpp conftest.$ac_ext"
14866 case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14873 grep -v '^ *+' conftest.er1 >conftest.err
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } >/dev/null; then
14878 if test -s conftest.err; then
14879 ac_cpp_err=$ac_c_preproc_warn_flag
14880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14887 if test -z "$ac_cpp_err"; then
14888 ac_header_preproc=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_header_preproc=no
14896 rm -f conftest.err conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14898 echo "${ECHO_T}$ac_header_preproc" >&6; }
14900 # So? What about this header?
14901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14907 ac_header_preproc=yes
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14923 ## ----------------------------------- ##
14924 ## Report this to llvmbugs@cs.uiuc.edu ##
14925 ## ----------------------------------- ##
14927 ) | sed "s/^/$as_me: WARNING: /" >&2
14930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 eval "$as_ac_Header=\$ac_header_preproc"
14937 ac_res=`eval echo '${'$as_ac_Header'}'`
14938 { echo "$as_me:$LINENO: result: $ac_res" >&5
14939 echo "${ECHO_T}$ac_res" >&6; }
14942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14943 cat >>confdefs.h <<_ACEOF
14944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14957 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 ac_res=`eval echo '${'$as_ac_Header'}'`
14967 { echo "$as_me:$LINENO: result: $ac_res" >&5
14968 echo "${ECHO_T}$ac_res" >&6; }
14970 # Is the header compilable?
14971 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14973 cat >conftest.$ac_ext <<_ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h. */
14979 $ac_includes_default
14980 #include <$ac_header>
14982 rm -f conftest.$ac_objext
14983 if { (ac_try="$ac_compile"
14984 case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_compile") 2>conftest.er1
14991 grep -v '^ *+' conftest.er1 >conftest.err
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14997 { (case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_try") 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest.$ac_objext'
15007 { (case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_try") 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15016 ac_header_compiler=yes
15018 echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15021 ac_header_compiler=no
15024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15026 echo "${ECHO_T}$ac_header_compiler" >&6; }
15028 # Is the header present?
15029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15031 cat >conftest.$ac_ext <<_ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 #include <$ac_header>
15039 if { (ac_try="$ac_cpp conftest.$ac_ext"
15040 case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15047 grep -v '^ *+' conftest.er1 >conftest.err
15049 cat conftest.err >&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } >/dev/null; then
15052 if test -s conftest.err; then
15053 ac_cpp_err=$ac_c_preproc_warn_flag
15054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15061 if test -z "$ac_cpp_err"; then
15062 ac_header_preproc=yes
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_header_preproc=no
15070 rm -f conftest.err conftest.$ac_ext
15071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15072 echo "${ECHO_T}$ac_header_preproc" >&6; }
15074 # So? What about this header?
15075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15081 ac_header_preproc=yes
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15097 ## ----------------------------------- ##
15098 ## Report this to llvmbugs@cs.uiuc.edu ##
15099 ## ----------------------------------- ##
15101 ) | sed "s/^/$as_me: WARNING: /" >&2
15104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 eval "$as_ac_Header=\$ac_header_preproc"
15111 ac_res=`eval echo '${'$as_ac_Header'}'`
15112 { echo "$as_me:$LINENO: result: $ac_res" >&5
15113 echo "${ECHO_T}$ac_res" >&6; }
15116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15117 cat >>confdefs.h <<_ACEOF
15118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15127 for ac_header in utime.h windows.h
15129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 ac_res=`eval echo '${'$as_ac_Header'}'`
15137 { echo "$as_me:$LINENO: result: $ac_res" >&5
15138 echo "${ECHO_T}$ac_res" >&6; }
15140 # Is the header compilable?
15141 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15143 cat >conftest.$ac_ext <<_ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 $ac_includes_default
15150 #include <$ac_header>
15152 rm -f conftest.$ac_objext
15153 if { (ac_try="$ac_compile"
15154 case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_compile") 2>conftest.er1
15161 grep -v '^ *+' conftest.er1 >conftest.err
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15167 { (case "(($ac_try" in
15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_try") 2>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; } &&
15176 { ac_try='test -s conftest.$ac_objext'
15177 { (case "(($ac_try" in
15178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179 *) ac_try_echo=$ac_try;;
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182 (eval "$ac_try") 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 ac_header_compiler=yes
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15191 ac_header_compiler=no
15194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15196 echo "${ECHO_T}$ac_header_compiler" >&6; }
15198 # Is the header present?
15199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15201 cat >conftest.$ac_ext <<_ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 #include <$ac_header>
15209 if { (ac_try="$ac_cpp conftest.$ac_ext"
15210 case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15217 grep -v '^ *+' conftest.er1 >conftest.err
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } >/dev/null; then
15222 if test -s conftest.err; then
15223 ac_cpp_err=$ac_c_preproc_warn_flag
15224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15231 if test -z "$ac_cpp_err"; then
15232 ac_header_preproc=yes
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_header_preproc=no
15240 rm -f conftest.err conftest.$ac_ext
15241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15242 echo "${ECHO_T}$ac_header_preproc" >&6; }
15244 # So? What about this header?
15245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15251 ac_header_preproc=yes
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15267 ## ----------------------------------- ##
15268 ## Report this to llvmbugs@cs.uiuc.edu ##
15269 ## ----------------------------------- ##
15271 ) | sed "s/^/$as_me: WARNING: /" >&2
15274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 eval "$as_ac_Header=\$ac_header_preproc"
15281 ac_res=`eval echo '${'$as_ac_Header'}'`
15282 { echo "$as_me:$LINENO: result: $ac_res" >&5
15283 echo "${ECHO_T}$ac_res" >&6; }
15286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15287 cat >>confdefs.h <<_ACEOF
15288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15300 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 ac_res=`eval echo '${'$as_ac_Header'}'`
15310 { echo "$as_me:$LINENO: result: $ac_res" >&5
15311 echo "${ECHO_T}$ac_res" >&6; }
15313 # Is the header compilable?
15314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15316 cat >conftest.$ac_ext <<_ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 $ac_includes_default
15323 #include <$ac_header>
15325 rm -f conftest.$ac_objext
15326 if { (ac_try="$ac_compile"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_compile") 2>conftest.er1
15334 grep -v '^ *+' conftest.er1 >conftest.err
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15340 { (case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_try") 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try='test -s conftest.$ac_objext'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 ac_header_compiler=yes
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_header_compiler=no
15367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15369 echo "${ECHO_T}$ac_header_compiler" >&6; }
15371 # Is the header present?
15372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15374 cat >conftest.$ac_ext <<_ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15380 #include <$ac_header>
15382 if { (ac_try="$ac_cpp conftest.$ac_ext"
15383 case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15390 grep -v '^ *+' conftest.er1 >conftest.err
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } >/dev/null; then
15395 if test -s conftest.err; then
15396 ac_cpp_err=$ac_c_preproc_warn_flag
15397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15404 if test -z "$ac_cpp_err"; then
15405 ac_header_preproc=yes
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15410 ac_header_preproc=no
15413 rm -f conftest.err conftest.$ac_ext
15414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15415 echo "${ECHO_T}$ac_header_preproc" >&6; }
15417 # So? What about this header?
15418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15424 ac_header_preproc=yes
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15440 ## ----------------------------------- ##
15441 ## Report this to llvmbugs@cs.uiuc.edu ##
15442 ## ----------------------------------- ##
15444 ) | sed "s/^/$as_me: WARNING: /" >&2
15447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 eval "$as_ac_Header=\$ac_header_preproc"
15454 ac_res=`eval echo '${'$as_ac_Header'}'`
15455 { echo "$as_me:$LINENO: result: $ac_res" >&5
15456 echo "${ECHO_T}$ac_res" >&6; }
15459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15460 cat >>confdefs.h <<_ACEOF
15461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15472 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 ac_res=`eval echo '${'$as_ac_Header'}'`
15482 { echo "$as_me:$LINENO: result: $ac_res" >&5
15483 echo "${ECHO_T}$ac_res" >&6; }
15485 # Is the header compilable?
15486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15488 cat >conftest.$ac_ext <<_ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 $ac_includes_default
15495 #include <$ac_header>
15497 rm -f conftest.$ac_objext
15498 if { (ac_try="$ac_compile"
15499 case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_compile") 2>conftest.er1
15506 grep -v '^ *+' conftest.er1 >conftest.err
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest.$ac_objext'
15522 { (case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_try") 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_header_compiler=yes
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ac_header_compiler=no
15539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15541 echo "${ECHO_T}$ac_header_compiler" >&6; }
15543 # Is the header present?
15544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 #include <$ac_header>
15554 if { (ac_try="$ac_cpp conftest.$ac_ext"
15555 case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null; then
15567 if test -s conftest.err; then
15568 ac_cpp_err=$ac_c_preproc_warn_flag
15569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15576 if test -z "$ac_cpp_err"; then
15577 ac_header_preproc=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_preproc=no
15585 rm -f conftest.err conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587 echo "${ECHO_T}$ac_header_preproc" >&6; }
15589 # So? What about this header?
15590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596 ac_header_preproc=yes
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15612 ## ----------------------------------- ##
15613 ## Report this to llvmbugs@cs.uiuc.edu ##
15614 ## ----------------------------------- ##
15616 ) | sed "s/^/$as_me: WARNING: /" >&2
15619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 eval "$as_ac_Header=\$ac_header_preproc"
15626 ac_res=`eval echo '${'$as_ac_Header'}'`
15627 { echo "$as_me:$LINENO: result: $ac_res" >&5
15628 echo "${ECHO_T}$ac_res" >&6; }
15631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15632 cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15641 for ac_header in valgrind/valgrind.h
15643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 ac_res=`eval echo '${'$as_ac_Header'}'`
15651 { echo "$as_me:$LINENO: result: $ac_res" >&5
15652 echo "${ECHO_T}$ac_res" >&6; }
15654 # Is the header compilable?
15655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15657 cat >conftest.$ac_ext <<_ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 $ac_includes_default
15664 #include <$ac_header>
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_compile") 2>conftest.er1
15675 grep -v '^ *+' conftest.er1 >conftest.err
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15681 { (case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_try") 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
15691 { (case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_try") 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_header_compiler=yes
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_header_compiler=no
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15710 echo "${ECHO_T}$ac_header_compiler" >&6; }
15712 # Is the header present?
15713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 #include <$ac_header>
15723 if { (ac_try="$ac_cpp conftest.$ac_ext"
15724 case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15731 grep -v '^ *+' conftest.er1 >conftest.err
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } >/dev/null; then
15736 if test -s conftest.err; then
15737 ac_cpp_err=$ac_c_preproc_warn_flag
15738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15745 if test -z "$ac_cpp_err"; then
15746 ac_header_preproc=yes
15748 echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15751 ac_header_preproc=no
15754 rm -f conftest.err conftest.$ac_ext
15755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15756 echo "${ECHO_T}$ac_header_preproc" >&6; }
15758 # So? What about this header?
15759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15765 ac_header_preproc=yes
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15781 ## ----------------------------------- ##
15782 ## Report this to llvmbugs@cs.uiuc.edu ##
15783 ## ----------------------------------- ##
15785 ) | sed "s/^/$as_me: WARNING: /" >&2
15788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 eval "$as_ac_Header=\$ac_header_preproc"
15795 ac_res=`eval echo '${'$as_ac_Header'}'`
15796 { echo "$as_me:$LINENO: result: $ac_res" >&5
15797 echo "${ECHO_T}$ac_res" >&6; }
15800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15801 cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15810 for ac_header in fenv.h
15812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15823 # Is the header compilable?
15824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15826 cat >conftest.$ac_ext <<_ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 $ac_includes_default
15833 #include <$ac_header>
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_compile") 2>conftest.er1
15844 grep -v '^ *+' conftest.er1 >conftest.err
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try='test -s conftest.$ac_objext'
15860 { (case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_try") 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_header_compiler=yes
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_header_compiler=no
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15879 echo "${ECHO_T}$ac_header_compiler" >&6; }
15881 # Is the header present?
15882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15884 cat >conftest.$ac_ext <<_ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 #include <$ac_header>
15892 if { (ac_try="$ac_cpp conftest.$ac_ext"
15893 case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15900 grep -v '^ *+' conftest.er1 >conftest.err
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } >/dev/null; then
15905 if test -s conftest.err; then
15906 ac_cpp_err=$ac_c_preproc_warn_flag
15907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15914 if test -z "$ac_cpp_err"; then
15915 ac_header_preproc=yes
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_header_preproc=no
15923 rm -f conftest.err conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925 echo "${ECHO_T}$ac_header_preproc" >&6; }
15927 # So? What about this header?
15928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934 ac_header_preproc=yes
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15950 ## ----------------------------------- ##
15951 ## Report this to llvmbugs@cs.uiuc.edu ##
15952 ## ----------------------------------- ##
15954 ) | sed "s/^/$as_me: WARNING: /" >&2
15957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 eval "$as_ac_Header=\$ac_header_preproc"
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15970 cat >>confdefs.h <<_ACEOF
15971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15978 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15980 for ac_header in pthread.h
15982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 ac_res=`eval echo '${'$as_ac_Header'}'`
15990 { echo "$as_me:$LINENO: result: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15993 # Is the header compilable?
15994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15996 cat >conftest.$ac_ext <<_ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16002 $ac_includes_default
16003 #include <$ac_header>
16005 rm -f conftest.$ac_objext
16006 if { (ac_try="$ac_compile"
16007 case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_compile") 2>conftest.er1
16014 grep -v '^ *+' conftest.er1 >conftest.err
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_try") 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_header_compiler=yes
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 ac_header_compiler=no
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6; }
16051 # Is the header present?
16052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16054 cat >conftest.$ac_ext <<_ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <$ac_header>
16062 if { (ac_try="$ac_cpp conftest.$ac_ext"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16070 grep -v '^ *+' conftest.er1 >conftest.err
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } >/dev/null; then
16075 if test -s conftest.err; then
16076 ac_cpp_err=$ac_c_preproc_warn_flag
16077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16084 if test -z "$ac_cpp_err"; then
16085 ac_header_preproc=yes
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 ac_header_preproc=no
16093 rm -f conftest.err conftest.$ac_ext
16094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6; }
16097 # So? What about this header?
16098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104 ac_header_preproc=yes
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16120 ## ----------------------------------- ##
16121 ## Report this to llvmbugs@cs.uiuc.edu ##
16122 ## ----------------------------------- ##
16124 ) | sed "s/^/$as_me: WARNING: /" >&2
16127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16132 eval "$as_ac_Header=\$ac_header_preproc"
16134 ac_res=`eval echo '${'$as_ac_Header'}'`
16135 { echo "$as_me:$LINENO: result: $ac_res" >&5
16136 echo "${ECHO_T}$ac_res" >&6; }
16139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16140 cat >>confdefs.h <<_ACEOF
16141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16157 if test "$llvm_cv_enable_libffi" = "yes" ; then
16160 for ac_header in ffi.h ffi/ffi.h
16162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 ac_res=`eval echo '${'$as_ac_Header'}'`
16170 { echo "$as_me:$LINENO: result: $ac_res" >&5
16171 echo "${ECHO_T}$ac_res" >&6; }
16173 # Is the header compilable?
16174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16176 cat >conftest.$ac_ext <<_ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 $ac_includes_default
16183 #include <$ac_header>
16185 rm -f conftest.$ac_objext
16186 if { (ac_try="$ac_compile"
16187 case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_compile") 2>conftest.er1
16194 grep -v '^ *+' conftest.er1 >conftest.err
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16200 { (case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_try") 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_try") 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_header_compiler=yes
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 ac_header_compiler=no
16227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16229 echo "${ECHO_T}$ac_header_compiler" >&6; }
16231 # Is the header present?
16232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16234 cat >conftest.$ac_ext <<_ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16240 #include <$ac_header>
16242 if { (ac_try="$ac_cpp conftest.$ac_ext"
16243 case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16250 grep -v '^ *+' conftest.er1 >conftest.err
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } >/dev/null; then
16255 if test -s conftest.err; then
16256 ac_cpp_err=$ac_c_preproc_warn_flag
16257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16264 if test -z "$ac_cpp_err"; then
16265 ac_header_preproc=yes
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16270 ac_header_preproc=no
16273 rm -f conftest.err conftest.$ac_ext
16274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16275 echo "${ECHO_T}$ac_header_preproc" >&6; }
16277 # So? What about this header?
16278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16284 ac_header_preproc=yes
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16300 ## ----------------------------------- ##
16301 ## Report this to llvmbugs@cs.uiuc.edu ##
16302 ## ----------------------------------- ##
16304 ) | sed "s/^/$as_me: WARNING: /" >&2
16307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 eval "$as_ac_Header=\$ac_header_preproc"
16314 ac_res=`eval echo '${'$as_ac_Header'}'`
16315 { echo "$as_me:$LINENO: result: $ac_res" >&5
16316 echo "${ECHO_T}$ac_res" >&6; }
16319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16320 cat >>confdefs.h <<_ACEOF
16321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16331 for ac_header in CrashReporterClient.h
16333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 ac_res=`eval echo '${'$as_ac_Header'}'`
16341 { echo "$as_me:$LINENO: result: $ac_res" >&5
16342 echo "${ECHO_T}$ac_res" >&6; }
16344 # Is the header compilable?
16345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16347 cat >conftest.$ac_ext <<_ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16353 $ac_includes_default
16354 #include <$ac_header>
16356 rm -f conftest.$ac_objext
16357 if { (ac_try="$ac_compile"
16358 case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_compile") 2>conftest.er1
16365 grep -v '^ *+' conftest.er1 >conftest.err
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16371 { (case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_try") 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; } &&
16380 { ac_try='test -s conftest.$ac_objext'
16381 { (case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_try") 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 ac_header_compiler=yes
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16395 ac_header_compiler=no
16398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16400 echo "${ECHO_T}$ac_header_compiler" >&6; }
16402 # Is the header present?
16403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16405 cat >conftest.$ac_ext <<_ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411 #include <$ac_header>
16413 if { (ac_try="$ac_cpp conftest.$ac_ext"
16414 case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16421 grep -v '^ *+' conftest.er1 >conftest.err
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } >/dev/null; then
16426 if test -s conftest.err; then
16427 ac_cpp_err=$ac_c_preproc_warn_flag
16428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16435 if test -z "$ac_cpp_err"; then
16436 ac_header_preproc=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_header_preproc=no
16444 rm -f conftest.err conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16446 echo "${ECHO_T}$ac_header_preproc" >&6; }
16448 # So? What about this header?
16449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16455 ac_header_preproc=yes
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471 ## ----------------------------------- ##
16472 ## Report this to llvmbugs@cs.uiuc.edu ##
16473 ## ----------------------------------- ##
16475 ) | sed "s/^/$as_me: WARNING: /" >&2
16478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 eval "$as_ac_Header=\$ac_header_preproc"
16485 ac_res=`eval echo '${'$as_ac_Header'}'`
16486 { echo "$as_me:$LINENO: result: $ac_res" >&5
16487 echo "${ECHO_T}$ac_res" >&6; }
16490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16491 cat >>confdefs.h <<_ACEOF
16492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16500 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16501 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16502 cat >conftest.$ac_ext <<_ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 extern const char *__crashreporter_info__;
16510 __crashreporter_info__ = "test";
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (ac_try="$ac_link"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_link") 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } &&
16539 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 { echo "$as_me:$LINENO: result: yes" >&5
16550 echo "${ECHO_T}yes" >&6; }
16552 cat >>confdefs.h <<\_ACEOF
16553 #define HAVE_CRASHREPORTER_INFO 1
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 { echo "$as_me:$LINENO: result: no" >&5
16561 echo "${ECHO_T}no" >&6; }
16563 cat >>confdefs.h <<\_ACEOF
16564 #define HAVE_CRASHREPORTER_INFO 0
16569 rm -f core conftest.err conftest.$ac_objext \
16570 conftest$ac_exeext conftest.$ac_ext
16575 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16576 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16577 if test "${ac_cv_huge_val_sanity+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 ac_cpp='$CXXCPP $CPPFLAGS'
16583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16587 ac_save_CXXFLAGS=$CXXFLAGS
16589 if test "$cross_compiling" = yes; then
16590 ac_cv_huge_val_sanity=yes
16592 cat >conftest.$ac_ext <<_ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16602 double x = HUGE_VAL; return x != x;
16607 rm -f conftest$ac_exeext
16608 if { (ac_try="$ac_link"
16609 case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_link") 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16618 { (case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_try") 2>&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16627 ac_cv_huge_val_sanity=yes
16629 echo "$as_me: program exited with status $ac_status" >&5
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 ( exit $ac_status )
16634 ac_cv_huge_val_sanity=no
16636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16640 CXXFLAGS=$ac_save_CXXFLAGS
16642 ac_cpp='$CPP $CPPFLAGS'
16643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16649 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16650 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16651 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16654 { echo "$as_me:$LINENO: checking for pid_t" >&5
16655 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16656 if test "${ac_cv_type_pid_t+set}" = set; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 cat >conftest.$ac_ext <<_ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16665 $ac_includes_default
16666 typedef pid_t ac__type_new_;
16670 if ((ac__type_new_ *) 0)
16672 if (sizeof (ac__type_new_))
16678 rm -f conftest.$ac_objext
16679 if { (ac_try="$ac_compile"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_compile") 2>conftest.er1
16687 grep -v '^ *+' conftest.er1 >conftest.err
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
16692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest.$ac_objext'
16703 { (case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_try") 2>&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_cv_type_pid_t=yes
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 ac_cv_type_pid_t=no
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16723 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16724 if test $ac_cv_type_pid_t = yes; then
16728 cat >>confdefs.h <<_ACEOF
16734 { echo "$as_me:$LINENO: checking for size_t" >&5
16735 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16736 if test "${ac_cv_type_size_t+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16739 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16745 $ac_includes_default
16746 typedef size_t ac__type_new_;
16750 if ((ac__type_new_ *) 0)
16752 if (sizeof (ac__type_new_))
16758 rm -f conftest.$ac_objext
16759 if { (ac_try="$ac_compile"
16760 case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_compile") 2>conftest.er1
16767 grep -v '^ *+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773 { (case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_try") 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; } &&
16782 { ac_try='test -s conftest.$ac_objext'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_cv_type_size_t=yes
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 ac_cv_type_size_t=no
16800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16802 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16803 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16804 if test $ac_cv_type_size_t = yes; then
16808 cat >>confdefs.h <<_ACEOF
16809 #define size_t unsigned int
16815 cat >>confdefs.h <<_ACEOF
16816 #define RETSIGTYPE void
16819 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16820 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16821 if test "${ac_cv_struct_tm+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 cat >conftest.$ac_ext <<_ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16830 #include <sys/types.h>
16836 struct tm *tp; tp->tm_sec;
16841 rm -f conftest.$ac_objext
16842 if { (ac_try="$ac_compile"
16843 case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_compile") 2>conftest.er1
16850 grep -v '^ *+' conftest.er1 >conftest.err
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16856 { (case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_try") 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest.$ac_objext'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_struct_tm=time.h
16877 echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16880 ac_cv_struct_tm=sys/time.h
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16886 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16887 if test $ac_cv_struct_tm = sys/time.h; then
16889 cat >>confdefs.h <<\_ACEOF
16890 #define TM_IN_SYS_TIME 1
16895 { echo "$as_me:$LINENO: checking for int64_t" >&5
16896 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16897 if test "${ac_cv_type_int64_t+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 $ac_includes_default
16907 typedef int64_t ac__type_new_;
16911 if ((ac__type_new_ *) 0)
16913 if (sizeof (ac__type_new_))
16919 rm -f conftest.$ac_objext
16920 if { (ac_try="$ac_compile"
16921 case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_compile") 2>conftest.er1
16928 grep -v '^ *+' conftest.er1 >conftest.err
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16934 { (case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_try") 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest.$ac_objext'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_cv_type_int64_t=yes
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 ac_cv_type_int64_t=no
16961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16963 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16964 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16965 if test $ac_cv_type_int64_t = yes; then
16967 cat >>confdefs.h <<_ACEOF
16968 #define HAVE_INT64_T 1
16973 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16974 echo "$as_me: error: Type int64_t required but not found" >&2;}
16975 { (exit 1); exit 1; }; }
16978 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16979 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16980 if test "${ac_cv_type_uint64_t+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 $ac_includes_default
16990 typedef uint64_t ac__type_new_;
16994 if ((ac__type_new_ *) 0)
16996 if (sizeof (ac__type_new_))
17002 rm -f conftest.$ac_objext
17003 if { (ac_try="$ac_compile"
17004 case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_compile") 2>conftest.er1
17011 grep -v '^ *+' conftest.er1 >conftest.err
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17017 { (case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_try") 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest.$ac_objext'
17027 { (case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_try") 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_cv_type_uint64_t=yes
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 ac_cv_type_uint64_t=no
17044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17047 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17048 if test $ac_cv_type_uint64_t = yes; then
17050 cat >>confdefs.h <<_ACEOF
17051 #define HAVE_UINT64_T 1
17056 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17057 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17058 if test "${ac_cv_type_u_int64_t+set}" = set; then
17059 echo $ECHO_N "(cached) $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 typedef u_int64_t ac__type_new_;
17072 if ((ac__type_new_ *) 0)
17074 if (sizeof (ac__type_new_))
17080 rm -f conftest.$ac_objext
17081 if { (ac_try="$ac_compile"
17082 case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_compile") 2>conftest.er1
17089 grep -v '^ *+' conftest.er1 >conftest.err
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17104 { ac_try='test -s conftest.$ac_objext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_cv_type_u_int64_t=yes
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 ac_cv_type_u_int64_t=no
17122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17125 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17126 if test $ac_cv_type_u_int64_t = yes; then
17128 cat >>confdefs.h <<_ACEOF
17129 #define HAVE_U_INT64_T 1
17134 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17135 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17136 { (exit 1); exit 1; }; }
17150 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 cat >conftest.$ac_ext <<_ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17166 #define $ac_func innocuous_$ac_func
17168 /* System header to define __stub macros and hopefully few prototypes,
17169 which can conflict with char $ac_func (); below.
17170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17171 <limits.h> exists even on freestanding compilers. */
17174 # include <limits.h>
17176 # include <assert.h>
17181 /* Override any GCC internal prototype to avoid an error.
17182 Use char because int might match the return type of a GCC
17183 builtin and then its argument prototype would still apply. */
17188 /* The GNU C library defines this for functions which it implements
17189 to always fail with ENOSYS. Some functions are actually named
17190 something starting with __ and the normal name is an alias. */
17191 #if defined __stub_$ac_func || defined __stub___$ac_func
17198 return $ac_func ();
17203 rm -f conftest.$ac_objext conftest$ac_exeext
17204 if { (ac_try="$ac_link"
17205 case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_link") 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest$ac_exeext'
17228 { (case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_try") 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 eval "$as_ac_var=yes"
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 eval "$as_ac_var=no"
17245 rm -f core conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
17248 ac_res=`eval echo '${'$as_ac_var'}'`
17249 { echo "$as_me:$LINENO: result: $ac_res" >&5
17250 echo "${ECHO_T}$ac_res" >&6; }
17251 if test `eval echo '${'$as_ac_var'}'` = yes; then
17252 cat >>confdefs.h <<_ACEOF
17253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17263 for ac_func in powf fmodf strtof round
17265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 cat >conftest.$ac_ext <<_ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17279 #define $ac_func innocuous_$ac_func
17281 /* System header to define __stub macros and hopefully few prototypes,
17282 which can conflict with char $ac_func (); below.
17283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17284 <limits.h> exists even on freestanding compilers. */
17287 # include <limits.h>
17289 # include <assert.h>
17294 /* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17301 /* The GNU C library defines this for functions which it implements
17302 to always fail with ENOSYS. Some functions are actually named
17303 something starting with __ and the normal name is an alias. */
17304 #if defined __stub_$ac_func || defined __stub___$ac_func
17311 return $ac_func ();
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (ac_try="$ac_link"
17318 case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_link") 2>conftest.er1
17325 grep -v '^ *+' conftest.er1 >conftest.err
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17331 { (case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_try") 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; } &&
17340 { ac_try='test -s conftest$ac_exeext'
17341 { (case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_try") 2>&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 eval "$as_ac_var=yes"
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 eval "$as_ac_var=no"
17358 rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17361 ac_res=`eval echo '${'$as_ac_var'}'`
17362 { echo "$as_me:$LINENO: result: $ac_res" >&5
17363 echo "${ECHO_T}$ac_res" >&6; }
17364 if test `eval echo '${'$as_ac_var'}'` = yes; then
17365 cat >>confdefs.h <<_ACEOF
17366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17377 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17393 #define $ac_func innocuous_$ac_func
17395 /* System header to define __stub macros and hopefully few prototypes,
17396 which can conflict with char $ac_func (); below.
17397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17398 <limits.h> exists even on freestanding compilers. */
17401 # include <limits.h>
17403 # include <assert.h>
17408 /* Override any GCC internal prototype to avoid an error.
17409 Use char because int might match the return type of a GCC
17410 builtin and then its argument prototype would still apply. */
17415 /* The GNU C library defines this for functions which it implements
17416 to always fail with ENOSYS. Some functions are actually named
17417 something starting with __ and the normal name is an alias. */
17418 #if defined __stub_$ac_func || defined __stub___$ac_func
17425 return $ac_func ();
17430 rm -f conftest.$ac_objext conftest$ac_exeext
17431 if { (ac_try="$ac_link"
17432 case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_link") 2>conftest.er1
17439 grep -v '^ *+' conftest.er1 >conftest.err
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
17444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; } &&
17454 { ac_try='test -s conftest$ac_exeext'
17455 { (case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_try") 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 eval "$as_ac_var=yes"
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 eval "$as_ac_var=no"
17472 rm -f core conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
17475 ac_res=`eval echo '${'$as_ac_var'}'`
17476 { echo "$as_me:$LINENO: result: $ac_res" >&5
17477 echo "${ECHO_T}$ac_res" >&6; }
17478 if test `eval echo '${'$as_ac_var'}'` = yes; then
17479 cat >>confdefs.h <<_ACEOF
17480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17489 for ac_func in isatty mkdtemp mkstemp
17491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17505 #define $ac_func innocuous_$ac_func
17507 /* System header to define __stub macros and hopefully few prototypes,
17508 which can conflict with char $ac_func (); below.
17509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510 <limits.h> exists even on freestanding compilers. */
17513 # include <limits.h>
17515 # include <assert.h>
17520 /* Override any GCC internal prototype to avoid an error.
17521 Use char because int might match the return type of a GCC
17522 builtin and then its argument prototype would still apply. */
17527 /* The GNU C library defines this for functions which it implements
17528 to always fail with ENOSYS. Some functions are actually named
17529 something starting with __ and the normal name is an alias. */
17530 #if defined __stub_$ac_func || defined __stub___$ac_func
17537 return $ac_func ();
17542 rm -f conftest.$ac_objext conftest$ac_exeext
17543 if { (ac_try="$ac_link"
17544 case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_link") 2>conftest.er1
17551 grep -v '^ *+' conftest.er1 >conftest.err
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
17556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try='test -s conftest$ac_exeext'
17567 { (case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_try") 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 eval "$as_ac_var=yes"
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17581 eval "$as_ac_var=no"
17584 rm -f core conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
17587 ac_res=`eval echo '${'$as_ac_var'}'`
17588 { echo "$as_me:$LINENO: result: $ac_res" >&5
17589 echo "${ECHO_T}$ac_res" >&6; }
17590 if test `eval echo '${'$as_ac_var'}'` = yes; then
17591 cat >>confdefs.h <<_ACEOF
17592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17604 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 cat >conftest.$ac_ext <<_ACEOF
17615 cat confdefs.h >>conftest.$ac_ext
17616 cat >>conftest.$ac_ext <<_ACEOF
17617 /* end confdefs.h. */
17618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17620 #define $ac_func innocuous_$ac_func
17622 /* System header to define __stub macros and hopefully few prototypes,
17623 which can conflict with char $ac_func (); below.
17624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17625 <limits.h> exists even on freestanding compilers. */
17628 # include <limits.h>
17630 # include <assert.h>
17635 /* Override any GCC internal prototype to avoid an error.
17636 Use char because int might match the return type of a GCC
17637 builtin and then its argument prototype would still apply. */
17642 /* The GNU C library defines this for functions which it implements
17643 to always fail with ENOSYS. Some functions are actually named
17644 something starting with __ and the normal name is an alias. */
17645 #if defined __stub_$ac_func || defined __stub___$ac_func
17652 return $ac_func ();
17657 rm -f conftest.$ac_objext conftest$ac_exeext
17658 if { (ac_try="$ac_link"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_link") 2>conftest.er1
17666 grep -v '^ *+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest$ac_exeext'
17682 { (case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_try") 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 eval "$as_ac_var=yes"
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 eval "$as_ac_var=no"
17699 rm -f core conftest.err conftest.$ac_objext \
17700 conftest$ac_exeext conftest.$ac_ext
17702 ac_res=`eval echo '${'$as_ac_var'}'`
17703 { echo "$as_me:$LINENO: result: $ac_res" >&5
17704 echo "${ECHO_T}$ac_res" >&6; }
17705 if test `eval echo '${'$as_ac_var'}'` = yes; then
17706 cat >>confdefs.h <<_ACEOF
17707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17716 for ac_func in strerror strerror_r setenv
17718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 cat >conftest.$ac_ext <<_ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17732 #define $ac_func innocuous_$ac_func
17734 /* System header to define __stub macros and hopefully few prototypes,
17735 which can conflict with char $ac_func (); below.
17736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17737 <limits.h> exists even on freestanding compilers. */
17740 # include <limits.h>
17742 # include <assert.h>
17747 /* Override any GCC internal prototype to avoid an error.
17748 Use char because int might match the return type of a GCC
17749 builtin and then its argument prototype would still apply. */
17754 /* The GNU C library defines this for functions which it implements
17755 to always fail with ENOSYS. Some functions are actually named
17756 something starting with __ and the normal name is an alias. */
17757 #if defined __stub_$ac_func || defined __stub___$ac_func
17764 return $ac_func ();
17769 rm -f conftest.$ac_objext conftest$ac_exeext
17770 if { (ac_try="$ac_link"
17771 case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_link") 2>conftest.er1
17778 grep -v '^ *+' conftest.er1 >conftest.err
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
17783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17784 { (case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_try") 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } &&
17793 { ac_try='test -s conftest$ac_exeext'
17794 { (case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799 (eval "$ac_try") 2>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 eval "$as_ac_var=yes"
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17808 eval "$as_ac_var=no"
17811 rm -f core conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext conftest.$ac_ext
17814 ac_res=`eval echo '${'$as_ac_var'}'`
17815 { echo "$as_me:$LINENO: result: $ac_res" >&5
17816 echo "${ECHO_T}$ac_res" >&6; }
17817 if test `eval echo '${'$as_ac_var'}'` = yes; then
17818 cat >>confdefs.h <<_ACEOF
17819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17829 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 cat >conftest.$ac_ext <<_ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17845 #define $ac_func innocuous_$ac_func
17847 /* System header to define __stub macros and hopefully few prototypes,
17848 which can conflict with char $ac_func (); below.
17849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17850 <limits.h> exists even on freestanding compilers. */
17853 # include <limits.h>
17855 # include <assert.h>
17860 /* Override any GCC internal prototype to avoid an error.
17861 Use char because int might match the return type of a GCC
17862 builtin and then its argument prototype would still apply. */
17867 /* The GNU C library defines this for functions which it implements
17868 to always fail with ENOSYS. Some functions are actually named
17869 something starting with __ and the normal name is an alias. */
17870 #if defined __stub_$ac_func || defined __stub___$ac_func
17877 return $ac_func ();
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17897 { (case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_try") 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest$ac_exeext'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17916 eval "$as_ac_var=yes"
17918 echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17921 eval "$as_ac_var=no"
17924 rm -f core conftest.err conftest.$ac_objext \
17925 conftest$ac_exeext conftest.$ac_ext
17927 ac_res=`eval echo '${'$as_ac_var'}'`
17928 { echo "$as_me:$LINENO: result: $ac_res" >&5
17929 echo "${ECHO_T}$ac_res" >&6; }
17930 if test `eval echo '${'$as_ac_var'}'` = yes; then
17931 cat >>confdefs.h <<_ACEOF
17932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17943 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17959 #define $ac_func innocuous_$ac_func
17961 /* System header to define __stub macros and hopefully few prototypes,
17962 which can conflict with char $ac_func (); below.
17963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17964 <limits.h> exists even on freestanding compilers. */
17967 # include <limits.h>
17969 # include <assert.h>
17974 /* Override any GCC internal prototype to avoid an error.
17975 Use char because int might match the return type of a GCC
17976 builtin and then its argument prototype would still apply. */
17981 /* The GNU C library defines this for functions which it implements
17982 to always fail with ENOSYS. Some functions are actually named
17983 something starting with __ and the normal name is an alias. */
17984 #if defined __stub_$ac_func || defined __stub___$ac_func
17991 return $ac_func ();
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (ac_try="$ac_link"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_link") 2>conftest.er1
18005 grep -v '^ *+' conftest.er1 >conftest.err
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest$ac_exeext'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 eval "$as_ac_var=yes"
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 eval "$as_ac_var=no"
18038 rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18041 ac_res=`eval echo '${'$as_ac_var'}'`
18042 { echo "$as_me:$LINENO: result: $ac_res" >&5
18043 echo "${ECHO_T}$ac_res" >&6; }
18044 if test `eval echo '${'$as_ac_var'}'` = yes; then
18045 cat >>confdefs.h <<_ACEOF
18046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18052 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18053 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18054 if test "${llvm_cv_c_printf_a+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 ac_cpp='$CPP $CPPFLAGS'
18059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18063 if test "$cross_compiling" = yes; then
18064 llvmac_cv_c_printf_a=no
18066 cat >conftest.$ac_ext <<_ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18075 #include <stdlib.h>
18081 volatile double A, B;
18085 sprintf(Buffer, "%a", A);
18089 if (A != 0x1.999999999999ap-4)
18096 rm -f conftest$ac_exeext
18097 if { (ac_try="$ac_link"
18098 case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_link") 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_try") 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
18116 llvm_cv_c_printf_a=yes
18118 echo "$as_me: program exited with status $ac_status" >&5
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18122 ( exit $ac_status )
18123 llvmac_cv_c_printf_a=no
18125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18136 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18137 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18138 if test "$llvm_cv_c_printf_a" = "yes"; then
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE_PRINTF_A 1
18147 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18148 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18149 if test "${ac_cv_func_rand48+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 ac_cpp='$CXXCPP $CPPFLAGS'
18154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 #include <stdlib.h>
18168 srand48(0);lrand48();drand48();
18173 rm -f conftest.$ac_objext
18174 if { (ac_try="$ac_compile"
18175 case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_compile") 2>conftest.er1
18182 grep -v '^ *+' conftest.er1 >conftest.err
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18188 { (case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_try") 2>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; } &&
18197 { ac_try='test -s conftest.$ac_objext'
18198 { (case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_try") 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 ac_cv_func_rand48=yes
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 ac_cv_func_rand48=no
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217 ac_cpp='$CPP $CPPFLAGS'
18218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18223 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18224 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18226 if test "$ac_cv_func_rand48" = "yes" ; then
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_RAND48 1
18235 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18236 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18237 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 cat >conftest.$ac_ext <<_ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 $ac_includes_default
18251 char *p = (char *) strerror_s;
18259 rm -f conftest.$ac_objext
18260 if { (ac_try="$ac_compile"
18261 case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_compile") 2>conftest.er1
18268 grep -v '^ *+' conftest.er1 >conftest.err
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18274 { (case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_try") 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest.$ac_objext'
18284 { (case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_try") 2>&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 ac_cv_have_decl_strerror_s=yes
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18298 ac_cv_have_decl_strerror_s=no
18301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18304 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18305 if test $ac_cv_have_decl_strerror_s = yes; then
18307 cat >>confdefs.h <<_ACEOF
18308 #define HAVE_DECL_STRERROR_S 1
18313 cat >>confdefs.h <<_ACEOF
18314 #define HAVE_DECL_STRERROR_S 0
18322 if test "$llvm_cv_os_type" = "MingW" ; then
18323 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18324 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18325 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 ac_check_lib_save_LIBS=$LIBS
18330 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18337 /* Override any GCC internal prototype to avoid an error.
18338 Use char because int might match the return type of a GCC
18339 builtin and then its argument prototype would still apply. */
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (ac_try="$ac_link"
18354 case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_link") 2>conftest.er1
18361 grep -v '^ *+' conftest.er1 >conftest.err
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_cv_lib_gcc__alloca=yes
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18391 ac_cv_lib_gcc__alloca=no
18394 rm -f core conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18396 LIBS=$ac_check_lib_save_LIBS
18398 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18399 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18400 if test $ac_cv_lib_gcc__alloca = yes; then
18402 cat >>confdefs.h <<\_ACEOF
18403 #define HAVE__ALLOCA 1
18408 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18409 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18410 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 ac_check_lib_save_LIBS=$LIBS
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18422 /* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18432 return __alloca ();
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_link") 2>conftest.er1
18446 grep -v '^ *+' conftest.er1 >conftest.err
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest$ac_exeext'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
18471 ac_cv_lib_gcc___alloca=yes
18473 echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18476 ac_cv_lib_gcc___alloca=no
18479 rm -f core conftest.err conftest.$ac_objext \
18480 conftest$ac_exeext conftest.$ac_ext
18481 LIBS=$ac_check_lib_save_LIBS
18483 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18484 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18485 if test $ac_cv_lib_gcc___alloca = yes; then
18487 cat >>confdefs.h <<\_ACEOF
18488 #define HAVE___ALLOCA 1
18493 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18494 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18495 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 ac_check_lib_save_LIBS=$LIBS
18500 cat >conftest.$ac_ext <<_ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h. */
18507 /* Override any GCC internal prototype to avoid an error.
18508 Use char because int might match the return type of a GCC
18509 builtin and then its argument prototype would still apply. */
18517 return __chkstk ();
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (ac_try="$ac_link"
18524 case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_link") 2>conftest.er1
18531 grep -v '^ *+' conftest.er1 >conftest.err
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest$ac_exeext'
18547 { (case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_try") 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_cv_lib_gcc___chkstk=yes
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18561 ac_cv_lib_gcc___chkstk=no
18564 rm -f core conftest.err conftest.$ac_objext \
18565 conftest$ac_exeext conftest.$ac_ext
18566 LIBS=$ac_check_lib_save_LIBS
18568 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18569 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18570 if test $ac_cv_lib_gcc___chkstk = yes; then
18572 cat >>confdefs.h <<\_ACEOF
18573 #define HAVE___CHKSTK 1
18578 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18579 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18580 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 ac_check_lib_save_LIBS=$LIBS
18585 cat >conftest.$ac_ext <<_ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18592 /* Override any GCC internal prototype to avoid an error.
18593 Use char because int might match the return type of a GCC
18594 builtin and then its argument prototype would still apply. */
18602 return ___chkstk ();
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (ac_try="$ac_link"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_link") 2>conftest.er1
18616 grep -v '^ *+' conftest.er1 >conftest.err
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest$ac_exeext'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_cv_lib_gcc____chkstk=yes
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 ac_cv_lib_gcc____chkstk=no
18649 rm -f core conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18653 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18654 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18655 if test $ac_cv_lib_gcc____chkstk = yes; then
18657 cat >>confdefs.h <<\_ACEOF
18658 #define HAVE____CHKSTK 1
18664 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18665 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18666 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 ac_check_lib_save_LIBS=$LIBS
18671 cat >conftest.$ac_ext <<_ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18678 /* Override any GCC internal prototype to avoid an error.
18679 Use char because int might match the return type of a GCC
18680 builtin and then its argument prototype would still apply. */
18688 return __ashldi3 ();
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
18702 grep -v '^ *+' conftest.er1 >conftest.err
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } &&
18707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18708 { (case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_try") 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try='test -s conftest$ac_exeext'
18718 { (case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_try") 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; }; then
18727 ac_cv_lib_gcc___ashldi3=yes
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18732 ac_cv_lib_gcc___ashldi3=no
18735 rm -f core conftest.err conftest.$ac_objext \
18736 conftest$ac_exeext conftest.$ac_ext
18737 LIBS=$ac_check_lib_save_LIBS
18739 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18740 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18741 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18743 cat >>confdefs.h <<\_ACEOF
18744 #define HAVE___ASHLDI3 1
18749 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18750 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18751 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 ac_check_lib_save_LIBS=$LIBS
18756 cat >conftest.$ac_ext <<_ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18773 return __ashrdi3 ();
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (ac_try="$ac_link"
18780 case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_link") 2>conftest.er1
18787 grep -v '^ *+' conftest.er1 >conftest.err
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest$ac_exeext'
18803 { (case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_try") 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_cv_lib_gcc___ashrdi3=yes
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 ac_cv_lib_gcc___ashrdi3=no
18820 rm -f core conftest.err conftest.$ac_objext \
18821 conftest$ac_exeext conftest.$ac_ext
18822 LIBS=$ac_check_lib_save_LIBS
18824 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18825 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18826 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18828 cat >>confdefs.h <<\_ACEOF
18829 #define HAVE___ASHRDI3 1
18834 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18835 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18836 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 ac_check_lib_save_LIBS=$LIBS
18841 cat >conftest.$ac_ext <<_ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18848 /* Override any GCC internal prototype to avoid an error.
18849 Use char because int might match the return type of a GCC
18850 builtin and then its argument prototype would still apply. */
18858 return __divdi3 ();
18863 rm -f conftest.$ac_objext conftest$ac_exeext
18864 if { (ac_try="$ac_link"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_link") 2>conftest.er1
18872 grep -v '^ *+' conftest.er1 >conftest.err
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } &&
18877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18878 { (case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_try") 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try='test -s conftest$ac_exeext'
18888 { (case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_try") 2>&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 ac_cv_lib_gcc___divdi3=yes
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18902 ac_cv_lib_gcc___divdi3=no
18905 rm -f core conftest.err conftest.$ac_objext \
18906 conftest$ac_exeext conftest.$ac_ext
18907 LIBS=$ac_check_lib_save_LIBS
18909 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18910 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18911 if test $ac_cv_lib_gcc___divdi3 = yes; then
18913 cat >>confdefs.h <<\_ACEOF
18914 #define HAVE___DIVDI3 1
18919 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18920 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18921 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 ac_check_lib_save_LIBS=$LIBS
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18933 /* Override any GCC internal prototype to avoid an error.
18934 Use char because int might match the return type of a GCC
18935 builtin and then its argument prototype would still apply. */
18943 return __fixdfdi ();
18948 rm -f conftest.$ac_objext conftest$ac_exeext
18949 if { (ac_try="$ac_link"
18950 case "(($ac_try" in
18951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952 *) ac_try_echo=$ac_try;;
18954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955 (eval "$ac_link") 2>conftest.er1
18957 grep -v '^ *+' conftest.er1 >conftest.err
18959 cat conftest.err >&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } &&
18962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18963 { (case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_try") 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try='test -s conftest$ac_exeext'
18973 { (case "(($ac_try" in
18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975 *) ac_try_echo=$ac_try;;
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978 (eval "$ac_try") 2>&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18982 ac_cv_lib_gcc___fixdfdi=yes
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 ac_cv_lib_gcc___fixdfdi=no
18990 rm -f core conftest.err conftest.$ac_objext \
18991 conftest$ac_exeext conftest.$ac_ext
18992 LIBS=$ac_check_lib_save_LIBS
18994 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18995 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18996 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18998 cat >>confdefs.h <<\_ACEOF
18999 #define HAVE___FIXDFDI 1
19004 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19005 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19006 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 ac_check_lib_save_LIBS=$LIBS
19011 cat >conftest.$ac_ext <<_ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19018 /* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19028 return __fixsfdi ();
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_try") 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_lib_gcc___fixsfdi=yes
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 ac_cv_lib_gcc___fixsfdi=no
19075 rm -f core conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
19077 LIBS=$ac_check_lib_save_LIBS
19079 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19080 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19081 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19083 cat >>confdefs.h <<\_ACEOF
19084 #define HAVE___FIXSFDI 1
19089 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19090 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19091 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 ac_check_lib_save_LIBS=$LIBS
19096 cat >conftest.$ac_ext <<_ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h. */
19103 /* Override any GCC internal prototype to avoid an error.
19104 Use char because int might match the return type of a GCC
19105 builtin and then its argument prototype would still apply. */
19109 char __floatdidf ();
19113 return __floatdidf ();
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest$ac_exeext'
19143 { (case "(($ac_try" in
19144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145 *) ac_try_echo=$ac_try;;
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148 (eval "$ac_try") 2>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_lib_gcc___floatdidf=yes
19154 echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19157 ac_cv_lib_gcc___floatdidf=no
19160 rm -f core conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
19162 LIBS=$ac_check_lib_save_LIBS
19164 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19165 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19166 if test $ac_cv_lib_gcc___floatdidf = yes; then
19168 cat >>confdefs.h <<\_ACEOF
19169 #define HAVE___FLOATDIDF 1
19174 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19175 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19176 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19179 ac_check_lib_save_LIBS=$LIBS
19181 cat >conftest.$ac_ext <<_ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19188 /* Override any GCC internal prototype to avoid an error.
19189 Use char because int might match the return type of a GCC
19190 builtin and then its argument prototype would still apply. */
19198 return __lshrdi3 ();
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>conftest.er1
19212 grep -v '^ *+' conftest.er1 >conftest.err
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; } &&
19227 { ac_try='test -s conftest$ac_exeext'
19228 { (case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_try") 2>&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_cv_lib_gcc___lshrdi3=yes
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 ac_cv_lib_gcc___lshrdi3=no
19245 rm -f core conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19247 LIBS=$ac_check_lib_save_LIBS
19249 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19250 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19251 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19253 cat >>confdefs.h <<\_ACEOF
19254 #define HAVE___LSHRDI3 1
19259 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19260 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19261 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 ac_check_lib_save_LIBS=$LIBS
19266 cat >conftest.$ac_ext <<_ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19273 /* Override any GCC internal prototype to avoid an error.
19274 Use char because int might match the return type of a GCC
19275 builtin and then its argument prototype would still apply. */
19283 return __moddi3 ();
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (ac_try="$ac_link"
19290 case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_link") 2>conftest.er1
19297 grep -v '^ *+' conftest.er1 >conftest.err
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest$ac_exeext'
19313 { (case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_try") 2>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 ac_cv_lib_gcc___moddi3=yes
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_lib_gcc___moddi3=no
19330 rm -f core conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext conftest.$ac_ext
19332 LIBS=$ac_check_lib_save_LIBS
19334 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19335 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19336 if test $ac_cv_lib_gcc___moddi3 = yes; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE___MODDI3 1
19344 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19345 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19346 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 ac_check_lib_save_LIBS=$LIBS
19351 cat >conftest.$ac_ext <<_ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19358 /* Override any GCC internal prototype to avoid an error.
19359 Use char because int might match the return type of a GCC
19360 builtin and then its argument prototype would still apply. */
19368 return __udivdi3 ();
19373 rm -f conftest.$ac_objext conftest$ac_exeext
19374 if { (ac_try="$ac_link"
19375 case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_link") 2>conftest.er1
19382 grep -v '^ *+' conftest.er1 >conftest.err
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } &&
19387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; } &&
19397 { ac_try='test -s conftest$ac_exeext'
19398 { (case "(($ac_try" in
19399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400 *) ac_try_echo=$ac_try;;
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403 (eval "$ac_try") 2>&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; }; then
19407 ac_cv_lib_gcc___udivdi3=yes
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 ac_cv_lib_gcc___udivdi3=no
19415 rm -f core conftest.err conftest.$ac_objext \
19416 conftest$ac_exeext conftest.$ac_ext
19417 LIBS=$ac_check_lib_save_LIBS
19419 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19420 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19421 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19423 cat >>confdefs.h <<\_ACEOF
19424 #define HAVE___UDIVDI3 1
19429 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19430 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19431 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 ac_check_lib_save_LIBS=$LIBS
19436 cat >conftest.$ac_ext <<_ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19443 /* Override any GCC internal prototype to avoid an error.
19444 Use char because int might match the return type of a GCC
19445 builtin and then its argument prototype would still apply. */
19453 return __umoddi3 ();
19458 rm -f conftest.$ac_objext conftest$ac_exeext
19459 if { (ac_try="$ac_link"
19460 case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_link") 2>conftest.er1
19467 grep -v '^ *+' conftest.er1 >conftest.err
19469 cat conftest.err >&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } &&
19472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19473 { (case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_try") 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; } &&
19482 { ac_try='test -s conftest$ac_exeext'
19483 { (case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_try") 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_lib_gcc___umoddi3=yes
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_cv_lib_gcc___umoddi3=no
19500 rm -f core conftest.err conftest.$ac_objext \
19501 conftest$ac_exeext conftest.$ac_ext
19502 LIBS=$ac_check_lib_save_LIBS
19504 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19505 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19506 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19508 cat >>confdefs.h <<\_ACEOF
19509 #define HAVE___UMODDI3 1
19515 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19516 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19517 if test "${ac_cv_lib_gcc___main+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19520 ac_check_lib_save_LIBS=$LIBS
19522 cat >conftest.$ac_ext <<_ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19529 /* Override any GCC internal prototype to avoid an error.
19530 Use char because int might match the return type of a GCC
19531 builtin and then its argument prototype would still apply. */
19544 rm -f conftest.$ac_objext conftest$ac_exeext
19545 if { (ac_try="$ac_link"
19546 case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_link") 2>conftest.er1
19553 grep -v '^ *+' conftest.er1 >conftest.err
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; } &&
19568 { ac_try='test -s conftest$ac_exeext'
19569 { (case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_try") 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_cv_lib_gcc___main=yes
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19583 ac_cv_lib_gcc___main=no
19586 rm -f core conftest.err conftest.$ac_objext \
19587 conftest$ac_exeext conftest.$ac_ext
19588 LIBS=$ac_check_lib_save_LIBS
19590 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19591 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19592 if test $ac_cv_lib_gcc___main = yes; then
19594 cat >>confdefs.h <<\_ACEOF
19595 #define HAVE___MAIN 1
19600 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19601 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19602 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 ac_check_lib_save_LIBS=$LIBS
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19614 /* Override any GCC internal prototype to avoid an error.
19615 Use char because int might match the return type of a GCC
19616 builtin and then its argument prototype would still apply. */
19624 return __cmpdi2 ();
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_link") 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } &&
19643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19644 { (case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_try") 2>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; } &&
19653 { ac_try='test -s conftest$ac_exeext'
19654 { (case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_try") 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 ac_cv_lib_gcc___cmpdi2=yes
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19668 ac_cv_lib_gcc___cmpdi2=no
19671 rm -f core conftest.err conftest.$ac_objext \
19672 conftest$ac_exeext conftest.$ac_ext
19673 LIBS=$ac_check_lib_save_LIBS
19675 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19676 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19677 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19679 cat >>confdefs.h <<\_ACEOF
19680 #define HAVE___CMPDI2 1
19687 if test "$llvm_cv_os_type" = "MingW" ; then
19688 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19689 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19690 cat >conftest.$ac_ext <<_ACEOF
19691 #include <windows.h>
19692 #include <imagehlp.h>
19693 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19694 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19696 rm -f conftest.$ac_objext
19697 if { (ac_try="$ac_compile"
19698 case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_compile") 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19711 { (case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_try") 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_try") 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19731 { echo "$as_me:$LINENO: result: yes" >&5
19732 echo "${ECHO_T}yes" >&6; }
19733 llvm_cv_win32_elmcb_pcstr="PCSTR"
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19740 { echo "$as_me:$LINENO: result: no" >&5
19741 echo "${ECHO_T}no" >&6; }
19742 llvm_cv_win32_elmcb_pcstr="PSTR"
19746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19748 cat >>confdefs.h <<_ACEOF
19749 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19755 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19756 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19757 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 ac_cpp='$CXXCPP $CPPFLAGS'
19762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19766 cat >conftest.$ac_ext <<_ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_compile") 2>conftest.er1
19790 grep -v '^ *+' conftest.er1 >conftest.err
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
19795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19796 { (case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_try") 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest.$ac_objext'
19806 { (case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_try") 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 ac_cv_func_isnan_in_math_h=yes
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_cv_func_isnan_in_math_h=no
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 ac_cpp='$CPP $CPPFLAGS'
19826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19831 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19832 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19835 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE_ISNAN_IN_MATH_H 1
19843 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19844 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19845 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 ac_cpp='$CXXCPP $CPPFLAGS'
19850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19878 grep -v '^ *+' conftest.er1 >conftest.err
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884 { (case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_try") 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try='test -s conftest.$ac_objext'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
19903 ac_cv_func_isnan_in_cmath=yes
19905 echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19908 ac_cv_func_isnan_in_cmath=no
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19913 ac_cpp='$CPP $CPPFLAGS'
19914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19919 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19920 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19922 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19924 cat >>confdefs.h <<\_ACEOF
19925 #define HAVE_ISNAN_IN_CMATH 1
19930 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19931 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19932 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 ac_cpp='$CXXCPP $CPPFLAGS'
19937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19941 cat >conftest.$ac_ext <<_ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19951 float f; std::isnan(f);
19956 rm -f conftest.$ac_objext
19957 if { (ac_try="$ac_compile"
19958 case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_compile") 2>conftest.er1
19965 grep -v '^ *+' conftest.er1 >conftest.err
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } &&
19970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19971 { (case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_try") 2>&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } &&
19980 { ac_try='test -s conftest.$ac_objext'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 ac_cv_func_std_isnan_in_cmath=yes
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_cv_func_std_isnan_in_cmath=no
19998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20000 ac_cpp='$CPP $CPPFLAGS'
20001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20006 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20007 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20009 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20011 cat >>confdefs.h <<\_ACEOF
20012 #define HAVE_STD_ISNAN_IN_CMATH 1
20018 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20019 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20020 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20024 ac_cpp='$CXXCPP $CPPFLAGS'
20025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20029 cat >conftest.$ac_ext <<_ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20044 rm -f conftest.$ac_objext
20045 if { (ac_try="$ac_compile"
20046 case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_compile") 2>conftest.er1
20053 grep -v '^ *+' conftest.er1 >conftest.err
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20059 { (case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_try") 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074 (eval "$ac_try") 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 ac_cv_func_isinf_in_math_h=yes
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 ac_cv_func_isinf_in_math_h=no
20086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20088 ac_cpp='$CPP $CPPFLAGS'
20089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20094 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20095 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20097 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20099 cat >>confdefs.h <<\_ACEOF
20100 #define HAVE_ISINF_IN_MATH_H 1
20105 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20106 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20107 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 ac_cpp='$CXXCPP $CPPFLAGS'
20112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20116 cat >conftest.$ac_ext <<_ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20131 rm -f conftest.$ac_objext
20132 if { (ac_try="$ac_compile"
20133 case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_compile") 2>conftest.er1
20140 grep -v '^ *+' conftest.er1 >conftest.err
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest.$ac_objext'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20165 ac_cv_func_isinf_in_cmath=yes
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20170 ac_cv_func_isinf_in_cmath=no
20173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175 ac_cpp='$CPP $CPPFLAGS'
20176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20181 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20182 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20184 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20186 cat >>confdefs.h <<\_ACEOF
20187 #define HAVE_ISINF_IN_CMATH 1
20192 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20193 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20194 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 ac_cpp='$CXXCPP $CPPFLAGS'
20199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20203 cat >conftest.$ac_ext <<_ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20213 float f; std::isinf(f)}
20218 rm -f conftest.$ac_objext
20219 if { (ac_try="$ac_compile"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_compile") 2>conftest.er1
20227 grep -v '^ *+' conftest.er1 >conftest.err
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } &&
20232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20233 { (case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_try") 2>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; } &&
20242 { ac_try='test -s conftest.$ac_objext'
20243 { (case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_try") 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_func_std_isinf_in_cmath=yes
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 ac_cv_func_std_isinf_in_cmath=no
20260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20262 ac_cpp='$CPP $CPPFLAGS'
20263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20268 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20269 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20271 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20273 cat >>confdefs.h <<\_ACEOF
20274 #define HAVE_STD_ISINF_IN_CMATH 1
20279 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20280 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20281 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 ac_cpp='$CXXCPP $CPPFLAGS'
20286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20290 cat >conftest.$ac_ext <<_ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 #include <ieeefp.h>
20300 float f; finite(f);
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_compile") 2>conftest.er1
20314 grep -v '^ *+' conftest.er1 >conftest.err
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } &&
20319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20320 { (case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_try") 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; } &&
20329 { ac_try='test -s conftest.$ac_objext'
20330 { (case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_try") 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_cv_func_finite_in_ieeefp_h=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_cv_func_finite_in_ieeefp_h=no
20347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349 ac_cpp='$CPP $CPPFLAGS'
20350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20355 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20356 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20358 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20360 cat >>confdefs.h <<\_ACEOF
20361 #define HAVE_FINITE_IN_IEEEFP_H 1
20368 if test "$llvm_cv_platform_type" = "Unix" ; then
20371 for ac_header in stdlib.h unistd.h
20373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 ac_res=`eval echo '${'$as_ac_Header'}'`
20381 { echo "$as_me:$LINENO: result: $ac_res" >&5
20382 echo "${ECHO_T}$ac_res" >&6; }
20384 # Is the header compilable?
20385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20387 cat >conftest.$ac_ext <<_ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20393 $ac_includes_default
20394 #include <$ac_header>
20396 rm -f conftest.$ac_objext
20397 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411 { (case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_try") 2>&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try='test -s conftest.$ac_objext'
20421 { (case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_try") 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_header_compiler=yes
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ac_header_compiler=no
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20440 echo "${ECHO_T}$ac_header_compiler" >&6; }
20442 # Is the header present?
20443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 #include <$ac_header>
20453 if { (ac_try="$ac_cpp conftest.$ac_ext"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20461 grep -v '^ *+' conftest.er1 >conftest.err
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } >/dev/null; then
20466 if test -s conftest.err; then
20467 ac_cpp_err=$ac_c_preproc_warn_flag
20468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20475 if test -z "$ac_cpp_err"; then
20476 ac_header_preproc=yes
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 ac_header_preproc=no
20484 rm -f conftest.err conftest.$ac_ext
20485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20486 echo "${ECHO_T}$ac_header_preproc" >&6; }
20488 # So? What about this header?
20489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20495 ac_header_preproc=yes
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20511 ## ----------------------------------- ##
20512 ## Report this to llvmbugs@cs.uiuc.edu ##
20513 ## ----------------------------------- ##
20515 ) | sed "s/^/$as_me: WARNING: /" >&2
20518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 eval "$as_ac_Header=\$ac_header_preproc"
20525 ac_res=`eval echo '${'$as_ac_Header'}'`
20526 { echo "$as_me:$LINENO: result: $ac_res" >&5
20527 echo "${ECHO_T}$ac_res" >&6; }
20530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20531 cat >>confdefs.h <<_ACEOF
20532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20540 for ac_func in getpagesize
20542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 cat >conftest.$ac_ext <<_ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20556 #define $ac_func innocuous_$ac_func
20558 /* System header to define __stub macros and hopefully few prototypes,
20559 which can conflict with char $ac_func (); below.
20560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20561 <limits.h> exists even on freestanding compilers. */
20564 # include <limits.h>
20566 # include <assert.h>
20571 /* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20578 /* The GNU C library defines this for functions which it implements
20579 to always fail with ENOSYS. Some functions are actually named
20580 something starting with __ and the normal name is an alias. */
20581 #if defined __stub_$ac_func || defined __stub___$ac_func
20588 return $ac_func ();
20593 rm -f conftest.$ac_objext conftest$ac_exeext
20594 if { (ac_try="$ac_link"
20595 case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600 (eval "$ac_link") 2>conftest.er1
20602 grep -v '^ *+' conftest.er1 >conftest.err
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } &&
20607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20608 { (case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_try") 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; } &&
20617 { ac_try='test -s conftest$ac_exeext'
20618 { (case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_try") 2>&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; }; then
20627 eval "$as_ac_var=yes"
20629 echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20632 eval "$as_ac_var=no"
20635 rm -f core conftest.err conftest.$ac_objext \
20636 conftest$ac_exeext conftest.$ac_ext
20638 ac_res=`eval echo '${'$as_ac_var'}'`
20639 { echo "$as_me:$LINENO: result: $ac_res" >&5
20640 echo "${ECHO_T}$ac_res" >&6; }
20641 if test `eval echo '${'$as_ac_var'}'` = yes; then
20642 cat >>confdefs.h <<_ACEOF
20643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20649 { echo "$as_me:$LINENO: checking for working mmap" >&5
20650 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20651 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 if test "$cross_compiling" = yes; then
20655 ac_cv_func_mmap_fixed_mapped=no
20657 cat >conftest.$ac_ext <<_ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20663 $ac_includes_default
20664 /* malloc might have been renamed as rpl_malloc. */
20667 /* Thanks to Mike Haertel and Jim Avera for this test.
20668 Here is a matrix of mmap possibilities:
20669 mmap private not fixed
20670 mmap private fixed at somewhere currently unmapped
20671 mmap private fixed at somewhere already mapped
20672 mmap shared not fixed
20673 mmap shared fixed at somewhere currently unmapped
20674 mmap shared fixed at somewhere already mapped
20675 For private mappings, we should verify that changes cannot be read()
20676 back from the file, nor mmap's back from the file at a different
20677 address. (There have been systems where private was not correctly
20678 implemented like the infamous i386 svr4.0, and systems where the
20679 VM page cache was not coherent with the file system buffer cache
20680 like early versions of FreeBSD and possibly contemporary NetBSD.)
20681 For shared mappings, we should conversely verify that changes get
20682 propagated back to all the places they're supposed to be.
20684 Grep wants private fixed already mapped.
20685 The main things grep needs to know about mmap are:
20686 * does it exist and is it safe to write into the mmap'd area
20687 * how to use it (BSD variants) */
20690 #include <sys/mman.h>
20692 #if !STDC_HEADERS && !HAVE_STDLIB_H
20696 /* This mess was copied from the GNU getpagesize.h. */
20697 #if !HAVE_GETPAGESIZE
20698 /* Assume that all systems that can run configure have sys/param.h. */
20699 # if !HAVE_SYS_PARAM_H
20700 # define HAVE_SYS_PARAM_H 1
20703 # ifdef _SC_PAGESIZE
20704 # define getpagesize() sysconf(_SC_PAGESIZE)
20705 # else /* no _SC_PAGESIZE */
20706 # if HAVE_SYS_PARAM_H
20707 # include <sys/param.h>
20708 # ifdef EXEC_PAGESIZE
20709 # define getpagesize() EXEC_PAGESIZE
20710 # else /* no EXEC_PAGESIZE */
20712 # define getpagesize() NBPG * CLSIZE
20715 # endif /* no CLSIZE */
20716 # else /* no NBPG */
20718 # define getpagesize() NBPC
20719 # else /* no NBPC */
20721 # define getpagesize() PAGESIZE
20722 # endif /* PAGESIZE */
20723 # endif /* no NBPC */
20724 # endif /* no NBPG */
20725 # endif /* no EXEC_PAGESIZE */
20726 # else /* no HAVE_SYS_PARAM_H */
20727 # define getpagesize() 8192 /* punt totally */
20728 # endif /* no HAVE_SYS_PARAM_H */
20729 # endif /* no _SC_PAGESIZE */
20731 #endif /* no HAVE_GETPAGESIZE */
20736 char *data, *data2, *data3;
20740 pagesize = getpagesize ();
20742 /* First, make a file with some known garbage in it. */
20743 data = (char *) malloc (pagesize);
20746 for (i = 0; i < pagesize; ++i)
20747 *(data + i) = rand ();
20749 fd = creat ("conftest.mmap", 0600);
20752 if (write (fd, data, pagesize) != pagesize)
20756 /* Next, try to mmap the file at a fixed address which already has
20757 something else allocated at it. If we can, also make sure that
20758 we see the same garbage. */
20759 fd = open ("conftest.mmap", O_RDWR);
20762 data2 = (char *) malloc (2 * pagesize);
20765 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20766 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20767 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20769 for (i = 0; i < pagesize; ++i)
20770 if (*(data + i) != *(data2 + i))
20773 /* Finally, make sure that changes to the mapped area do not
20774 percolate back to the file as seen by read(). (This is a bug on
20775 some variants of i386 svr4.0.) */
20776 for (i = 0; i < pagesize; ++i)
20777 *(data2 + i) = *(data2 + i) + 1;
20778 data3 = (char *) malloc (pagesize);
20781 if (read (fd, data3, pagesize) != pagesize)
20783 for (i = 0; i < pagesize; ++i)
20784 if (*(data + i) != *(data3 + i))
20790 rm -f conftest$ac_exeext
20791 if { (ac_try="$ac_link"
20792 case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_link") 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_cv_func_mmap_fixed_mapped=yes
20812 echo "$as_me: program exited with status $ac_status" >&5
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 ( exit $ac_status )
20817 ac_cv_func_mmap_fixed_mapped=no
20819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20824 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20825 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20826 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20828 cat >>confdefs.h <<\_ACEOF
20829 #define HAVE_MMAP 1
20833 rm -f conftest.mmap
20835 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20836 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20837 if test "${ac_cv_func_mmap_file+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 ac_cpp='$CPP $CPPFLAGS'
20842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20846 if test "$cross_compiling" = yes; then
20847 ac_cv_func_mmap_file=no
20849 cat >conftest.$ac_ext <<_ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20857 #include <sys/types.h>
20858 #include <sys/mman.h>
20866 fd = creat ("foo",0777);
20867 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20869 return (fd != (int) MAP_FAILED);
20874 rm -f conftest$ac_exeext
20875 if { (ac_try="$ac_link"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_link") 2>&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20885 { (case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_try") 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20894 ac_cv_func_mmap_file=yes
20896 echo "$as_me: program exited with status $ac_status" >&5
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ( exit $ac_status )
20901 ac_cv_func_mmap_file=no
20903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20908 ac_cpp='$CPP $CPPFLAGS'
20909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20915 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20916 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20917 if test "$ac_cv_func_mmap_file" = yes; then
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_MMAP_FILE
20927 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20928 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20929 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 if test "$llvm_cv_os_type" = "Interix" ; then
20933 ac_cv_need_dev_zero_for_mmap=yes
20935 ac_cv_need_dev_zero_for_mmap=no
20939 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20940 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20941 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20943 cat >>confdefs.h <<\_ACEOF
20944 #define NEED_DEV_ZERO_FOR_MMAP 1
20949 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20951 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20952 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20954 if test "$ac_cv_func_mmap_file" = "no"
20956 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20957 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20961 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20962 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20964 ac_cpp='$CXXCPP $CPPFLAGS'
20965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20976 volatile unsigned long val = 1;
20977 __sync_synchronize();
20978 __sync_val_compare_and_swap(&val, 1, 0);
20979 __sync_add_and_fetch(&val, 1);
20980 __sync_sub_and_fetch(&val, 1);
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (ac_try="$ac_link"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_link") 2>conftest.er1
20994 grep -v '^ *+' conftest.er1 >conftest.err
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } &&
20999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; } &&
21009 { ac_try='test -s conftest$ac_exeext'
21010 { (case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_try") 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21020 ac_cpp='$CPP $CPPFLAGS'
21021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21025 { echo "$as_me:$LINENO: result: yes" >&5
21026 echo "${ECHO_T}yes" >&6; }
21028 cat >>confdefs.h <<\_ACEOF
21029 #define LLVM_HAS_ATOMICS 1
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 { echo "$as_me:$LINENO: result: no" >&5
21037 echo "${ECHO_T}no" >&6; }
21039 cat >>confdefs.h <<\_ACEOF
21040 #define LLVM_HAS_ATOMICS 0
21043 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21044 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21047 rm -f core conftest.err conftest.$ac_objext \
21048 conftest$ac_exeext conftest.$ac_ext
21051 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21052 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21053 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21054 if test "${llvm_cv_linux_mixed+set}" = set; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 ac_cpp='$CPP $CPPFLAGS'
21059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21063 cat >conftest.$ac_ext <<_ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21070 error: Not x86-64 even if uname says so!
21081 rm -f conftest.$ac_objext
21082 if { (ac_try="$ac_compile"
21083 case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_compile") 2>conftest.er1
21090 grep -v '^ *+' conftest.er1 >conftest.err
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } &&
21095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21096 { (case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_try") 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; } &&
21105 { ac_try='test -s conftest.$ac_objext'
21106 { (case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_try") 2>&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 llvm_cv_linux_mixed=no
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21120 llvm_cv_linux_mixed=yes
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 ac_cpp='$CPP $CPPFLAGS'
21126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21132 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21133 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21135 if test "$llvm_cv_linux_mixed" = "yes"; then
21136 llvm_cv_target_arch="x86"
21142 for ac_func in __dso_handle
21144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21150 cat >conftest.$ac_ext <<_ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21158 #define $ac_func innocuous_$ac_func
21160 /* System header to define __stub macros and hopefully few prototypes,
21161 which can conflict with char $ac_func (); below.
21162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21163 <limits.h> exists even on freestanding compilers. */
21166 # include <limits.h>
21168 # include <assert.h>
21173 /* Override any GCC internal prototype to avoid an error.
21174 Use char because int might match the return type of a GCC
21175 builtin and then its argument prototype would still apply. */
21180 /* The GNU C library defines this for functions which it implements
21181 to always fail with ENOSYS. Some functions are actually named
21182 something starting with __ and the normal name is an alias. */
21183 #if defined __stub_$ac_func || defined __stub___$ac_func
21190 return $ac_func ();
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (ac_try="$ac_link"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_link") 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } &&
21209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21210 { (case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21215 (eval "$ac_try") 2>&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; } &&
21219 { ac_try='test -s conftest$ac_exeext'
21220 { (case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_try") 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 eval "$as_ac_var=yes"
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 eval "$as_ac_var=no"
21237 rm -f core conftest.err conftest.$ac_objext \
21238 conftest$ac_exeext conftest.$ac_ext
21240 ac_res=`eval echo '${'$as_ac_var'}'`
21241 { echo "$as_me:$LINENO: result: $ac_res" >&5
21242 echo "${ECHO_T}$ac_res" >&6; }
21243 if test `eval echo '${'$as_ac_var'}'` = yes; then
21244 cat >>confdefs.h <<_ACEOF
21245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21252 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
21253 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
21254 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 llvm_cv_llvmgcc_dragonegg="no"
21258 if test -n "$LLVMGCC" ; then
21259 cp /dev/null conftest.c
21260 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
21261 if test $? -eq 0 ; then
21262 llvm_cv_llvmgcc_dragonegg="yes"
21267 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
21268 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
21270 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
21271 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
21272 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
21274 LLVMCC_EMITIR_FLAG="-emit-llvm"
21275 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
21280 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21281 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
21282 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21285 llvm_cv_llvmgcc_sanity="no"
21286 if test -n "$LLVMGCC" ; then
21287 cp /dev/null conftest.c
21288 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
21289 grep 'target datalayout =' > /dev/null 2>&1
21290 if test $? -eq 0 ; then
21291 llvm_cv_llvmgcc_sanity="yes"
21296 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
21297 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
21299 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
21300 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
21301 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
21302 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
21303 LLVMCC1=$llvmcc1path
21305 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
21306 LLVMCC1PLUS=$llvmcc1pluspath
21308 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
21309 LLVMGCCDIR=$llvmgccdir
21311 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
21312 LLVMGCC_LANGS=$llvmgcclangs
21314 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
21317 { echo "$as_me:$LINENO: result: ok" >&5
21318 echo "${ECHO_T}ok" >&6; }
21321 SHLIBEXT=$libltdl_cv_shlibext
21324 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21327 # Translate the various configuration directories and other basic
21328 # information into substitutions that will end up in Makefile.config.in
21329 # that these configured values can be used by the makefiles
21330 if test "${prefix}" = "NONE" ; then
21331 prefix="/usr/local"
21333 eval LLVM_PREFIX="${prefix}";
21334 eval LLVM_BINDIR="${prefix}/bin";
21335 eval LLVM_LIBDIR="${prefix}/lib";
21336 eval LLVM_DATADIR="${prefix}/share/llvm";
21337 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21338 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21339 eval LLVM_INCLUDEDIR="${prefix}/include";
21340 eval LLVM_INFODIR="${prefix}/info";
21341 eval LLVM_MANDIR="${prefix}/man";
21342 LLVM_CONFIGTIME=`date`
21354 # Place the various directores into the config.h file as #defines so that we
21355 # can know about the installation paths within LLVM.
21357 cat >>confdefs.h <<_ACEOF
21358 #define LLVM_PREFIX "$LLVM_PREFIX"
21362 cat >>confdefs.h <<_ACEOF
21363 #define LLVM_BINDIR "$LLVM_BINDIR"
21367 cat >>confdefs.h <<_ACEOF
21368 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21372 cat >>confdefs.h <<_ACEOF
21373 #define LLVM_DATADIR "$LLVM_DATADIR"
21377 cat >>confdefs.h <<_ACEOF
21378 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21382 cat >>confdefs.h <<_ACEOF
21383 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21387 cat >>confdefs.h <<_ACEOF
21388 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21392 cat >>confdefs.h <<_ACEOF
21393 #define LLVM_INFODIR "$LLVM_INFODIR"
21397 cat >>confdefs.h <<_ACEOF
21398 #define LLVM_MANDIR "$LLVM_MANDIR"
21402 cat >>confdefs.h <<_ACEOF
21403 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21407 cat >>confdefs.h <<_ACEOF
21408 #define LLVM_HOSTTRIPLE "$host"
21412 # Determine which bindings to build.
21413 if test "$BINDINGS_TO_BUILD" = auto ; then
21414 BINDINGS_TO_BUILD=""
21415 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21416 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21419 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21422 # This isn't really configurey, but it avoids having to repeat the list in
21427 # Do any work necessary to ensure that bindings have what they need.
21428 binding_prereqs_failed=0
21429 for a_binding in $BINDINGS_TO_BUILD ; do
21430 case "$a_binding" in
21432 if test "x$OCAMLC" = x ; then
21433 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21434 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21435 binding_prereqs_failed=1
21437 if test "x$OCAMLDEP" = x ; then
21438 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21439 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21440 binding_prereqs_failed=1
21442 if test "x$OCAMLOPT" = x ; then
21443 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21444 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21446 if test "x$with_ocaml_libdir" != xauto ; then
21447 OCAML_LIBDIR=$with_ocaml_libdir
21450 ocaml_stdlib="`"$OCAMLC" -where`"
21451 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21453 # ocaml stdlib is beneath our prefix; use stdlib
21454 OCAML_LIBDIR=$ocaml_stdlib
21457 # ocaml stdlib is outside our prefix; use libdir/ocaml
21458 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21465 if test "$binding_prereqs_failed" = 1 ; then
21466 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21467 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21468 { (exit 1); exit 1; }; }
21471 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21472 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21473 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21474 echo $ECHO_N "(cached) $ECHO_C" >&6
21477 ac_cpp='$CXXCPP $CPPFLAGS'
21478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21482 oldcxxflags="$CXXFLAGS"
21483 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21499 rm -f conftest.$ac_objext
21500 if { (ac_try="$ac_compile"
21501 case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_compile") 2>conftest.er1
21508 grep -v '^ *+' conftest.er1 >conftest.err
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
21513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21514 { (case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_try") 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; } &&
21523 { ac_try='test -s conftest.$ac_objext'
21524 { (case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_try") 2>&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 llvm_cv_cxx_visibility_inlines_hidden=yes
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21538 llvm_cv_cxx_visibility_inlines_hidden=no
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542 CXXFLAGS="$oldcxxflags"
21544 ac_cpp='$CPP $CPPFLAGS'
21545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21551 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21552 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21553 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21554 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21557 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21562 if test "$llvm_cv_link_use_r" = "yes" ; then
21569 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21570 RDYNAMIC="-Wl,-export-dynamic"
21577 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21584 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21586 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21588 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21590 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21592 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21595 ac_config_files="$ac_config_files Makefile.config"
21598 ac_config_files="$ac_config_files llvm.spec"
21601 ac_config_files="$ac_config_files docs/doxygen.cfg"
21603 if test -f ${srcdir}/tools/clang/README.txt; then
21604 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21608 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21611 ac_config_commands="$ac_config_commands setup"
21613 ac_config_commands="$ac_config_commands Makefile"
21616 ac_config_commands="$ac_config_commands Makefile.common"
21619 ac_config_commands="$ac_config_commands examples/Makefile"
21622 ac_config_commands="$ac_config_commands lib/Makefile"
21625 ac_config_commands="$ac_config_commands runtime/Makefile"
21628 ac_config_commands="$ac_config_commands test/Makefile"
21631 ac_config_commands="$ac_config_commands test/Makefile.tests"
21634 ac_config_commands="$ac_config_commands unittests/Makefile"
21637 ac_config_commands="$ac_config_commands tools/Makefile"
21640 ac_config_commands="$ac_config_commands utils/Makefile"
21643 ac_config_commands="$ac_config_commands projects/Makefile"
21646 ac_config_commands="$ac_config_commands bindings/Makefile"
21649 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21653 cat >confcache <<\_ACEOF
21654 # This file is a shell script that caches the results of configure
21655 # tests run on this system so they can be shared between configure
21656 # scripts and configure runs, see configure's option --config-cache.
21657 # It is not useful on other systems. If it contains results you don't
21658 # want to keep, you may remove or edit it.
21660 # config.status only pays attention to the cache file if you give it
21661 # the --recheck option to rerun configure.
21663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21665 # following values.
21669 # The following way of writing the cache mishandles newlines in values,
21670 # but we know of no workaround that is simple, portable, and efficient.
21671 # So, we kill variables containing newlines.
21672 # Ultrix sh set writes to stderr and can't be redirected directly,
21673 # and sets the high bit in the cache file unless we assign to the vars.
21675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21676 eval ac_val=\$$ac_var
21680 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21681 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21684 _ | IFS | as_nl) ;; #(
21685 *) $as_unset $ac_var ;;
21691 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21692 *${as_nl}ac_space=\ *)
21693 # `set' does not quote correctly, so add quotes (double-quote
21694 # substitution turns \\\\ into \\, and sed turns \\ into \).
21697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21700 # `set' quotes correctly as required by POSIX, so do not add quotes.
21701 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21710 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21712 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21714 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21715 if test -w "$cache_file"; then
21716 test "x$cache_file" != "x/dev/null" &&
21717 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21718 echo "$as_me: updating cache $cache_file" >&6;}
21719 cat confcache >$cache_file
21721 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21722 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21727 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21728 # Let make expand exec_prefix.
21729 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21731 DEFS=-DHAVE_CONFIG_H
21735 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21736 # 1. Remove the extension, and $U if already installed.
21737 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21738 ac_i=`echo "$ac_i" | sed "$ac_script"`
21739 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21740 # will be set to the directory where LIBOBJS objects are built.
21741 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21742 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21744 LIBOBJS=$ac_libobjs
21746 LTLIBOBJS=$ac_ltlibobjs
21749 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21750 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21751 Usually this means the macro was only invoked conditionally." >&5
21752 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21753 Usually this means the macro was only invoked conditionally." >&2;}
21754 { (exit 1); exit 1; }; }
21756 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21757 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21758 Usually this means the macro was only invoked conditionally." >&5
21759 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21760 Usually this means the macro was only invoked conditionally." >&2;}
21761 { (exit 1); exit 1; }; }
21764 : ${CONFIG_STATUS=./config.status}
21765 ac_clean_files_save=$ac_clean_files
21766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21767 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21768 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21769 cat >$CONFIG_STATUS <<_ACEOF
21771 # Generated by $as_me.
21772 # Run this file to recreate the current configuration.
21773 # Compiler output produced by configure, useful for debugging
21774 # configure, is in config.log if it exists.
21777 ac_cs_recheck=false
21779 SHELL=\${CONFIG_SHELL-$SHELL}
21782 cat >>$CONFIG_STATUS <<\_ACEOF
21783 ## --------------------- ##
21784 ## M4sh Initialization. ##
21785 ## --------------------- ##
21787 # Be Bourne compatible
21788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21791 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21792 # is contrary to our usage. Disable this feature.
21793 alias -g '${1+"$@"}'='"$@"'
21794 setopt NO_GLOB_SUBST
21796 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21798 BIN_SH=xpg4; export BIN_SH # for Tru64
21799 DUALCASE=1; export DUALCASE # for MKS sh
21803 # Avoid depending upon Character Ranges.
21804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21807 as_cr_digits='0123456789'
21808 as_cr_alnum=$as_cr_Letters$as_cr_digits
21810 # The user is always right.
21811 if test "${PATH_SEPARATOR+set}" != set; then
21812 echo "#! /bin/sh" >conf$$.sh
21813 echo "exit 0" >>conf$$.sh
21815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21823 # Support unset when possible.
21824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21832 # We need space, tab and new line, in precisely that order. Quoting is
21833 # there to prevent editors from complaining about space-tab.
21834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21835 # splitting by setting IFS to empty value.)
21840 # Find who we are. Look in the path if we contain no directory separator.
21842 *[\\/]* ) as_myself=$0 ;;
21843 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21844 for as_dir in $PATH
21847 test -z "$as_dir" && as_dir=.
21848 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21854 # We did not find ourselves, most probably we were run as `sh COMMAND'
21855 # in which case we are not to be found in the path.
21856 if test "x$as_myself" = x; then
21859 if test ! -f "$as_myself"; then
21860 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21861 { (exit 1); exit 1; }
21864 # Work around bugs in pre-3.0 UWIN ksh.
21865 for as_var in ENV MAIL MAILPATH
21866 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21874 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21875 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21876 LC_TELEPHONE LC_TIME
21878 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21879 eval $as_var=C; export $as_var
21881 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21885 # Required to use basename.
21886 if expr a : '\(a\)' >/dev/null 2>&1 &&
21887 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21894 as_basename=basename
21900 # Name of the executable.
21901 as_me=`$as_basename -- "$0" ||
21902 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21903 X"$0" : 'X\(//\)$' \| \
21904 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21906 sed '/^.*\/\([^/][^/]*\)\/*$/{
21925 as_lineno_1=$LINENO
21926 as_lineno_2=$LINENO
21927 test "x$as_lineno_1" != "x$as_lineno_2" &&
21928 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21930 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21931 # uniformly replaced by the line number. The first 'sed' inserts a
21932 # line-number line after each line using $LINENO; the second 'sed'
21933 # does the real work. The second script uses 'N' to pair each
21934 # line-number line with the line containing $LINENO, and appends
21935 # trailing '-' during substitution so that $LINENO is not a special
21936 # case at line end.
21937 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21938 # scripts with optimization help from Paolo Bonzini. Blame Lee
21939 # E. McMahon (1931-1989) for sed's syntax. :-)
21951 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21954 ' >$as_me.lineno &&
21955 chmod +x "$as_me.lineno" ||
21956 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21957 { (exit 1); exit 1; }; }
21959 # Don't try to exec as it changes $[0], causing all sort of problems
21960 # (the dirname of $[0] is not the place where we might find the
21961 # original and so on. Autoconf is especially sensitive to this).
21962 . "./$as_me.lineno"
21963 # Exit status is that of the last command.
21968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21974 ECHO_C= ECHO_N= ECHO_T=
21975 case `echo -n x` in
21977 case `echo 'x\c'` in
21978 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21985 if expr a : '\(a\)' >/dev/null 2>&1 &&
21986 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21992 rm -f conf$$ conf$$.exe conf$$.file
21993 if test -d conf$$.dir; then
21994 rm -f conf$$.dir/conf$$.file
22000 if ln -s conf$$.file conf$$ 2>/dev/null; then
22002 # ... but there are two gotchas:
22003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22005 # In both cases, we have to default to `cp -p'.
22006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22008 elif ln conf$$.file conf$$ 2>/dev/null; then
22013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22014 rmdir conf$$.dir 2>/dev/null
22016 if mkdir -p . 2>/dev/null; then
22019 test -d ./-p && rmdir ./-p
22023 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22024 # systems may use methods other than mode bits to determine executability.
22025 cat >conf$$.file <<_ASEOF
22029 chmod +x conf$$.file
22030 if test -x conf$$.file >/dev/null 2>&1; then
22031 as_executable_p="test -x"
22037 # Sed expression to map a string onto a valid CPP name.
22038 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22040 # Sed expression to map a string onto a valid variable name.
22041 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22046 # Save the log message, to keep $[0] and so on meaningful, and to
22047 # report actual input values of CONFIG_FILES etc. instead of their
22048 # values after options handling.
22050 This file was extended by llvm $as_me 3.0svn, which was
22051 generated by GNU Autoconf 2.60. Invocation command line was
22053 CONFIG_FILES = $CONFIG_FILES
22054 CONFIG_HEADERS = $CONFIG_HEADERS
22055 CONFIG_LINKS = $CONFIG_LINKS
22056 CONFIG_COMMANDS = $CONFIG_COMMANDS
22059 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22064 cat >>$CONFIG_STATUS <<_ACEOF
22065 # Files that config.status was made for.
22066 config_files="$ac_config_files"
22067 config_headers="$ac_config_headers"
22068 config_commands="$ac_config_commands"
22072 cat >>$CONFIG_STATUS <<\_ACEOF
22074 \`$as_me' instantiates files from templates according to the
22075 current configuration.
22077 Usage: $0 [OPTIONS] [FILE]...
22079 -h, --help print this help, then exit
22080 -V, --version print version number, then exit
22081 -q, --quiet do not print progress messages
22082 -d, --debug don't remove temporary files
22083 --recheck update $as_me by reconfiguring in the same conditions
22084 --file=FILE[:TEMPLATE]
22085 instantiate the configuration file FILE
22086 --header=FILE[:TEMPLATE]
22087 instantiate the configuration header FILE
22089 Configuration files:
22092 Configuration headers:
22095 Configuration commands:
22098 Report bugs to <bug-autoconf@gnu.org>."
22101 cat >>$CONFIG_STATUS <<_ACEOF
22103 llvm config.status 3.0svn
22104 configured by $0, generated by GNU Autoconf 2.60,
22105 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22107 Copyright (C) 2006 Free Software Foundation, Inc.
22108 This config.status script is free software; the Free Software Foundation
22109 gives unlimited permission to copy, distribute and modify it."
22116 cat >>$CONFIG_STATUS <<\_ACEOF
22117 # If no file are specified by the user, then we need to provide default
22118 # value. By we need to know if files were specified by the user.
22124 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22125 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22136 # Handling of the options.
22137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22139 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22140 echo "$ac_cs_version"; exit ;;
22141 --debug | --debu | --deb | --de | --d | -d )
22143 --file | --fil | --fi | --f )
22145 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22146 ac_need_defaults=false;;
22147 --header | --heade | --head | --hea )
22149 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22150 ac_need_defaults=false;;
22152 # Conflict between --help and --header
22153 { echo "$as_me: error: ambiguous option: $1
22154 Try \`$0 --help' for more information." >&2
22155 { (exit 1); exit 1; }; };;
22156 --help | --hel | -h )
22157 echo "$ac_cs_usage"; exit ;;
22158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22159 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22162 # This is an error.
22163 -*) { echo "$as_me: error: unrecognized option: $1
22164 Try \`$0 --help' for more information." >&2
22165 { (exit 1); exit 1; }; } ;;
22167 *) ac_config_targets="$ac_config_targets $1"
22168 ac_need_defaults=false ;;
22174 ac_configure_extra_args=
22176 if $ac_cs_silent; then
22178 ac_configure_extra_args="$ac_configure_extra_args --silent"
22182 cat >>$CONFIG_STATUS <<_ACEOF
22183 if \$ac_cs_recheck; then
22184 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22185 CONFIG_SHELL=$SHELL
22186 export CONFIG_SHELL
22187 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22191 cat >>$CONFIG_STATUS <<\_ACEOF
22195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22196 ## Running $as_me. ##
22202 cat >>$CONFIG_STATUS <<_ACEOF
22206 llvm_src="${srcdir}"
22210 cat >>$CONFIG_STATUS <<\_ACEOF
22212 # Handling of arguments.
22213 for ac_config_target in $ac_config_targets
22215 case $ac_config_target in
22216 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22217 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22218 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22219 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22220 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22221 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22222 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22223 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22224 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22225 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22226 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
22227 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
22228 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22229 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22230 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22231 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22232 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22233 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22234 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22235 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22236 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22237 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22238 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22239 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22240 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22241 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22243 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22244 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22245 { (exit 1); exit 1; }; };;
22250 # If the user did not use the arguments to specify the items to instantiate,
22251 # then the envvar interface is used. Set only those that are not.
22252 # We use the long form for the default assignment because of an extremely
22253 # bizarre bug on SunOS 4.1.3.
22254 if $ac_need_defaults; then
22255 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22256 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22257 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22260 # Have a temporary directory for convenience. Make it in the build tree
22261 # simply because there is no reason against having it here, and in addition,
22262 # creating and moving files from /tmp can sometimes cause problems.
22263 # Hook for its removal unless debugging.
22264 # Note that there is a small window in which the directory will not be cleaned:
22265 # after its creation but before its name has been assigned to `$tmp'.
22269 trap 'exit_status=$?
22270 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22272 trap '{ (exit 1); exit 1; }' 1 2 13 15
22274 # Create a (secure) tmp directory for tmp files.
22277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22278 test -n "$tmp" && test -d "$tmp"
22281 tmp=./conf$$-$RANDOM
22282 (umask 077 && mkdir "$tmp")
22285 echo "$me: cannot create a temporary directory in ." >&2
22286 { (exit 1); exit 1; }
22290 # Set up the sed scripts for CONFIG_FILES section.
22293 # No need to generate the scripts if there are no CONFIG_FILES.
22294 # This happens for instance when ./config.status config.h
22295 if test -n "$CONFIG_FILES"; then
22302 for ac_last_try in false false false false false :; do
22303 cat >conf$$subs.sed <<_ACEOF
22304 SHELL!$SHELL$ac_delim
22305 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22306 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22307 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22308 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22309 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22310 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22311 exec_prefix!$exec_prefix$ac_delim
22312 prefix!$prefix$ac_delim
22313 program_transform_name!$program_transform_name$ac_delim
22314 bindir!$bindir$ac_delim
22315 sbindir!$sbindir$ac_delim
22316 libexecdir!$libexecdir$ac_delim
22317 datarootdir!$datarootdir$ac_delim
22318 datadir!$datadir$ac_delim
22319 sysconfdir!$sysconfdir$ac_delim
22320 sharedstatedir!$sharedstatedir$ac_delim
22321 localstatedir!$localstatedir$ac_delim
22322 includedir!$includedir$ac_delim
22323 oldincludedir!$oldincludedir$ac_delim
22324 docdir!$docdir$ac_delim
22325 infodir!$infodir$ac_delim
22326 htmldir!$htmldir$ac_delim
22327 dvidir!$dvidir$ac_delim
22328 pdfdir!$pdfdir$ac_delim
22329 psdir!$psdir$ac_delim
22330 libdir!$libdir$ac_delim
22331 localedir!$localedir$ac_delim
22332 mandir!$mandir$ac_delim
22333 DEFS!$DEFS$ac_delim
22334 ECHO_C!$ECHO_C$ac_delim
22335 ECHO_N!$ECHO_N$ac_delim
22336 ECHO_T!$ECHO_T$ac_delim
22337 LIBS!$LIBS$ac_delim
22338 build_alias!$build_alias$ac_delim
22339 host_alias!$host_alias$ac_delim
22340 target_alias!$target_alias$ac_delim
22341 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22343 CFLAGS!$CFLAGS$ac_delim
22344 LDFLAGS!$LDFLAGS$ac_delim
22345 CPPFLAGS!$CPPFLAGS$ac_delim
22346 ac_ct_CC!$ac_ct_CC$ac_delim
22347 EXEEXT!$EXEEXT$ac_delim
22348 OBJEXT!$OBJEXT$ac_delim
22350 CXXFLAGS!$CXXFLAGS$ac_delim
22351 ac_ct_CXX!$ac_ct_CXX$ac_delim
22353 subdirs!$subdirs$ac_delim
22354 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22355 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22356 build!$build$ac_delim
22357 build_cpu!$build_cpu$ac_delim
22358 build_vendor!$build_vendor$ac_delim
22359 build_os!$build_os$ac_delim
22360 host!$host$ac_delim
22361 host_cpu!$host_cpu$ac_delim
22362 host_vendor!$host_vendor$ac_delim
22363 host_os!$host_os$ac_delim
22364 target!$target$ac_delim
22365 target_cpu!$target_cpu$ac_delim
22366 target_vendor!$target_vendor$ac_delim
22367 target_os!$target_os$ac_delim
22369 HOST_OS!$HOST_OS$ac_delim
22370 TARGET_OS!$TARGET_OS$ac_delim
22371 LINKALL!$LINKALL$ac_delim
22372 NOLINKALL!$NOLINKALL$ac_delim
22373 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22374 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22375 ARCH!$ARCH$ac_delim
22376 ENDIAN!$ENDIAN$ac_delim
22377 GREP!$GREP$ac_delim
22378 EGREP!$EGREP$ac_delim
22379 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22380 BUILD_CC!$BUILD_CC$ac_delim
22381 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22382 BUILD_CXX!$BUILD_CXX$ac_delim
22383 CVSBUILD!$CVSBUILD$ac_delim
22384 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22385 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22386 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22387 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22388 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22389 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22390 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22392 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22393 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22394 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22395 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22396 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22397 ENABLE_PIC!$ENABLE_PIC$ac_delim
22398 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22399 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22400 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22403 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22405 elif $ac_last_try; then
22406 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22407 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22408 { (exit 1); exit 1; }; }
22410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22414 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22415 if test -n "$ac_eof"; then
22416 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22417 ac_eof=`expr $ac_eof + 1`
22420 cat >>$CONFIG_STATUS <<_ACEOF
22421 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22425 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22426 s/^/s,@/; s/!/@,|#_!!_#|/
22429 s/'"$ac_delim"'$/,g/; t
22431 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22432 ' >>$CONFIG_STATUS <conf$$subs.sed
22433 rm -f conf$$subs.sed
22434 cat >>$CONFIG_STATUS <<_ACEOF
22440 for ac_last_try in false false false false false :; do
22441 cat >conf$$subs.sed <<_ACEOF
22442 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22443 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22444 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22445 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22446 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22447 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22448 CLANGPATH!$CLANGPATH$ac_delim
22449 CLANGXXPATH!$CLANGXXPATH$ac_delim
22450 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
22451 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22452 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22453 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22454 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22456 ifGNUmake!$ifGNUmake$ac_delim
22457 LN_S!$LN_S$ac_delim
22460 DATE!$DATE$ac_delim
22461 FIND!$FIND$ac_delim
22462 MKDIR!$MKDIR$ac_delim
22464 RANLIB!$RANLIB$ac_delim
22469 BINPWD!$BINPWD$ac_delim
22470 GRAPHVIZ!$GRAPHVIZ$ac_delim
22473 NEATO!$NEATO$ac_delim
22474 TWOPI!$TWOPI$ac_delim
22475 CIRCO!$CIRCO$ac_delim
22477 DOTTY!$DOTTY$ac_delim
22478 XDOT_PY!$XDOT_PY$ac_delim
22479 PERL!$PERL$ac_delim
22480 HAVE_PERL!$HAVE_PERL$ac_delim
22481 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22482 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22483 INSTALL_DATA!$INSTALL_DATA$ac_delim
22484 BZIP2!$BZIP2$ac_delim
22486 DOXYGEN!$DOXYGEN$ac_delim
22487 GROFF!$GROFF$ac_delim
22488 GZIPBIN!$GZIPBIN$ac_delim
22489 POD2HTML!$POD2HTML$ac_delim
22490 POD2MAN!$POD2MAN$ac_delim
22491 PDFROFF!$PDFROFF$ac_delim
22492 RUNTEST!$RUNTEST$ac_delim
22493 TCLSH!$TCLSH$ac_delim
22495 OCAMLC!$OCAMLC$ac_delim
22496 OCAMLOPT!$OCAMLOPT$ac_delim
22497 OCAMLDEP!$OCAMLDEP$ac_delim
22498 OCAMLDOC!$OCAMLDOC$ac_delim
22500 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22501 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22502 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22503 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22504 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22505 LIBADD_DL!$LIBADD_DL$ac_delim
22506 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
22507 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
22508 LLVMGCC!$LLVMGCC$ac_delim
22509 LLVMGXX!$LLVMGXX$ac_delim
22510 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
22511 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22512 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22513 USE_UDIS86!$USE_UDIS86$ac_delim
22514 USE_OPROFILE!$USE_OPROFILE$ac_delim
22515 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22516 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22517 MMAP_FILE!$MMAP_FILE$ac_delim
22518 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
22519 LLVMCC1!$LLVMCC1$ac_delim
22520 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
22521 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
22522 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
22523 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
22524 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
22525 SHLIBEXT!$SHLIBEXT$ac_delim
22526 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22527 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22528 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22529 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22530 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22531 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22532 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22533 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22534 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22535 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22536 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22537 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22538 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22541 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22543 elif $ac_last_try; then
22544 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22545 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22546 { (exit 1); exit 1; }; }
22548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22552 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22553 if test -n "$ac_eof"; then
22554 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22555 ac_eof=`expr $ac_eof + 1`
22558 cat >>$CONFIG_STATUS <<_ACEOF
22559 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22563 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22564 s/^/s,@/; s/!/@,|#_!!_#|/
22567 s/'"$ac_delim"'$/,g/; t
22569 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22570 ' >>$CONFIG_STATUS <conf$$subs.sed
22571 rm -f conf$$subs.sed
22572 cat >>$CONFIG_STATUS <<_ACEOF
22578 for ac_last_try in false false false false false :; do
22579 cat >conf$$subs.sed <<_ACEOF
22580 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22581 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22582 RPATH!$RPATH$ac_delim
22583 RDYNAMIC!$RDYNAMIC$ac_delim
22584 LIBOBJS!$LIBOBJS$ac_delim
22585 LTLIBOBJS!$LTLIBOBJS$ac_delim
22588 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
22590 elif $ac_last_try; then
22591 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22592 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22593 { (exit 1); exit 1; }; }
22595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22599 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22600 if test -n "$ac_eof"; then
22601 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22602 ac_eof=`expr $ac_eof + 1`
22605 cat >>$CONFIG_STATUS <<_ACEOF
22606 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22610 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22611 s/^/s,@/; s/!/@,|#_!!_#|/
22614 s/'"$ac_delim"'$/,g/; t
22616 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22617 ' >>$CONFIG_STATUS <conf$$subs.sed
22618 rm -f conf$$subs.sed
22619 cat >>$CONFIG_STATUS <<_ACEOF
22626 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22627 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22628 # trailing colons and then remove the whole line if VPATH becomes empty
22629 # (actually we leave an empty line to preserve line numbers).
22630 if test "x$srcdir" = x.; then
22631 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22632 s/:*\$(srcdir):*/:/
22633 s/:*\${srcdir}:*/:/
22635 s/^\([^=]*=[ ]*\):*/\1/
22641 cat >>$CONFIG_STATUS <<\_ACEOF
22642 fi # test -n "$CONFIG_FILES"
22645 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22648 :[FHLC]) ac_mode=$ac_tag; continue;;
22650 case $ac_mode$ac_tag in
22652 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22653 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22654 { (exit 1); exit 1; }; };;
22655 :[FH]-) ac_tag=-:-;;
22656 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22673 -) ac_f="$tmp/stdin";;
22674 *) # Look for the file first in the build tree, then in the source tree
22675 # (if the path is not absolute). The absolute path cannot be DOS-style,
22676 # because $ac_f cannot contain `:'.
22680 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22682 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22683 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22684 { (exit 1); exit 1; }; };;
22686 ac_file_inputs="$ac_file_inputs $ac_f"
22689 # Let's still pretend it is `configure' which instantiates (i.e., don't
22690 # use $as_me), people would be surprised to read:
22691 # /* config.h. Generated by config.status. */
22692 configure_input="Generated from "`IFS=:
22693 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22694 if test x"$ac_file" != x-; then
22695 configure_input="$ac_file. $configure_input"
22696 { echo "$as_me:$LINENO: creating $ac_file" >&5
22697 echo "$as_me: creating $ac_file" >&6;}
22701 *:-:* | *:-) cat >"$tmp/stdin";;
22706 ac_dir=`$as_dirname -- "$ac_file" ||
22707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22708 X"$ac_file" : 'X\(//\)[^/]' \| \
22709 X"$ac_file" : 'X\(//\)$' \| \
22710 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22716 /^X\(\/\/\)[^/].*/{
22731 -*) as_dir=./$as_dir;;
22733 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22737 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22738 *) as_qdir=$as_dir;;
22740 as_dirs="'$as_qdir' $as_dirs"
22741 as_dir=`$as_dirname -- "$as_dir" ||
22742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22743 X"$as_dir" : 'X\(//\)[^/]' \| \
22744 X"$as_dir" : 'X\(//\)$' \| \
22745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22751 /^X\(\/\/\)[^/].*/{
22764 test -d "$as_dir" && break
22766 test -z "$as_dirs" || eval "mkdir $as_dirs"
22767 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22768 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22769 { (exit 1); exit 1; }; }; }
22773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22775 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22776 # A ".." for each directory in $ac_dir_suffix.
22777 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22778 case $ac_top_builddir_sub in
22779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22783 ac_abs_top_builddir=$ac_pwd
22784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22785 # for backward compatibility:
22786 ac_top_builddir=$ac_top_build_prefix
22789 .) # We are building in place.
22791 ac_top_srcdir=$ac_top_builddir_sub
22792 ac_abs_top_srcdir=$ac_pwd ;;
22793 [\\/]* | ?:[\\/]* ) # Absolute name.
22794 ac_srcdir=$srcdir$ac_dir_suffix;
22795 ac_top_srcdir=$srcdir
22796 ac_abs_top_srcdir=$srcdir ;;
22797 *) # Relative name.
22798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22799 ac_top_srcdir=$ac_top_build_prefix$srcdir
22800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22812 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22813 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22817 cat >>$CONFIG_STATUS <<\_ACEOF
22818 # If the template does not know about datarootdir, expand it.
22819 # FIXME: This hack should be removed a few years after 2.60.
22820 ac_datarootdir_hack=; ac_datarootdir_seen=
22822 case `sed -n '/datarootdir/ {
22831 ' $ac_file_inputs` in
22832 *datarootdir*) ac_datarootdir_seen=yes;;
22833 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22834 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22835 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22837 cat >>$CONFIG_STATUS <<_ACEOF
22838 ac_datarootdir_hack='
22839 s&@datadir@&$datadir&g
22840 s&@docdir@&$docdir&g
22841 s&@infodir@&$infodir&g
22842 s&@localedir@&$localedir&g
22843 s&@mandir@&$mandir&g
22844 s&\\\${datarootdir}&$datarootdir&g' ;;
22848 # Neutralize VPATH when `$srcdir' = `.'.
22849 # Shell code in configure.ac might set extrasub.
22850 # FIXME: do we really want to maintain this feature?
22851 cat >>$CONFIG_STATUS <<_ACEOF
22855 cat >>$CONFIG_STATUS <<\_ACEOF
22857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22858 s&@configure_input@&$configure_input&;t t
22859 s&@top_builddir@&$ac_top_builddir_sub&;t t
22860 s&@srcdir@&$ac_srcdir&;t t
22861 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22862 s&@top_srcdir@&$ac_top_srcdir&;t t
22863 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22864 s&@builddir@&$ac_builddir&;t t
22865 s&@abs_builddir@&$ac_abs_builddir&;t t
22866 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22867 s&@INSTALL@&$ac_INSTALL&;t t
22868 $ac_datarootdir_hack
22869 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22872 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22873 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22874 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22875 which seems to be undefined. Please make sure it is defined." >&5
22876 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22877 which seems to be undefined. Please make sure it is defined." >&2;}
22881 -) cat "$tmp/out"; rm -f "$tmp/out";;
22882 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22891 # Transform confdefs.h into a sed script `conftest.defines', that
22892 # substitutes the proper values into config.h.in to produce config.h.
22893 rm -f conftest.defines conftest.tail
22894 # First, append a space to every undef/define line, to ease matching.
22895 echo 's/$/ /' >conftest.defines
22896 # Then, protect against being on the right side of a sed subst, or in
22897 # an unquoted here document, in config.status. If some macros were
22898 # called several times there might be several #defines for the same
22899 # symbol, which is useless. But do not sort them, since the last
22900 # AC_DEFINE must be honored.
22901 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22902 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22903 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22904 # PARAMS is the parameter list in the macro definition--in most cases, it's
22905 # just an empty string.
22906 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22907 ac_dB='\\)[ (].*,\\1define\\2'
22915 s/^[ ]*#[ ]*define[ ][ ]*//
22920 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22921 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22922 ' >>conftest.defines
22924 # Remove the space that was appended to ease matching.
22925 # Then replace #undef with comments. This is necessary, for
22926 # example, in the case of _POSIX_SOURCE, which is predefined and required
22927 # on some systems where configure will not decide to define it.
22928 # (The regexp can be short, since the line contains either #define or #undef.)
22930 s,^[ #]*u.*,/* & */,' >>conftest.defines
22932 # Break up conftest.defines:
22933 ac_max_sed_lines=50
22935 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22936 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22937 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22939 ac_in='$ac_file_inputs'
22940 ac_out='"$tmp/out1"'
22941 ac_nxt='"$tmp/out2"'
22945 # Write a here document:
22946 cat >>$CONFIG_STATUS <<_ACEOF
22947 # First, check the format of the line:
22948 cat >"\$tmp/defines.sed" <<\\CEOF
22949 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22950 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22954 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22956 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22957 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22958 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22959 grep . conftest.tail >/dev/null || break
22960 rm -f conftest.defines
22961 mv conftest.tail conftest.defines
22963 rm -f conftest.defines conftest.tail
22965 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22966 cat >>$CONFIG_STATUS <<\_ACEOF
22967 if test x"$ac_file" != x-; then
22968 echo "/* $configure_input */" >"$tmp/config.h"
22969 cat "$ac_result" >>"$tmp/config.h"
22970 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22971 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22972 echo "$as_me: $ac_file is unchanged" >&6;}
22975 mv "$tmp/config.h" $ac_file
22978 echo "/* $configure_input */"
22984 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22985 echo "$as_me: executing $ac_file commands" >&6;}
22990 case $ac_file$ac_mode in
22991 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22992 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22993 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22994 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22995 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22996 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22997 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22998 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22999 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23000 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23001 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23002 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23003 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23004 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23005 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23006 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23007 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23008 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23009 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23010 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23011 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23012 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23013 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23014 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23015 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23016 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23022 { (exit 0); exit 0; }
23024 chmod +x $CONFIG_STATUS
23025 ac_clean_files=$ac_clean_files_save
23028 # configure is writing to config.log, and then calls config.status.
23029 # config.status does its own redirection, appending to config.log.
23030 # Unfortunately, on DOS this fails, as config.log is still kept open
23031 # by configure, so config.status won't be able to write to it; its
23032 # output is simply discarded. So we exec the FD to /dev/null,
23033 # effectively closing config.log, so it can be properly (re)opened and
23034 # appended to by config.status. When coming back to configure, we
23035 # need to make the FD available again.
23036 if test "$no_create" != yes; then
23038 ac_config_status_args=
23039 test "$silent" = yes &&
23040 ac_config_status_args="$ac_config_status_args --quiet"
23042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23045 # would make configure fail if this is the last instruction.
23046 $ac_cs_success || { (exit 1); exit 1; }
23050 # CONFIG_SUBDIRS section.
23052 if test "$no_recursion" != yes; then
23054 # Remove --cache-file and --srcdir arguments so they do not pile up.
23055 ac_sub_configure_args=
23057 eval "set x $ac_configure_args"
23061 if test -n "$ac_prev"; then
23066 -cache-file | --cache-file | --cache-fil | --cache-fi \
23067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23068 ac_prev=cache_file ;;
23069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23073 --config-cache | -C)
23075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23085 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23087 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23091 # Always prepend --prefix to ensure using the same prefix
23092 # in subdir configurations.
23093 ac_arg="--prefix=$prefix"
23095 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23097 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23100 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23102 # Do not complain, so a configure script can configure whichever
23103 # parts of a large source tree are present.
23104 test -d "$srcdir/$ac_dir" || continue
23106 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23107 echo "$as_me:$LINENO: $ac_msg" >&5
23111 -*) as_dir=./$as_dir;;
23113 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23117 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23118 *) as_qdir=$as_dir;;
23120 as_dirs="'$as_qdir' $as_dirs"
23121 as_dir=`$as_dirname -- "$as_dir" ||
23122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23123 X"$as_dir" : 'X\(//\)[^/]' \| \
23124 X"$as_dir" : 'X\(//\)$' \| \
23125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23131 /^X\(\/\/\)[^/].*/{
23144 test -d "$as_dir" && break
23146 test -z "$as_dirs" || eval "mkdir $as_dirs"
23147 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23148 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23149 { (exit 1); exit 1; }; }; }
23153 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23155 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23156 # A ".." for each directory in $ac_dir_suffix.
23157 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23158 case $ac_top_builddir_sub in
23159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23163 ac_abs_top_builddir=$ac_pwd
23164 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23165 # for backward compatibility:
23166 ac_top_builddir=$ac_top_build_prefix
23169 .) # We are building in place.
23171 ac_top_srcdir=$ac_top_builddir_sub
23172 ac_abs_top_srcdir=$ac_pwd ;;
23173 [\\/]* | ?:[\\/]* ) # Absolute name.
23174 ac_srcdir=$srcdir$ac_dir_suffix;
23175 ac_top_srcdir=$srcdir
23176 ac_abs_top_srcdir=$srcdir ;;
23177 *) # Relative name.
23178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23179 ac_top_srcdir=$ac_top_build_prefix$srcdir
23180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23182 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23187 # Check for guested configure; otherwise get Cygnus style configure.
23188 if test -f "$ac_srcdir/configure.gnu"; then
23189 ac_sub_configure=$ac_srcdir/configure.gnu
23190 elif test -f "$ac_srcdir/configure"; then
23191 ac_sub_configure=$ac_srcdir/configure
23192 elif test -f "$ac_srcdir/configure.in"; then
23193 # This should be Cygnus configure.
23194 ac_sub_configure=$ac_aux_dir/configure
23196 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23197 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23201 # The recursion is here.
23202 if test -n "$ac_sub_configure"; then
23203 # Make the cache file name correct relative to the subdirectory.
23204 case $cache_file in
23205 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23206 *) # Relative name.
23207 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23210 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23211 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23212 # The eval makes quoting arguments work.
23213 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23214 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23215 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23216 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23217 { (exit 1); exit 1; }; }