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
685 ENABLE_EXPENSIVE_CHECKS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 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-tclinclude directory where tcl headers are
1475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1476 clang, or none; default=check)
1477 --with-udis86=<path> Use udis86 external x86 disassembler library
1478 --with-oprofile=<prefix>
1479 Tell OProfile >= 0.9.4 how to symbolize JIT output
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <llvmbugs@cs.uiuc.edu>.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1523 .) # We are building in place.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 llvm configure 3.0svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by llvm $as_me 3.0svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_must_keep_next=false
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 -* ) ac_must_keep_next=true ;;
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1736 if test -n "$ac_subst_files"; then
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1743 for ac_var in $ac_subst_files
1745 eval ac_val=\$$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1754 if test -s confdefs.h; then
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1845 # Check that the precious variables saved in the cache have kept the same
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936 if test -f "$ac_dir/install-sh"; then
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1940 elif test -f "$ac_dir/install.sh"; then
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1944 elif test -f "$ac_dir/shtool"; then
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966 if test ${srcdir} != "." ; then
1967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
1976 if test -d ${srcdir}/projects/llvm-gcc ; then
1977 subdirs="$subdirs projects/llvm-gcc"
1981 if test -d ${srcdir}/projects/test-suite ; then
1982 subdirs="$subdirs projects/test-suite"
1986 if test -d ${srcdir}/projects/llvm-test ; then
1987 subdirs="$subdirs projects/llvm-test"
1991 if test -d ${srcdir}/projects/poolalloc ; then
1992 subdirs="$subdirs projects/poolalloc"
1996 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1997 subdirs="$subdirs projects/llvm-poolalloc"
2001 for i in `ls ${srcdir}/projects`
2003 if test -d ${srcdir}/projects/${i} ; then
2005 sample) subdirs="$subdirs projects/sample"
2007 privbracket) subdirs="$subdirs projects/privbracket"
2009 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2011 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2013 llvm-java) subdirs="$subdirs projects/llvm-java"
2015 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2017 safecode) subdirs="$subdirs projects/safecode"
2019 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2034 # Check whether --enable-polly was given.
2035 if test "${enable_polly+set}" = set; then
2036 enableval=$enable_polly;
2041 case "$enableval" in
2046 default) ENABLE_POLLY=1
2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050 { (exit 1); exit 1; }; } ;;
2054 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2057 subdirs="$subdirs tools/polly"
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
2068 { echo "$as_me:$LINENO: checking build system type" >&5
2069 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 ac_build_alias=$build_alias
2074 test "x$ac_build_alias" = x &&
2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x &&
2077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2086 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 echo "${ECHO_T}$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
2095 ac_save_IFS=$IFS; IFS='-'
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2108 { echo "$as_me:$LINENO: checking host system type" >&5
2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test "x$host_alias" = x; then
2114 ac_cv_host=$ac_cv_build
2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 echo "${ECHO_T}$ac_cv_host" >&6; }
2127 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
2132 ac_save_IFS=$IFS; IFS='-'
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145 { echo "$as_me:$LINENO: checking target system type" >&5
2146 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_target+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 if test "x$target_alias" = x; then
2151 ac_cv_target=$ac_cv_host
2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2160 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161 echo "${ECHO_T}$ac_cv_target" >&6; }
2162 case $ac_cv_target in
2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165 echo "$as_me: error: invalid value of canonical target" >&2;}
2166 { (exit 1); exit 1; }; };;
2168 target=$ac_cv_target
2169 ac_save_IFS=$IFS; IFS='-'
2175 # Remember, the first character of IFS is used to create $*,
2176 # except with old shells:
2179 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2182 # The aliases save the names the user supplied, while $host etc.
2183 # will get canonicalized.
2184 test -n "$target_alias" &&
2185 test "$program_prefix$program_suffix$program_transform_name" = \
2187 program_prefix=${target_alias}-
2189 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191 if test "${llvm_cv_os_type+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="AIX"
2199 llvm_cv_platform_type="Unix" ;;
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="IRIX"
2204 llvm_cv_platform_type="Unix" ;;
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Cygwin"
2209 llvm_cv_platform_type="Unix" ;;
2211 llvm_cv_link_all_option="-Wl,-all_load"
2212 llvm_cv_no_link_all_option="-Wl,-noall_load"
2213 llvm_cv_os_type="Darwin"
2214 llvm_cv_platform_type="Unix" ;;
2216 llvm_cv_link_all_option="-Wl,-all_load"
2217 llvm_cv_no_link_all_option="-Wl,-noall_load"
2218 llvm_cv_os_type="Minix"
2219 llvm_cv_platform_type="Unix" ;;
2221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223 llvm_cv_os_type="FreeBSD"
2224 llvm_cv_platform_type="Unix" ;;
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="OpenBSD"
2229 llvm_cv_platform_type="Unix" ;;
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="NetBSD"
2234 llvm_cv_platform_type="Unix" ;;
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="DragonFly"
2239 llvm_cv_platform_type="Unix" ;;
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="HP-UX"
2244 llvm_cv_platform_type="Unix" ;;
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="Interix"
2249 llvm_cv_platform_type="Unix" ;;
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="Linux"
2254 llvm_cv_platform_type="Unix" ;;
2256 llvm_cv_link_all_option="-Wl,-z,allextract"
2257 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2258 llvm_cv_os_type="SunOS"
2259 llvm_cv_platform_type="Unix" ;;
2261 llvm_cv_link_all_option="-Wl,-z,allextract"
2262 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2263 llvm_cv_os_type="AuroraUX"
2264 llvm_cv_platform_type="Unix" ;;
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="Win32"
2269 llvm_cv_platform_type="Win32" ;;
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="MingW"
2274 llvm_cv_platform_type="Win32" ;;
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Haiku"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="Freestanding"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Freestanding"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option=""
2292 llvm_cv_no_link_all_option=""
2293 llvm_cv_os_type="Unknown"
2294 llvm_cv_platform_type="Unknown" ;;
2297 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2300 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302 if test "${llvm_cv_target_os_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 llvm_cv_target_os_type="AIX" ;;
2309 llvm_cv_target_os_type="IRIX" ;;
2311 llvm_cv_target_os_type="Cygwin" ;;
2313 llvm_cv_target_os_type="Darwin" ;;
2315 llvm_cv_target_os_type="Minix" ;;
2317 llvm_cv_target_os_type="FreeBSD" ;;
2319 llvm_cv_target_os_type="OpenBSD" ;;
2321 llvm_cv_target_os_type="NetBSD" ;;
2323 llvm_cv_target_os_type="DragonFly" ;;
2325 llvm_cv_target_os_type="HP-UX" ;;
2327 llvm_cv_target_os_type="Interix" ;;
2329 llvm_cv_target_os_type="Linux" ;;
2331 llvm_cv_target_os_type="SunOS" ;;
2333 llvm_cv_target_os_type="AuroraUX" ;;
2335 llvm_cv_target_os_type="Win32" ;;
2337 llvm_cv_target_os_type="MingW" ;;
2339 llvm_cv_target_os_type="Haiku" ;;
2341 llvm_cv_target_os_type="RTEMS" ;;
2343 llvm_cv_target_os_type="Freestanding" ;;
2345 llvm_cv_target_os_type="Unknown" ;;
2348 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2349 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2351 if test "$llvm_cv_os_type" = "Unknown" ; then
2352 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2353 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2354 { (exit 1); exit 1; }; }
2359 HOST_OS=$llvm_cv_os_type
2361 TARGET_OS=$llvm_cv_target_os_type
2364 LINKALL=$llvm_cv_link_all_option
2366 NOLINKALL=$llvm_cv_no_link_all_option
2369 case $llvm_cv_platform_type in
2372 cat >>confdefs.h <<\_ACEOF
2373 #define LLVM_ON_UNIX 1
2383 cat >>confdefs.h <<\_ACEOF
2384 #define LLVM_ON_WIN32 1
2394 { echo "$as_me:$LINENO: checking target architecture" >&5
2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 i?86-*) llvm_cv_target_arch="x86" ;;
2401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2402 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2404 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2405 arm*-*) llvm_cv_target_arch="ARM" ;;
2406 mips-*) llvm_cv_target_arch="Mips" ;;
2407 xcore-*) llvm_cv_target_arch="XCore" ;;
2408 msp430-*) llvm_cv_target_arch="MSP430" ;;
2409 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2410 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2411 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2412 ptx-*) llvm_cv_target_arch="PTX" ;;
2413 *) llvm_cv_target_arch="Unknown" ;;
2416 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2417 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2419 if test "$llvm_cv_target_arch" = "Unknown" ; then
2420 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2421 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2424 # Determine the LLVM native architecture for the target
2425 case "$llvm_cv_target_arch" in
2426 x86) LLVM_NATIVE_ARCH="X86" ;;
2427 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2428 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2431 ARCH=$llvm_cv_target_arch
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_CC+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC="$CC" # Let the user override the test.
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 if test -n "$CC"; then
2469 { echo "$as_me:$LINENO: result: $CC" >&5
2470 echo "${ECHO_T}$CC" >&6; }
2472 { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2478 if test -z "$ac_cv_prog_CC"; then
2480 # Extract the first word of "gcc", so it can be a program name with args.
2481 set dummy gcc; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_ac_ct_CC="gcc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508 if test -n "$ac_ct_CC"; then
2509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510 echo "${ECHO_T}$ac_ct_CC" >&6; }
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2516 if test "x$ac_ct_CC" = x; then
2519 case $cross_compiling:$ac_tool_warned in
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned=yes ;;
2535 if test -z "$CC"; then
2536 if test -n "$ac_tool_prefix"; then
2537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}cc; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_CC="${ac_tool_prefix}cc"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 if test -n "$CC"; then
2566 { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2576 if test -z "$CC"; then
2577 # Extract the first word of "cc", so it can be a program name with args.
2578 set dummy cc; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2596 ac_prog_rejected=yes
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test $ac_prog_rejected = yes; then
2608 # We found a bogon in the path, so make sure we never use it.
2609 set dummy $ac_cv_prog_CC
2611 if test $# != 0; then
2612 # We chose a different compiler from the bogus one.
2613 # However, it has the same basename, so the bogon will be chosen
2614 # first if we set CC to just the basename; use the full file name.
2616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2632 if test -z "$CC"; then
2633 if test -n "$ac_tool_prefix"; then
2634 for ac_prog in cl.exe
2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 if test -n "$CC"; then
2665 { echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6; }
2668 { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2673 test -n "$CC" && break
2676 if test -z "$CC"; then
2678 for ac_prog in cl.exe
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_ac_ct_CC="$ac_prog"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 echo "${ECHO_T}$ac_ct_CC" >&6; }
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2717 test -n "$ac_ct_CC" && break
2720 if test "x$ac_ct_CC" = x; then
2723 case $cross_compiling:$ac_tool_warned in
2725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2726 whose name does not start with the host triplet. If you think this
2727 configuration is useful to you, please write to autoconf@gnu.org." >&5
2728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2729 whose name does not start with the host triplet. If you think this
2730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2731 ac_tool_warned=yes ;;
2740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }
2746 # Provide some information about the compiler.
2747 echo "$as_me:$LINENO: checking for C compiler version" >&5
2748 ac_compiler=`set X $ac_compile; echo $2`
2749 { (ac_try="$ac_compiler --version >&5"
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler --version >&5") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759 { (ac_try="$ac_compiler -v >&5"
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -v >&5") 2>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2769 { (ac_try="$ac_compiler -V >&5"
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler -V >&5") 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2780 cat >conftest.$ac_ext <<_ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2795 ac_clean_files_save=$ac_clean_files
2796 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2797 # Try to create an executable without -o first, disregard a.out.
2798 # It will help us diagnose broken compilers, and finding out an intuition
2800 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2802 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2804 # List of possible output files, starting from the most likely.
2805 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2806 # only as a last resort. b.out is created by i960 compilers.
2807 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2809 # The IRIX 6 linker writes into existing files which may not be
2810 # executable, retaining their permissions. Remove them first so a
2811 # subsequent execution test works.
2813 for ac_file in $ac_files
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2817 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822 if { (ac_try="$ac_link_default"
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_link_default") 2>&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
2832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2835 # so that the user can short-circuit this test for compilers unknown to
2837 for ac_file in $ac_files
2839 test -f "$ac_file" || continue
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2844 # We found the default executable, but exeext='' is most
2848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 # We set ac_cv_exeext here because the later test for it is not
2853 # safe: cross compilers may not add the suffix if given an `-o'
2854 # argument, so we may need to know it at that point already.
2855 # Even if this section looks crufty: it has the advantage of
2862 test "$ac_cv_exeext" = no && ac_cv_exeext=
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&2;}
2872 { (exit 77); exit 77; }; }
2875 ac_exeext=$ac_cv_exeext
2876 { echo "$as_me:$LINENO: result: $ac_file" >&5
2877 echo "${ECHO_T}$ac_file" >&6; }
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884 # If not cross compiling, check that we can run a simple program.
2885 if test "$cross_compiling" != yes; then
2886 if { ac_try='./$ac_file'
2887 { (case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2898 if test "$cross_compiling" = maybe; then
2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2911 { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6; }
2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925 if { (ac_try="$ac_link"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_link") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
2935 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2937 # work properly (i.e., refer to `conftest.exe'), while it won't with
2939 for ac_file in conftest.exe conftest conftest.*; do
2940 test -f "$ac_file" || continue
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2956 rm -f conftest$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2960 rm -f conftest.$ac_ext
2961 EXEEXT=$ac_cv_exeext
2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965 if test "${ac_cv_objext+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2983 rm -f conftest.o conftest.obj
2984 if { (ac_try="$ac_compile"
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_compile") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016 echo "${ECHO_T}$ac_cv_objext" >&6; }
3017 OBJEXT=$ac_cv_objext
3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3088 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3089 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3090 GCC=`test $ac_compiler_gnu = yes && echo yes`
3091 ac_test_CFLAGS=${CFLAGS+set}
3092 ac_save_CFLAGS=$CFLAGS
3093 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3094 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3095 if test "${ac_cv_prog_cc_g+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3126 grep -v '^ *+' conftest.er1 >conftest.err
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3157 cat >conftest.$ac_ext <<_ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 ac_c_werror_flag=$ac_save_c_werror_flag
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_try") 2>&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (case "(($ac_try" in
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_try") 2>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_c_werror_flag=$ac_save_c_werror_flag
3279 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3281 if test "$ac_test_CFLAGS" = set; then
3282 CFLAGS=$ac_save_CFLAGS
3283 elif test $ac_cv_prog_cc_g = yes; then
3284 if test "$GCC" = yes; then
3290 if test "$GCC" = yes; then
3296 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3297 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_cc_c89+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 ac_cv_prog_cc_c89=no
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3311 #include <sys/types.h>
3312 #include <sys/stat.h>
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3327 s = g (p, va_arg (v,int));
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
3335 as 'x'. The following induces an error, until -std is added to get
3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
3338 that's true only with -std. */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 CC="$ac_save_CC $ac_arg"
3364 rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_compile") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3379 { (case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_try") 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_try") 2>&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 ac_cv_prog_cc_c89=$ac_arg
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3406 rm -f core conftest.err conftest.$ac_objext
3407 test "x$ac_cv_prog_cc_c89" != "xno" && break
3409 rm -f conftest.$ac_ext
3414 case "x$ac_cv_prog_cc_c89" in
3416 { echo "$as_me:$LINENO: result: none needed" >&5
3417 echo "${ECHO_T}none needed" >&6; } ;;
3419 { echo "$as_me:$LINENO: result: unsupported" >&5
3420 echo "${ECHO_T}unsupported" >&6; } ;;
3422 CC="$CC $ac_cv_prog_cc_c89"
3423 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3424 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3442 # On Suns, sometimes $CPP names a directory.
3443 if test -n "$CPP" && test -d "$CPP"; then
3446 if test -z "$CPP"; then
3447 if test "${ac_cv_prog_CPP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 # Double quotes because CPP needs to be expanded
3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3454 for ac_c_preproc_warn_flag in '' yes
3456 # Use a header file that comes with gcc, so configuring glibc
3457 # with a fresh cross-compiler works.
3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459 # <limits.h> exists even on freestanding compilers.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error" is here to catch this case.
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3469 # include <limits.h>
3471 # include <assert.h>
3475 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483 grep -v '^ *+' conftest.er1 >conftest.err
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3497 if test -z "$ac_cpp_err"; then
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Broken: fails on valid input.
3507 rm -f conftest.err conftest.$ac_ext
3509 # OK, works on sane cases. Now check whether nonexistent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3541 if test -z "$ac_cpp_err"; then
3542 # Broken: success on invalid input.
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3553 rm -f conftest.err conftest.$ac_ext
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3570 { echo "$as_me:$LINENO: result: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6; }
3573 for ac_c_preproc_warn_flag in '' yes
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3588 # include <limits.h>
3590 # include <assert.h>
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3616 if test -z "$ac_cpp_err"; then
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 # Broken: fails on valid input.
3626 rm -f conftest.err conftest.$ac_ext
3628 # OK, works on sane cases. Now check whether nonexistent headers
3629 # can be detected and how.
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636 #include <ac_nonexistent.h>
3638 if { (ac_try="$ac_cpp conftest.$ac_ext"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3646 grep -v '^ *+' conftest.er1 >conftest.err
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } >/dev/null; then
3651 if test -s conftest.err; then
3652 ac_cpp_err=$ac_c_preproc_warn_flag
3653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3660 if test -z "$ac_cpp_err"; then
3661 # Broken: success on invalid input.
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 # Passes both tests.
3672 rm -f conftest.err conftest.$ac_ext
3675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3676 rm -f conftest.err conftest.$ac_ext
3677 if $ac_preproc_ok; then
3680 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details." >&5
3682 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log' for more details." >&2;}
3684 { (exit 1); exit 1; }; }
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3695 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_GREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 # Extract the first word of "grep ggrep" to use in msg output
3700 if test -z "$GREP"; then
3701 set dummy grep ggrep; ac_prog_name=$2
3702 if test "${ac_cv_path_GREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 ac_path_GREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in grep ggrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
3717 # Check for GNU $ac_path_GREP
3718 case `"$ac_path_GREP" --version 2>&1` in
3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 echo 'GREP' >> "conftest.nl"
3730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 ac_count=`expr $ac_count + 1`
3733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP="$ac_path_GREP"
3736 ac_path_GREP_max=$ac_count
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 $ac_path_GREP_found && break 3
3755 GREP="$ac_cv_path_GREP"
3756 if test -z "$GREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3763 ac_cv_path_GREP=$GREP
3768 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3769 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3770 GREP="$ac_cv_path_GREP"
3773 { echo "$as_me:$LINENO: checking for egrep" >&5
3774 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3779 then ac_cv_path_EGREP="$GREP -E"
3781 # Extract the first word of "egrep" to use in msg output
3782 if test -z "$EGREP"; then
3783 set dummy egrep; ac_prog_name=$2
3784 if test "${ac_cv_path_EGREP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_path_EGREP_found=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793 test -z "$as_dir" && as_dir=.
3794 for ac_prog in egrep; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3797 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3798 # Check for GNU ac_path_EGREP and select it if it is found.
3799 # Check for GNU $ac_path_EGREP
3800 case `"$ac_path_EGREP" --version 2>&1` in
3802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3805 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 echo 'EGREP' >> "conftest.nl"
3812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814 ac_count=`expr $ac_count + 1`
3815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_EGREP="$ac_path_EGREP"
3818 ac_path_EGREP_max=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3827 $ac_path_EGREP_found && break 3
3837 EGREP="$ac_cv_path_EGREP"
3838 if test -z "$EGREP"; then
3839 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841 { (exit 1); exit 1; }; }
3845 ac_cv_path_EGREP=$EGREP
3851 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3852 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3853 EGREP="$ac_cv_path_EGREP"
3856 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3858 if test "${ac_cv_header_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3880 rm -f conftest.$ac_objext
3881 if { (ac_try="$ac_compile"
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3889 grep -v '^ *+' conftest.er1 >conftest.err
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3895 { (case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_try") 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest.$ac_objext'
3905 { (case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_try") 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_header_stdc=yes
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 ac_cv_header_stdc=no
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 if test $ac_cv_header_stdc = yes; then
3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3926 cat >conftest.$ac_ext <<_ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 $EGREP "memchr" >/dev/null 2>&1; then
3939 ac_cv_header_stdc=no
3945 if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "free" >/dev/null 2>&1; then
3960 ac_cv_header_stdc=no
3966 if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3979 #if ((' ' & 0x0FF) == 0x020)
3980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3983 # define ISLOWER(c) \
3984 (('a' <= (c) && (c) <= 'i') \
3985 || ('j' <= (c) && (c) <= 'r') \
3986 || ('s' <= (c) && (c) <= 'z'))
3987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3995 for (i = 0; i < 256; i++)
3996 if (XOR (islower (i), ISLOWER (i))
3997 || toupper (i) != TOUPPER (i))
4002 rm -f conftest$ac_exeext
4003 if { (ac_try="$ac_link"
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_link") 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4024 echo "$as_me: program exited with status $ac_status" >&5
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4029 ac_cv_header_stdc=no
4031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4039 if test $ac_cv_header_stdc = yes; then
4041 cat >>confdefs.h <<\_ACEOF
4042 #define STDC_HEADERS 1
4047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058 inttypes.h stdint.h unistd.h
4060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 cat >conftest.$ac_ext <<_ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4074 #include <$ac_header>
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4085 grep -v '^ *+' conftest.er1 >conftest.err
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 eval "$as_ac_Header=yes"
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 eval "$as_ac_Header=no"
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 ac_res=`eval echo '${'$as_ac_Header'}'`
4121 { echo "$as_me:$LINENO: result: $ac_res" >&5
4122 echo "${ECHO_T}$ac_res" >&6; }
4123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4124 cat >>confdefs.h <<_ACEOF
4125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4133 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4135 if test "${ac_cv_c_bigendian+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 # See if sys/param.h defines the BYTE_ORDER macro.
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <sys/types.h>
4146 #include <sys/param.h>
4151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4168 grep -v '^ *+' conftest.er1 >conftest.err
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 # It does; now see whether it defined to BIG_ENDIAN or not.
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/param.h>
4206 #if BYTE_ORDER != BIG_ENDIAN
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_c_bigendian=yes
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 ac_cv_c_bigendian=no
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 # It does not; compile a test program.
4262 if test "$cross_compiling" = yes; then
4263 # try to guess the endianness by grepping values into an object file
4264 ac_cv_c_bigendian=unknown
4265 cat >conftest.$ac_ext <<_ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4272 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4273 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4274 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4275 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4276 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4280 _ascii (); _ebcdic ();
4285 rm -f conftest.$ac_objext
4286 if { (ac_try="$ac_compile"
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest.$ac_objext'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4320 ac_cv_c_bigendian=yes
4322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4323 if test "$ac_cv_c_bigendian" = unknown; then
4324 ac_cv_c_bigendian=no
4326 # finding both strings is unlikely to happen, but who knows?
4327 ac_cv_c_bigendian=unknown
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4350 /* Are we little or big endian? From Harbison&Steele. */
4354 char c[sizeof (long int)];
4357 return u.c[sizeof (long int) - 1] == 1;
4363 rm -f conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_link") 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_c_bigendian=no
4385 echo "$as_me: program exited with status $ac_status" >&5
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_cv_c_bigendian=yes
4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4401 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4402 case $ac_cv_c_bigendian in
4410 { { echo "$as_me:$LINENO: error: unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4412 echo "$as_me: error: unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4414 { (exit 1); exit 1; }; } ;;
4418 if test "$cross_compiling" = yes; then
4419 LLVM_CROSS_COMPILING=1
4422 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4423 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4424 if test "${ac_cv_build_exeext+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4428 ac_cv_build_exeext=.exe
4430 ac_build_prefix=${build_alias}-
4432 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_build_prefix}gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test -n "$BUILD_CC"; then
4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 if test -z "$BUILD_CC"; then
4470 # Extract the first word of "gcc", so it can be a program name with args.
4471 set dummy gcc; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test -n "$BUILD_CC"; then
4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_BUILD_CC="gcc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 BUILD_CC=$ac_cv_prog_BUILD_CC
4498 if test -n "$BUILD_CC"; then
4499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500 echo "${ECHO_T}$BUILD_CC" >&6; }
4502 { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4507 if test -z "$BUILD_CC"; then
4508 # Extract the first word of "cc", so it can be a program name with args.
4509 set dummy cc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 if test -n "$BUILD_CC"; then
4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527 ac_prog_rejected=yes
4530 ac_cv_prog_BUILD_CC="cc"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 if test $ac_prog_rejected = yes; then
4539 # We found a bogon in the path, so make sure we never use it.
4540 set dummy $ac_cv_prog_BUILD_CC
4542 if test $# != 0; then
4543 # We chose a different compiler from the bogus one.
4544 # However, it has the same basename, so the bogon will be chosen
4545 # first if we set BUILD_CC to just the basename; use the full file name.
4547 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4552 BUILD_CC=$ac_cv_prog_BUILD_CC
4553 if test -n "$BUILD_CC"; then
4554 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4555 echo "${ECHO_T}$BUILD_CC" >&6; }
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4564 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4565 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
4567 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4569 echo 'int main () { return 0; }' > conftest.$ac_ext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4572 (eval $ac_build_link) 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
4576 for file in conftest.*; do
4578 *.c | *.o | *.obj | *.dSYM) ;;
4579 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4583 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4584 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4585 { (exit 1); exit 1; }; }
4588 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4593 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4594 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4595 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4596 ac_build_exeext=$BUILD_EXEEXT
4598 ac_build_prefix=${build_alias}-
4599 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4600 set dummy ${ac_build_prefix}g++; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 if test -n "$BUILD_CXX"; then
4607 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627 if test -n "$BUILD_CXX"; then
4628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629 echo "${ECHO_T}$BUILD_CXX" >&6; }
4631 { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4636 if test -z "$BUILD_CXX"; then
4637 # Extract the first word of "g++", so it can be a program name with args.
4638 set dummy g++; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 if test -n "$BUILD_CXX"; then
4645 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_BUILD_CXX="g++"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665 if test -n "$BUILD_CXX"; then
4666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667 echo "${ECHO_T}$BUILD_CXX" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4674 if test -z "$BUILD_CXX"; then
4675 # Extract the first word of "c++", so it can be a program name with args.
4676 set dummy c++; ac_word=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 if test -n "$BUILD_CXX"; then
4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4694 ac_prog_rejected=yes
4697 ac_cv_prog_BUILD_CXX="c++"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 if test $ac_prog_rejected = yes; then
4706 # We found a bogon in the path, so make sure we never use it.
4707 set dummy $ac_cv_prog_BUILD_CXX
4709 if test $# != 0; then
4710 # We chose a different compiler from the bogus one.
4711 # However, it has the same basename, so the bogon will be chosen
4712 # first if we set BUILD_CXX to just the basename; use the full file name.
4714 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4719 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4720 if test -n "$BUILD_CXX"; then
4721 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4722 echo "${ECHO_T}$BUILD_CXX" >&6; }
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4732 LLVM_CROSS_COMPILING=0
4736 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4747 # Check whether --enable-optimized was given.
4748 if test "${enable_optimized+set}" = set; then
4749 enableval=$enable_optimized;
4754 if test ${enableval} = "no" ; then
4758 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4762 # Check whether --enable-profiling was given.
4763 if test "${enable_profiling+set}" = set; then
4764 enableval=$enable_profiling;
4769 if test ${enableval} = "no" ; then
4773 ENABLE_PROFILING=ENABLE_PROFILING=1
4777 # Check whether --enable-assertions was given.
4778 if test "${enable_assertions+set}" = set; then
4779 enableval=$enable_assertions;
4784 if test ${enableval} = "yes" ; then
4788 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4792 # Check whether --enable-expensive-checks was given.
4793 if test "${enable_expensive_checks+set}" = set; then
4794 enableval=$enable_expensive_checks;
4799 if test ${enableval} = "yes" ; then
4800 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4802 EXPENSIVE_CHECKS=yes
4805 ENABLE_EXPENSIVE_CHECKS=
4811 # Check whether --enable-debug-runtime was given.
4812 if test "${enable_debug_runtime+set}" = set; then
4813 enableval=$enable_debug_runtime;
4818 if test ${enableval} = "no" ; then
4822 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4826 # Check whether --enable-debug-symbols was given.
4827 if test "${enable_debug_symbols+set}" = set; then
4828 enableval=$enable_debug_symbols;
4833 if test ${enableval} = "no" ; then
4837 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4841 # Check whether --enable-jit was given.
4842 if test "${enable_jit+set}" = set; then
4843 enableval=$enable_jit;
4848 if test ${enableval} = "no"
4853 case "$llvm_cv_target_arch" in
4854 x86) TARGET_HAS_JIT=1
4856 Sparc) TARGET_HAS_JIT=0
4858 PowerPC) TARGET_HAS_JIT=1
4860 x86_64) TARGET_HAS_JIT=1
4862 Alpha) TARGET_HAS_JIT=0
4864 ARM) TARGET_HAS_JIT=1
4866 Mips) TARGET_HAS_JIT=0
4868 XCore) TARGET_HAS_JIT=0
4870 MSP430) TARGET_HAS_JIT=0
4872 SystemZ) TARGET_HAS_JIT=0
4874 Blackfin) TARGET_HAS_JIT=0
4876 MBlaze) TARGET_HAS_JIT=0
4878 PTX) TARGET_HAS_JIT=0
4885 # Check whether --enable-docs was given.
4886 if test "${enable_docs+set}" = set; then
4887 enableval=$enable_docs;
4892 case "$enableval" in
4897 default) ENABLE_DOCS=1
4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4904 # Check whether --enable-doxygen was given.
4905 if test "${enable_doxygen+set}" = set; then
4906 enableval=$enable_doxygen;
4911 case "$enableval" in
4912 yes) ENABLE_DOXYGEN=1
4914 no) ENABLE_DOXYGEN=0
4916 default) ENABLE_DOXYGEN=0
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 # Check whether --enable-threads was given.
4924 if test "${enable_threads+set}" = set; then
4925 enableval=$enable_threads;
4930 case "$enableval" in
4931 yes) ENABLE_THREADS=1
4933 no) ENABLE_THREADS=0
4935 default) ENABLE_THREADS=1
4937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4938 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4939 { (exit 1); exit 1; }; } ;;
4942 cat >>confdefs.h <<_ACEOF
4943 #define ENABLE_THREADS $ENABLE_THREADS
4947 # Check whether --enable-pthreads was given.
4948 if test "${enable_pthreads+set}" = set; then
4949 enableval=$enable_pthreads;
4954 case "$enableval" in
4955 yes) ENABLE_PTHREADS=1
4957 no) ENABLE_PTHREADS=0
4959 default) ENABLE_PTHREADS=1
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4966 # Check whether --enable-pic was given.
4967 if test "${enable_pic+set}" = set; then
4968 enableval=$enable_pic;
4973 case "$enableval" in
4978 default) ENABLE_PIC=1
4980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4981 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4982 { (exit 1); exit 1; }; } ;;
4985 cat >>confdefs.h <<_ACEOF
4986 #define ENABLE_PIC $ENABLE_PIC
4990 # Check whether --enable-shared was given.
4991 if test "${enable_shared+set}" = set; then
4992 enableval=$enable_shared;
4997 case "$enableval" in
4998 yes) ENABLE_SHARED=1
5002 default) ENABLE_SHARED=0
5004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5005 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5009 # Check whether --enable-embed-stdcxx was given.
5010 if test "${enable_embed_stdcxx+set}" = set; then
5011 enableval=$enable_embed_stdcxx;
5016 case "$enableval" in
5017 yes) ENABLE_EMBED_STDCXX=1
5019 no) ENABLE_EMBED_STDCXX=0
5021 default) ENABLE_EMBED_STDCXX=1
5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5024 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5025 { (exit 1); exit 1; }; } ;;
5028 # Check whether --enable-timestamps was given.
5029 if test "${enable_timestamps+set}" = set; then
5030 enableval=$enable_timestamps;
5035 case "$enableval" in
5036 yes) ENABLE_TIMESTAMPS=1
5038 no) ENABLE_TIMESTAMPS=0
5040 default) ENABLE_TIMESTAMPS=1
5042 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5043 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5044 { (exit 1); exit 1; }; } ;;
5047 cat >>confdefs.h <<_ACEOF
5048 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5053 # Check whether --enable-targets was given.
5054 if test "${enable_targets+set}" = set; then
5055 enableval=$enable_targets;
5060 if test "$enableval" = host-only ; then
5063 case "$enableval" in
5064 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5065 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5067 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5068 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5069 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5070 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5071 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5072 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5073 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5074 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5075 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5076 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5077 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5078 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5079 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5080 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5081 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5082 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5083 host) case "$llvm_cv_target_arch" in
5084 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5085 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5086 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5087 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5088 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5089 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5090 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5091 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5092 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5093 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5094 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5095 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5096 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5097 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5098 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5099 echo "$as_me: error: Can not set target to build" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5102 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5103 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5109 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5112 # Determine whether we are building LLVM support for the native architecture.
5113 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5114 for a_target in $TARGETS_TO_BUILD; do
5115 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5117 cat >>confdefs.h <<_ACEOF
5118 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5121 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5122 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5123 LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo"
5124 LLVM_NATIVE_MCCODEGENINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCCodeGenInfo"
5125 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5126 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5127 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5130 cat >>confdefs.h <<_ACEOF
5131 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5135 cat >>confdefs.h <<_ACEOF
5136 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5140 cat >>confdefs.h <<_ACEOF
5141 #define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO
5145 cat >>confdefs.h <<_ACEOF
5146 #define LLVM_NATIVE_MCCODEGENINFO $LLVM_NATIVE_MCCODEGENINFO
5150 cat >>confdefs.h <<_ACEOF
5151 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5154 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5156 cat >>confdefs.h <<_ACEOF
5157 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5164 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5165 # target feature def files.
5166 LLVM_ENUM_TARGETS=""
5167 LLVM_ENUM_ASM_PRINTERS=""
5168 LLVM_ENUM_ASM_PARSERS=""
5169 LLVM_ENUM_DISASSEMBLERS=""
5170 for target_to_build in $TARGETS_TO_BUILD; do
5171 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5172 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5173 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5175 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5176 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5178 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5179 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5187 # Check whether --enable-cbe-printf-a was given.
5188 if test "${enable_cbe_printf_a+set}" = set; then
5189 enableval=$enable_cbe_printf_a;
5194 case "$enableval" in
5195 yes) ENABLE_CBE_PRINTF_A=1
5197 no) ENABLE_CBE_PRINTF_A=0
5199 default) ENABLE_CBE_PRINTF_A=1
5201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5202 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5203 { (exit 1); exit 1; }; } ;;
5206 cat >>confdefs.h <<_ACEOF
5207 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5212 # Check whether --with-llvmgccdir was given.
5213 if test "${with_llvmgccdir+set}" = set; then
5214 withval=$with_llvmgccdir;
5220 default) WITH_LLVMGCCDIR=default ;;
5221 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5222 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5223 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5228 # Check whether --with-llvmgcc was given.
5229 if test "${with_llvmgcc+set}" = set; then
5230 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5236 # Check whether --with-llvmgxx was given.
5237 if test "${with_llvmgxx+set}" = set; then
5238 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5243 if test -n "$LLVMGCC"; then
5244 LLVMGCCCOMMAND="$LLVMGCC"
5247 if test -n "$LLVMGXX"; then
5248 LLVMGXXCOMMAND="$LLVMGXX"
5251 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5252 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5253 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5254 { (exit 1); exit 1; }; };
5257 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5258 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5259 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5260 { (exit 1); exit 1; }; };
5264 # Check whether --with-clang was given.
5265 if test "${with_clang+set}" = set; then
5266 withval=$with_clang;
5273 # Check whether --with-built-clang was given.
5274 if test "${with_built_clang+set}" = set; then
5275 withval=$with_built_clang;
5277 with_built_clang=check
5281 { echo "$as_me:$LINENO: checking clang compiler" >&5
5282 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5285 if test "$with_clang" != "default"; then
5286 WITH_CLANGPATH="$with_clang"
5287 if ! test -x "$WITH_CLANGPATH"; then
5288 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5289 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5290 { (exit 1); exit 1; }; }
5292 elif test "$with_built_clang" = "yes"; then
5294 elif test "$with_built_clang" = "no"; then
5297 if test "$with_built_clang" != "check"; then
5298 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5299 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5300 { (exit 1); exit 1; }; }
5303 if test -f ${srcdir}/tools/clang/README.txt; then
5308 if ! test -z "$WITH_CLANGPATH"; then
5309 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5310 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5311 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5312 elif test "$WITH_BUILT_CLANG" = "1"; then
5313 { echo "$as_me:$LINENO: result: built" >&5
5314 echo "${ECHO_T}built" >&6; }
5316 { echo "$as_me:$LINENO: result: none" >&5
5317 echo "${ECHO_T}none" >&6; }
5319 CLANGPATH=$WITH_CLANGPATH
5321 CLANGXXPATH=$WITH_CLANGXXPATH
5323 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5327 # Check whether --with-optimize-option was given.
5328 if test "${with_optimize_option+set}" = set; then
5329 withval=$with_optimize_option;
5334 { echo "$as_me:$LINENO: checking optimization flags" >&5
5335 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5338 case "$llvm_cv_os_type" in
5339 FreeBSD) optimize_option=-O2 ;;
5340 MingW) optimize_option=-O2 ;;
5341 *) optimize_option=-O3 ;;
5343 *) optimize_option="$withval" ;;
5345 OPTIMIZE_OPTION=$optimize_option
5347 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5348 echo "${ECHO_T}$optimize_option" >&6; }
5351 # Check whether --with-extra-options was given.
5352 if test "${with_extra_options+set}" = set; then
5353 withval=$with_extra_options;
5359 default) EXTRA_OPTIONS= ;;
5360 *) EXTRA_OPTIONS=$withval ;;
5362 EXTRA_OPTIONS=$EXTRA_OPTIONS
5366 # Check whether --with-extra-ld-options was given.
5367 if test "${with_extra_ld_options+set}" = set; then
5368 withval=$with_extra_ld_options;
5374 default) EXTRA_LD_OPTIONS= ;;
5375 *) EXTRA_LD_OPTIONS=$withval ;;
5377 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5380 # Check whether --enable-bindings was given.
5381 if test "${enable_bindings+set}" = set; then
5382 enableval=$enable_bindings;
5387 BINDINGS_TO_BUILD=""
5388 case "$enableval" in
5389 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5390 all ) BINDINGS_TO_BUILD="ocaml" ;;
5391 none | no) BINDINGS_TO_BUILD="" ;;
5392 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5393 case "$a_binding" in
5394 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5395 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5396 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5397 { (exit 1); exit 1; }; } ;;
5404 # Check whether --with-ocaml-libdir was given.
5405 if test "${with_ocaml_libdir+set}" = set; then
5406 withval=$with_ocaml_libdir;
5412 auto) with_ocaml_libdir="$withval" ;;
5413 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5414 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5415 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5416 { (exit 1); exit 1; }; } ;;
5420 # Check whether --with-clang-resource-dir was given.
5421 if test "${with_clang_resource_dir+set}" = set; then
5422 withval=$with_clang_resource_dir;
5428 cat >>confdefs.h <<_ACEOF
5429 #define CLANG_RESOURCE_DIR "$withval"
5434 # Check whether --with-c-include-dirs was given.
5435 if test "${with_c_include_dirs+set}" = set; then
5436 withval=$with_c_include_dirs;
5442 cat >>confdefs.h <<_ACEOF
5443 #define C_INCLUDE_DIRS "$withval"
5448 # Check whether --with-cxx-include-root was given.
5449 if test "${with_cxx_include_root+set}" = set; then
5450 withval=$with_cxx_include_root;
5456 cat >>confdefs.h <<_ACEOF
5457 #define CXX_INCLUDE_ROOT "$withval"
5462 # Check whether --with-cxx-include-arch was given.
5463 if test "${with_cxx_include_arch+set}" = set; then
5464 withval=$with_cxx_include_arch;
5470 cat >>confdefs.h <<_ACEOF
5471 #define CXX_INCLUDE_ARCH "$withval"
5476 # Check whether --with-cxx-include-32bit-dir was given.
5477 if test "${with_cxx_include_32bit_dir+set}" = set; then
5478 withval=$with_cxx_include_32bit_dir;
5484 cat >>confdefs.h <<_ACEOF
5485 #define CXX_INCLUDE_32BIT_DIR "$withval"
5490 # Check whether --with-cxx-include-64bit-dir was given.
5491 if test "${with_cxx_include_64bit_dir+set}" = set; then
5492 withval=$with_cxx_include_64bit_dir;
5498 cat >>confdefs.h <<_ACEOF
5499 #define CXX_INCLUDE_64BIT_DIR "$withval"
5504 # Check whether --with-binutils-include was given.
5505 if test "${with_binutils_include+set}" = set; then
5506 withval=$with_binutils_include;
5512 default) WITH_BINUTILS_INCDIR=default ;;
5513 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5514 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5515 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5516 { (exit 1); exit 1; }; } ;;
5518 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5519 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5521 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5522 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5523 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5524 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5525 { (exit 1); exit 1; }; };
5529 # Check whether --enable-libffi was given.
5530 if test "${enable_libffi+set}" = set; then
5531 enableval=$enable_libffi; case "$enableval" in
5532 yes) llvm_cv_enable_libffi="yes" ;;
5533 no) llvm_cv_enable_libffi="no" ;;
5534 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5535 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5536 { (exit 1); exit 1; }; } ;;
5539 llvm_cv_enable_libffi=no
5545 ac_cpp='$CPP $CPPFLAGS'
5546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5549 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5550 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5551 # On Suns, sometimes $CPP names a directory.
5552 if test -n "$CPP" && test -d "$CPP"; then
5555 if test -z "$CPP"; then
5556 if test "${ac_cv_prog_CPP+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 # Double quotes because CPP needs to be expanded
5560 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5563 for ac_c_preproc_warn_flag in '' yes
5565 # Use a header file that comes with gcc, so configuring glibc
5566 # with a fresh cross-compiler works.
5567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5568 # <limits.h> exists even on freestanding compilers.
5569 # On the NeXT, cc -E runs the code through the compiler's parser,
5570 # not just through cpp. "Syntax error" is here to catch this case.
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5578 # include <limits.h>
5580 # include <assert.h>
5584 if { (ac_try="$ac_cpp conftest.$ac_ext"
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5592 grep -v '^ *+' conftest.er1 >conftest.err
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } >/dev/null; then
5597 if test -s conftest.err; then
5598 ac_cpp_err=$ac_c_preproc_warn_flag
5599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5606 if test -z "$ac_cpp_err"; then
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 # Broken: fails on valid input.
5616 rm -f conftest.err conftest.$ac_ext
5618 # OK, works on sane cases. Now check whether nonexistent headers
5619 # can be detected and how.
5620 cat >conftest.$ac_ext <<_ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <ac_nonexistent.h>
5628 if { (ac_try="$ac_cpp conftest.$ac_ext"
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5636 grep -v '^ *+' conftest.er1 >conftest.err
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } >/dev/null; then
5641 if test -s conftest.err; then
5642 ac_cpp_err=$ac_c_preproc_warn_flag
5643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5650 if test -z "$ac_cpp_err"; then
5651 # Broken: success on invalid input.
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5657 # Passes both tests.
5662 rm -f conftest.err conftest.$ac_ext
5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5666 rm -f conftest.err conftest.$ac_ext
5667 if $ac_preproc_ok; then
5679 { echo "$as_me:$LINENO: result: $CPP" >&5
5680 echo "${ECHO_T}$CPP" >&6; }
5682 for ac_c_preproc_warn_flag in '' yes
5684 # Use a header file that comes with gcc, so configuring glibc
5685 # with a fresh cross-compiler works.
5686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687 # <limits.h> exists even on freestanding compilers.
5688 # On the NeXT, cc -E runs the code through the compiler's parser,
5689 # not just through cpp. "Syntax error" is here to catch this case.
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5697 # include <limits.h>
5699 # include <assert.h>
5703 if { (ac_try="$ac_cpp conftest.$ac_ext"
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } >/dev/null; then
5716 if test -s conftest.err; then
5717 ac_cpp_err=$ac_c_preproc_warn_flag
5718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5725 if test -z "$ac_cpp_err"; then
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 # Broken: fails on valid input.
5735 rm -f conftest.err conftest.$ac_ext
5737 # OK, works on sane cases. Now check whether nonexistent headers
5738 # can be detected and how.
5739 cat >conftest.$ac_ext <<_ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #include <ac_nonexistent.h>
5747 if { (ac_try="$ac_cpp conftest.$ac_ext"
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } >/dev/null; then
5760 if test -s conftest.err; then
5761 ac_cpp_err=$ac_c_preproc_warn_flag
5762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5769 if test -z "$ac_cpp_err"; then
5770 # Broken: success on invalid input.
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 # Passes both tests.
5781 rm -f conftest.err conftest.$ac_ext
5784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5785 rm -f conftest.err conftest.$ac_ext
5786 if $ac_preproc_ok; then
5789 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5790 See \`config.log' for more details." >&5
5791 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5792 See \`config.log' for more details." >&2;}
5793 { (exit 1); exit 1; }; }
5797 ac_cpp='$CPP $CPPFLAGS'
5798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803 ac_cpp='$CPP $CPPFLAGS'
5804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5814 if test "${ac_cv_prog_CC+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 if test -n "$CC"; then
5818 ac_cv_prog_CC="$CC" # Let the user override the test.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 if test -n "$CC"; then
5839 { echo "$as_me:$LINENO: result: $CC" >&5
5840 echo "${ECHO_T}$CC" >&6; }
5842 { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5847 test -n "$CC" && break
5850 if test -z "$CC"; then
5854 # Extract the first word of "$ac_prog", so it can be a program name with args.
5855 set dummy $ac_prog; ac_word=$2
5856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 if test -n "$ac_ct_CC"; then
5862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_ac_ct_CC="$ac_prog"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5882 if test -n "$ac_ct_CC"; then
5883 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5884 echo "${ECHO_T}$ac_ct_CC" >&6; }
5886 { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5891 test -n "$ac_ct_CC" && break
5894 if test "x$ac_ct_CC" = x; then
5897 case $cross_compiling:$ac_tool_warned in
5899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5900 whose name does not start with the host triplet. If you think this
5901 configuration is useful to you, please write to autoconf@gnu.org." >&5
5902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5903 whose name does not start with the host triplet. If you think this
5904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5905 ac_tool_warned=yes ;;
5912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5913 See \`config.log' for more details." >&5
5914 echo "$as_me: error: no acceptable C compiler found in \$PATH
5915 See \`config.log' for more details." >&2;}
5916 { (exit 1); exit 1; }; }
5918 # Provide some information about the compiler.
5919 echo "$as_me:$LINENO: checking for C compiler version" >&5
5920 ac_compiler=`set X $ac_compile; echo $2`
5921 { (ac_try="$ac_compiler --version >&5"
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compiler --version >&5") 2>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }
5931 { (ac_try="$ac_compiler -v >&5"
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compiler -v >&5") 2>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }
5941 { (ac_try="$ac_compiler -V >&5"
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_compiler -V >&5") 2>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }
5952 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5953 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5954 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6021 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6023 GCC=`test $ac_compiler_gnu = yes && echo yes`
6024 ac_test_CFLAGS=${CFLAGS+set}
6025 ac_save_CFLAGS=$CFLAGS
6026 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6028 if test "${ac_cv_prog_cc_g+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 ac_save_c_werror_flag=$ac_c_werror_flag
6032 ac_c_werror_flag=yes
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6065 { (case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_try") 2>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try='test -s conftest.$ac_objext'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6090 cat >conftest.$ac_ext <<_ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6114 grep -v '^ *+' conftest.er1 >conftest.err
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120 { (case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_try") 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 ac_c_werror_flag=$ac_save_c_werror_flag
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6176 { (case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_try") 2>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest.$ac_objext'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6197 echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 ac_c_werror_flag=$ac_save_c_werror_flag
6212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6213 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6214 if test "$ac_test_CFLAGS" = set; then
6215 CFLAGS=$ac_save_CFLAGS
6216 elif test $ac_cv_prog_cc_g = yes; then
6217 if test "$GCC" = yes; then
6223 if test "$GCC" = yes; then
6229 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6230 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6231 if test "${ac_cv_prog_cc_c89+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 ac_cv_prog_cc_c89=no
6236 cat >conftest.$ac_ext <<_ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6244 #include <sys/types.h>
6245 #include <sys/stat.h>
6246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6247 struct buf { int x; };
6248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6249 static char *e (p, i)
6255 static char *f (char * (*g) (char **, int), char **p, ...)
6260 s = g (p, va_arg (v,int));
6265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6266 function prototypes and stuff, but not '\xHH' hex character constants.
6267 These don't provoke an error unfortunately, instead are silently treated
6268 as 'x'. The following induces an error, until -std is added to get
6269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6270 array size at least. It's necessary to write '\x00'==0 to get something
6271 that's true only with -std. */
6272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6275 inside strings and character constants. */
6277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6279 int test (int i, double x);
6280 struct s1 {int (*f) (int a);};
6281 struct s2 {int (*f) (double a);};
6282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6296 CC="$ac_save_CC $ac_arg"
6297 rm -f conftest.$ac_objext
6298 if { (ac_try="$ac_compile"
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6312 { (case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_try") 2>&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest.$ac_objext'
6322 { (case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_try") 2>&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 ac_cv_prog_cc_c89=$ac_arg
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6339 rm -f core conftest.err conftest.$ac_objext
6340 test "x$ac_cv_prog_cc_c89" != "xno" && break
6342 rm -f conftest.$ac_ext
6347 case "x$ac_cv_prog_cc_c89" in
6349 { echo "$as_me:$LINENO: result: none needed" >&5
6350 echo "${ECHO_T}none needed" >&6; } ;;
6352 { echo "$as_me:$LINENO: result: unsupported" >&5
6353 echo "${ECHO_T}unsupported" >&6; } ;;
6355 CC="$CC $ac_cv_prog_cc_c89"
6356 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6357 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6368 ac_cpp='$CXXCPP $CPPFLAGS'
6369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6372 if test -z "$CXX"; then
6373 if test -n "$CCC"; then
6376 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_CXX+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 if test -n "$CXX"; then
6387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 if test -n "$CXX"; then
6408 { echo "$as_me:$LINENO: result: $CXX" >&5
6409 echo "${ECHO_T}$CXX" >&6; }
6411 { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6416 test -n "$CXX" && break
6419 if test -z "$CXX"; then
6423 # Extract the first word of "$ac_prog", so it can be a program name with args.
6424 set dummy $ac_prog; ac_word=$2
6425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 if test -n "$ac_ct_CXX"; then
6431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_ac_ct_CXX="$ac_prog"
6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6451 if test -n "$ac_ct_CXX"; then
6452 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6453 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6455 { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6460 test -n "$ac_ct_CXX" && break
6463 if test "x$ac_ct_CXX" = x; then
6466 case $cross_compiling:$ac_tool_warned in
6468 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6469 whose name does not start with the host triplet. If you think this
6470 configuration is useful to you, please write to autoconf@gnu.org." >&5
6471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6472 whose name does not start with the host triplet. If you think this
6473 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6474 ac_tool_warned=yes ;;
6482 # Provide some information about the compiler.
6483 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6484 ac_compiler=`set X $ac_compile; echo $2`
6485 { (ac_try="$ac_compiler --version >&5"
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compiler --version >&5") 2>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }
6495 { (ac_try="$ac_compiler -v >&5"
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compiler -v >&5") 2>&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }
6505 { (ac_try="$ac_compiler -V >&5"
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compiler -V >&5") 2>&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }
6516 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6517 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 cat >conftest.$ac_ext <<_ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6548 grep -v '^ *+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6554 { (case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_try") 2>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_try") 2>&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6585 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6586 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6587 GXX=`test $ac_compiler_gnu = yes && echo yes`
6588 ac_test_CXXFLAGS=${CXXFLAGS+set}
6589 ac_save_CXXFLAGS=$CXXFLAGS
6590 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6591 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6592 if test "${ac_cv_prog_cxx_g+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6596 ac_cxx_werror_flag=yes
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6614 rm -f conftest.$ac_objext
6615 if { (ac_try="$ac_compile"
6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618 *) ac_try_echo=$ac_try;;
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6623 grep -v '^ *+' conftest.er1 >conftest.err
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6629 { (case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634 (eval "$ac_try") 2>&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; } &&
6638 { ac_try='test -s conftest.$ac_objext'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_try") 2>&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_prog_cxx_g=yes
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6669 rm -f conftest.$ac_objext
6670 if { (ac_try="$ac_compile"
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6676 (eval "$ac_compile") 2>conftest.er1
6678 grep -v '^ *+' conftest.er1 >conftest.err
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } &&
6683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6684 { (case "(($ac_try" in
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_try") 2>&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest.$ac_objext'
6694 { (case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_try") 2>&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6710 cat >conftest.$ac_ext <<_ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6725 rm -f conftest.$ac_objext
6726 if { (ac_try="$ac_compile"
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 (eval "$ac_compile") 2>conftest.er1
6734 grep -v '^ *+' conftest.er1 >conftest.err
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } &&
6739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6740 { (case "(($ac_try" in
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6745 (eval "$ac_try") 2>&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest.$ac_objext'
6750 { (case "(($ac_try" in
6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6755 (eval "$ac_try") 2>&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 ac_cv_prog_cxx_g=yes
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6776 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6777 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6778 if test "$ac_test_CXXFLAGS" = set; then
6779 CXXFLAGS=$ac_save_CXXFLAGS
6780 elif test $ac_cv_prog_cxx_g = yes; then
6781 if test "$GXX" = yes; then
6787 if test "$GXX" = yes; then
6794 ac_cpp='$CPP $CPPFLAGS'
6795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6800 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6801 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6802 if test "${lt_cv_path_NM+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 if test -n "$NM"; then
6806 # Let the user override the test.
6809 lt_nm_to_check="${ac_tool_prefix}nm"
6810 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6811 lt_nm_to_check="$lt_nm_to_check nm"
6813 for lt_tmp_nm in $lt_nm_to_check; do
6814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6815 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6817 test -z "$ac_dir" && ac_dir=.
6818 tmp_nm="$ac_dir/$lt_tmp_nm"
6819 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6820 # Check to see if the nm accepts a BSD-compat flag.
6821 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6822 # nm: unknown option "B" ignored
6823 # Tru64's nm complains that /dev/null is an invalid object file
6824 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6825 */dev/null* | *'Invalid file or object type'*)
6826 lt_cv_path_NM="$tmp_nm -B"
6830 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6832 lt_cv_path_NM="$tmp_nm -p"
6836 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6837 continue # so that we can try to find one that supports BSD flags
6846 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6849 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6850 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6855 { echo "$as_me:$LINENO: checking for GNU make" >&5
6856 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6857 if test "${llvm_cv_gnu_make_command+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 llvm_cv_gnu_make_command=''
6861 for a in "$MAKE" make gmake gnumake ; do
6862 if test -z "$a" ; then continue ; fi ;
6863 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6865 llvm_cv_gnu_make_command=$a ;
6870 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6871 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6872 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6876 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6877 echo "${ECHO_T}\"Not found\"" >&6; };
6881 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6882 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6884 if test "$LN_S" = "ln -s"; then
6885 { echo "$as_me:$LINENO: result: yes" >&5
6886 echo "${ECHO_T}yes" >&6; }
6888 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6889 echo "${ECHO_T}no, using $LN_S" >&6; }
6892 # Extract the first word of "cmp", so it can be a program name with args.
6893 set dummy cmp; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_path_CMP+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6924 if test -n "$CMP"; then
6925 { echo "$as_me:$LINENO: result: $CMP" >&5
6926 echo "${ECHO_T}$CMP" >&6; }
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6933 # Extract the first word of "cp", so it can be a program name with args.
6934 set dummy cp; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_CP+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6965 if test -n "$CP"; then
6966 { echo "$as_me:$LINENO: result: $CP" >&5
6967 echo "${ECHO_T}$CP" >&6; }
6969 { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6974 # Extract the first word of "date", so it can be a program name with args.
6975 set dummy date; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_DATE+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7005 DATE=$ac_cv_path_DATE
7006 if test -n "$DATE"; then
7007 { echo "$as_me:$LINENO: result: $DATE" >&5
7008 echo "${ECHO_T}$DATE" >&6; }
7010 { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7015 # Extract the first word of "find", so it can be a program name with args.
7016 set dummy find; ac_word=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_path_FIND+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7046 FIND=$ac_cv_path_FIND
7047 if test -n "$FIND"; then
7048 { echo "$as_me:$LINENO: result: $FIND" >&5
7049 echo "${ECHO_T}$FIND" >&6; }
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7056 # Extract the first word of "grep", so it can be a program name with args.
7057 set dummy grep; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_GREP+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7087 GREP=$ac_cv_path_GREP
7088 if test -n "$GREP"; then
7089 { echo "$as_me:$LINENO: result: $GREP" >&5
7090 echo "${ECHO_T}$GREP" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7097 # Extract the first word of "mkdir", so it can be a program name with args.
7098 set dummy mkdir; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_MKDIR+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7128 MKDIR=$ac_cv_path_MKDIR
7129 if test -n "$MKDIR"; then
7130 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7131 echo "${ECHO_T}$MKDIR" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7138 # Extract the first word of "mv", so it can be a program name with args.
7139 set dummy mv; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_path_MV+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7170 if test -n "$MV"; then
7171 { echo "$as_me:$LINENO: result: $MV" >&5
7172 echo "${ECHO_T}$MV" >&6; }
7174 { echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6; }
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_prog_RANLIB+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 if test -n "$RANLIB"; then
7188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 RANLIB=$ac_cv_prog_RANLIB
7208 if test -n "$RANLIB"; then
7209 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7210 echo "${ECHO_T}$RANLIB" >&6; }
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7218 if test -z "$ac_cv_prog_RANLIB"; then
7219 ac_ct_RANLIB=$RANLIB
7220 # Extract the first word of "ranlib", so it can be a program name with args.
7221 set dummy ranlib; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 if test -n "$ac_ct_RANLIB"; then
7228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237 ac_cv_prog_ac_ct_RANLIB="ranlib"
7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7248 if test -n "$ac_ct_RANLIB"; then
7249 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7250 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7252 { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7256 if test "x$ac_ct_RANLIB" = x; then
7259 case $cross_compiling:$ac_tool_warned in
7261 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7262 whose name does not start with the host triplet. If you think this
7263 configuration is useful to you, please write to autoconf@gnu.org." >&5
7264 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7265 whose name does not start with the host triplet. If you think this
7266 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7267 ac_tool_warned=yes ;;
7269 RANLIB=$ac_ct_RANLIB
7272 RANLIB="$ac_cv_prog_RANLIB"
7275 if test -n "$ac_tool_prefix"; then
7276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7277 set dummy ${ac_tool_prefix}ar; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_prog_AR+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 if test -n "$AR"; then
7284 ac_cv_prog_AR="$AR" # Let the user override the test.
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7293 ac_cv_prog_AR="${ac_tool_prefix}ar"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 if test -n "$AR"; then
7305 { echo "$as_me:$LINENO: result: $AR" >&5
7306 echo "${ECHO_T}$AR" >&6; }
7308 { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7314 if test -z "$ac_cv_prog_AR"; then
7316 # Extract the first word of "ar", so it can be a program name with args.
7317 set dummy ar; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 if test -n "$ac_ct_AR"; then
7324 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7333 ac_cv_prog_ac_ct_AR="ar"
7334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7344 if test -n "$ac_ct_AR"; then
7345 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7346 echo "${ECHO_T}$ac_ct_AR" >&6; }
7348 { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7352 if test "x$ac_ct_AR" = x; then
7355 case $cross_compiling:$ac_tool_warned in
7357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7358 whose name does not start with the host triplet. If you think this
7359 configuration is useful to you, please write to autoconf@gnu.org." >&5
7360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7361 whose name does not start with the host triplet. If you think this
7362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7363 ac_tool_warned=yes ;;
7371 # Extract the first word of "rm", so it can be a program name with args.
7372 set dummy rm; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_RM+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7403 if test -n "$RM"; then
7404 { echo "$as_me:$LINENO: result: $RM" >&5
7405 echo "${ECHO_T}$RM" >&6; }
7407 { echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6; }
7412 # Extract the first word of "sed", so it can be a program name with args.
7413 set dummy sed; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_SED+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7444 if test -n "$SED"; then
7445 { echo "$as_me:$LINENO: result: $SED" >&5
7446 echo "${ECHO_T}$SED" >&6; }
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7453 # Extract the first word of "tar", so it can be a program name with args.
7454 set dummy tar; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_path_TAR+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7485 if test -n "$TAR"; then
7486 { echo "$as_me:$LINENO: result: $TAR" >&5
7487 echo "${ECHO_T}$TAR" >&6; }
7489 { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7494 # Extract the first word of "pwd", so it can be a program name with args.
7495 set dummy pwd; ac_word=$2
7496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498 if test "${ac_cv_path_BINPWD+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7525 BINPWD=$ac_cv_path_BINPWD
7526 if test -n "$BINPWD"; then
7527 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7528 echo "${ECHO_T}$BINPWD" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7536 # Extract the first word of "Graphviz", so it can be a program name with args.
7537 set dummy Graphviz; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7567 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7568 if test -n "$GRAPHVIZ"; then
7569 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7570 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7572 { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7577 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7579 cat >>confdefs.h <<\_ACEOF
7580 #define HAVE_GRAPHVIZ 1
7583 if test "$llvm_cv_os_type" = "MingW" ; then
7584 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7587 cat >>confdefs.h <<_ACEOF
7588 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7592 # Extract the first word of "dot", so it can be a program name with args.
7593 set dummy dot; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_DOT+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7624 if test -n "$DOT"; then
7625 { echo "$as_me:$LINENO: result: $DOT" >&5
7626 echo "${ECHO_T}$DOT" >&6; }
7628 { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7633 if test "$DOT" != "echo dot" ; then
7635 cat >>confdefs.h <<\_ACEOF
7639 if test "$llvm_cv_os_type" = "MingW" ; then
7640 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7643 cat >>confdefs.h <<_ACEOF
7644 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7648 # Extract the first word of "fdp", so it can be a program name with args.
7649 set dummy fdp; ac_word=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_path_FDP+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7680 if test -n "$FDP"; then
7681 { echo "$as_me:$LINENO: result: $FDP" >&5
7682 echo "${ECHO_T}$FDP" >&6; }
7684 { echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6; }
7689 if test "$FDP" != "echo fdp" ; then
7691 cat >>confdefs.h <<\_ACEOF
7695 if test "$llvm_cv_os_type" = "MingW" ; then
7696 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7699 cat >>confdefs.h <<_ACEOF
7700 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7704 # Extract the first word of "neato", so it can be a program name with args.
7705 set dummy neato; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_NEATO+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7735 NEATO=$ac_cv_path_NEATO
7736 if test -n "$NEATO"; then
7737 { echo "$as_me:$LINENO: result: $NEATO" >&5
7738 echo "${ECHO_T}$NEATO" >&6; }
7740 { echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6; }
7745 if test "$NEATO" != "echo neato" ; then
7747 cat >>confdefs.h <<\_ACEOF
7748 #define HAVE_NEATO 1
7751 if test "$llvm_cv_os_type" = "MingW" ; then
7752 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7755 cat >>confdefs.h <<_ACEOF
7756 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7760 # Extract the first word of "twopi", so it can be a program name with args.
7761 set dummy twopi; ac_word=$2
7762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764 if test "${ac_cv_path_TWOPI+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7791 TWOPI=$ac_cv_path_TWOPI
7792 if test -n "$TWOPI"; then
7793 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7794 echo "${ECHO_T}$TWOPI" >&6; }
7796 { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7801 if test "$TWOPI" != "echo twopi" ; then
7803 cat >>confdefs.h <<\_ACEOF
7804 #define HAVE_TWOPI 1
7807 if test "$llvm_cv_os_type" = "MingW" ; then
7808 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7811 cat >>confdefs.h <<_ACEOF
7812 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7816 # Extract the first word of "circo", so it can be a program name with args.
7817 set dummy circo; ac_word=$2
7818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7820 if test "${ac_cv_path_CIRCO+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7835 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7847 CIRCO=$ac_cv_path_CIRCO
7848 if test -n "$CIRCO"; then
7849 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7850 echo "${ECHO_T}$CIRCO" >&6; }
7852 { echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6; }
7857 if test "$CIRCO" != "echo circo" ; then
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_CIRCO 1
7863 if test "$llvm_cv_os_type" = "MingW" ; then
7864 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7867 cat >>confdefs.h <<_ACEOF
7868 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7872 for ac_prog in gv gsview32
7874 # Extract the first word of "$ac_prog", so it can be a program name with args.
7875 set dummy $ac_prog; ac_word=$2
7876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7878 if test "${ac_cv_path_GV+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7893 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 if test -n "$GV"; then
7906 { echo "$as_me:$LINENO: result: $GV" >&5
7907 echo "${ECHO_T}$GV" >&6; }
7909 { echo "$as_me:$LINENO: result: no" >&5
7910 echo "${ECHO_T}no" >&6; }
7914 test -n "$GV" && break
7916 test -n "$GV" || GV="echo gv"
7918 if test "$GV" != "echo gv" ; then
7920 cat >>confdefs.h <<\_ACEOF
7924 if test "$llvm_cv_os_type" = "MingW" ; then
7925 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7928 cat >>confdefs.h <<_ACEOF
7929 #define LLVM_PATH_GV "$GV${EXEEXT}"
7933 # Extract the first word of "dotty", so it can be a program name with args.
7934 set dummy dotty; ac_word=$2
7935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7937 if test "${ac_cv_path_DOTTY+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7952 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7964 DOTTY=$ac_cv_path_DOTTY
7965 if test -n "$DOTTY"; then
7966 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7967 echo "${ECHO_T}$DOTTY" >&6; }
7969 { echo "$as_me:$LINENO: result: no" >&5
7970 echo "${ECHO_T}no" >&6; }
7974 if test "$DOTTY" != "echo dotty" ; then
7976 cat >>confdefs.h <<\_ACEOF
7977 #define HAVE_DOTTY 1
7980 if test "$llvm_cv_os_type" = "MingW" ; then
7981 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7984 cat >>confdefs.h <<_ACEOF
7985 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7989 # Extract the first word of "xdot.py", so it can be a program name with args.
7990 set dummy xdot.py; ac_word=$2
7991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8020 XDOT_PY=$ac_cv_path_XDOT_PY
8021 if test -n "$XDOT_PY"; then
8022 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8023 echo "${ECHO_T}$XDOT_PY" >&6; }
8025 { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8030 if test "$XDOT_PY" != "echo xdot.py" ; then
8032 cat >>confdefs.h <<\_ACEOF
8033 #define HAVE_XDOT_PY 1
8036 if test "$llvm_cv_os_type" = "MingW" ; then
8037 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8040 cat >>confdefs.h <<_ACEOF
8041 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8047 # Extract the first word of "perl", so it can be a program name with args.
8048 set dummy perl; ac_word=$2
8049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_PERL+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8078 PERL=$ac_cv_path_PERL
8079 if test -n "$PERL"; then
8080 { echo "$as_me:$LINENO: result: $PERL" >&5
8081 echo "${ECHO_T}$PERL" >&6; }
8083 { echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6; }
8088 if test "$PERL" != "none"; then
8089 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8090 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8091 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8092 { echo "$as_me:$LINENO: result: yes" >&5
8093 echo "${ECHO_T}yes" >&6; }
8096 { echo "$as_me:$LINENO: result: not found" >&5
8097 echo "${ECHO_T}not found" >&6; }
8102 if test x"$PERL" = xnone; then
8105 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8106 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8107 { (exit 1); exit 1; }; }
8113 # Find a good install program. We prefer a C program (faster),
8114 # so one script is as good as another. But avoid the broken or
8115 # incompatible versions:
8116 # SysV /etc/install, /usr/sbin/install
8117 # SunOS /usr/etc/install
8118 # IRIX /sbin/install
8120 # AmigaOS /C/install, which installs bootblocks on floppy discs
8121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8124 # OS/2's system install, which has a completely different semantic
8125 # ./install, which can be erroneously created by make from ./install.sh.
8126 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8127 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8128 if test -z "$INSTALL"; then
8129 if test "${ac_cv_path_install+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 test -z "$as_dir" && as_dir=.
8137 # Account for people who put trailing slashes in PATH elements.
8139 ./ | .// | /cC/* | \
8140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8144 # OSF1 and SCO ODT 3.0 have their own names for install.
8145 # Don't use installbsd from OSF since it installs stuff as root
8147 for ac_prog in ginstall scoinst install; do
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8150 if test $ac_prog = install &&
8151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8152 # AIX install. It has an incompatible calling convention.
8154 elif test $ac_prog = install &&
8155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8156 # program-specific install script used by HP pwplus--don't use.
8159 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8172 if test "${ac_cv_path_install+set}" = set; then
8173 INSTALL=$ac_cv_path_install
8175 # As a last resort, use the slow shell script. Don't cache a
8176 # value for INSTALL within a source directory, because that will
8177 # break other packages using the cache if that directory is
8178 # removed, or if the value is a relative name.
8179 INSTALL=$ac_install_sh
8182 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8183 echo "${ECHO_T}$INSTALL" >&6; }
8185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8186 # It thinks the first close brace ends the variable substitution.
8187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8189 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8191 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8194 [\\/$]* | ?:[\\/]* ) ;;
8195 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8198 # Extract the first word of "bzip2", so it can be a program name with args.
8199 set dummy bzip2; ac_word=$2
8200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202 if test "${ac_cv_path_BZIP2+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 BZIP2=$ac_cv_path_BZIP2
8229 if test -n "$BZIP2"; then
8230 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8231 echo "${ECHO_T}$BZIP2" >&6; }
8233 { echo "$as_me:$LINENO: result: no" >&5
8234 echo "${ECHO_T}no" >&6; }
8238 # Extract the first word of "cat", so it can be a program name with args.
8239 set dummy cat; ac_word=$2
8240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8242 if test "${ac_cv_path_CAT+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 if test -n "$CAT"; then
8270 { echo "$as_me:$LINENO: result: $CAT" >&5
8271 echo "${ECHO_T}$CAT" >&6; }
8273 { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8278 # Extract the first word of "doxygen", so it can be a program name with args.
8279 set dummy doxygen; ac_word=$2
8280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8282 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 DOXYGEN=$ac_cv_path_DOXYGEN
8309 if test -n "$DOXYGEN"; then
8310 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8311 echo "${ECHO_T}$DOXYGEN" >&6; }
8313 { echo "$as_me:$LINENO: result: no" >&5
8314 echo "${ECHO_T}no" >&6; }
8318 # Extract the first word of "groff", so it can be a program name with args.
8319 set dummy groff; ac_word=$2
8320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8322 if test "${ac_cv_path_GROFF+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8337 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 GROFF=$ac_cv_path_GROFF
8349 if test -n "$GROFF"; then
8350 { echo "$as_me:$LINENO: result: $GROFF" >&5
8351 echo "${ECHO_T}$GROFF" >&6; }
8353 { echo "$as_me:$LINENO: result: no" >&5
8354 echo "${ECHO_T}no" >&6; }
8358 # Extract the first word of "gzip", so it can be a program name with args.
8359 set dummy gzip; ac_word=$2
8360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 GZIPBIN=$ac_cv_path_GZIPBIN
8389 if test -n "$GZIPBIN"; then
8390 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8391 echo "${ECHO_T}$GZIPBIN" >&6; }
8393 { echo "$as_me:$LINENO: result: no" >&5
8394 echo "${ECHO_T}no" >&6; }
8398 # Extract the first word of "pod2html", so it can be a program name with args.
8399 set dummy pod2html; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_path_POD2HTML+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 POD2HTML=$ac_cv_path_POD2HTML
8429 if test -n "$POD2HTML"; then
8430 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8431 echo "${ECHO_T}$POD2HTML" >&6; }
8433 { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8438 # Extract the first word of "pod2man", so it can be a program name with args.
8439 set dummy pod2man; ac_word=$2
8440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8442 if test "${ac_cv_path_POD2MAN+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8457 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 POD2MAN=$ac_cv_path_POD2MAN
8469 if test -n "$POD2MAN"; then
8470 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8471 echo "${ECHO_T}$POD2MAN" >&6; }
8473 { echo "$as_me:$LINENO: result: no" >&5
8474 echo "${ECHO_T}no" >&6; }
8478 # Extract the first word of "pdfroff", so it can be a program name with args.
8479 set dummy pdfroff; ac_word=$2
8480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8482 if test "${ac_cv_path_PDFROFF+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8497 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 PDFROFF=$ac_cv_path_PDFROFF
8509 if test -n "$PDFROFF"; then
8510 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8511 echo "${ECHO_T}$PDFROFF" >&6; }
8513 { echo "$as_me:$LINENO: result: no" >&5
8514 echo "${ECHO_T}no" >&6; }
8518 # Extract the first word of "runtest", so it can be a program name with args.
8519 set dummy runtest; ac_word=$2
8520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8522 if test "${ac_cv_path_RUNTEST+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 RUNTEST=$ac_cv_path_RUNTEST
8549 if test -n "$RUNTEST"; then
8550 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8551 echo "${ECHO_T}$RUNTEST" >&6; }
8553 { echo "$as_me:$LINENO: result: no" >&5
8554 echo "${ECHO_T}no" >&6; }
8560 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8561 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8563 # Check whether --with-tclinclude was given.
8564 if test "${with_tclinclude+set}" = set; then
8565 withval=$with_tclinclude; with_tclinclude=${withval}
8570 if test "${ac_cv_path_tclsh+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 if test x"${with_tclinclude}" != x ; then
8575 if test -f ${with_tclinclude}/tclsh ; then
8576 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8577 elif test -f ${with_tclinclude}/src/tclsh ; then
8578 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8580 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8581 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8582 { (exit 1); exit 1; }; }
8588 if test x"${ac_cv_path_tclsh}" = x ; then
8589 { echo "$as_me:$LINENO: result: none" >&5
8590 echo "${ECHO_T}none" >&6; }
8591 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
8593 # Extract the first word of "$ac_prog", so it can be a program name with args.
8594 set dummy $ac_prog; ac_word=$2
8595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8597 if test "${ac_cv_path_TCLSH+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8612 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 TCLSH=$ac_cv_path_TCLSH
8624 if test -n "$TCLSH"; then
8625 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8626 echo "${ECHO_T}$TCLSH" >&6; }
8628 { echo "$as_me:$LINENO: result: no" >&5
8629 echo "${ECHO_T}no" >&6; }
8633 test -n "$TCLSH" && break
8636 if test x"${TCLSH}" = x ; then
8637 ac_cv_path_tclsh='';
8639 ac_cv_path_tclsh="${TCLSH}";
8642 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8643 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8644 TCLSH="${ac_cv_path_tclsh}"
8648 # Extract the first word of "zip", so it can be a program name with args.
8649 set dummy zip; ac_word=$2
8650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8652 if test "${ac_cv_path_ZIP+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8667 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 if test -n "$ZIP"; then
8680 { echo "$as_me:$LINENO: result: $ZIP" >&5
8681 echo "${ECHO_T}$ZIP" >&6; }
8683 { echo "$as_me:$LINENO: result: no" >&5
8684 echo "${ECHO_T}no" >&6; }
8688 for ac_prog in ocamlc
8690 # Extract the first word of "$ac_prog", so it can be a program name with args.
8691 set dummy $ac_prog; ac_word=$2
8692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8694 if test "${ac_cv_path_OCAMLC+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8709 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 OCAMLC=$ac_cv_path_OCAMLC
8721 if test -n "$OCAMLC"; then
8722 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8723 echo "${ECHO_T}$OCAMLC" >&6; }
8725 { echo "$as_me:$LINENO: result: no" >&5
8726 echo "${ECHO_T}no" >&6; }
8730 test -n "$OCAMLC" && break
8733 for ac_prog in ocamlopt
8735 # Extract the first word of "$ac_prog", so it can be a program name with args.
8736 set dummy $ac_prog; ac_word=$2
8737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8739 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8754 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 OCAMLOPT=$ac_cv_path_OCAMLOPT
8766 if test -n "$OCAMLOPT"; then
8767 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8768 echo "${ECHO_T}$OCAMLOPT" >&6; }
8770 { echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6; }
8775 test -n "$OCAMLOPT" && break
8778 for ac_prog in ocamldep
8780 # Extract the first word of "$ac_prog", so it can be a program name with args.
8781 set dummy $ac_prog; ac_word=$2
8782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8784 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8799 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 OCAMLDEP=$ac_cv_path_OCAMLDEP
8811 if test -n "$OCAMLDEP"; then
8812 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8813 echo "${ECHO_T}$OCAMLDEP" >&6; }
8815 { echo "$as_me:$LINENO: result: no" >&5
8816 echo "${ECHO_T}no" >&6; }
8820 test -n "$OCAMLDEP" && break
8823 for ac_prog in ocamldoc
8825 # Extract the first word of "$ac_prog", so it can be a program name with args.
8826 set dummy $ac_prog; ac_word=$2
8827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8829 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8844 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 OCAMLDOC=$ac_cv_path_OCAMLDOC
8856 if test -n "$OCAMLDOC"; then
8857 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8858 echo "${ECHO_T}$OCAMLDOC" >&6; }
8860 { echo "$as_me:$LINENO: result: no" >&5
8861 echo "${ECHO_T}no" >&6; }
8865 test -n "$OCAMLDOC" && break
8868 for ac_prog in gas as
8870 # Extract the first word of "$ac_prog", so it can be a program name with args.
8871 set dummy $ac_prog; ac_word=$2
8872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8874 if test "${ac_cv_path_GAS+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 if test -n "$GAS"; then
8902 { echo "$as_me:$LINENO: result: $GAS" >&5
8903 echo "${ECHO_T}$GAS" >&6; }
8905 { echo "$as_me:$LINENO: result: no" >&5
8906 echo "${ECHO_T}no" >&6; }
8910 test -n "$GAS" && break
8914 { echo "$as_me:$LINENO: checking for linker version" >&5
8915 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8916 if test "${llvm_cv_link_version+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 version_string="$(ld -v 2>&1 | head -1)"
8923 if (echo "$version_string" | grep -q "ld64"); then
8924 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8926 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8930 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8931 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8933 cat >>confdefs.h <<_ACEOF
8934 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8939 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8940 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8941 if test "${llvm_cv_link_use_r+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 ac_cpp='$CPP $CPPFLAGS'
8946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8951 CFLAGS="$CFLAGS -Wl,-R."
8952 cat >conftest.$ac_ext <<_ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (ac_try="$ac_link"
8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971 *) ac_try_echo=$ac_try;;
8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974 (eval "$ac_link") 2>conftest.er1
8976 grep -v '^ *+' conftest.er1 >conftest.err
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8982 { (case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_try") 2>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; } &&
8991 { ac_try='test -s conftest$ac_exeext'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
9001 llvm_cv_link_use_r=yes
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 llvm_cv_link_use_r=no
9009 rm -f core conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9013 ac_cpp='$CPP $CPPFLAGS'
9014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9020 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9021 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9022 if test "$llvm_cv_link_use_r" = yes ; then
9024 cat >>confdefs.h <<\_ACEOF
9025 #define HAVE_LINK_R 1
9031 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9032 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9033 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 ac_cpp='$CPP $CPPFLAGS'
9038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9043 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9044 cat >conftest.$ac_ext <<_ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (ac_try="$ac_link"
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_link") 2>conftest.er1
9068 grep -v '^ *+' conftest.er1 >conftest.err
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9074 { (case "(($ac_try" in
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_try") 2>&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; } &&
9083 { ac_try='test -s conftest$ac_exeext'
9084 { (case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_try") 2>&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 llvm_cv_link_use_export_dynamic=yes
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 llvm_cv_link_use_export_dynamic=no
9101 rm -f core conftest.err conftest.$ac_objext \
9102 conftest$ac_exeext conftest.$ac_ext
9105 ac_cpp='$CPP $CPPFLAGS'
9106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9112 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9113 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9114 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9116 cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_LINK_EXPORT_DYNAMIC 1
9123 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9124 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9125 if test "${llvm_cv_link_use_version_script+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 ac_cpp='$CPP $CPPFLAGS'
9130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9136 # The following code is from the autoconf manual,
9137 # "11.13: Limitations of Usual Tools".
9138 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9139 # Use mktemp if possible; otherwise fall back on mkdir,
9140 # with $RANDOM to make collisions less likely.
9144 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9146 test -n "$tmp" && test -d "$tmp"
9148 tmp=$TMPDIR/foo$$-$RANDOM
9149 (umask 077 && mkdir "$tmp")
9152 echo "{" > "$tmp/export.map"
9153 echo " global: main;" >> "$tmp/export.map"
9154 echo " local: *;" >> "$tmp/export.map"
9155 echo "};" >> "$tmp/export.map"
9157 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (ac_try="$ac_link"
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_link") 2>conftest.er1
9182 grep -v '^ *+' conftest.er1 >conftest.err
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9188 { (case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193 (eval "$ac_try") 2>&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try='test -s conftest$ac_exeext'
9198 { (case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_try") 2>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 llvm_cv_link_use_version_script=yes
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 llvm_cv_link_use_version_script=no
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 rm "$tmp/export.map"
9221 ac_cpp='$CPP $CPPFLAGS'
9222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9228 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9229 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9230 if test "$llvm_cv_link_use_version_script" = yes ; then
9231 HAVE_LINK_VERSION_SCRIPT=1
9238 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9239 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9240 if test "${ac_cv_c_const+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 cat >conftest.$ac_ext <<_ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9253 /* FIXME: Include the comments suggested by Paul. */
9255 /* Ultrix mips cc rejects this. */
9256 typedef int charset[2];
9258 /* SunOS 4.1.1 cc rejects this. */
9259 char const *const *ccp;
9261 /* NEC SVR4.0.2 mips cc rejects this. */
9262 struct point {int x, y;};
9263 static struct point const zero = {0,0};
9264 /* AIX XL C 1.02.0.0 rejects this.
9265 It does not let you subtract one const X* pointer from another in
9266 an arm of an if-expression whose if-part is not a constant
9268 const char *g = "string";
9269 ccp = &g + (g ? g-g : 0);
9270 /* HPUX 7.0 cc rejects these. */
9273 ccp = (char const *const *) p;
9274 { /* SCO 3.2v4 cc rejects this. */
9276 char const *s = 0 ? (char *) 0 : (char const *) 0;
9281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9283 const int *foo = &x[0];
9286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9287 typedef const int *iptr;
9291 { /* AIX XL C 1.02.0.0 rejects this saying
9292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9293 struct s { int j; const int *ap[3]; };
9294 struct s *b; b->j = 5;
9296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9300 return !x[0] && !zero.x;
9307 rm -f conftest.$ac_objext
9308 if { (ac_try="$ac_compile"
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_compile") 2>conftest.er1
9316 grep -v '^ *+' conftest.er1 >conftest.err
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9322 { (case "(($ac_try" in
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_try") 2>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest.$ac_objext'
9332 { (case "(($ac_try" in
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_try") 2>&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
9343 echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9352 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9353 if test $ac_cv_c_const = no; then
9355 cat >>confdefs.h <<\_ACEOF
9367 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9368 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9369 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9370 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 cat >conftest.$ac_ext <<_ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 #include <sys/types.h>
9392 rm -f conftest.$ac_objext
9393 if { (ac_try="$ac_compile"
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1 >conftest.err
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } &&
9406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9407 { (case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_try") 2>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } &&
9416 { ac_try='test -s conftest.$ac_objext'
9417 { (case "(($ac_try" in
9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_try") 2>&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 eval "$as_ac_Header=yes"
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9431 eval "$as_ac_Header=no"
9434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9436 ac_res=`eval echo '${'$as_ac_Header'}'`
9437 { echo "$as_me:$LINENO: result: $ac_res" >&5
9438 echo "${ECHO_T}$ac_res" >&6; }
9439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9440 cat >>confdefs.h <<_ACEOF
9441 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9444 ac_header_dirent=$ac_hdr; break
9448 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9449 if test $ac_header_dirent = dirent.h; then
9450 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9451 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9452 if test "${ac_cv_search_opendir+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 ac_func_search_save_LIBS=$LIBS
9456 cat >conftest.$ac_ext <<_ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9478 for ac_lib in '' dir; do
9479 if test -z "$ac_lib"; then
9480 ac_res="none required"
9483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>conftest.er1
9494 grep -v '^ *+' conftest.er1 >conftest.err
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9500 { (case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_try") 2>&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try='test -s conftest$ac_exeext'
9510 { (case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_try") 2>&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519 ac_cv_search_opendir=$ac_res
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9527 rm -f core conftest.err conftest.$ac_objext \
9529 if test "${ac_cv_search_opendir+set}" = set; then
9533 if test "${ac_cv_search_opendir+set}" = set; then
9536 ac_cv_search_opendir=no
9539 LIBS=$ac_func_search_save_LIBS
9541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9543 ac_res=$ac_cv_search_opendir
9544 if test "$ac_res" != no; then
9545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9550 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9552 if test "${ac_cv_search_opendir+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 ac_func_search_save_LIBS=$LIBS
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9578 for ac_lib in '' x; do
9579 if test -z "$ac_lib"; then
9580 ac_res="none required"
9583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (ac_try="$ac_link"
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_link") 2>conftest.er1
9594 grep -v '^ *+' conftest.er1 >conftest.err
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9600 { (case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_try") 2>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_search_opendir=$ac_res
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9627 rm -f core conftest.err conftest.$ac_objext \
9629 if test "${ac_cv_search_opendir+set}" = set; then
9633 if test "${ac_cv_search_opendir+set}" = set; then
9636 ac_cv_search_opendir=no
9639 LIBS=$ac_func_search_save_LIBS
9641 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9642 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9643 ac_res=$ac_cv_search_opendir
9644 if test "$ac_res" != no; then
9645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9652 for ac_header in dlfcn.h
9654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 ac_res=`eval echo '${'$as_ac_Header'}'`
9662 { echo "$as_me:$LINENO: result: $ac_res" >&5
9663 echo "${ECHO_T}$ac_res" >&6; }
9665 # Is the header compilable?
9666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9668 cat >conftest.$ac_ext <<_ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 $ac_includes_default
9675 #include <$ac_header>
9677 rm -f conftest.$ac_objext
9678 if { (ac_try="$ac_compile"
9680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681 *) ac_try_echo=$ac_try;;
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684 (eval "$ac_compile") 2>conftest.er1
9686 grep -v '^ *+' conftest.er1 >conftest.err
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9692 { (case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_try") 2>&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; } &&
9701 { ac_try='test -s conftest.$ac_objext'
9702 { (case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_try") 2>&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_header_compiler=yes
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9716 ac_header_compiler=no
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721 echo "${ECHO_T}$ac_header_compiler" >&6; }
9723 # Is the header present?
9724 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 #include <$ac_header>
9734 if { (ac_try="$ac_cpp conftest.$ac_ext"
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } >/dev/null; then
9747 if test -s conftest.err; then
9748 ac_cpp_err=$ac_c_preproc_warn_flag
9749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9756 if test -z "$ac_cpp_err"; then
9757 ac_header_preproc=yes
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 ac_header_preproc=no
9765 rm -f conftest.err conftest.$ac_ext
9766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9767 echo "${ECHO_T}$ac_header_preproc" >&6; }
9769 # So? What about this header?
9770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9776 ac_header_preproc=yes
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9792 ## ----------------------------------- ##
9793 ## Report this to llvmbugs@cs.uiuc.edu ##
9794 ## ----------------------------------- ##
9796 ) | sed "s/^/$as_me: WARNING: /" >&2
9799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 eval "$as_ac_Header=\$ac_header_preproc"
9806 ac_res=`eval echo '${'$as_ac_Header'}'`
9807 { echo "$as_me:$LINENO: result: $ac_res" >&5
9808 echo "${ECHO_T}$ac_res" >&6; }
9811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9812 cat >>confdefs.h <<_ACEOF
9813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9820 # Check whether --enable-ltdl-install was given.
9821 if test "${enable_ltdl_install+set}" = set; then
9822 enableval=$enable_ltdl_install;
9828 if test x"${enable_ltdl_install-no}" != xno; then
9830 INSTALL_LTDL_FALSE='#'
9832 INSTALL_LTDL_TRUE='#'
9838 if test x"${enable_ltdl_convenience-no}" != xno; then
9839 CONVENIENCE_LTDL_TRUE=
9840 CONVENIENCE_LTDL_FALSE='#'
9842 CONVENIENCE_LTDL_TRUE='#'
9843 CONVENIENCE_LTDL_FALSE=
9847 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9850 libname_spec='lib$name'
9858 shlibpath_overrides_runpath=unknown
9860 dynamic_linker="$host_os ld.so"
9861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9862 if test "$GCC" = yes; then
9863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9864 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9865 # if the path contains ";" then we assume it to be the separator
9866 # otherwise default to the standard path separator (i.e. ":") - it is
9867 # assumed that no part of a normal pathname contains ";" but that should
9868 # okay in the real world where ";" in dirpaths is itself problematic.
9869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9876 need_lib_prefix=unknown
9877 hardcode_into_libs=no
9879 # when you set need_version to no, make sure it does not cause -set_version
9880 # flags to be left without arguments
9881 need_version=unknown
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9887 shlibpath_var=LIBPATH
9889 # AIX 3 has no versioning support, so we append a major version to the name.
9890 soname_spec='${libname}${release}${shared_ext}$major'
9897 hardcode_into_libs=yes
9898 if test "$host_cpu" = ia64; then
9899 # AIX 5 supports IA64
9900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9901 shlibpath_var=LD_LIBRARY_PATH
9903 # With GCC up to 2.95.x, collect2 would create an import file
9904 # for dependence libraries. The import file would start with
9905 # the line `#! .'. This would cause the generated library to
9906 # depend on `.', always an invalid library. This was fixed in
9907 # development snapshots of GCC prior to 3.0.
9909 aix4 | aix4.[01] | aix4.[01].*)
9910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9912 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9920 # soname into executable. Probably we can add versioning support to
9921 # collect2, so additional links can be useful in future.
9922 if test "$aix_use_runtimelinking" = yes; then
9923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9924 # instead of lib<name>.a to let people know that these are not
9925 # typical AIX shared libraries.
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 # We preserve .a as extension for shared libraries through AIX4.2
9929 # and later when we are not doing run time linking.
9930 library_names_spec='${libname}${release}.a $libname.a'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9933 shlibpath_var=LIBPATH
9938 library_names_spec='$libname.ixlibrary $libname.a'
9939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9940 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'
9944 library_names_spec='${libname}${shared_ext}'
9945 dynamic_linker="$host_os ld.so"
9946 shlibpath_var=LIBRARY_PATH
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9958 # the default ld.so.conf also contains /usr/contrib/lib and
9959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9960 # libtool to hard-code these into programs
9963 cygwin* | mingw* | pw32*)
9964 version_type=windows
9969 case $GCC,$host_os in
9970 yes,cygwin* | yes,mingw* | yes,pw32*)
9971 library_names_spec='$libname.dll.a'
9972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9973 postinstall_cmds='base_file=`basename \${file}`~
9974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9975 dldir=$destdir/`dirname \$dlpath`~
9976 test -d \$dldir || mkdir -p \$dldir~
9977 $install_prog $dir/$dlname \$dldir/$dlname~
9978 chmod a+x \$dldir/$dlname'
9979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9980 dlpath=$dir/\$dldll~
9982 shlibpath_overrides_runpath=yes
9986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9991 # MinGW DLLs use traditional 'lib' prefix
9992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9994 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9995 # It is most probably a Windows format PATH printed by
9996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9997 # path with ; separators, and with drive letters. We can handle the
9998 # drive letters (cygwin fileutils understands them), so leave them,
9999 # especially as we might pass files found there to a mingw objdump,
10000 # which wouldn't understand a cygwinified path. Ahh.
10001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10007 # pw32 DLLs use 'pw' prefix rather than 'lib'
10008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10017 dynamic_linker='Win32 ld.exe'
10018 # FIXME: first we should search . and the directory the executable is in
10022 darwin* | rhapsody*)
10023 dynamic_linker="$host_os dyld"
10024 version_type=darwin
10027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10028 soname_spec='${libname}${release}${major}$shared_ext'
10029 shlibpath_overrides_runpath=yes
10030 shlibpath_var=DYLD_LIBRARY_PATH
10031 shrext_cmds='.dylib'
10032 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10033 if test "$GCC" = yes; then
10034 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"`
10036 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=no
10062 hardcode_into_libs=yes
10063 dynamic_linker='GNU ld.so'
10066 freebsd* | dragonfly*)
10067 # DragonFly does not have aout. When/if they implement a new
10068 # versioning mechanism, adjust this.
10069 if test -x /usr/bin/objformat; then
10070 objformat=`/usr/bin/objformat`
10073 freebsd[123]*) objformat=aout ;;
10074 *) objformat=elf ;;
10077 version_type=freebsd-$objformat
10078 case $version_type in
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10089 shlibpath_var=LD_LIBRARY_PATH
10092 shlibpath_overrides_runpath=yes
10094 freebsd3.[01]* | freebsdelf3.[01]*)
10095 shlibpath_overrides_runpath=yes
10096 hardcode_into_libs=yes
10098 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10099 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10100 shlibpath_overrides_runpath=no
10101 hardcode_into_libs=yes
10103 freebsd*) # from 4.6 on
10104 shlibpath_overrides_runpath=yes
10105 hardcode_into_libs=yes
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 hardcode_into_libs=yes
10120 hpux9* | hpux10* | hpux11*)
10121 # Give a soname corresponding to the major version so that dld.sl refuses to
10122 # link against other versions.
10129 hardcode_into_libs=yes
10130 dynamic_linker="$host_os dld.so"
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 if test "X$HPUX_IA64_MODE" = X32; then
10136 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10144 hardcode_into_libs=yes
10145 dynamic_linker="$host_os dld.sl"
10146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10155 dynamic_linker="$host_os dld.sl"
10156 shlibpath_var=SHLIB_PATH
10157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10162 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10163 postinstall_cmds='chmod 555 $lib'
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=no
10175 hardcode_into_libs=yes
10178 irix5* | irix6* | nonstopux*)
10180 nonstopux*) version_type=nonstopux ;;
10182 if test "$lt_cv_prog_gnu_ld" = yes; then
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10193 irix5* | nonstopux*)
10194 libsuff= shlibsuff=
10197 case $LD in # libtool.m4 will add one of these switches to LD
10198 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10199 libsuff= shlibsuff= libmagic=32-bit;;
10200 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10201 libsuff=32 shlibsuff=N32 libmagic=N32;;
10202 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10203 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10204 *) libsuff= shlibsuff= libmagic=never-match;;
10208 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10209 shlibpath_overrides_runpath=no
10210 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10211 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10212 hardcode_into_libs=yes
10215 # No shared lib support for Linux oldld, aout, or coff.
10216 linux*oldld* | linux*aout* | linux*coff*)
10220 # This must be Linux ELF.
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 shlibpath_overrides_runpath=no
10230 # This implies no fast_install, which is unacceptable.
10231 # Some rework will be needed to allow for fast_install
10232 # before this can be enabled.
10233 hardcode_into_libs=yes
10235 # Append ld.so.conf contents to the search path
10236 if test -f /etc/ld.so.conf; then
10237 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' ' '`
10238 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10241 # We used to test for /lib/ld.so.1 and disable shared libraries on
10242 # powerpc, because MkLinux only supported shared libraries with the
10243 # GNU dynamic linker. Since this was broken with cross compilers,
10244 # most powerpc-linux boxes support dynamic linking these days and
10245 # people can always --disable-shared, the test was removed, and we
10246 # assume the GNU/Linux dynamic linker is in use.
10247 dynamic_linker='GNU/Linux ld.so'
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=no
10258 hardcode_into_libs=yes
10259 dynamic_linker='GNU ld.so'
10266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10269 dynamic_linker='NetBSD (a.out) ld.so'
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 dynamic_linker='NetBSD ld.elf_so'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10277 hardcode_into_libs=yes
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 shlibpath_overrides_runpath=yes
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10299 sys_lib_dlsearch_path_spec="/usr/lib"
10301 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10303 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10304 *) need_version=no ;;
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10311 openbsd2.[89] | openbsd2.[89].*)
10312 shlibpath_overrides_runpath=no
10315 shlibpath_overrides_runpath=yes
10319 shlibpath_overrides_runpath=yes
10324 libname_spec='$name'
10327 library_names_spec='$libname${shared_ext} $libname.a'
10328 dynamic_linker='OS/2 ld.exe'
10329 shlibpath_var=LIBPATH
10332 osf3* | osf4* | osf5*)
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=yes
10351 hardcode_into_libs=yes
10352 # ldd complains unless libraries are executable
10353 postinstall_cmds='chmod +x $lib'
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 shlibpath_overrides_runpath=yes
10362 if test "$with_gnu_ld" = yes; then
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 case $host_vendor in
10375 shlibpath_overrides_runpath=no
10377 export_dynamic_flag_spec='${wl}-Blargedynsym'
10378 runpath_var=LD_RUN_PATH
10386 shlibpath_overrides_runpath=no
10387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10393 if test -d /usr/nec ;then
10395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10396 soname_spec='$libname${shared_ext}.$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10402 version_type=freebsd-elf
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 hardcode_into_libs=yes
10409 if test "$with_gnu_ld" = yes; then
10410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10411 shlibpath_overrides_runpath=no
10413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10414 shlibpath_overrides_runpath=yes
10417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10421 sys_lib_dlsearch_path_spec='/usr/lib'
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LD_LIBRARY_PATH
10435 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10436 echo "${ECHO_T}$dynamic_linker" >&6; }
10437 test "$dynamic_linker" = no && can_build_shared=no
10439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10440 if test "$GCC" = yes; then
10441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10445 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10446 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10447 if test "${libltdl_cv_shlibext+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10452 eval libltdl_cv_shlibext=$shrext_cmds
10455 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10456 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10457 if test -n "$libltdl_cv_shlibext"; then
10459 cat >>confdefs.h <<_ACEOF
10460 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10466 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10467 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10468 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 libltdl_cv_shlibpath_var="$shlibpath_var"
10473 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10474 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10475 if test -n "$libltdl_cv_shlibpath_var"; then
10477 cat >>confdefs.h <<_ACEOF
10478 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10484 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10485 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10486 if test "${libltdl_cv_sys_search_path+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10491 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10492 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10493 if test -n "$libltdl_cv_sys_search_path"; then
10495 for dir in $libltdl_cv_sys_search_path; do
10496 if test -z "$sys_search_path"; then
10497 sys_search_path="$dir"
10499 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10503 cat >>confdefs.h <<_ACEOF
10504 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10509 { echo "$as_me:$LINENO: checking for objdir" >&5
10510 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10511 if test "${libltdl_cv_objdir+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 libltdl_cv_objdir="$objdir"
10515 if test -n "$objdir"; then
10518 rm -f .libs 2>/dev/null
10519 mkdir .libs 2>/dev/null
10520 if test -d .libs; then
10521 libltdl_cv_objdir=.libs
10523 # MS-DOS does not allow filenames that begin with a dot.
10524 libltdl_cv_objdir=_libs
10526 rmdir .libs 2>/dev/null
10530 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10531 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10533 cat >>confdefs.h <<_ACEOF
10534 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10542 # Check for command to grab the raw symbol name followed by C symbol from nm.
10543 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10544 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10545 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 # These are sane defaults that work on at least a few old systems.
10550 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10552 # Character class describing NM global symbol codes.
10553 symcode='[BCDEGRST]'
10555 # Regexp to match symbols that can be accessed directly from C.
10556 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10558 # Transform an extracted symbol line into a proper C declaration
10559 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10561 # Transform an extracted symbol line into symbol name and symbol address
10562 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'"
10564 # Define system-specific variables.
10569 cygwin* | mingw* | pw32*)
10570 symcode='[ABCDGISTW]'
10572 hpux*) # Its linker distinguishes data from code symbols
10573 if test "$host_cpu" = ia64; then
10574 symcode='[ABCDEGRST]'
10576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10577 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'"
10580 if test "$host_cpu" = ia64; then
10581 symcode='[ABCDGIRSTW]'
10582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10583 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'"
10586 irix* | nonstopux*)
10587 symcode='[BCDEGRST]'
10590 symcode='[BCDEGQRST]'
10601 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10609 # Handle CRLF in mingw tool chain
10613 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10617 # If we're using GNU nm, then use its standard symbol codes.
10618 case `$NM -V 2>&1` in
10619 *GNU* | *'with BFD'*)
10620 symcode='[ABCDGIRSTW]' ;;
10623 # Try without a prefix undercore, then with it.
10624 for ac_symprfx in "" "_"; do
10626 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10627 symxfrm="\\1 $ac_symprfx\\2 \\2"
10629 # Write the raw and C identifiers.
10630 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10632 # Check to see that the pipe works correctly.
10636 cat > conftest.$ac_ext <<EOF
10641 void nm_test_func(){}
10645 int main(){nm_test_var='a';nm_test_func();return(0);}
10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649 (eval $ac_compile) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; then
10653 # Now try to grab the symbols.
10655 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10656 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } && test -s "$nlist"; then
10660 # Try sorting and uniquifying the output.
10661 if sort "$nlist" | uniq > "$nlist"T; then
10662 mv -f "$nlist"T "$nlist"
10667 # Make sure that we snagged all the symbols we need.
10668 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10669 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10670 cat <<EOF > conftest.$ac_ext
10676 # Now generate the symbol file.
10677 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10679 cat <<EOF >> conftest.$ac_ext
10680 #if defined (__STDC__) && __STDC__
10681 # define lt_ptr_t void *
10683 # define lt_ptr_t char *
10687 /* The mapping between symbol names and symbols. */
10692 lt_preloaded_symbols[] =
10695 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10696 cat <<\EOF >> conftest.$ac_ext
10704 # Now try linking the two files.
10705 mv conftest.$ac_objext conftstm.$ac_objext
10706 lt_save_LIBS="$LIBS"
10707 lt_save_CFLAGS="$CFLAGS"
10708 LIBS="conftstm.$ac_objext"
10709 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10711 (eval $ac_link) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10717 LIBS="$lt_save_LIBS"
10718 CFLAGS="$lt_save_CFLAGS"
10720 echo "cannot find nm_test_func in $nlist" >&5
10723 echo "cannot find nm_test_var in $nlist" >&5
10726 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10729 echo "$progname: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10732 rm -f conftest* conftst*
10734 # Do not use the global_symbol_pipe unless it works.
10735 if test "$pipe_works" = yes; then
10738 lt_cv_sys_global_symbol_pipe=
10744 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10745 lt_cv_sys_global_symbol_to_cdecl=
10747 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10748 { echo "$as_me:$LINENO: result: failed" >&5
10749 echo "${ECHO_T}failed" >&6; }
10751 { echo "$as_me:$LINENO: result: ok" >&5
10752 echo "${ECHO_T}ok" >&6; }
10756 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10757 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10758 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10762 libltdl_cv_preloaded_symbols=yes
10764 libltdl_cv_preloaded_symbols=no
10768 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10769 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10770 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10772 cat >>confdefs.h <<\_ACEOF
10773 #define HAVE_PRELOADED_SYMBOLS 1
10781 ac_cpp='$CPP $CPPFLAGS'
10782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10787 { echo "$as_me:$LINENO: checking for shl_load" >&5
10788 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10789 if test "${ac_cv_func_shl_load+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 cat >conftest.$ac_ext <<_ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800 #define shl_load innocuous_shl_load
10802 /* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char shl_load (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
10808 # include <limits.h>
10810 # include <assert.h>
10815 /* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10822 /* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
10825 #if defined __stub_shl_load || defined __stub___shl_load
10832 return shl_load ();
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852 { (case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_try") 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; } &&
10861 { ac_try='test -s conftest$ac_exeext'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_cv_func_shl_load=yes
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 ac_cv_func_shl_load=no
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10882 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10883 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10884 if test $ac_cv_func_shl_load = yes; then
10886 cat >>confdefs.h <<\_ACEOF
10887 #define HAVE_SHL_LOAD 1
10891 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10892 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10893 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 ac_check_lib_save_LIBS=$LIBS
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10905 /* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10915 return shl_load ();
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_link") 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10935 { (case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_try") 2>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; } &&
10944 { ac_try='test -s conftest$ac_exeext'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_lib_dld_shl_load=yes
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 ac_cv_lib_dld_shl_load=no
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_lib_save_LIBS
10966 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10967 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10968 if test $ac_cv_lib_dld_shl_load = yes; then
10970 cat >>confdefs.h <<\_ACEOF
10971 #define HAVE_SHL_LOAD 1
10974 LIBADD_DL="$LIBADD_DL -ldld"
10976 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10977 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 ac_check_lib_save_LIBS=$LIBS
10983 cat >conftest.$ac_ext <<_ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11014 grep -v '^ *+' conftest.er1 >conftest.err
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020 { (case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest$ac_exeext'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_cv_lib_dl_dlopen=yes
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ac_cv_lib_dl_dlopen=no
11047 rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11051 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11052 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11053 if test $ac_cv_lib_dl_dlopen = yes; then
11055 cat >>confdefs.h <<\_ACEOF
11056 #define HAVE_LIBDL 1
11059 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11068 # include <dlfcn.h>
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (ac_try="$ac_link"
11081 case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_link") 2>conftest.er1
11088 grep -v '^ *+' conftest.er1 >conftest.err
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11094 { (case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_try") 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; } &&
11103 { ac_try='test -s conftest$ac_exeext'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_LIBDL 1
11117 libltdl_cv_func_dlopen="yes"
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11123 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11124 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 ac_check_lib_save_LIBS=$LIBS
11128 LIBS="-lsvld $LIBS"
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (ac_try="$ac_link"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_link") 2>conftest.er1
11160 grep -v '^ *+' conftest.er1 >conftest.err
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11166 { (case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_try") 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try='test -s conftest$ac_exeext'
11176 { (case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_try") 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 ac_cv_lib_svld_dlopen=yes
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 ac_cv_lib_svld_dlopen=no
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11197 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11198 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11199 if test $ac_cv_lib_svld_dlopen = yes; then
11201 cat >>confdefs.h <<\_ACEOF
11202 #define HAVE_LIBDL 1
11205 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11207 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11208 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11209 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 ac_check_lib_save_LIBS=$LIBS
11214 cat >conftest.$ac_ext <<_ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11231 return dld_link ();
11236 rm -f conftest.$ac_objext conftest$ac_exeext
11237 if { (ac_try="$ac_link"
11238 case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_link") 2>conftest.er1
11245 grep -v '^ *+' conftest.er1 >conftest.err
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11251 { (case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_try") 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; } &&
11260 { ac_try='test -s conftest$ac_exeext'
11261 { (case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_try") 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
11270 ac_cv_lib_dld_dld_link=yes
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 ac_cv_lib_dld_dld_link=no
11278 rm -f core conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11280 LIBS=$ac_check_lib_save_LIBS
11282 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11283 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11284 if test $ac_cv_lib_dld_dld_link = yes; then
11286 cat >>confdefs.h <<\_ACEOF
11290 LIBADD_DL="$LIBADD_DL -ldld"
11292 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11293 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11294 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 cat >conftest.$ac_ext <<_ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11305 #define _dyld_func_lookup innocuous__dyld_func_lookup
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char _dyld_func_lookup (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
11313 # include <limits.h>
11315 # include <assert.h>
11318 #undef _dyld_func_lookup
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11326 char _dyld_func_lookup ();
11327 /* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11337 return _dyld_func_lookup ();
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (ac_try="$ac_link"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1 >conftest.err
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11357 { (case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_try") 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest$ac_exeext'
11367 { (case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_try") 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_func__dyld_func_lookup=yes
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11381 ac_cv_func__dyld_func_lookup=no
11384 rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11387 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11388 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11389 if test $ac_cv_func__dyld_func_lookup = yes; then
11391 cat >>confdefs.h <<\_ACEOF
11392 #define HAVE_DYLD 1
11406 rm -f core conftest.err conftest.$ac_objext \
11407 conftest$ac_exeext conftest.$ac_ext
11418 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11420 lt_save_LIBS="$LIBS"
11421 LIBS="$LIBS $LIBADD_DL"
11423 for ac_func in dlerror
11425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 cat >conftest.$ac_ext <<_ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11439 #define $ac_func innocuous_$ac_func
11441 /* System header to define __stub macros and hopefully few prototypes,
11442 which can conflict with char $ac_func (); below.
11443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444 <limits.h> exists even on freestanding compilers. */
11447 # include <limits.h>
11449 # include <assert.h>
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11461 /* The GNU C library defines this for functions which it implements
11462 to always fail with ENOSYS. Some functions are actually named
11463 something starting with __ and the normal name is an alias. */
11464 #if defined __stub_$ac_func || defined __stub___$ac_func
11471 return $ac_func ();
11476 rm -f conftest.$ac_objext conftest$ac_exeext
11477 if { (ac_try="$ac_link"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_link") 2>conftest.er1
11485 grep -v '^ *+' conftest.er1 >conftest.err
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11491 { (case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_try") 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest$ac_exeext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 eval "$as_ac_var=yes"
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 eval "$as_ac_var=no"
11518 rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11521 ac_res=`eval echo '${'$as_ac_var'}'`
11522 { echo "$as_me:$LINENO: result: $ac_res" >&5
11523 echo "${ECHO_T}$ac_res" >&6; }
11524 if test `eval echo '${'$as_ac_var'}'` = yes; then
11525 cat >>confdefs.h <<_ACEOF
11526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11532 LIBS="$lt_save_LIBS"
11535 ac_cpp='$CPP $CPPFLAGS'
11536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11542 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11543 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11544 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 ac_cv_sys_symbol_underscore=no
11548 cat > conftest.$ac_ext <<EOF
11549 void nm_test_func(){}
11550 int main(){nm_test_func;return 0;}
11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553 (eval $ac_compile) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; then
11557 # Now try to grab the symbols.
11558 ac_nlist=conftest.nm
11559 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11560 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } && test -s "$ac_nlist"; then
11564 # See whether the symbols have a leading underscore.
11565 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11566 ac_cv_sys_symbol_underscore=yes
11568 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11571 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11575 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11578 echo "configure: failed program was:" >&5
11584 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11585 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11588 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11589 if test x"$libltdl_cv_func_dlopen" = xyes ||
11590 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11591 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11592 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11593 if test "${libltdl_cv_need_uscore+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 libltdl_cv_need_uscore=unknown
11598 LIBS="$LIBS $LIBADD_DL"
11599 if test "$cross_compiling" = yes; then :
11600 libltdl_cv_need_uscore=cross
11602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11603 lt_status=$lt_dlunknown
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11591 "configure"
11606 #include "confdefs.h"
11615 # define LT_DLGLOBAL RTLD_GLOBAL
11618 # define LT_DLGLOBAL DL_GLOBAL
11620 # define LT_DLGLOBAL 0
11624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11625 find out it does not work in some platform. */
11626 #ifndef LT_DLLAZY_OR_NOW
11628 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11631 # define LT_DLLAZY_OR_NOW DL_LAZY
11634 # define LT_DLLAZY_OR_NOW RTLD_NOW
11637 # define LT_DLLAZY_OR_NOW DL_NOW
11639 # define LT_DLLAZY_OR_NOW 0
11647 extern "C" void exit (int);
11650 void fnord() { int i=42;}
11653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11654 int status = $lt_dlunknown;
11658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11659 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11660 /* dlclose (self); */
11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11673 (./conftest; exit; ) >&5 2>/dev/null
11675 case x$lt_status in
11676 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11677 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11678 x$lt_dlunknown|x*) ;;
11681 # compilation failed
11690 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11691 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11695 if test x"$libltdl_cv_need_uscore" = xyes; then
11697 cat >>confdefs.h <<\_ACEOF
11698 #define NEED_USCORE 1
11704 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11705 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11706 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 # PORTME does your system automatically load deplibs for dlopen?
11710 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11711 # For now, we just catch OSes we know something about -- in the
11712 # future, we'll try test this programmatically.
11713 libltdl_cv_sys_dlopen_deplibs=unknown
11715 aix3*|aix4.1.*|aix4.2.*)
11716 # Unknown whether this is true for these versions of AIX, but
11717 # we want this `case' here to explicitly catch those versions.
11718 libltdl_cv_sys_dlopen_deplibs=unknown
11721 libltdl_cv_sys_dlopen_deplibs=yes
11724 # Assuming the user has installed a libdl from somewhere, this is true
11725 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11726 libltdl_cv_sys_dlopen_deplibs=yes
11728 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11729 # GNU and its variants, using gnu ld.so (Glibc)
11730 libltdl_cv_sys_dlopen_deplibs=yes
11733 libltdl_cv_sys_dlopen_deplibs=yes
11736 libltdl_cv_sys_dlopen_deplibs=yes
11738 irix[12345]*|irix6.[01]*)
11739 # Catch all versions of IRIX before 6.2, and indicate that we don't
11740 # know how it worked for any of those versions.
11741 libltdl_cv_sys_dlopen_deplibs=unknown
11744 # The case above catches anything before 6.2, and it's known that
11745 # at 6.2 and later dlopen does load deplibs.
11746 libltdl_cv_sys_dlopen_deplibs=yes
11749 libltdl_cv_sys_dlopen_deplibs=yes
11752 libltdl_cv_sys_dlopen_deplibs=yes
11755 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11756 # it did *not* use an RPATH in a shared library to find objects the
11757 # library depends on, so we explicitly say `no'.
11758 libltdl_cv_sys_dlopen_deplibs=no
11760 osf5.0|osf5.0a|osf5.1)
11761 # dlopen *does* load deplibs and with the right loader patch applied
11762 # it even uses RPATH in a shared library to search for shared objects
11763 # that the library depends on, but there's no easy way to know if that
11764 # patch is installed. Since this is the case, all we can really
11765 # say is unknown -- it depends on the patch being installed. If
11766 # it is, this changes to `yes'. Without it, it would be `no'.
11767 libltdl_cv_sys_dlopen_deplibs=unknown
11770 # the two cases above should catch all versions of osf <= 5.1. Read
11771 # the comments above for what we know about them.
11772 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11773 # is used to find them so we can finally say `yes'.
11774 libltdl_cv_sys_dlopen_deplibs=yes
11777 libltdl_cv_sys_dlopen_deplibs=yes
11779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11780 libltdl_cv_sys_dlopen_deplibs=yes
11785 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11786 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11787 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11789 cat >>confdefs.h <<\_ACEOF
11790 #define LTDL_DLOPEN_DEPLIBS 1
11796 for ac_header in argz.h
11798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 ac_res=`eval echo '${'$as_ac_Header'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11809 # Is the header compilable?
11810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11812 cat >conftest.$ac_ext <<_ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 $ac_includes_default
11819 #include <$ac_header>
11821 rm -f conftest.$ac_objext
11822 if { (ac_try="$ac_compile"
11823 case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11830 grep -v '^ *+' conftest.er1 >conftest.err
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11836 { (case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_try") 2>&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; } &&
11845 { ac_try='test -s conftest.$ac_objext'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_header_compiler=yes
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_header_compiler=no
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865 echo "${ECHO_T}$ac_header_compiler" >&6; }
11867 # Is the header present?
11868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 #include <$ac_header>
11878 if { (ac_try="$ac_cpp conftest.$ac_ext"
11879 case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11886 grep -v '^ *+' conftest.er1 >conftest.err
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } >/dev/null; then
11891 if test -s conftest.err; then
11892 ac_cpp_err=$ac_c_preproc_warn_flag
11893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11900 if test -z "$ac_cpp_err"; then
11901 ac_header_preproc=yes
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_header_preproc=no
11909 rm -f conftest.err conftest.$ac_ext
11910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11911 echo "${ECHO_T}$ac_header_preproc" >&6; }
11913 # So? What about this header?
11914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11920 ac_header_preproc=yes
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11936 ## ----------------------------------- ##
11937 ## Report this to llvmbugs@cs.uiuc.edu ##
11938 ## ----------------------------------- ##
11940 ) | sed "s/^/$as_me: WARNING: /" >&2
11943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 eval "$as_ac_Header=\$ac_header_preproc"
11950 ac_res=`eval echo '${'$as_ac_Header'}'`
11951 { echo "$as_me:$LINENO: result: $ac_res" >&5
11952 echo "${ECHO_T}$ac_res" >&6; }
11955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965 { echo "$as_me:$LINENO: checking for error_t" >&5
11966 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11967 if test "${ac_cv_type_error_t+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11980 typedef error_t ac__type_new_;
11984 if ((ac__type_new_ *) 0)
11986 if (sizeof (ac__type_new_))
11992 rm -f conftest.$ac_objext
11993 if { (ac_try="$ac_compile"
11994 case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_compile") 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest.$ac_objext'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_type_error_t=yes
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ac_cv_type_error_t=no
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12037 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12038 if test $ac_cv_type_error_t = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define HAVE_ERROR_T 1
12047 cat >>confdefs.h <<\_ACEOF
12048 #define error_t int
12059 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 cat >conftest.$ac_ext <<_ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12075 #define $ac_func innocuous_$ac_func
12077 /* System header to define __stub macros and hopefully few prototypes,
12078 which can conflict with char $ac_func (); below.
12079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12080 <limits.h> exists even on freestanding compilers. */
12083 # include <limits.h>
12085 # include <assert.h>
12090 /* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
12097 /* The GNU C library defines this for functions which it implements
12098 to always fail with ENOSYS. Some functions are actually named
12099 something starting with __ and the normal name is an alias. */
12100 #if defined __stub_$ac_func || defined __stub___$ac_func
12107 return $ac_func ();
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (ac_try="$ac_link"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_link") 2>conftest.er1
12121 grep -v '^ *+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; } &&
12136 { ac_try='test -s conftest$ac_exeext'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 eval "$as_ac_var=yes"
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 eval "$as_ac_var=no"
12154 rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12157 ac_res=`eval echo '${'$as_ac_var'}'`
12158 { echo "$as_me:$LINENO: result: $ac_res" >&5
12159 echo "${ECHO_T}$ac_res" >&6; }
12160 if test `eval echo '${'$as_ac_var'}'` = yes; then
12161 cat >>confdefs.h <<_ACEOF
12162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12195 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 ac_res=`eval echo '${'$as_ac_Header'}'`
12206 { echo "$as_me:$LINENO: result: $ac_res" >&5
12207 echo "${ECHO_T}$ac_res" >&6; }
12209 # Is the header compilable?
12210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12212 cat >conftest.$ac_ext <<_ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 $ac_includes_default
12219 #include <$ac_header>
12221 rm -f conftest.$ac_objext
12222 if { (ac_try="$ac_compile"
12223 case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228 (eval "$ac_compile") 2>conftest.er1
12230 grep -v '^ *+' conftest.er1 >conftest.err
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12236 { (case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_try") 2>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_try") 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 ac_header_compiler=yes
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_header_compiler=no
12263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12265 echo "${ECHO_T}$ac_header_compiler" >&6; }
12267 # Is the header present?
12268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 #include <$ac_header>
12278 if { (ac_try="$ac_cpp conftest.$ac_ext"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12286 grep -v '^ *+' conftest.er1 >conftest.err
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } >/dev/null; then
12291 if test -s conftest.err; then
12292 ac_cpp_err=$ac_c_preproc_warn_flag
12293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12300 if test -z "$ac_cpp_err"; then
12301 ac_header_preproc=yes
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 ac_header_preproc=no
12309 rm -f conftest.err conftest.$ac_ext
12310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12311 echo "${ECHO_T}$ac_header_preproc" >&6; }
12313 # So? What about this header?
12314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12320 ac_header_preproc=yes
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12336 ## ----------------------------------- ##
12337 ## Report this to llvmbugs@cs.uiuc.edu ##
12338 ## ----------------------------------- ##
12340 ) | sed "s/^/$as_me: WARNING: /" >&2
12343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 eval "$as_ac_Header=\$ac_header_preproc"
12350 ac_res=`eval echo '${'$as_ac_Header'}'`
12351 { echo "$as_me:$LINENO: result: $ac_res" >&5
12352 echo "${ECHO_T}$ac_res" >&6; }
12355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12356 cat >>confdefs.h <<_ACEOF
12357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12368 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 ac_res=`eval echo '${'$as_ac_Header'}'`
12378 { echo "$as_me:$LINENO: result: $ac_res" >&5
12379 echo "${ECHO_T}$ac_res" >&6; }
12381 # Is the header compilable?
12382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12384 cat >conftest.$ac_ext <<_ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12390 $ac_includes_default
12391 #include <$ac_header>
12393 rm -f conftest.$ac_objext
12394 if { (ac_try="$ac_compile"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_compile") 2>conftest.er1
12402 grep -v '^ *+' conftest.er1 >conftest.err
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12408 { (case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_try") 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; } &&
12417 { ac_try='test -s conftest.$ac_objext'
12418 { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_header_compiler=yes
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_header_compiler=no
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12437 echo "${ECHO_T}$ac_header_compiler" >&6; }
12439 # Is the header present?
12440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 #include <$ac_header>
12450 if { (ac_try="$ac_cpp conftest.$ac_ext"
12451 case "(($ac_try" in
12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453 *) ac_try_echo=$ac_try;;
12455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12458 grep -v '^ *+' conftest.er1 >conftest.err
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } >/dev/null; then
12463 if test -s conftest.err; then
12464 ac_cpp_err=$ac_c_preproc_warn_flag
12465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12472 if test -z "$ac_cpp_err"; then
12473 ac_header_preproc=yes
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12478 ac_header_preproc=no
12481 rm -f conftest.err conftest.$ac_ext
12482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12483 echo "${ECHO_T}$ac_header_preproc" >&6; }
12485 # So? What about this header?
12486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12492 ac_header_preproc=yes
12495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12508 ## ----------------------------------- ##
12509 ## Report this to llvmbugs@cs.uiuc.edu ##
12510 ## ----------------------------------- ##
12512 ) | sed "s/^/$as_me: WARNING: /" >&2
12515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 eval "$as_ac_Header=\$ac_header_preproc"
12522 ac_res=`eval echo '${'$as_ac_Header'}'`
12523 { echo "$as_me:$LINENO: result: $ac_res" >&5
12524 echo "${ECHO_T}$ac_res" >&6; }
12527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12528 cat >>confdefs.h <<_ACEOF
12529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12538 for ac_header in string.h strings.h
12540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 ac_res=`eval echo '${'$as_ac_Header'}'`
12548 { echo "$as_me:$LINENO: result: $ac_res" >&5
12549 echo "${ECHO_T}$ac_res" >&6; }
12551 # Is the header compilable?
12552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12554 cat >conftest.$ac_ext <<_ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12560 $ac_includes_default
12561 #include <$ac_header>
12563 rm -f conftest.$ac_objext
12564 if { (ac_try="$ac_compile"
12565 case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_compile") 2>conftest.er1
12572 grep -v '^ *+' conftest.er1 >conftest.err
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12578 { (case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_try") 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest.$ac_objext'
12588 { (case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_try") 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_header_compiler=yes
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_header_compiler=no
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12607 echo "${ECHO_T}$ac_header_compiler" >&6; }
12609 # Is the header present?
12610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12612 cat >conftest.$ac_ext <<_ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 #include <$ac_header>
12620 if { (ac_try="$ac_cpp conftest.$ac_ext"
12621 case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12628 grep -v '^ *+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } >/dev/null; then
12633 if test -s conftest.err; then
12634 ac_cpp_err=$ac_c_preproc_warn_flag
12635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12642 if test -z "$ac_cpp_err"; then
12643 ac_header_preproc=yes
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_header_preproc=no
12651 rm -f conftest.err conftest.$ac_ext
12652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12653 echo "${ECHO_T}$ac_header_preproc" >&6; }
12655 # So? What about this header?
12656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12662 ac_header_preproc=yes
12665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12678 ## ----------------------------------- ##
12679 ## Report this to llvmbugs@cs.uiuc.edu ##
12680 ## ----------------------------------- ##
12682 ) | sed "s/^/$as_me: WARNING: /" >&2
12685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 eval "$as_ac_Header=\$ac_header_preproc"
12692 ac_res=`eval echo '${'$as_ac_Header'}'`
12693 { echo "$as_me:$LINENO: result: $ac_res" >&5
12694 echo "${ECHO_T}$ac_res" >&6; }
12697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12698 cat >>confdefs.h <<_ACEOF
12699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12709 for ac_func in strchr index
12711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 cat >conftest.$ac_ext <<_ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12725 #define $ac_func innocuous_$ac_func
12727 /* System header to define __stub macros and hopefully few prototypes,
12728 which can conflict with char $ac_func (); below.
12729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12730 <limits.h> exists even on freestanding compilers. */
12733 # include <limits.h>
12735 # include <assert.h>
12740 /* Override any GCC internal prototype to avoid an error.
12741 Use char because int might match the return type of a GCC
12742 builtin and then its argument prototype would still apply. */
12747 /* The GNU C library defines this for functions which it implements
12748 to always fail with ENOSYS. Some functions are actually named
12749 something starting with __ and the normal name is an alias. */
12750 #if defined __stub_$ac_func || defined __stub___$ac_func
12757 return $ac_func ();
12762 rm -f conftest.$ac_objext conftest$ac_exeext
12763 if { (ac_try="$ac_link"
12764 case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_link") 2>conftest.er1
12771 grep -v '^ *+' conftest.er1 >conftest.err
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } &&
12776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12777 { (case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_try") 2>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest$ac_exeext'
12787 { (case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_try") 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 eval "$as_ac_var=yes"
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12801 eval "$as_ac_var=no"
12804 rm -f core conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12807 ac_res=`eval echo '${'$as_ac_var'}'`
12808 { echo "$as_me:$LINENO: result: $ac_res" >&5
12809 echo "${ECHO_T}$ac_res" >&6; }
12810 if test `eval echo '${'$as_ac_var'}'` = yes; then
12811 cat >>confdefs.h <<_ACEOF
12812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12820 for ac_func in strrchr rindex
12822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12836 #define $ac_func innocuous_$ac_func
12838 /* System header to define __stub macros and hopefully few prototypes,
12839 which can conflict with char $ac_func (); below.
12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12841 <limits.h> exists even on freestanding compilers. */
12844 # include <limits.h>
12846 # include <assert.h>
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12858 /* The GNU C library defines this for functions which it implements
12859 to always fail with ENOSYS. Some functions are actually named
12860 something starting with __ and the normal name is an alias. */
12861 #if defined __stub_$ac_func || defined __stub___$ac_func
12868 return $ac_func ();
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (ac_try="$ac_link"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_link") 2>conftest.er1
12882 grep -v '^ *+' conftest.er1 >conftest.err
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12888 { (case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893 (eval "$ac_try") 2>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; } &&
12897 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 eval "$as_ac_var=yes"
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 eval "$as_ac_var=no"
12915 rm -f core conftest.err conftest.$ac_objext \
12916 conftest$ac_exeext conftest.$ac_ext
12918 ac_res=`eval echo '${'$as_ac_var'}'`
12919 { echo "$as_me:$LINENO: result: $ac_res" >&5
12920 echo "${ECHO_T}$ac_res" >&6; }
12921 if test `eval echo '${'$as_ac_var'}'` = yes; then
12922 cat >>confdefs.h <<_ACEOF
12923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12931 for ac_func in memcpy bcopy
12933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 cat >conftest.$ac_ext <<_ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12947 #define $ac_func innocuous_$ac_func
12949 /* System header to define __stub macros and hopefully few prototypes,
12950 which can conflict with char $ac_func (); below.
12951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12952 <limits.h> exists even on freestanding compilers. */
12955 # include <limits.h>
12957 # include <assert.h>
12962 /* Override any GCC internal prototype to avoid an error.
12963 Use char because int might match the return type of a GCC
12964 builtin and then its argument prototype would still apply. */
12969 /* The GNU C library defines this for functions which it implements
12970 to always fail with ENOSYS. Some functions are actually named
12971 something starting with __ and the normal name is an alias. */
12972 #if defined __stub_$ac_func || defined __stub___$ac_func
12979 return $ac_func ();
12984 rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (ac_try="$ac_link"
12986 case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_link") 2>conftest.er1
12993 grep -v '^ *+' conftest.er1 >conftest.err
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12999 { (case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_try") 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try='test -s conftest$ac_exeext'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 eval "$as_ac_var=yes"
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13023 eval "$as_ac_var=no"
13026 rm -f core conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13029 ac_res=`eval echo '${'$as_ac_var'}'`
13030 { echo "$as_me:$LINENO: result: $ac_res" >&5
13031 echo "${ECHO_T}$ac_res" >&6; }
13032 if test `eval echo '${'$as_ac_var'}'` = yes; then
13033 cat >>confdefs.h <<_ACEOF
13034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13042 for ac_func in memmove strcmp
13044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 cat >conftest.$ac_ext <<_ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13058 #define $ac_func innocuous_$ac_func
13060 /* System header to define __stub macros and hopefully few prototypes,
13061 which can conflict with char $ac_func (); below.
13062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063 <limits.h> exists even on freestanding compilers. */
13066 # include <limits.h>
13068 # include <assert.h>
13073 /* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13080 /* The GNU C library defines this for functions which it implements
13081 to always fail with ENOSYS. Some functions are actually named
13082 something starting with __ and the normal name is an alias. */
13083 #if defined __stub_$ac_func || defined __stub___$ac_func
13090 return $ac_func ();
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (ac_try="$ac_link"
13097 case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_link") 2>conftest.er1
13104 grep -v '^ *+' conftest.er1 >conftest.err
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13110 { (case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_try") 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } &&
13119 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13129 eval "$as_ac_var=yes"
13131 echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13134 eval "$as_ac_var=no"
13137 rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13140 ac_res=`eval echo '${'$as_ac_var'}'`
13141 { echo "$as_me:$LINENO: result: $ac_res" >&5
13142 echo "${ECHO_T}$ac_res" >&6; }
13143 if test `eval echo '${'$as_ac_var'}'` = yes; then
13144 cat >>confdefs.h <<_ACEOF
13145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13154 for ac_func in closedir opendir readdir
13156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 cat >conftest.$ac_ext <<_ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13170 #define $ac_func innocuous_$ac_func
13172 /* System header to define __stub macros and hopefully few prototypes,
13173 which can conflict with char $ac_func (); below.
13174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13175 <limits.h> exists even on freestanding compilers. */
13178 # include <limits.h>
13180 # include <assert.h>
13185 /* Override any GCC internal prototype to avoid an error.
13186 Use char because int might match the return type of a GCC
13187 builtin and then its argument prototype would still apply. */
13192 /* The GNU C library defines this for functions which it implements
13193 to always fail with ENOSYS. Some functions are actually named
13194 something starting with __ and the normal name is an alias. */
13195 #if defined __stub_$ac_func || defined __stub___$ac_func
13202 return $ac_func ();
13207 rm -f conftest.$ac_objext conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>conftest.er1
13216 grep -v '^ *+' conftest.er1 >conftest.err
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13222 { (case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_try") 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest$ac_exeext'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 eval "$as_ac_var=yes"
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 eval "$as_ac_var=no"
13249 rm -f core conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13252 ac_res=`eval echo '${'$as_ac_var'}'`
13253 { echo "$as_me:$LINENO: result: $ac_res" >&5
13254 echo "${ECHO_T}$ac_res" >&6; }
13255 if test `eval echo '${'$as_ac_var'}'` = yes; then
13256 cat >>confdefs.h <<_ACEOF
13257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13265 if test "$WITH_LLVMGCCDIR" = "default" ; then
13266 LLVMGCC="llvm-gcc${EXEEXT}"
13267 LLVMGXX="llvm-g++${EXEEXT}"
13268 LLVMGCCCOMMAND="$LLVMGCC"
13269 LLVMGXXCOMMAND="$LLVMGXX"
13270 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13272 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13274 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13275 set dummy $LLVMGCC; ac_word=$2
13276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13278 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13293 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 LLVMGCC=$ac_cv_path_LLVMGCC
13305 if test -n "$LLVMGCC"; then
13306 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13307 echo "${ECHO_T}$LLVMGCC" >&6; }
13309 { echo "$as_me:$LINENO: result: no" >&5
13310 echo "${ECHO_T}no" >&6; }
13314 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13315 set dummy $LLVMGXX; ac_word=$2
13316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13318 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13330 test -z "$as_dir" && as_dir=.
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13333 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 LLVMGXX=$ac_cv_path_LLVMGXX
13345 if test -n "$LLVMGXX"; then
13346 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13347 echo "${ECHO_T}$LLVMGXX" >&6; }
13349 { echo "$as_me:$LINENO: result: no" >&5
13350 echo "${ECHO_T}no" >&6; }
13355 if test -z "$LLVMGCC"; then
13356 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13357 LLVMGCCCOMMAND="$LLVMGCC"
13359 if test -z "$LLVMGXX"; then
13360 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13361 LLVMGXXCOMMAND="$LLVMGXX"
13368 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13370 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13375 # Check whether --with-llvmcc was given.
13376 if test "${with_llvmcc+set}" = set; then
13377 withval=$with_llvmcc;
13382 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13383 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13384 if test "$with_llvmcc" != "check"; then
13385 if (test "$with_llvmcc" != "llvm-gcc" &&
13386 test "$with_llvmcc" != "clang" &&
13387 test "$with_llvmcc" != "none"); then
13388 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13389 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13390 { (exit 1); exit 1; }; }
13392 WITH_LLVMCC="$with_llvmcc"
13393 elif test -n "$LLVMGCC"; then
13394 WITH_LLVMCC=llvm-gcc
13395 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13400 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13401 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13402 LLVMCC_OPTION=$WITH_LLVMCC
13405 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13406 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13419 if test "$GCC" != "yes" && test "$ICC" != "yes"
13421 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13422 echo "$as_me: error: gcc|icc required but not found" >&2;}
13423 { (exit 1); exit 1; }; }
13426 if test "$GXX" != "yes" && test "$IXX" != "yes"
13428 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13429 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13430 { (exit 1); exit 1; }; }
13433 if test "$GCC" = "yes"
13435 cat >conftest.$ac_ext <<_ACEOF
13436 #if !defined(__GNUC__) || __GNUC__ < 3
13437 #error Unsupported GCC version
13441 rm -f conftest.$ac_objext
13442 if { (ac_try="$ac_compile"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_compile") 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13456 { (case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_try") 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; } &&
13465 { ac_try='test -s conftest.$ac_objext'
13466 { (case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_try") 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13481 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13482 { (exit 1); exit 1; }; }
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13488 if test -z "$llvm_cv_gnu_make_command"
13490 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13491 echo "$as_me: error: GNU Make required but not found" >&2;}
13492 { (exit 1); exit 1; }; }
13495 { echo "$as_me:$LINENO: result: ok" >&5
13496 echo "${ECHO_T}ok" >&6; }
13498 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13499 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13500 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13502 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13504 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13505 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13509 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13510 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13511 if test "${ac_cv_lib_m_sin+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 ac_check_lib_save_LIBS=$LIBS
13516 cat >conftest.$ac_ext <<_ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13523 /* Override any GCC internal prototype to avoid an error.
13524 Use char because int might match the return type of a GCC
13525 builtin and then its argument prototype would still apply. */
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (ac_try="$ac_link"
13540 case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_link") 2>conftest.er1
13547 grep -v '^ *+' conftest.er1 >conftest.err
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
13552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13553 { (case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_try") 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try='test -s conftest$ac_exeext'
13563 { (case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_try") 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 ac_cv_lib_m_sin=yes
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13580 rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 LIBS=$ac_check_lib_save_LIBS
13584 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13585 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13586 if test $ac_cv_lib_m_sin = yes; then
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_LIBM 1
13595 if test "$llvm_cv_os_type" = "MingW" ; then
13597 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13598 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13599 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 ac_check_lib_save_LIBS=$LIBS
13603 LIBS="-limagehlp $LIBS"
13604 cat >conftest.$ac_ext <<_ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13620 rm -f conftest.$ac_objext conftest$ac_exeext
13621 if { (ac_try="$ac_link"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_link") 2>conftest.er1
13629 grep -v '^ *+' conftest.er1 >conftest.err
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635 { (case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_try") 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_lib_imagehlp_main=yes
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_cv_lib_imagehlp_main=no
13662 rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 LIBS=$ac_check_lib_save_LIBS
13666 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13667 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13668 if test $ac_cv_lib_imagehlp_main = yes; then
13669 cat >>confdefs.h <<_ACEOF
13670 #define HAVE_LIBIMAGEHLP 1
13673 LIBS="-limagehlp $LIBS"
13678 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13679 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13680 if test "${ac_cv_lib_psapi_main+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 ac_check_lib_save_LIBS=$LIBS
13684 LIBS="-lpsapi $LIBS"
13685 cat >conftest.$ac_ext <<_ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13701 rm -f conftest.$ac_objext conftest$ac_exeext
13702 if { (ac_try="$ac_link"
13703 case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_link") 2>conftest.er1
13710 grep -v '^ *+' conftest.er1 >conftest.err
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13716 { (case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_try") 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; } &&
13725 { ac_try='test -s conftest$ac_exeext'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_cv_lib_psapi_main=yes
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 ac_cv_lib_psapi_main=no
13743 rm -f core conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13747 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13748 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13749 if test $ac_cv_lib_psapi_main = yes; then
13750 cat >>confdefs.h <<_ACEOF
13751 #define HAVE_LIBPSAPI 1
13754 LIBS="-lpsapi $LIBS"
13760 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13761 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13762 if test "${ac_cv_search_dlopen+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 ac_func_search_save_LIBS=$LIBS
13766 cat >conftest.$ac_ext <<_ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13773 /* Override any GCC internal prototype to avoid an error.
13774 Use char because int might match the return type of a GCC
13775 builtin and then its argument prototype would still apply. */
13788 for ac_lib in '' dl; do
13789 if test -z "$ac_lib"; then
13790 ac_res="none required"
13793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13795 rm -f conftest.$ac_objext conftest$ac_exeext
13796 if { (ac_try="$ac_link"
13797 case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_link") 2>conftest.er1
13804 grep -v '^ *+' conftest.er1 >conftest.err
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
13809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13810 { (case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_try") 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest$ac_exeext'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 ac_cv_search_dlopen=$ac_res
13831 echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13837 rm -f core conftest.err conftest.$ac_objext \
13839 if test "${ac_cv_search_dlopen+set}" = set; then
13843 if test "${ac_cv_search_dlopen+set}" = set; then
13846 ac_cv_search_dlopen=no
13848 rm conftest.$ac_ext
13849 LIBS=$ac_func_search_save_LIBS
13851 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13852 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13853 ac_res=$ac_cv_search_dlopen
13854 if test "$ac_res" != no; then
13855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13857 cat >>confdefs.h <<\_ACEOF
13858 #define HAVE_DLOPEN 1
13862 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13863 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13867 if test "$llvm_cv_enable_libffi" = "yes" ; then
13868 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13869 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13870 if test "${ac_cv_search_ffi_call+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 ac_func_search_save_LIBS=$LIBS
13874 cat >conftest.$ac_ext <<_ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13881 /* Override any GCC internal prototype to avoid an error.
13882 Use char because int might match the return type of a GCC
13883 builtin and then its argument prototype would still apply. */
13891 return ffi_call ();
13896 for ac_lib in '' ffi; do
13897 if test -z "$ac_lib"; then
13898 ac_res="none required"
13901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13903 rm -f conftest.$ac_objext conftest$ac_exeext
13904 if { (ac_try="$ac_link"
13905 case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_link") 2>conftest.er1
13912 grep -v '^ *+' conftest.er1 >conftest.err
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
13917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13918 { (case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_try") 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; } &&
13927 { ac_try='test -s conftest$ac_exeext'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 ac_cv_search_ffi_call=$ac_res
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13945 rm -f core conftest.err conftest.$ac_objext \
13947 if test "${ac_cv_search_ffi_call+set}" = set; then
13951 if test "${ac_cv_search_ffi_call+set}" = set; then
13954 ac_cv_search_ffi_call=no
13956 rm conftest.$ac_ext
13957 LIBS=$ac_func_search_save_LIBS
13959 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13960 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13961 ac_res=$ac_cv_search_ffi_call
13962 if test "$ac_res" != no; then
13963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13965 cat >>confdefs.h <<\_ACEOF
13966 #define HAVE_FFI_CALL 1
13970 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13971 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13972 { (exit 1); exit 1; }; }
13977 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13978 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13979 if test "${ac_cv_search_mallinfo+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 ac_func_search_save_LIBS=$LIBS
13983 cat >conftest.$ac_ext <<_ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13990 /* Override any GCC internal prototype to avoid an error.
13991 Use char because int might match the return type of a GCC
13992 builtin and then its argument prototype would still apply. */
14000 return mallinfo ();
14005 for ac_lib in '' malloc; do
14006 if test -z "$ac_lib"; then
14007 ac_res="none required"
14010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14012 rm -f conftest.$ac_objext conftest$ac_exeext
14013 if { (ac_try="$ac_link"
14014 case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_link") 2>conftest.er1
14021 grep -v '^ *+' conftest.er1 >conftest.err
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14027 { (case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_try") 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try='test -s conftest$ac_exeext'
14037 { (case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_try") 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }; then
14046 ac_cv_search_mallinfo=$ac_res
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14054 rm -f core conftest.err conftest.$ac_objext \
14056 if test "${ac_cv_search_mallinfo+set}" = set; then
14060 if test "${ac_cv_search_mallinfo+set}" = set; then
14063 ac_cv_search_mallinfo=no
14065 rm conftest.$ac_ext
14066 LIBS=$ac_func_search_save_LIBS
14068 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14069 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14070 ac_res=$ac_cv_search_mallinfo
14071 if test "$ac_res" != no; then
14072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14074 cat >>confdefs.h <<\_ACEOF
14075 #define HAVE_MALLINFO 1
14081 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14083 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14084 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14085 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 ac_check_lib_save_LIBS=$LIBS
14089 LIBS="-lpthread $LIBS"
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14097 /* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply. */
14103 char pthread_mutex_init ();
14107 return pthread_mutex_init ();
14112 rm -f conftest.$ac_objext conftest$ac_exeext
14113 if { (ac_try="$ac_link"
14114 case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_link") 2>conftest.er1
14121 grep -v '^ *+' conftest.er1 >conftest.err
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14127 { (case "(($ac_try" in
14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129 *) ac_try_echo=$ac_try;;
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_try") 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest$ac_exeext'
14137 { (case "(($ac_try" in
14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139 *) ac_try_echo=$ac_try;;
14141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142 (eval "$ac_try") 2>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 ac_cv_lib_pthread_pthread_mutex_init=yes
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 ac_cv_lib_pthread_pthread_mutex_init=no
14154 rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14158 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14159 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14160 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14161 cat >>confdefs.h <<_ACEOF
14162 #define HAVE_LIBPTHREAD 1
14165 LIBS="-lpthread $LIBS"
14169 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14170 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14171 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 ac_func_search_save_LIBS=$LIBS
14175 cat >conftest.$ac_ext <<_ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14182 /* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14188 char pthread_mutex_lock ();
14192 return pthread_mutex_lock ();
14197 for ac_lib in '' pthread; do
14198 if test -z "$ac_lib"; then
14199 ac_res="none required"
14202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (ac_try="$ac_link"
14206 case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_link") 2>conftest.er1
14213 grep -v '^ *+' conftest.er1 >conftest.err
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } &&
14218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_try") 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 ac_cv_search_pthread_mutex_lock=$ac_res
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14246 rm -f core conftest.err conftest.$ac_objext \
14248 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14252 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14255 ac_cv_search_pthread_mutex_lock=no
14257 rm conftest.$ac_ext
14258 LIBS=$ac_func_search_save_LIBS
14260 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14261 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14262 ac_res=$ac_cv_search_pthread_mutex_lock
14263 if test "$ac_res" != no; then
14264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14266 cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_PTHREAD_MUTEX_LOCK 1
14272 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14273 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14274 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 ac_func_search_save_LIBS=$LIBS
14278 cat >conftest.$ac_ext <<_ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14285 /* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply. */
14291 char pthread_rwlock_init ();
14295 return pthread_rwlock_init ();
14300 for ac_lib in '' pthread; do
14301 if test -z "$ac_lib"; then
14302 ac_res="none required"
14305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (ac_try="$ac_link"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_link") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322 { (case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_try") 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest$ac_exeext'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_cv_search_pthread_rwlock_init=$ac_res
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14349 rm -f core conftest.err conftest.$ac_objext \
14351 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14355 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14358 ac_cv_search_pthread_rwlock_init=no
14360 rm conftest.$ac_ext
14361 LIBS=$ac_func_search_save_LIBS
14363 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14364 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14365 ac_res=$ac_cv_search_pthread_rwlock_init
14366 if test "$ac_res" != no; then
14367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14369 cat >>confdefs.h <<\_ACEOF
14370 #define HAVE_PTHREAD_RWLOCK_INIT 1
14375 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14376 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14377 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 ac_func_search_save_LIBS=$LIBS
14381 cat >conftest.$ac_ext <<_ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply. */
14394 char pthread_getspecific ();
14398 return pthread_getspecific ();
14403 for ac_lib in '' pthread; do
14404 if test -z "$ac_lib"; then
14405 ac_res="none required"
14408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (ac_try="$ac_link"
14412 case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_link") 2>conftest.er1
14419 grep -v '^ *+' conftest.er1 >conftest.err
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14425 { (case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_try") 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try='test -s conftest$ac_exeext'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 ac_cv_search_pthread_getspecific=$ac_res
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14452 rm -f core conftest.err conftest.$ac_objext \
14454 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14458 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14461 ac_cv_search_pthread_getspecific=no
14463 rm conftest.$ac_ext
14464 LIBS=$ac_func_search_save_LIBS
14466 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14467 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14468 ac_res=$ac_cv_search_pthread_getspecific
14469 if test "$ac_res" != no; then
14470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14472 cat >>confdefs.h <<\_ACEOF
14473 #define HAVE_PTHREAD_GETSPECIFIC 1
14481 # Check whether --with-udis86 was given.
14482 if test "${with_udis86+set}" = set; then
14483 withval=$with_udis86;
14488 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14491 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14492 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14493 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 ac_check_lib_save_LIBS=$LIBS
14497 LIBS="-ludis86 $LIBS"
14498 cat >conftest.$ac_ext <<_ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14505 /* Override any GCC internal prototype to avoid an error.
14506 Use char because int might match the return type of a GCC
14507 builtin and then its argument prototype would still apply. */
14520 rm -f conftest.$ac_objext conftest$ac_exeext
14521 if { (ac_try="$ac_link"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_link") 2>conftest.er1
14529 grep -v '^ *+' conftest.er1 >conftest.err
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; } &&
14544 { ac_try='test -s conftest$ac_exeext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_cv_lib_udis86_ud_init=yes
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 ac_cv_lib_udis86_ud_init=no
14562 rm -f core conftest.err conftest.$ac_objext \
14563 conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_check_lib_save_LIBS
14566 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14567 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14568 if test $ac_cv_lib_udis86_ud_init = yes; then
14569 cat >>confdefs.h <<_ACEOF
14570 #define HAVE_LIBUDIS86 1
14573 LIBS="-ludis86 $LIBS"
14577 echo "Error! You need to have libudis86 around."
14589 cat >>confdefs.h <<_ACEOF
14590 #define USE_UDIS86 $USE_UDIS86
14595 # Check whether --with-oprofile was given.
14596 if test "${with_oprofile+set}" = set; then
14597 withval=$with_oprofile;
14601 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14602 no) llvm_cv_oppath=
14605 *) llvm_cv_oppath="${withval}/lib/oprofile"
14606 CPPFLAGS="-I${withval}/include";;
14608 if test -n "$llvm_cv_oppath" ; then
14609 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14610 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14611 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14612 if test "${ac_cv_search_bfd_init+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 ac_func_search_save_LIBS=$LIBS
14616 cat >conftest.$ac_ext <<_ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14623 /* Override any GCC internal prototype to avoid an error.
14624 Use char because int might match the return type of a GCC
14625 builtin and then its argument prototype would still apply. */
14633 return bfd_init ();
14638 for ac_lib in '' bfd; do
14639 if test -z "$ac_lib"; then
14640 ac_res="none required"
14643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_link") 2>conftest.er1
14654 grep -v '^ *+' conftest.er1 >conftest.err
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14660 { (case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_try") 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; } &&
14669 { ac_try='test -s conftest$ac_exeext'
14670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 ac_cv_search_bfd_init=$ac_res
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14687 rm -f core conftest.err conftest.$ac_objext \
14689 if test "${ac_cv_search_bfd_init+set}" = set; then
14693 if test "${ac_cv_search_bfd_init+set}" = set; then
14696 ac_cv_search_bfd_init=no
14698 rm conftest.$ac_ext
14699 LIBS=$ac_func_search_save_LIBS
14701 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14702 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14703 ac_res=$ac_cv_search_bfd_init
14704 if test "$ac_res" != no; then
14705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14709 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14710 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14711 if test "${ac_cv_search_op_open_agent+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 ac_func_search_save_LIBS=$LIBS
14715 cat >conftest.$ac_ext <<_ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h. */
14722 /* Override any GCC internal prototype to avoid an error.
14723 Use char because int might match the return type of a GCC
14724 builtin and then its argument prototype would still apply. */
14728 char op_open_agent ();
14732 return op_open_agent ();
14737 for ac_lib in '' opagent; do
14738 if test -z "$ac_lib"; then
14739 ac_res="none required"
14742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14744 rm -f conftest.$ac_objext conftest$ac_exeext
14745 if { (ac_try="$ac_link"
14746 case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_link") 2>conftest.er1
14753 grep -v '^ *+' conftest.er1 >conftest.err
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14759 { (case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_try") 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try='test -s conftest$ac_exeext'
14769 { (case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_try") 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_cv_search_op_open_agent=$ac_res
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14786 rm -f core conftest.err conftest.$ac_objext \
14788 if test "${ac_cv_search_op_open_agent+set}" = set; then
14792 if test "${ac_cv_search_op_open_agent+set}" = set; then
14795 ac_cv_search_op_open_agent=no
14797 rm conftest.$ac_ext
14798 LIBS=$ac_func_search_save_LIBS
14800 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14801 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14802 ac_res=$ac_cv_search_op_open_agent
14803 if test "$ac_res" != no; then
14804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14808 echo "Error! You need to have libopagent around."
14813 if test "${ac_cv_header_opagent_h+set}" = set; then
14814 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14815 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14816 if test "${ac_cv_header_opagent_h+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14820 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14822 # Is the header compilable?
14823 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14824 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 $ac_includes_default
14832 #include <opagent.h>
14834 rm -f conftest.$ac_objext
14835 if { (ac_try="$ac_compile"
14836 case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_compile") 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14849 { (case "(($ac_try" in
14850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851 *) ac_try_echo=$ac_try;;
14853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14854 (eval "$ac_try") 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; } &&
14858 { ac_try='test -s conftest.$ac_objext'
14859 { (case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_try") 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }; then
14868 ac_header_compiler=yes
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14873 ac_header_compiler=no
14876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14878 echo "${ECHO_T}$ac_header_compiler" >&6; }
14880 # Is the header present?
14881 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14882 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14883 cat >conftest.$ac_ext <<_ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14889 #include <opagent.h>
14891 if { (ac_try="$ac_cpp conftest.$ac_ext"
14892 case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14899 grep -v '^ *+' conftest.er1 >conftest.err
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } >/dev/null; then
14904 if test -s conftest.err; then
14905 ac_cpp_err=$ac_c_preproc_warn_flag
14906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14913 if test -z "$ac_cpp_err"; then
14914 ac_header_preproc=yes
14916 echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14919 ac_header_preproc=no
14922 rm -f conftest.err conftest.$ac_ext
14923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14924 echo "${ECHO_T}$ac_header_preproc" >&6; }
14926 # So? What about this header?
14927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14929 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14930 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14931 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14932 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14933 ac_header_preproc=yes
14936 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14937 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14938 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14939 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14940 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14941 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14942 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14943 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14945 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14947 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14949 ## ----------------------------------- ##
14950 ## Report this to llvmbugs@cs.uiuc.edu ##
14951 ## ----------------------------------- ##
14953 ) | sed "s/^/$as_me: WARNING: /" >&2
14956 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14957 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14958 if test "${ac_cv_header_opagent_h+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 ac_cv_header_opagent_h=$ac_header_preproc
14963 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14964 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14967 if test $ac_cv_header_opagent_h = yes; then
14971 echo "Error! You need to have opagent.h around."
14987 cat >>confdefs.h <<_ACEOF
14988 #define USE_OPROFILE $USE_OPROFILE
14998 ac_header_dirent=no
14999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15000 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15001 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15002 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 cat >conftest.$ac_ext <<_ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 #include <sys/types.h>
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15039 { (case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_try") 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; } &&
15048 { ac_try='test -s conftest.$ac_objext'
15049 { (case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_try") 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058 eval "$as_ac_Header=yes"
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 eval "$as_ac_Header=no"
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068 ac_res=`eval echo '${'$as_ac_Header'}'`
15069 { echo "$as_me:$LINENO: result: $ac_res" >&5
15070 echo "${ECHO_T}$ac_res" >&6; }
15071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072 cat >>confdefs.h <<_ACEOF
15073 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15076 ac_header_dirent=$ac_hdr; break
15080 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15081 if test $ac_header_dirent = dirent.h; then
15082 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15083 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15084 if test "${ac_cv_search_opendir+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 ac_func_search_save_LIBS=$LIBS
15088 cat >conftest.$ac_ext <<_ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15110 for ac_lib in '' dir; do
15111 if test -z "$ac_lib"; then
15112 ac_res="none required"
15115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15117 rm -f conftest.$ac_objext conftest$ac_exeext
15118 if { (ac_try="$ac_link"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_link") 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15132 { (case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_try") 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; } &&
15141 { ac_try='test -s conftest$ac_exeext'
15142 { (case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_try") 2>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
15151 ac_cv_search_opendir=$ac_res
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15159 rm -f core conftest.err conftest.$ac_objext \
15161 if test "${ac_cv_search_opendir+set}" = set; then
15165 if test "${ac_cv_search_opendir+set}" = set; then
15168 ac_cv_search_opendir=no
15170 rm conftest.$ac_ext
15171 LIBS=$ac_func_search_save_LIBS
15173 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15174 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15175 ac_res=$ac_cv_search_opendir
15176 if test "$ac_res" != no; then
15177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15183 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15184 if test "${ac_cv_search_opendir+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 ac_func_search_save_LIBS=$LIBS
15188 cat >conftest.$ac_ext <<_ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15195 /* Override any GCC internal prototype to avoid an error.
15196 Use char because int might match the return type of a GCC
15197 builtin and then its argument prototype would still apply. */
15210 for ac_lib in '' x; do
15211 if test -z "$ac_lib"; then
15212 ac_res="none required"
15215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15217 rm -f conftest.$ac_objext conftest$ac_exeext
15218 if { (ac_try="$ac_link"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_link") 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_try") 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest$ac_exeext'
15242 { (case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_try") 2>&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
15251 ac_cv_search_opendir=$ac_res
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15259 rm -f core conftest.err conftest.$ac_objext \
15261 if test "${ac_cv_search_opendir+set}" = set; then
15265 if test "${ac_cv_search_opendir+set}" = set; then
15268 ac_cv_search_opendir=no
15270 rm conftest.$ac_ext
15271 LIBS=$ac_func_search_save_LIBS
15273 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15274 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15275 ac_res=$ac_cv_search_opendir
15276 if test "$ac_res" != no; then
15277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15283 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15284 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15285 if test "${ac_cv_header_mmap_anon+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 ac_cpp='$CPP $CPPFLAGS'
15290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15294 cat >conftest.$ac_ext <<_ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 #include <sys/mman.h>
15301 #include <unistd.h>
15306 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15311 rm -f conftest.$ac_objext
15312 if { (ac_try="$ac_compile"
15313 case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_compile") 2>conftest.er1
15320 grep -v '^ *+' conftest.er1 >conftest.err
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15326 { (case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_try") 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; } &&
15335 { ac_try='test -s conftest.$ac_objext'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 ac_cv_header_mmap_anon=yes
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 ac_cv_header_mmap_anon=no
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 ac_cpp='$CPP $CPPFLAGS'
15356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15362 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15363 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15364 if test "$ac_cv_header_mmap_anon" = yes; then
15366 cat >>confdefs.h <<\_ACEOF
15367 #define HAVE_MMAP_ANONYMOUS 1
15372 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15373 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15374 if test "${ac_cv_header_stat_broken+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 #include <sys/types.h>
15384 #include <sys/stat.h>
15386 #if defined S_ISBLK && defined S_IFDIR
15387 # if S_ISBLK (S_IFDIR)
15392 #if defined S_ISBLK && defined S_IFCHR
15393 # if S_ISBLK (S_IFCHR)
15398 #if defined S_ISLNK && defined S_IFREG
15399 # if S_ISLNK (S_IFREG)
15404 #if defined S_ISSOCK && defined S_IFREG
15405 # if S_ISSOCK (S_IFREG)
15411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15412 $EGREP "You lose" >/dev/null 2>&1; then
15413 ac_cv_header_stat_broken=yes
15415 ac_cv_header_stat_broken=no
15420 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15421 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15422 if test $ac_cv_header_stat_broken = yes; then
15424 cat >>confdefs.h <<\_ACEOF
15425 #define STAT_MACROS_BROKEN 1
15430 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15432 if test "${ac_cv_header_stdc+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 cat >conftest.$ac_ext <<_ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 #include <stdlib.h>
15442 #include <stdarg.h>
15443 #include <string.h>
15454 rm -f conftest.$ac_objext
15455 if { (ac_try="$ac_compile"
15456 case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_compile") 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; } &&
15478 { ac_try='test -s conftest.$ac_objext'
15479 { (case "(($ac_try" in
15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484 (eval "$ac_try") 2>&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }; then
15488 ac_cv_header_stdc=yes
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_cv_header_stdc=no
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498 if test $ac_cv_header_stdc = yes; then
15499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15500 cat >conftest.$ac_ext <<_ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15506 #include <string.h>
15509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15510 $EGREP "memchr" >/dev/null 2>&1; then
15513 ac_cv_header_stdc=no
15519 if test $ac_cv_header_stdc = yes; then
15520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15521 cat >conftest.$ac_ext <<_ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527 #include <stdlib.h>
15530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15531 $EGREP "free" >/dev/null 2>&1; then
15534 ac_cv_header_stdc=no
15540 if test $ac_cv_header_stdc = yes; then
15541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15542 if test "$cross_compiling" = yes; then
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15552 #include <stdlib.h>
15553 #if ((' ' & 0x0FF) == 0x020)
15554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15557 # define ISLOWER(c) \
15558 (('a' <= (c) && (c) <= 'i') \
15559 || ('j' <= (c) && (c) <= 'r') \
15560 || ('s' <= (c) && (c) <= 'z'))
15561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15569 for (i = 0; i < 256; i++)
15570 if (XOR (islower (i), ISLOWER (i))
15571 || toupper (i) != TOUPPER (i))
15576 rm -f conftest$ac_exeext
15577 if { (ac_try="$ac_link"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_link") 2>&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15587 { (case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_try") 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15598 echo "$as_me: program exited with status $ac_status" >&5
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 ( exit $ac_status )
15603 ac_cv_header_stdc=no
15605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15611 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15612 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15613 if test $ac_cv_header_stdc = yes; then
15615 cat >>confdefs.h <<\_ACEOF
15616 #define STDC_HEADERS 1
15621 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15622 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15623 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 #include <sys/types.h>
15633 #include <sys/wait.h>
15634 #ifndef WEXITSTATUS
15635 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15638 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15646 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15651 rm -f conftest.$ac_objext
15652 if { (ac_try="$ac_compile"
15653 case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_compile") 2>conftest.er1
15660 grep -v '^ *+' conftest.er1 >conftest.err
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; } &&
15675 { ac_try='test -s conftest.$ac_objext'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_cv_header_sys_wait_h=yes
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690 ac_cv_header_sys_wait_h=no
15693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15696 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15697 if test $ac_cv_header_sys_wait_h = yes; then
15699 cat >>confdefs.h <<\_ACEOF
15700 #define HAVE_SYS_WAIT_H 1
15705 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15706 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15707 if test "${ac_cv_header_time+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 cat >conftest.$ac_ext <<_ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h. */
15716 #include <sys/types.h>
15717 #include <sys/time.h>
15723 if ((struct tm *) 0)
15729 rm -f conftest.$ac_objext
15730 if { (ac_try="$ac_compile"
15731 case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736 (eval "$ac_compile") 2>conftest.er1
15738 grep -v '^ *+' conftest.er1 >conftest.err
15740 cat conftest.err >&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15744 { (case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_try") 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try='test -s conftest.$ac_objext'
15754 { (case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_try") 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_cv_header_time=yes
15765 echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15768 ac_cv_header_time=no
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15774 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15775 if test $ac_cv_header_time = yes; then
15777 cat >>confdefs.h <<\_ACEOF
15778 #define TIME_WITH_SYS_TIME 1
15790 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 ac_res=`eval echo '${'$as_ac_Header'}'`
15800 { echo "$as_me:$LINENO: result: $ac_res" >&5
15801 echo "${ECHO_T}$ac_res" >&6; }
15803 # Is the header compilable?
15804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15806 cat >conftest.$ac_ext <<_ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15812 $ac_includes_default
15813 #include <$ac_header>
15815 rm -f conftest.$ac_objext
15816 if { (ac_try="$ac_compile"
15817 case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_compile") 2>conftest.er1
15824 grep -v '^ *+' conftest.er1 >conftest.err
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15830 { (case "(($ac_try" in
15831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832 *) ac_try_echo=$ac_try;;
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835 (eval "$ac_try") 2>&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest.$ac_objext'
15840 { (case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_try") 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_header_compiler=yes
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15854 ac_header_compiler=no
15857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15859 echo "${ECHO_T}$ac_header_compiler" >&6; }
15861 # Is the header present?
15862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15864 cat >conftest.$ac_ext <<_ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 #include <$ac_header>
15872 if { (ac_try="$ac_cpp conftest.$ac_ext"
15873 case "(($ac_try" in
15874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15880 grep -v '^ *+' conftest.er1 >conftest.err
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } >/dev/null; then
15885 if test -s conftest.err; then
15886 ac_cpp_err=$ac_c_preproc_warn_flag
15887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15894 if test -z "$ac_cpp_err"; then
15895 ac_header_preproc=yes
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 ac_header_preproc=no
15903 rm -f conftest.err conftest.$ac_ext
15904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15905 echo "${ECHO_T}$ac_header_preproc" >&6; }
15907 # So? What about this header?
15908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15914 ac_header_preproc=yes
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15930 ## ----------------------------------- ##
15931 ## Report this to llvmbugs@cs.uiuc.edu ##
15932 ## ----------------------------------- ##
15934 ) | sed "s/^/$as_me: WARNING: /" >&2
15937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 eval "$as_ac_Header=\$ac_header_preproc"
15944 ac_res=`eval echo '${'$as_ac_Header'}'`
15945 { echo "$as_me:$LINENO: result: $ac_res" >&5
15946 echo "${ECHO_T}$ac_res" >&6; }
15949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15950 cat >>confdefs.h <<_ACEOF
15951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15964 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15973 ac_res=`eval echo '${'$as_ac_Header'}'`
15974 { echo "$as_me:$LINENO: result: $ac_res" >&5
15975 echo "${ECHO_T}$ac_res" >&6; }
15977 # Is the header compilable?
15978 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15980 cat >conftest.$ac_ext <<_ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15986 $ac_includes_default
15987 #include <$ac_header>
15989 rm -f conftest.$ac_objext
15990 if { (ac_try="$ac_compile"
15991 case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_compile") 2>conftest.er1
15998 grep -v '^ *+' conftest.er1 >conftest.err
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } &&
16003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16004 { (case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_try") 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_try") 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_header_compiler=yes
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 ac_header_compiler=no
16031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16033 echo "${ECHO_T}$ac_header_compiler" >&6; }
16035 # Is the header present?
16036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16038 cat >conftest.$ac_ext <<_ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 #include <$ac_header>
16046 if { (ac_try="$ac_cpp conftest.$ac_ext"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } >/dev/null; then
16059 if test -s conftest.err; then
16060 ac_cpp_err=$ac_c_preproc_warn_flag
16061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16068 if test -z "$ac_cpp_err"; then
16069 ac_header_preproc=yes
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 ac_header_preproc=no
16077 rm -f conftest.err conftest.$ac_ext
16078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079 echo "${ECHO_T}$ac_header_preproc" >&6; }
16081 # So? What about this header?
16082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16088 ac_header_preproc=yes
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16104 ## ----------------------------------- ##
16105 ## Report this to llvmbugs@cs.uiuc.edu ##
16106 ## ----------------------------------- ##
16108 ) | sed "s/^/$as_me: WARNING: /" >&2
16111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 eval "$as_ac_Header=\$ac_header_preproc"
16118 ac_res=`eval echo '${'$as_ac_Header'}'`
16119 { echo "$as_me:$LINENO: result: $ac_res" >&5
16120 echo "${ECHO_T}$ac_res" >&6; }
16123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16124 cat >>confdefs.h <<_ACEOF
16125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16134 for ac_header in utime.h windows.h
16136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 ac_res=`eval echo '${'$as_ac_Header'}'`
16144 { echo "$as_me:$LINENO: result: $ac_res" >&5
16145 echo "${ECHO_T}$ac_res" >&6; }
16147 # Is the header compilable?
16148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 $ac_includes_default
16157 #include <$ac_header>
16159 rm -f conftest.$ac_objext
16160 if { (ac_try="$ac_compile"
16161 case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_compile") 2>conftest.er1
16168 grep -v '^ *+' conftest.er1 >conftest.err
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16174 { (case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_try") 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; } &&
16183 { ac_try='test -s conftest.$ac_objext'
16184 { (case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_try") 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 ac_header_compiler=yes
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ac_header_compiler=no
16201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16203 echo "${ECHO_T}$ac_header_compiler" >&6; }
16205 # Is the header present?
16206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16208 cat >conftest.$ac_ext <<_ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 #include <$ac_header>
16216 if { (ac_try="$ac_cpp conftest.$ac_ext"
16217 case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16224 grep -v '^ *+' conftest.er1 >conftest.err
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } >/dev/null; then
16229 if test -s conftest.err; then
16230 ac_cpp_err=$ac_c_preproc_warn_flag
16231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16238 if test -z "$ac_cpp_err"; then
16239 ac_header_preproc=yes
16241 echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16244 ac_header_preproc=no
16247 rm -f conftest.err conftest.$ac_ext
16248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16249 echo "${ECHO_T}$ac_header_preproc" >&6; }
16251 # So? What about this header?
16252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16258 ac_header_preproc=yes
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16274 ## ----------------------------------- ##
16275 ## Report this to llvmbugs@cs.uiuc.edu ##
16276 ## ----------------------------------- ##
16278 ) | sed "s/^/$as_me: WARNING: /" >&2
16281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 eval "$as_ac_Header=\$ac_header_preproc"
16288 ac_res=`eval echo '${'$as_ac_Header'}'`
16289 { echo "$as_me:$LINENO: result: $ac_res" >&5
16290 echo "${ECHO_T}$ac_res" >&6; }
16293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16294 cat >>confdefs.h <<_ACEOF
16295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16307 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 ac_res=`eval echo '${'$as_ac_Header'}'`
16317 { echo "$as_me:$LINENO: result: $ac_res" >&5
16318 echo "${ECHO_T}$ac_res" >&6; }
16320 # Is the header compilable?
16321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16323 cat >conftest.$ac_ext <<_ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16329 $ac_includes_default
16330 #include <$ac_header>
16332 rm -f conftest.$ac_objext
16333 if { (ac_try="$ac_compile"
16334 case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339 (eval "$ac_compile") 2>conftest.er1
16341 grep -v '^ *+' conftest.er1 >conftest.err
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16347 { (case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_try") 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
16357 { (case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_try") 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_header_compiler=yes
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16371 ac_header_compiler=no
16374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16376 echo "${ECHO_T}$ac_header_compiler" >&6; }
16378 # Is the header present?
16379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16381 cat >conftest.$ac_ext <<_ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 #include <$ac_header>
16389 if { (ac_try="$ac_cpp conftest.$ac_ext"
16390 case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16397 grep -v '^ *+' conftest.er1 >conftest.err
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } >/dev/null; then
16402 if test -s conftest.err; then
16403 ac_cpp_err=$ac_c_preproc_warn_flag
16404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16411 if test -z "$ac_cpp_err"; then
16412 ac_header_preproc=yes
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_header_preproc=no
16420 rm -f conftest.err conftest.$ac_ext
16421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16422 echo "${ECHO_T}$ac_header_preproc" >&6; }
16424 # So? What about this header?
16425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16431 ac_header_preproc=yes
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16447 ## ----------------------------------- ##
16448 ## Report this to llvmbugs@cs.uiuc.edu ##
16449 ## ----------------------------------- ##
16451 ) | sed "s/^/$as_me: WARNING: /" >&2
16454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16459 eval "$as_ac_Header=\$ac_header_preproc"
16461 ac_res=`eval echo '${'$as_ac_Header'}'`
16462 { echo "$as_me:$LINENO: result: $ac_res" >&5
16463 echo "${ECHO_T}$ac_res" >&6; }
16466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16467 cat >>confdefs.h <<_ACEOF
16468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16479 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 ac_res=`eval echo '${'$as_ac_Header'}'`
16489 { echo "$as_me:$LINENO: result: $ac_res" >&5
16490 echo "${ECHO_T}$ac_res" >&6; }
16492 # Is the header compilable?
16493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16495 cat >conftest.$ac_ext <<_ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16501 $ac_includes_default
16502 #include <$ac_header>
16504 rm -f conftest.$ac_objext
16505 if { (ac_try="$ac_compile"
16506 case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_compile") 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16519 { (case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_try") 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_header_compiler=yes
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 ac_header_compiler=no
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16548 echo "${ECHO_T}$ac_header_compiler" >&6; }
16550 # Is the header present?
16551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16553 cat >conftest.$ac_ext <<_ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559 #include <$ac_header>
16561 if { (ac_try="$ac_cpp conftest.$ac_ext"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16569 grep -v '^ *+' conftest.er1 >conftest.err
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } >/dev/null; then
16574 if test -s conftest.err; then
16575 ac_cpp_err=$ac_c_preproc_warn_flag
16576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16583 if test -z "$ac_cpp_err"; then
16584 ac_header_preproc=yes
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 ac_header_preproc=no
16592 rm -f conftest.err conftest.$ac_ext
16593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16594 echo "${ECHO_T}$ac_header_preproc" >&6; }
16596 # So? What about this header?
16597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16603 ac_header_preproc=yes
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16619 ## ----------------------------------- ##
16620 ## Report this to llvmbugs@cs.uiuc.edu ##
16621 ## ----------------------------------- ##
16623 ) | sed "s/^/$as_me: WARNING: /" >&2
16626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 eval "$as_ac_Header=\$ac_header_preproc"
16633 ac_res=`eval echo '${'$as_ac_Header'}'`
16634 { echo "$as_me:$LINENO: result: $ac_res" >&5
16635 echo "${ECHO_T}$ac_res" >&6; }
16638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16639 cat >>confdefs.h <<_ACEOF
16640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16648 for ac_header in valgrind/valgrind.h
16650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 ac_res=`eval echo '${'$as_ac_Header'}'`
16658 { echo "$as_me:$LINENO: result: $ac_res" >&5
16659 echo "${ECHO_T}$ac_res" >&6; }
16661 # Is the header compilable?
16662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16664 cat >conftest.$ac_ext <<_ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $ac_includes_default
16671 #include <$ac_header>
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_compile") 2>conftest.er1
16682 grep -v '^ *+' conftest.er1 >conftest.err
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16688 { (case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_try") 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest.$ac_objext'
16698 { (case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_try") 2>&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16707 ac_header_compiler=yes
16709 echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16712 ac_header_compiler=no
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16717 echo "${ECHO_T}$ac_header_compiler" >&6; }
16719 # Is the header present?
16720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <$ac_header>
16730 if { (ac_try="$ac_cpp conftest.$ac_ext"
16731 case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16738 grep -v '^ *+' conftest.er1 >conftest.err
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } >/dev/null; then
16743 if test -s conftest.err; then
16744 ac_cpp_err=$ac_c_preproc_warn_flag
16745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16752 if test -z "$ac_cpp_err"; then
16753 ac_header_preproc=yes
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_header_preproc=no
16761 rm -f conftest.err conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16763 echo "${ECHO_T}$ac_header_preproc" >&6; }
16765 # So? What about this header?
16766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16772 ac_header_preproc=yes
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16788 ## ----------------------------------- ##
16789 ## Report this to llvmbugs@cs.uiuc.edu ##
16790 ## ----------------------------------- ##
16792 ) | sed "s/^/$as_me: WARNING: /" >&2
16795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 eval "$as_ac_Header=\$ac_header_preproc"
16802 ac_res=`eval echo '${'$as_ac_Header'}'`
16803 { echo "$as_me:$LINENO: result: $ac_res" >&5
16804 echo "${ECHO_T}$ac_res" >&6; }
16807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16808 cat >>confdefs.h <<_ACEOF
16809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16817 for ac_header in fenv.h
16819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 ac_res=`eval echo '${'$as_ac_Header'}'`
16827 { echo "$as_me:$LINENO: result: $ac_res" >&5
16828 echo "${ECHO_T}$ac_res" >&6; }
16830 # Is the header compilable?
16831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16833 cat >conftest.$ac_ext <<_ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 $ac_includes_default
16840 #include <$ac_header>
16842 rm -f conftest.$ac_objext
16843 if { (ac_try="$ac_compile"
16844 case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_compile") 2>conftest.er1
16851 grep -v '^ *+' conftest.er1 >conftest.err
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857 { (case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_try") 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest.$ac_objext'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_header_compiler=yes
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16881 ac_header_compiler=no
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16886 echo "${ECHO_T}$ac_header_compiler" >&6; }
16888 # Is the header present?
16889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16891 cat >conftest.$ac_ext <<_ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 #include <$ac_header>
16899 if { (ac_try="$ac_cpp conftest.$ac_ext"
16900 case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16907 grep -v '^ *+' conftest.er1 >conftest.err
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } >/dev/null; then
16912 if test -s conftest.err; then
16913 ac_cpp_err=$ac_c_preproc_warn_flag
16914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16921 if test -z "$ac_cpp_err"; then
16922 ac_header_preproc=yes
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 ac_header_preproc=no
16930 rm -f conftest.err conftest.$ac_ext
16931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16932 echo "${ECHO_T}$ac_header_preproc" >&6; }
16934 # So? What about this header?
16935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16941 ac_header_preproc=yes
16944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16957 ## ----------------------------------- ##
16958 ## Report this to llvmbugs@cs.uiuc.edu ##
16959 ## ----------------------------------- ##
16961 ) | sed "s/^/$as_me: WARNING: /" >&2
16964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16967 echo $ECHO_N "(cached) $ECHO_C" >&6
16969 eval "$as_ac_Header=\$ac_header_preproc"
16971 ac_res=`eval echo '${'$as_ac_Header'}'`
16972 { echo "$as_me:$LINENO: result: $ac_res" >&5
16973 echo "${ECHO_T}$ac_res" >&6; }
16976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16985 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16987 for ac_header in pthread.h
16989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16996 ac_res=`eval echo '${'$as_ac_Header'}'`
16997 { echo "$as_me:$LINENO: result: $ac_res" >&5
16998 echo "${ECHO_T}$ac_res" >&6; }
17000 # Is the header compilable?
17001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17003 cat >conftest.$ac_ext <<_ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17009 $ac_includes_default
17010 #include <$ac_header>
17012 rm -f conftest.$ac_objext
17013 if { (ac_try="$ac_compile"
17014 case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_compile") 2>conftest.er1
17021 grep -v '^ *+' conftest.er1 >conftest.err
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17036 { ac_try='test -s conftest.$ac_objext'
17037 { (case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_try") 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_header_compiler=yes
17048 echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17051 ac_header_compiler=no
17054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17056 echo "${ECHO_T}$ac_header_compiler" >&6; }
17058 # Is the header present?
17059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17060 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
17069 if { (ac_try="$ac_cpp conftest.$ac_ext"
17070 case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17077 grep -v '^ *+' conftest.er1 >conftest.err
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } >/dev/null; then
17082 if test -s conftest.err; then
17083 ac_cpp_err=$ac_c_preproc_warn_flag
17084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17091 if test -z "$ac_cpp_err"; then
17092 ac_header_preproc=yes
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17097 ac_header_preproc=no
17100 rm -f conftest.err conftest.$ac_ext
17101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17102 echo "${ECHO_T}$ac_header_preproc" >&6; }
17104 # So? What about this header?
17105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17111 ac_header_preproc=yes
17114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17127 ## ----------------------------------- ##
17128 ## Report this to llvmbugs@cs.uiuc.edu ##
17129 ## ----------------------------------- ##
17131 ) | sed "s/^/$as_me: WARNING: /" >&2
17134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 eval "$as_ac_Header=\$ac_header_preproc"
17141 ac_res=`eval echo '${'$as_ac_Header'}'`
17142 { echo "$as_me:$LINENO: result: $ac_res" >&5
17143 echo "${ECHO_T}$ac_res" >&6; }
17146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17147 cat >>confdefs.h <<_ACEOF
17148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17164 if test "$llvm_cv_enable_libffi" = "yes" ; then
17167 for ac_header in ffi.h ffi/ffi.h
17169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 ac_res=`eval echo '${'$as_ac_Header'}'`
17177 { echo "$as_me:$LINENO: result: $ac_res" >&5
17178 echo "${ECHO_T}$ac_res" >&6; }
17180 # Is the header compilable?
17181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17183 cat >conftest.$ac_ext <<_ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 $ac_includes_default
17190 #include <$ac_header>
17192 rm -f conftest.$ac_objext
17193 if { (ac_try="$ac_compile"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17201 grep -v '^ *+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest.$ac_objext'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_header_compiler=yes
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_header_compiler=no
17234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17236 echo "${ECHO_T}$ac_header_compiler" >&6; }
17238 # Is the header present?
17239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17241 cat >conftest.$ac_ext <<_ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 #include <$ac_header>
17249 if { (ac_try="$ac_cpp conftest.$ac_ext"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } >/dev/null; then
17262 if test -s conftest.err; then
17263 ac_cpp_err=$ac_c_preproc_warn_flag
17264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17271 if test -z "$ac_cpp_err"; then
17272 ac_header_preproc=yes
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 ac_header_preproc=no
17280 rm -f conftest.err conftest.$ac_ext
17281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17282 echo "${ECHO_T}$ac_header_preproc" >&6; }
17284 # So? What about this header?
17285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17291 ac_header_preproc=yes
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17307 ## ----------------------------------- ##
17308 ## Report this to llvmbugs@cs.uiuc.edu ##
17309 ## ----------------------------------- ##
17311 ) | sed "s/^/$as_me: WARNING: /" >&2
17314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 eval "$as_ac_Header=\$ac_header_preproc"
17321 ac_res=`eval echo '${'$as_ac_Header'}'`
17322 { echo "$as_me:$LINENO: result: $ac_res" >&5
17323 echo "${ECHO_T}$ac_res" >&6; }
17326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17327 cat >>confdefs.h <<_ACEOF
17328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17338 for ac_header in CrashReporterClient.h
17340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 ac_res=`eval echo '${'$as_ac_Header'}'`
17348 { echo "$as_me:$LINENO: result: $ac_res" >&5
17349 echo "${ECHO_T}$ac_res" >&6; }
17351 # Is the header compilable?
17352 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17354 cat >conftest.$ac_ext <<_ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17360 $ac_includes_default
17361 #include <$ac_header>
17363 rm -f conftest.$ac_objext
17364 if { (ac_try="$ac_compile"
17365 case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_compile") 2>conftest.er1
17372 grep -v '^ *+' conftest.er1 >conftest.err
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17378 { (case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_try") 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; } &&
17387 { ac_try='test -s conftest.$ac_objext'
17388 { (case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_try") 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 ac_header_compiler=yes
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402 ac_header_compiler=no
17405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17407 echo "${ECHO_T}$ac_header_compiler" >&6; }
17409 # Is the header present?
17410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17412 cat >conftest.$ac_ext <<_ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 #include <$ac_header>
17420 if { (ac_try="$ac_cpp conftest.$ac_ext"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17428 grep -v '^ *+' conftest.er1 >conftest.err
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } >/dev/null; then
17433 if test -s conftest.err; then
17434 ac_cpp_err=$ac_c_preproc_warn_flag
17435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17442 if test -z "$ac_cpp_err"; then
17443 ac_header_preproc=yes
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 ac_header_preproc=no
17451 rm -f conftest.err conftest.$ac_ext
17452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17453 echo "${ECHO_T}$ac_header_preproc" >&6; }
17455 # So? What about this header?
17456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17462 ac_header_preproc=yes
17465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17478 ## ----------------------------------- ##
17479 ## Report this to llvmbugs@cs.uiuc.edu ##
17480 ## ----------------------------------- ##
17482 ) | sed "s/^/$as_me: WARNING: /" >&2
17485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 eval "$as_ac_Header=\$ac_header_preproc"
17492 ac_res=`eval echo '${'$as_ac_Header'}'`
17493 { echo "$as_me:$LINENO: result: $ac_res" >&5
17494 echo "${ECHO_T}$ac_res" >&6; }
17497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17498 cat >>confdefs.h <<_ACEOF
17499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17507 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17508 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17509 cat >conftest.$ac_ext <<_ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17515 extern const char *__crashreporter_info__;
17517 __crashreporter_info__ = "test";
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537 { (case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_try") 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest$ac_exeext'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 { echo "$as_me:$LINENO: result: yes" >&5
17557 echo "${ECHO_T}yes" >&6; }
17559 cat >>confdefs.h <<\_ACEOF
17560 #define HAVE_CRASHREPORTER_INFO 1
17564 echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17567 { echo "$as_me:$LINENO: result: no" >&5
17568 echo "${ECHO_T}no" >&6; }
17570 cat >>confdefs.h <<\_ACEOF
17571 #define HAVE_CRASHREPORTER_INFO 0
17576 rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17582 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17583 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17584 if test "${ac_cv_huge_val_sanity+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 ac_cpp='$CXXCPP $CPPFLAGS'
17590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17594 ac_save_CXXFLAGS=$CXXFLAGS
17596 if test "$cross_compiling" = yes; then
17597 ac_cv_huge_val_sanity=yes
17599 cat >conftest.$ac_ext <<_ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17609 double x = HUGE_VAL; return x != x;
17614 rm -f conftest$ac_exeext
17615 if { (ac_try="$ac_link"
17616 case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_link") 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_huge_val_sanity=yes
17636 echo "$as_me: program exited with status $ac_status" >&5
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ( exit $ac_status )
17641 ac_cv_huge_val_sanity=no
17643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17647 CXXFLAGS=$ac_save_CXXFLAGS
17649 ac_cpp='$CPP $CPPFLAGS'
17650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17656 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17657 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17658 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17661 { echo "$as_me:$LINENO: checking for pid_t" >&5
17662 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17663 if test "${ac_cv_type_pid_t+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 cat >conftest.$ac_ext <<_ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 $ac_includes_default
17673 typedef pid_t ac__type_new_;
17677 if ((ac__type_new_ *) 0)
17679 if (sizeof (ac__type_new_))
17685 rm -f conftest.$ac_objext
17686 if { (ac_try="$ac_compile"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_compile") 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17700 { (case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_try") 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest.$ac_objext'
17710 { (case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_try") 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_cv_type_pid_t=yes
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 ac_cv_type_pid_t=no
17727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17729 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17730 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17731 if test $ac_cv_type_pid_t = yes; then
17735 cat >>confdefs.h <<_ACEOF
17741 { echo "$as_me:$LINENO: checking for size_t" >&5
17742 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17743 if test "${ac_cv_type_size_t+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 $ac_includes_default
17753 typedef size_t ac__type_new_;
17757 if ((ac__type_new_ *) 0)
17759 if (sizeof (ac__type_new_))
17765 rm -f conftest.$ac_objext
17766 if { (ac_try="$ac_compile"
17767 case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_compile") 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17780 { (case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest.$ac_objext'
17790 { (case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_try") 2>&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 ac_cv_type_size_t=yes
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 ac_cv_type_size_t=no
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17811 if test $ac_cv_type_size_t = yes; then
17815 cat >>confdefs.h <<_ACEOF
17816 #define size_t unsigned int
17822 cat >>confdefs.h <<_ACEOF
17823 #define RETSIGTYPE void
17826 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17827 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17828 if test "${ac_cv_struct_tm+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17831 cat >conftest.$ac_ext <<_ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17837 #include <sys/types.h>
17843 struct tm *tp; tp->tm_sec;
17848 rm -f conftest.$ac_objext
17849 if { (ac_try="$ac_compile"
17850 case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_compile") 2>conftest.er1
17857 grep -v '^ *+' conftest.er1 >conftest.err
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
17862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17863 { (case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_try") 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
17873 { (case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_try") 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 ac_cv_struct_tm=time.h
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 ac_cv_struct_tm=sys/time.h
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17893 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17894 if test $ac_cv_struct_tm = sys/time.h; then
17896 cat >>confdefs.h <<\_ACEOF
17897 #define TM_IN_SYS_TIME 1
17902 { echo "$as_me:$LINENO: checking for int64_t" >&5
17903 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17904 if test "${ac_cv_type_int64_t+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 cat >conftest.$ac_ext <<_ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h. */
17913 $ac_includes_default
17914 typedef int64_t ac__type_new_;
17918 if ((ac__type_new_ *) 0)
17920 if (sizeof (ac__type_new_))
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_compile") 2>conftest.er1
17935 grep -v '^ *+' conftest.er1 >conftest.err
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest.$ac_objext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_type_int64_t=yes
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17965 ac_cv_type_int64_t=no
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17970 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17971 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17972 if test $ac_cv_type_int64_t = yes; then
17974 cat >>confdefs.h <<_ACEOF
17975 #define HAVE_INT64_T 1
17980 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17981 echo "$as_me: error: Type int64_t required but not found" >&2;}
17982 { (exit 1); exit 1; }; }
17985 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17986 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17987 if test "${ac_cv_type_uint64_t+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 cat >conftest.$ac_ext <<_ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 $ac_includes_default
17997 typedef uint64_t ac__type_new_;
18001 if ((ac__type_new_ *) 0)
18003 if (sizeof (ac__type_new_))
18009 rm -f conftest.$ac_objext
18010 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18018 grep -v '^ *+' conftest.er1 >conftest.err
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024 { (case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_try") 2>&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043 ac_cv_type_uint64_t=yes
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048 ac_cv_type_uint64_t=no
18051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18053 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18054 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18055 if test $ac_cv_type_uint64_t = yes; then
18057 cat >>confdefs.h <<_ACEOF
18058 #define HAVE_UINT64_T 1
18063 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18064 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18065 if test "${ac_cv_type_u_int64_t+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 cat >conftest.$ac_ext <<_ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18074 $ac_includes_default
18075 typedef u_int64_t ac__type_new_;
18079 if ((ac__type_new_ *) 0)
18081 if (sizeof (ac__type_new_))
18087 rm -f conftest.$ac_objext
18088 if { (ac_try="$ac_compile"
18089 case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_compile") 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18102 { (case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_try") 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 ac_cv_type_u_int64_t=yes
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18126 ac_cv_type_u_int64_t=no
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18131 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18132 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18133 if test $ac_cv_type_u_int64_t = yes; then
18135 cat >>confdefs.h <<_ACEOF
18136 #define HAVE_U_INT64_T 1
18141 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18142 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18143 { (exit 1); exit 1; }; }
18157 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 cat >conftest.$ac_ext <<_ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18173 #define $ac_func innocuous_$ac_func
18175 /* System header to define __stub macros and hopefully few prototypes,
18176 which can conflict with char $ac_func (); below.
18177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18178 <limits.h> exists even on freestanding compilers. */
18181 # include <limits.h>
18183 # include <assert.h>
18188 /* Override any GCC internal prototype to avoid an error.
18189 Use char because int might match the return type of a GCC
18190 builtin and then its argument prototype would still apply. */
18195 /* The GNU C library defines this for functions which it implements
18196 to always fail with ENOSYS. Some functions are actually named
18197 something starting with __ and the normal name is an alias. */
18198 #if defined __stub_$ac_func || defined __stub___$ac_func
18205 return $ac_func ();
18210 rm -f conftest.$ac_objext conftest$ac_exeext
18211 if { (ac_try="$ac_link"
18212 case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_link") 2>conftest.er1
18219 grep -v '^ *+' conftest.er1 >conftest.err
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18225 { (case "(($ac_try" in
18226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227 *) ac_try_echo=$ac_try;;
18229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230 (eval "$ac_try") 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest$ac_exeext'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
18244 eval "$as_ac_var=yes"
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 eval "$as_ac_var=no"
18252 rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
18255 ac_res=`eval echo '${'$as_ac_var'}'`
18256 { echo "$as_me:$LINENO: result: $ac_res" >&5
18257 echo "${ECHO_T}$ac_res" >&6; }
18258 if test `eval echo '${'$as_ac_var'}'` = yes; then
18259 cat >>confdefs.h <<_ACEOF
18260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18270 for ac_func in powf fmodf strtof round
18272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 cat >conftest.$ac_ext <<_ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18286 #define $ac_func innocuous_$ac_func
18288 /* System header to define __stub macros and hopefully few prototypes,
18289 which can conflict with char $ac_func (); below.
18290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18291 <limits.h> exists even on freestanding compilers. */
18294 # include <limits.h>
18296 # include <assert.h>
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18308 /* The GNU C library defines this for functions which it implements
18309 to always fail with ENOSYS. Some functions are actually named
18310 something starting with __ and the normal name is an alias. */
18311 #if defined __stub_$ac_func || defined __stub___$ac_func
18318 return $ac_func ();
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (ac_try="$ac_link"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_link") 2>conftest.er1
18332 grep -v '^ *+' conftest.er1 >conftest.err
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest$ac_exeext'
18348 { (case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_try") 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 eval "$as_ac_var=yes"
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 eval "$as_ac_var=no"
18365 rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18368 ac_res=`eval echo '${'$as_ac_var'}'`
18369 { echo "$as_me:$LINENO: result: $ac_res" >&5
18370 echo "${ECHO_T}$ac_res" >&6; }
18371 if test `eval echo '${'$as_ac_var'}'` = yes; then
18372 cat >>confdefs.h <<_ACEOF
18373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18384 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 cat >conftest.$ac_ext <<_ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18400 #define $ac_func innocuous_$ac_func
18402 /* System header to define __stub macros and hopefully few prototypes,
18403 which can conflict with char $ac_func (); below.
18404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18405 <limits.h> exists even on freestanding compilers. */
18408 # include <limits.h>
18410 # include <assert.h>
18415 /* Override any GCC internal prototype to avoid an error.
18416 Use char because int might match the return type of a GCC
18417 builtin and then its argument prototype would still apply. */
18422 /* The GNU C library defines this for functions which it implements
18423 to always fail with ENOSYS. Some functions are actually named
18424 something starting with __ and the normal name is an alias. */
18425 #if defined __stub_$ac_func || defined __stub___$ac_func
18432 return $ac_func ();
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 eval "$as_ac_var=yes"
18473 echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18476 eval "$as_ac_var=no"
18479 rm -f core conftest.err conftest.$ac_objext \
18480 conftest$ac_exeext conftest.$ac_ext
18482 ac_res=`eval echo '${'$as_ac_var'}'`
18483 { echo "$as_me:$LINENO: result: $ac_res" >&5
18484 echo "${ECHO_T}$ac_res" >&6; }
18485 if test `eval echo '${'$as_ac_var'}'` = yes; then
18486 cat >>confdefs.h <<_ACEOF
18487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18496 for ac_func in isatty mkdtemp mkstemp
18498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 cat >conftest.$ac_ext <<_ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18512 #define $ac_func innocuous_$ac_func
18514 /* System header to define __stub macros and hopefully few prototypes,
18515 which can conflict with char $ac_func (); below.
18516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18517 <limits.h> exists even on freestanding compilers. */
18520 # include <limits.h>
18522 # include <assert.h>
18527 /* Override any GCC internal prototype to avoid an error.
18528 Use char because int might match the return type of a GCC
18529 builtin and then its argument prototype would still apply. */
18534 /* The GNU C library defines this for functions which it implements
18535 to always fail with ENOSYS. Some functions are actually named
18536 something starting with __ and the normal name is an alias. */
18537 #if defined __stub_$ac_func || defined __stub___$ac_func
18544 return $ac_func ();
18549 rm -f conftest.$ac_objext conftest$ac_exeext
18550 if { (ac_try="$ac_link"
18551 case "(($ac_try" in
18552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18553 *) ac_try_echo=$ac_try;;
18555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556 (eval "$ac_link") 2>conftest.er1
18558 grep -v '^ *+' conftest.er1 >conftest.err
18560 cat conftest.err >&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } &&
18563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18564 { (case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_try") 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; } &&
18573 { ac_try='test -s conftest$ac_exeext'
18574 { (case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_try") 2>&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 eval "$as_ac_var=yes"
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18588 eval "$as_ac_var=no"
18591 rm -f core conftest.err conftest.$ac_objext \
18592 conftest$ac_exeext conftest.$ac_ext
18594 ac_res=`eval echo '${'$as_ac_var'}'`
18595 { echo "$as_me:$LINENO: result: $ac_res" >&5
18596 echo "${ECHO_T}$ac_res" >&6; }
18597 if test `eval echo '${'$as_ac_var'}'` = yes; then
18598 cat >>confdefs.h <<_ACEOF
18599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18611 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 cat >conftest.$ac_ext <<_ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18627 #define $ac_func innocuous_$ac_func
18629 /* System header to define __stub macros and hopefully few prototypes,
18630 which can conflict with char $ac_func (); below.
18631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18632 <limits.h> exists even on freestanding compilers. */
18635 # include <limits.h>
18637 # include <assert.h>
18642 /* Override any GCC internal prototype to avoid an error.
18643 Use char because int might match the return type of a GCC
18644 builtin and then its argument prototype would still apply. */
18649 /* The GNU C library defines this for functions which it implements
18650 to always fail with ENOSYS. Some functions are actually named
18651 something starting with __ and the normal name is an alias. */
18652 #if defined __stub_$ac_func || defined __stub___$ac_func
18659 return $ac_func ();
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679 { (case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_try") 2>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 eval "$as_ac_var=yes"
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18703 eval "$as_ac_var=no"
18706 rm -f core conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext conftest.$ac_ext
18709 ac_res=`eval echo '${'$as_ac_var'}'`
18710 { echo "$as_me:$LINENO: result: $ac_res" >&5
18711 echo "${ECHO_T}$ac_res" >&6; }
18712 if test `eval echo '${'$as_ac_var'}'` = yes; then
18713 cat >>confdefs.h <<_ACEOF
18714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18723 for ac_func in strerror strerror_r setenv
18725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 cat >conftest.$ac_ext <<_ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18739 #define $ac_func innocuous_$ac_func
18741 /* System header to define __stub macros and hopefully few prototypes,
18742 which can conflict with char $ac_func (); below.
18743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18744 <limits.h> exists even on freestanding compilers. */
18747 # include <limits.h>
18749 # include <assert.h>
18754 /* Override any GCC internal prototype to avoid an error.
18755 Use char because int might match the return type of a GCC
18756 builtin and then its argument prototype would still apply. */
18761 /* The GNU C library defines this for functions which it implements
18762 to always fail with ENOSYS. Some functions are actually named
18763 something starting with __ and the normal name is an alias. */
18764 #if defined __stub_$ac_func || defined __stub___$ac_func
18771 return $ac_func ();
18776 rm -f conftest.$ac_objext conftest$ac_exeext
18777 if { (ac_try="$ac_link"
18778 case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_link") 2>conftest.er1
18785 grep -v '^ *+' conftest.er1 >conftest.err
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
18790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest$ac_exeext'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 eval "$as_ac_var=yes"
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 eval "$as_ac_var=no"
18818 rm -f core conftest.err conftest.$ac_objext \
18819 conftest$ac_exeext conftest.$ac_ext
18821 ac_res=`eval echo '${'$as_ac_var'}'`
18822 { echo "$as_me:$LINENO: result: $ac_res" >&5
18823 echo "${ECHO_T}$ac_res" >&6; }
18824 if test `eval echo '${'$as_ac_var'}'` = yes; then
18825 cat >>confdefs.h <<_ACEOF
18826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18836 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 cat >conftest.$ac_ext <<_ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18852 #define $ac_func innocuous_$ac_func
18854 /* System header to define __stub macros and hopefully few prototypes,
18855 which can conflict with char $ac_func (); below.
18856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18857 <limits.h> exists even on freestanding compilers. */
18860 # include <limits.h>
18862 # include <assert.h>
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18874 /* The GNU C library defines this for functions which it implements
18875 to always fail with ENOSYS. Some functions are actually named
18876 something starting with __ and the normal name is an alias. */
18877 #if defined __stub_$ac_func || defined __stub___$ac_func
18884 return $ac_func ();
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18898 grep -v '^ *+' conftest.er1 >conftest.err
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904 { (case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_try") 2>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 eval "$as_ac_var=yes"
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18928 eval "$as_ac_var=no"
18931 rm -f core conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
18934 ac_res=`eval echo '${'$as_ac_var'}'`
18935 { echo "$as_me:$LINENO: result: $ac_res" >&5
18936 echo "${ECHO_T}$ac_res" >&6; }
18937 if test `eval echo '${'$as_ac_var'}'` = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18950 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 cat >conftest.$ac_ext <<_ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18966 #define $ac_func innocuous_$ac_func
18968 /* System header to define __stub macros and hopefully few prototypes,
18969 which can conflict with char $ac_func (); below.
18970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18971 <limits.h> exists even on freestanding compilers. */
18974 # include <limits.h>
18976 # include <assert.h>
18981 /* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
18988 /* The GNU C library defines this for functions which it implements
18989 to always fail with ENOSYS. Some functions are actually named
18990 something starting with __ and the normal name is an alias. */
18991 #if defined __stub_$ac_func || defined __stub___$ac_func
18998 return $ac_func ();
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (ac_try="$ac_link"
19005 case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_link") 2>conftest.er1
19012 grep -v '^ *+' conftest.er1 >conftest.err
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
19017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest$ac_exeext'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 eval "$as_ac_var=yes"
19039 echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19042 eval "$as_ac_var=no"
19045 rm -f core conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
19048 ac_res=`eval echo '${'$as_ac_var'}'`
19049 { echo "$as_me:$LINENO: result: $ac_res" >&5
19050 echo "${ECHO_T}$ac_res" >&6; }
19051 if test `eval echo '${'$as_ac_var'}'` = yes; then
19052 cat >>confdefs.h <<_ACEOF
19053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19059 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19060 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19061 if test "${llvm_cv_c_printf_a+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19065 ac_cpp='$CPP $CPPFLAGS'
19066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19070 if test "$cross_compiling" = yes; then
19071 llvmac_cv_c_printf_a=no
19073 cat >conftest.$ac_ext <<_ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19082 #include <stdlib.h>
19088 volatile double A, B;
19092 sprintf(Buffer, "%a", A);
19096 if (A != 0x1.999999999999ap-4)
19103 rm -f conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_link") 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19114 { (case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_try") 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 llvm_cv_c_printf_a=yes
19125 echo "$as_me: program exited with status $ac_status" >&5
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19129 ( exit $ac_status )
19130 llvmac_cv_c_printf_a=no
19132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19137 ac_cpp='$CPP $CPPFLAGS'
19138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19143 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19144 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19145 if test "$llvm_cv_c_printf_a" = "yes"; then
19147 cat >>confdefs.h <<\_ACEOF
19148 #define HAVE_PRINTF_A 1
19154 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19155 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19156 if test "${ac_cv_func_rand48+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 ac_cpp='$CXXCPP $CPPFLAGS'
19161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19165 cat >conftest.$ac_ext <<_ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 #include <stdlib.h>
19175 srand48(0);lrand48();drand48();
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_compile") 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 ac_cv_func_rand48=yes
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 ac_cv_func_rand48=no
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224 ac_cpp='$CPP $CPPFLAGS'
19225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19230 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19231 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19233 if test "$ac_cv_func_rand48" = "yes" ; then
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_RAND48 1
19242 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19243 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19244 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 cat >conftest.$ac_ext <<_ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 $ac_includes_default
19258 char *p = (char *) strerror_s;
19266 rm -f conftest.$ac_objext
19267 if { (ac_try="$ac_compile"
19268 case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_compile") 2>conftest.er1
19275 grep -v '^ *+' conftest.er1 >conftest.err
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } &&
19280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19281 { (case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_try") 2>&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
19291 { (case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_try") 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300 ac_cv_have_decl_strerror_s=yes
19302 echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19305 ac_cv_have_decl_strerror_s=no
19308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19310 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19311 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19312 if test $ac_cv_have_decl_strerror_s = yes; then
19314 cat >>confdefs.h <<_ACEOF
19315 #define HAVE_DECL_STRERROR_S 1
19320 cat >>confdefs.h <<_ACEOF
19321 #define HAVE_DECL_STRERROR_S 0
19329 if test "$llvm_cv_os_type" = "MingW" ; then
19330 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19331 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19332 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 ac_check_lib_save_LIBS=$LIBS
19337 cat >conftest.$ac_ext <<_ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19344 /* Override any GCC internal prototype to avoid an error.
19345 Use char because int might match the return type of a GCC
19346 builtin and then its argument prototype would still apply. */
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_link") 2>conftest.er1
19368 grep -v '^ *+' conftest.er1 >conftest.err
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19374 { (case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_try") 2>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest$ac_exeext'
19384 { (case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_try") 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_cv_lib_gcc__alloca=yes
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_cv_lib_gcc__alloca=no
19401 rm -f core conftest.err conftest.$ac_objext \
19402 conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS
19405 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19406 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19407 if test $ac_cv_lib_gcc__alloca = yes; then
19409 cat >>confdefs.h <<\_ACEOF
19410 #define HAVE__ALLOCA 1
19415 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19416 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19417 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 ac_check_lib_save_LIBS=$LIBS
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19429 /* Override any GCC internal prototype to avoid an error.
19430 Use char because int might match the return type of a GCC
19431 builtin and then its argument prototype would still apply. */
19439 return __alloca ();
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (ac_try="$ac_link"
19446 case "(($ac_try" in
19447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448 *) ac_try_echo=$ac_try;;
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451 (eval "$ac_link") 2>conftest.er1
19453 grep -v '^ *+' conftest.er1 >conftest.err
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest$ac_exeext'
19469 { (case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_try") 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_lib_gcc___alloca=yes
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_cv_lib_gcc___alloca=no
19486 rm -f core conftest.err conftest.$ac_objext \
19487 conftest$ac_exeext conftest.$ac_ext
19488 LIBS=$ac_check_lib_save_LIBS
19490 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19491 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19492 if test $ac_cv_lib_gcc___alloca = yes; then
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE___ALLOCA 1
19500 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19501 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19502 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 ac_check_lib_save_LIBS=$LIBS
19507 cat >conftest.$ac_ext <<_ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19514 /* Override any GCC internal prototype to avoid an error.
19515 Use char because int might match the return type of a GCC
19516 builtin and then its argument prototype would still apply. */
19524 return __chkstk ();
19529 rm -f conftest.$ac_objext conftest$ac_exeext
19530 if { (ac_try="$ac_link"
19531 case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_link") 2>conftest.er1
19538 grep -v '^ *+' conftest.er1 >conftest.err
19540 cat conftest.err >&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
19543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19544 { (case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549 (eval "$ac_try") 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest$ac_exeext'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_lib_gcc___chkstk=yes
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19568 ac_cv_lib_gcc___chkstk=no
19571 rm -f core conftest.err conftest.$ac_objext \
19572 conftest$ac_exeext conftest.$ac_ext
19573 LIBS=$ac_check_lib_save_LIBS
19575 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19576 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19577 if test $ac_cv_lib_gcc___chkstk = yes; then
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE___CHKSTK 1
19585 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19586 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19587 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_check_lib_save_LIBS=$LIBS
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19599 /* Override any GCC internal prototype to avoid an error.
19600 Use char because int might match the return type of a GCC
19601 builtin and then its argument prototype would still apply. */
19609 return ___chkstk ();
19614 rm -f conftest.$ac_objext conftest$ac_exeext
19615 if { (ac_try="$ac_link"
19616 case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_link") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest$ac_exeext'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 ac_cv_lib_gcc____chkstk=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_cv_lib_gcc____chkstk=no
19656 rm -f core conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
19658 LIBS=$ac_check_lib_save_LIBS
19660 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19661 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19662 if test $ac_cv_lib_gcc____chkstk = yes; then
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE____CHKSTK 1
19671 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19672 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19673 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 ac_check_lib_save_LIBS=$LIBS
19678 cat >conftest.$ac_ext <<_ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19685 /* Override any GCC internal prototype to avoid an error.
19686 Use char because int might match the return type of a GCC
19687 builtin and then its argument prototype would still apply. */
19695 return __ashldi3 ();
19700 rm -f conftest.$ac_objext conftest$ac_exeext
19701 if { (ac_try="$ac_link"
19702 case "(($ac_try" in
19703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704 *) ac_try_echo=$ac_try;;
19706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19707 (eval "$ac_link") 2>conftest.er1
19709 grep -v '^ *+' conftest.er1 >conftest.err
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19715 { (case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_try") 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; } &&
19724 { ac_try='test -s conftest$ac_exeext'
19725 { (case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_try") 2>&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; }; then
19734 ac_cv_lib_gcc___ashldi3=yes
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 ac_cv_lib_gcc___ashldi3=no
19742 rm -f core conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19746 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19747 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19748 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19750 cat >>confdefs.h <<\_ACEOF
19751 #define HAVE___ASHLDI3 1
19756 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19757 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19758 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 ac_check_lib_save_LIBS=$LIBS
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19770 /* Override any GCC internal prototype to avoid an error.
19771 Use char because int might match the return type of a GCC
19772 builtin and then its argument prototype would still apply. */
19780 return __ashrdi3 ();
19785 rm -f conftest.$ac_objext conftest$ac_exeext
19786 if { (ac_try="$ac_link"
19787 case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_link") 2>conftest.er1
19794 grep -v '^ *+' conftest.er1 >conftest.err
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } &&
19799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19800 { (case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_try") 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest$ac_exeext'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 ac_cv_lib_gcc___ashrdi3=yes
19821 echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19824 ac_cv_lib_gcc___ashrdi3=no
19827 rm -f core conftest.err conftest.$ac_objext \
19828 conftest$ac_exeext conftest.$ac_ext
19829 LIBS=$ac_check_lib_save_LIBS
19831 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19832 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19833 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19835 cat >>confdefs.h <<\_ACEOF
19836 #define HAVE___ASHRDI3 1
19841 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19842 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19843 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 ac_check_lib_save_LIBS=$LIBS
19848 cat >conftest.$ac_ext <<_ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19855 /* Override any GCC internal prototype to avoid an error.
19856 Use char because int might match the return type of a GCC
19857 builtin and then its argument prototype would still apply. */
19865 return __divdi3 ();
19870 rm -f conftest.$ac_objext conftest$ac_exeext
19871 if { (ac_try="$ac_link"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_link") 2>conftest.er1
19879 grep -v '^ *+' conftest.er1 >conftest.err
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19885 { (case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest$ac_exeext'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
19904 ac_cv_lib_gcc___divdi3=yes
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19909 ac_cv_lib_gcc___divdi3=no
19912 rm -f core conftest.err conftest.$ac_objext \
19913 conftest$ac_exeext conftest.$ac_ext
19914 LIBS=$ac_check_lib_save_LIBS
19916 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19917 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19918 if test $ac_cv_lib_gcc___divdi3 = yes; then
19920 cat >>confdefs.h <<\_ACEOF
19921 #define HAVE___DIVDI3 1
19926 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19927 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19928 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 ac_check_lib_save_LIBS=$LIBS
19933 cat >conftest.$ac_ext <<_ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19940 /* Override any GCC internal prototype to avoid an error.
19941 Use char because int might match the return type of a GCC
19942 builtin and then its argument prototype would still apply. */
19950 return __fixdfdi ();
19955 rm -f conftest.$ac_objext conftest$ac_exeext
19956 if { (ac_try="$ac_link"
19957 case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_link") 2>conftest.er1
19964 grep -v '^ *+' conftest.er1 >conftest.err
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } &&
19969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19970 { (case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_try") 2>&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; } &&
19979 { ac_try='test -s conftest$ac_exeext'
19980 { (case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_try") 2>&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989 ac_cv_lib_gcc___fixdfdi=yes
19991 echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19994 ac_cv_lib_gcc___fixdfdi=no
19997 rm -f core conftest.err conftest.$ac_objext \
19998 conftest$ac_exeext conftest.$ac_ext
19999 LIBS=$ac_check_lib_save_LIBS
20001 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20002 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20003 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20005 cat >>confdefs.h <<\_ACEOF
20006 #define HAVE___FIXDFDI 1
20011 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20012 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20013 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 ac_check_lib_save_LIBS=$LIBS
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20035 return __fixsfdi ();
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20049 grep -v '^ *+' conftest.er1 >conftest.err
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } &&
20054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20055 { (case "(($ac_try" in
20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_try") 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest$ac_exeext'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_lib_gcc___fixsfdi=yes
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_cv_lib_gcc___fixsfdi=no
20082 rm -f core conftest.err conftest.$ac_objext \
20083 conftest$ac_exeext conftest.$ac_ext
20084 LIBS=$ac_check_lib_save_LIBS
20086 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20087 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20088 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20090 cat >>confdefs.h <<\_ACEOF
20091 #define HAVE___FIXSFDI 1
20096 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20097 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20098 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20101 ac_check_lib_save_LIBS=$LIBS
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20110 /* Override any GCC internal prototype to avoid an error.
20111 Use char because int might match the return type of a GCC
20112 builtin and then its argument prototype would still apply. */
20116 char __floatdidf ();
20120 return __floatdidf ();
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_link") 2>conftest.er1
20134 grep -v '^ *+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } &&
20139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20140 { (case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_try") 2>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest$ac_exeext'
20150 { (case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_try") 2>&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 ac_cv_lib_gcc___floatdidf=yes
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ac_cv_lib_gcc___floatdidf=no
20167 rm -f core conftest.err conftest.$ac_objext \
20168 conftest$ac_exeext conftest.$ac_ext
20169 LIBS=$ac_check_lib_save_LIBS
20171 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20172 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20173 if test $ac_cv_lib_gcc___floatdidf = yes; then
20175 cat >>confdefs.h <<\_ACEOF
20176 #define HAVE___FLOATDIDF 1
20181 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20182 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20183 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 ac_check_lib_save_LIBS=$LIBS
20188 cat >conftest.$ac_ext <<_ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20195 /* Override any GCC internal prototype to avoid an error.
20196 Use char because int might match the return type of a GCC
20197 builtin and then its argument prototype would still apply. */
20205 return __lshrdi3 ();
20210 rm -f conftest.$ac_objext conftest$ac_exeext
20211 if { (ac_try="$ac_link"
20212 case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_link") 2>conftest.er1
20219 grep -v '^ *+' conftest.er1 >conftest.err
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
20224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20225 { (case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_try") 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; } &&
20234 { ac_try='test -s conftest$ac_exeext'
20235 { (case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_try") 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 ac_cv_lib_gcc___lshrdi3=yes
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 ac_cv_lib_gcc___lshrdi3=no
20252 rm -f core conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_check_lib_save_LIBS
20256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20257 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20258 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20260 cat >>confdefs.h <<\_ACEOF
20261 #define HAVE___LSHRDI3 1
20266 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20267 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20268 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 ac_check_lib_save_LIBS=$LIBS
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20280 /* Override any GCC internal prototype to avoid an error.
20281 Use char because int might match the return type of a GCC
20282 builtin and then its argument prototype would still apply. */
20290 return __moddi3 ();
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (ac_try="$ac_link"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_link") 2>conftest.er1
20304 grep -v '^ *+' conftest.er1 >conftest.err
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
20309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20310 { (case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_try") 2>&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; } &&
20319 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20329 ac_cv_lib_gcc___moddi3=yes
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20334 ac_cv_lib_gcc___moddi3=no
20337 rm -f core conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20341 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20342 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20343 if test $ac_cv_lib_gcc___moddi3 = yes; then
20345 cat >>confdefs.h <<\_ACEOF
20346 #define HAVE___MODDI3 1
20351 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20352 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20353 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 ac_check_lib_save_LIBS=$LIBS
20358 cat >conftest.$ac_ext <<_ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20365 /* Override any GCC internal prototype to avoid an error.
20366 Use char because int might match the return type of a GCC
20367 builtin and then its argument prototype would still apply. */
20375 return __udivdi3 ();
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>conftest.er1
20389 grep -v '^ *+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20395 { (case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest$ac_exeext'
20405 { (case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_try") 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_cv_lib_gcc___udivdi3=yes
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_lib_gcc___udivdi3=no
20422 rm -f core conftest.err conftest.$ac_objext \
20423 conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20427 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20428 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20430 cat >>confdefs.h <<\_ACEOF
20431 #define HAVE___UDIVDI3 1
20436 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20437 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20438 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 ac_check_lib_save_LIBS=$LIBS
20443 cat >conftest.$ac_ext <<_ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20450 /* Override any GCC internal prototype to avoid an error.
20451 Use char because int might match the return type of a GCC
20452 builtin and then its argument prototype would still apply. */
20460 return __umoddi3 ();
20465 rm -f conftest.$ac_objext conftest$ac_exeext
20466 if { (ac_try="$ac_link"
20467 case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472 (eval "$ac_link") 2>conftest.er1
20474 grep -v '^ *+' conftest.er1 >conftest.err
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20480 { (case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_try") 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest$ac_exeext'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 ac_cv_lib_gcc___umoddi3=yes
20501 echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20504 ac_cv_lib_gcc___umoddi3=no
20507 rm -f core conftest.err conftest.$ac_objext \
20508 conftest$ac_exeext conftest.$ac_ext
20509 LIBS=$ac_check_lib_save_LIBS
20511 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20512 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20513 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE___UMODDI3 1
20522 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20523 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20524 if test "${ac_cv_lib_gcc___main+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 ac_check_lib_save_LIBS=$LIBS
20529 cat >conftest.$ac_ext <<_ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h. */
20536 /* Override any GCC internal prototype to avoid an error.
20537 Use char because int might match the return type of a GCC
20538 builtin and then its argument prototype would still apply. */
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558 (eval "$ac_link") 2>conftest.er1
20560 grep -v '^ *+' conftest.er1 >conftest.err
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
20565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20566 { (case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_try") 2>&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; } &&
20575 { ac_try='test -s conftest$ac_exeext'
20576 { (case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_try") 2>&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; }; then
20585 ac_cv_lib_gcc___main=yes
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 ac_cv_lib_gcc___main=no
20593 rm -f core conftest.err conftest.$ac_objext \
20594 conftest$ac_exeext conftest.$ac_ext
20595 LIBS=$ac_check_lib_save_LIBS
20597 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20598 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20599 if test $ac_cv_lib_gcc___main = yes; then
20601 cat >>confdefs.h <<\_ACEOF
20602 #define HAVE___MAIN 1
20607 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20608 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20609 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 ac_check_lib_save_LIBS=$LIBS
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20621 /* Override any GCC internal prototype to avoid an error.
20622 Use char because int might match the return type of a GCC
20623 builtin and then its argument prototype would still apply. */
20631 return __cmpdi2 ();
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (ac_try="$ac_link"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_link") 2>conftest.er1
20645 grep -v '^ *+' conftest.er1 >conftest.err
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20651 { (case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_try") 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest$ac_exeext'
20661 { (case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_try") 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 ac_cv_lib_gcc___cmpdi2=yes
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 ac_cv_lib_gcc___cmpdi2=no
20678 rm -f core conftest.err conftest.$ac_objext \
20679 conftest$ac_exeext conftest.$ac_ext
20680 LIBS=$ac_check_lib_save_LIBS
20682 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20683 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20684 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20686 cat >>confdefs.h <<\_ACEOF
20687 #define HAVE___CMPDI2 1
20694 if test "$llvm_cv_os_type" = "MingW" ; then
20695 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20696 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20697 cat >conftest.$ac_ext <<_ACEOF
20698 #include <windows.h>
20699 #include <imagehlp.h>
20700 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20701 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_compile") 2>conftest.er1
20712 grep -v '^ *+' conftest.er1 >conftest.err
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20718 { (case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_try") 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; } &&
20727 { ac_try='test -s conftest.$ac_objext'
20728 { (case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_try") 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20738 { echo "$as_me:$LINENO: result: yes" >&5
20739 echo "${ECHO_T}yes" >&6; }
20740 llvm_cv_win32_elmcb_pcstr="PCSTR"
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20747 { echo "$as_me:$LINENO: result: no" >&5
20748 echo "${ECHO_T}no" >&6; }
20749 llvm_cv_win32_elmcb_pcstr="PSTR"
20753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20755 cat >>confdefs.h <<_ACEOF
20756 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20762 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20763 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20764 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 ac_cpp='$CXXCPP $CPPFLAGS'
20769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20773 cat >conftest.$ac_ext <<_ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20788 rm -f conftest.$ac_objext
20789 if { (ac_try="$ac_compile"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_compile") 2>conftest.er1
20797 grep -v '^ *+' conftest.er1 >conftest.err
20799 cat conftest.err >&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } &&
20802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20803 { (case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_try") 2>&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; } &&
20812 { ac_try='test -s conftest.$ac_objext'
20813 { (case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_try") 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 ac_cv_func_isnan_in_math_h=yes
20824 echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20827 ac_cv_func_isnan_in_math_h=no
20830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20832 ac_cpp='$CPP $CPPFLAGS'
20833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20838 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20839 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20842 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20844 cat >>confdefs.h <<\_ACEOF
20845 #define HAVE_ISNAN_IN_MATH_H 1
20850 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20851 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20852 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 ac_cpp='$CXXCPP $CPPFLAGS'
20857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20861 cat >conftest.$ac_ext <<_ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_compile") 2>conftest.er1
20885 grep -v '^ *+' conftest.er1 >conftest.err
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
20890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20891 { (case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_try") 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_try") 2>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_cv_func_isnan_in_cmath=yes
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ac_cv_func_isnan_in_cmath=no
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20926 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20927 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20929 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20931 cat >>confdefs.h <<\_ACEOF
20932 #define HAVE_ISNAN_IN_CMATH 1
20937 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20938 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20939 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20958 float f; std::isnan(f);
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_compile") 2>conftest.er1
20972 grep -v '^ *+' conftest.er1 >conftest.err
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20978 { (case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_try") 2>&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest.$ac_objext'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ac_cv_func_std_isnan_in_cmath=yes
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 ac_cv_func_std_isnan_in_cmath=no
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 ac_cpp='$CPP $CPPFLAGS'
21008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21013 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21014 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21016 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21018 cat >>confdefs.h <<\_ACEOF
21019 #define HAVE_STD_ISNAN_IN_CMATH 1
21025 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21026 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21027 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 ac_cpp='$CXXCPP $CPPFLAGS'
21032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
21065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21066 { (case "(($ac_try" in
21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068 *) ac_try_echo=$ac_try;;
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071 (eval "$ac_try") 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try='test -s conftest.$ac_objext'
21076 { (case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_try") 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_cv_func_isinf_in_math_h=yes
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21090 ac_cv_func_isinf_in_math_h=no
21093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095 ac_cpp='$CPP $CPPFLAGS'
21096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21101 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21102 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21104 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_ISINF_IN_MATH_H 1
21112 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21113 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21114 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 ac_cpp='$CXXCPP $CPPFLAGS'
21119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21123 cat >conftest.$ac_ext <<_ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21138 rm -f conftest.$ac_objext
21139 if { (ac_try="$ac_compile"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_compile") 2>conftest.er1
21147 grep -v '^ *+' conftest.er1 >conftest.err
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } &&
21152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21153 { (case "(($ac_try" in
21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155 *) ac_try_echo=$ac_try;;
21157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21158 (eval "$ac_try") 2>&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; } &&
21162 { ac_try='test -s conftest.$ac_objext'
21163 { (case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_try") 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ac_cv_func_isinf_in_cmath=yes
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ac_cv_func_isinf_in_cmath=no
21180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21182 ac_cpp='$CPP $CPPFLAGS'
21183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21188 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21189 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21191 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21193 cat >>confdefs.h <<\_ACEOF
21194 #define HAVE_ISINF_IN_CMATH 1
21199 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21200 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21201 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 ac_cpp='$CXXCPP $CPPFLAGS'
21206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21210 cat >conftest.$ac_ext <<_ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h. */
21220 float f; std::isinf(f)}
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_compile") 2>conftest.er1
21234 grep -v '^ *+' conftest.er1 >conftest.err
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } &&
21239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21240 { (case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245 (eval "$ac_try") 2>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; } &&
21249 { ac_try='test -s conftest.$ac_objext'
21250 { (case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_try") 2>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
21259 ac_cv_func_std_isinf_in_cmath=yes
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ac_cv_func_std_isinf_in_cmath=no
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21269 ac_cpp='$CPP $CPPFLAGS'
21270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21275 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21276 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21278 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21280 cat >>confdefs.h <<\_ACEOF
21281 #define HAVE_STD_ISINF_IN_CMATH 1
21286 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21287 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21288 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 ac_cpp='$CXXCPP $CPPFLAGS'
21293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21297 cat >conftest.$ac_ext <<_ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 #include <ieeefp.h>
21307 float f; finite(f);
21312 rm -f conftest.$ac_objext
21313 if { (ac_try="$ac_compile"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_compile") 2>conftest.er1
21321 grep -v '^ *+' conftest.er1 >conftest.err
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } &&
21326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21327 { (case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_try") 2>&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } &&
21336 { ac_try='test -s conftest.$ac_objext'
21337 { (case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_try") 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21346 ac_cv_func_finite_in_ieeefp_h=yes
21348 echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 ac_cv_func_finite_in_ieeefp_h=no
21354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356 ac_cpp='$CPP $CPPFLAGS'
21357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21362 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21363 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21365 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21367 cat >>confdefs.h <<\_ACEOF
21368 #define HAVE_FINITE_IN_IEEEFP_H 1
21375 if test "$llvm_cv_platform_type" = "Unix" ; then
21378 for ac_header in stdlib.h unistd.h
21380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 ac_res=`eval echo '${'$as_ac_Header'}'`
21388 { echo "$as_me:$LINENO: result: $ac_res" >&5
21389 echo "${ECHO_T}$ac_res" >&6; }
21391 # Is the header compilable?
21392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21394 cat >conftest.$ac_ext <<_ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21400 $ac_includes_default
21401 #include <$ac_header>
21403 rm -f conftest.$ac_objext
21404 if { (ac_try="$ac_compile"
21405 case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_compile") 2>conftest.er1
21412 grep -v '^ *+' conftest.er1 >conftest.err
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
21417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21418 { (case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_try") 2>&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest.$ac_objext'
21428 { (case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_try") 2>&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; }; then
21437 ac_header_compiler=yes
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ac_header_compiler=no
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21447 echo "${ECHO_T}$ac_header_compiler" >&6; }
21449 # Is the header present?
21450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21452 cat >conftest.$ac_ext <<_ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 #include <$ac_header>
21460 if { (ac_try="$ac_cpp conftest.$ac_ext"
21461 case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21468 grep -v '^ *+' conftest.er1 >conftest.err
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } >/dev/null; then
21473 if test -s conftest.err; then
21474 ac_cpp_err=$ac_c_preproc_warn_flag
21475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21482 if test -z "$ac_cpp_err"; then
21483 ac_header_preproc=yes
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488 ac_header_preproc=no
21491 rm -f conftest.err conftest.$ac_ext
21492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21493 echo "${ECHO_T}$ac_header_preproc" >&6; }
21495 # So? What about this header?
21496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21502 ac_header_preproc=yes
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21518 ## ----------------------------------- ##
21519 ## Report this to llvmbugs@cs.uiuc.edu ##
21520 ## ----------------------------------- ##
21522 ) | sed "s/^/$as_me: WARNING: /" >&2
21525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21530 eval "$as_ac_Header=\$ac_header_preproc"
21532 ac_res=`eval echo '${'$as_ac_Header'}'`
21533 { echo "$as_me:$LINENO: result: $ac_res" >&5
21534 echo "${ECHO_T}$ac_res" >&6; }
21537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21538 cat >>confdefs.h <<_ACEOF
21539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21547 for ac_func in getpagesize
21549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21563 #define $ac_func innocuous_$ac_func
21565 /* System header to define __stub macros and hopefully few prototypes,
21566 which can conflict with char $ac_func (); below.
21567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21568 <limits.h> exists even on freestanding compilers. */
21571 # include <limits.h>
21573 # include <assert.h>
21578 /* Override any GCC internal prototype to avoid an error.
21579 Use char because int might match the return type of a GCC
21580 builtin and then its argument prototype would still apply. */
21585 /* The GNU C library defines this for functions which it implements
21586 to always fail with ENOSYS. Some functions are actually named
21587 something starting with __ and the normal name is an alias. */
21588 #if defined __stub_$ac_func || defined __stub___$ac_func
21595 return $ac_func ();
21600 rm -f conftest.$ac_objext conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607 (eval "$ac_link") 2>conftest.er1
21609 grep -v '^ *+' conftest.er1 >conftest.err
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } &&
21614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21615 { (case "(($ac_try" in
21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617 *) ac_try_echo=$ac_try;;
21619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620 (eval "$ac_try") 2>&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); }; } &&
21624 { ac_try='test -s conftest$ac_exeext'
21625 { (case "(($ac_try" in
21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627 *) ac_try_echo=$ac_try;;
21629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630 (eval "$ac_try") 2>&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; }; then
21634 eval "$as_ac_var=yes"
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 eval "$as_ac_var=no"
21642 rm -f core conftest.err conftest.$ac_objext \
21643 conftest$ac_exeext conftest.$ac_ext
21645 ac_res=`eval echo '${'$as_ac_var'}'`
21646 { echo "$as_me:$LINENO: result: $ac_res" >&5
21647 echo "${ECHO_T}$ac_res" >&6; }
21648 if test `eval echo '${'$as_ac_var'}'` = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21656 { echo "$as_me:$LINENO: checking for working mmap" >&5
21657 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21658 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 if test "$cross_compiling" = yes; then
21662 ac_cv_func_mmap_fixed_mapped=no
21664 cat >conftest.$ac_ext <<_ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21670 $ac_includes_default
21671 /* malloc might have been renamed as rpl_malloc. */
21674 /* Thanks to Mike Haertel and Jim Avera for this test.
21675 Here is a matrix of mmap possibilities:
21676 mmap private not fixed
21677 mmap private fixed at somewhere currently unmapped
21678 mmap private fixed at somewhere already mapped
21679 mmap shared not fixed
21680 mmap shared fixed at somewhere currently unmapped
21681 mmap shared fixed at somewhere already mapped
21682 For private mappings, we should verify that changes cannot be read()
21683 back from the file, nor mmap's back from the file at a different
21684 address. (There have been systems where private was not correctly
21685 implemented like the infamous i386 svr4.0, and systems where the
21686 VM page cache was not coherent with the file system buffer cache
21687 like early versions of FreeBSD and possibly contemporary NetBSD.)
21688 For shared mappings, we should conversely verify that changes get
21689 propagated back to all the places they're supposed to be.
21691 Grep wants private fixed already mapped.
21692 The main things grep needs to know about mmap are:
21693 * does it exist and is it safe to write into the mmap'd area
21694 * how to use it (BSD variants) */
21697 #include <sys/mman.h>
21699 #if !STDC_HEADERS && !HAVE_STDLIB_H
21703 /* This mess was copied from the GNU getpagesize.h. */
21704 #if !HAVE_GETPAGESIZE
21705 /* Assume that all systems that can run configure have sys/param.h. */
21706 # if !HAVE_SYS_PARAM_H
21707 # define HAVE_SYS_PARAM_H 1
21710 # ifdef _SC_PAGESIZE
21711 # define getpagesize() sysconf(_SC_PAGESIZE)
21712 # else /* no _SC_PAGESIZE */
21713 # if HAVE_SYS_PARAM_H
21714 # include <sys/param.h>
21715 # ifdef EXEC_PAGESIZE
21716 # define getpagesize() EXEC_PAGESIZE
21717 # else /* no EXEC_PAGESIZE */
21719 # define getpagesize() NBPG * CLSIZE
21722 # endif /* no CLSIZE */
21723 # else /* no NBPG */
21725 # define getpagesize() NBPC
21726 # else /* no NBPC */
21728 # define getpagesize() PAGESIZE
21729 # endif /* PAGESIZE */
21730 # endif /* no NBPC */
21731 # endif /* no NBPG */
21732 # endif /* no EXEC_PAGESIZE */
21733 # else /* no HAVE_SYS_PARAM_H */
21734 # define getpagesize() 8192 /* punt totally */
21735 # endif /* no HAVE_SYS_PARAM_H */
21736 # endif /* no _SC_PAGESIZE */
21738 #endif /* no HAVE_GETPAGESIZE */
21743 char *data, *data2, *data3;
21747 pagesize = getpagesize ();
21749 /* First, make a file with some known garbage in it. */
21750 data = (char *) malloc (pagesize);
21753 for (i = 0; i < pagesize; ++i)
21754 *(data + i) = rand ();
21756 fd = creat ("conftest.mmap", 0600);
21759 if (write (fd, data, pagesize) != pagesize)
21763 /* Next, try to mmap the file at a fixed address which already has
21764 something else allocated at it. If we can, also make sure that
21765 we see the same garbage. */
21766 fd = open ("conftest.mmap", O_RDWR);
21769 data2 = (char *) malloc (2 * pagesize);
21772 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21773 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21774 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21776 for (i = 0; i < pagesize; ++i)
21777 if (*(data + i) != *(data2 + i))
21780 /* Finally, make sure that changes to the mapped area do not
21781 percolate back to the file as seen by read(). (This is a bug on
21782 some variants of i386 svr4.0.) */
21783 for (i = 0; i < pagesize; ++i)
21784 *(data2 + i) = *(data2 + i) + 1;
21785 data3 = (char *) malloc (pagesize);
21788 if (read (fd, data3, pagesize) != pagesize)
21790 for (i = 0; i < pagesize; ++i)
21791 if (*(data + i) != *(data3 + i))
21797 rm -f conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21808 { (case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_try") 2>&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 ac_cv_func_mmap_fixed_mapped=yes
21819 echo "$as_me: program exited with status $ac_status" >&5
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ( exit $ac_status )
21824 ac_cv_func_mmap_fixed_mapped=no
21826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21831 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21832 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21833 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21835 cat >>confdefs.h <<\_ACEOF
21836 #define HAVE_MMAP 1
21840 rm -f conftest.mmap
21842 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21843 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21844 if test "${ac_cv_func_mmap_file+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21848 ac_cpp='$CPP $CPPFLAGS'
21849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21853 if test "$cross_compiling" = yes; then
21854 ac_cv_func_mmap_file=no
21856 cat >conftest.$ac_ext <<_ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21864 #include <sys/types.h>
21865 #include <sys/mman.h>
21873 fd = creat ("foo",0777);
21874 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21876 return (fd != (int) MAP_FAILED);
21881 rm -f conftest$ac_exeext
21882 if { (ac_try="$ac_link"
21883 case "(($ac_try" in
21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888 (eval "$ac_link") 2>&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21892 { (case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_try") 2>&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 ac_cv_func_mmap_file=yes
21903 echo "$as_me: program exited with status $ac_status" >&5
21904 echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21907 ( exit $ac_status )
21908 ac_cv_func_mmap_file=no
21910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21915 ac_cpp='$CPP $CPPFLAGS'
21916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21922 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21923 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21924 if test "$ac_cv_func_mmap_file" = yes; then
21926 cat >>confdefs.h <<\_ACEOF
21927 #define HAVE_MMAP_FILE
21934 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21935 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21936 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 if test "$llvm_cv_os_type" = "Interix" ; then
21940 ac_cv_need_dev_zero_for_mmap=yes
21942 ac_cv_need_dev_zero_for_mmap=no
21946 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21947 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21948 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21950 cat >>confdefs.h <<\_ACEOF
21951 #define NEED_DEV_ZERO_FOR_MMAP 1
21956 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21958 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21959 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21961 if test "$ac_cv_func_mmap_file" = "no"
21963 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21964 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21968 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21969 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21971 ac_cpp='$CXXCPP $CPPFLAGS'
21972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21976 cat >conftest.$ac_ext <<_ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21983 volatile unsigned long val = 1;
21984 __sync_synchronize();
21985 __sync_val_compare_and_swap(&val, 1, 0);
21986 __sync_add_and_fetch(&val, 1);
21987 __sync_sub_and_fetch(&val, 1);
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_link") 2>conftest.er1
22001 grep -v '^ *+' conftest.er1 >conftest.err
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } &&
22006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22007 { (case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_try") 2>&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; } &&
22016 { ac_try='test -s conftest$ac_exeext'
22017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; }; then
22027 ac_cpp='$CPP $CPPFLAGS'
22028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22032 { echo "$as_me:$LINENO: result: yes" >&5
22033 echo "${ECHO_T}yes" >&6; }
22035 cat >>confdefs.h <<\_ACEOF
22036 #define LLVM_MULTITHREADED 1
22040 echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22043 { echo "$as_me:$LINENO: result: no" >&5
22044 echo "${ECHO_T}no" >&6; }
22046 cat >>confdefs.h <<\_ACEOF
22047 #define LLVM_MULTITHREADED 0
22050 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22051 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22054 rm -f core conftest.err conftest.$ac_objext \
22055 conftest$ac_exeext conftest.$ac_ext
22058 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22059 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22060 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22061 if test "${llvm_cv_linux_mixed+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22065 ac_cpp='$CPP $CPPFLAGS'
22066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22070 cat >conftest.$ac_ext <<_ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22077 error: Not x86-64 even if uname says so!
22088 rm -f conftest.$ac_objext
22089 if { (ac_try="$ac_compile"
22090 case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_compile") 2>conftest.er1
22097 grep -v '^ *+' conftest.er1 >conftest.err
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } &&
22102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22103 { (case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_try") 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest.$ac_objext'
22113 { (case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_try") 2>&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }; then
22122 llvm_cv_linux_mixed=no
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 llvm_cv_linux_mixed=yes
22130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 ac_cpp='$CPP $CPPFLAGS'
22133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22139 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22140 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22142 if test "$llvm_cv_linux_mixed" = "yes"; then
22143 llvm_cv_target_arch="x86"
22149 for ac_func in __dso_handle
22151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22155 echo $ECHO_N "(cached) $ECHO_C" >&6
22157 cat >conftest.$ac_ext <<_ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22165 #define $ac_func innocuous_$ac_func
22167 /* System header to define __stub macros and hopefully few prototypes,
22168 which can conflict with char $ac_func (); below.
22169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22170 <limits.h> exists even on freestanding compilers. */
22173 # include <limits.h>
22175 # include <assert.h>
22180 /* Override any GCC internal prototype to avoid an error.
22181 Use char because int might match the return type of a GCC
22182 builtin and then its argument prototype would still apply. */
22187 /* The GNU C library defines this for functions which it implements
22188 to always fail with ENOSYS. Some functions are actually named
22189 something starting with __ and the normal name is an alias. */
22190 #if defined __stub_$ac_func || defined __stub___$ac_func
22197 return $ac_func ();
22202 rm -f conftest.$ac_objext conftest$ac_exeext
22203 if { (ac_try="$ac_link"
22204 case "(($ac_try" in
22205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22206 *) ac_try_echo=$ac_try;;
22208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22209 (eval "$ac_link") 2>conftest.er1
22211 grep -v '^ *+' conftest.er1 >conftest.err
22213 cat conftest.err >&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } &&
22216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22217 { (case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_try") 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; } &&
22226 { ac_try='test -s conftest$ac_exeext'
22227 { (case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_try") 2>&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; }; then
22236 eval "$as_ac_var=yes"
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22241 eval "$as_ac_var=no"
22244 rm -f core conftest.err conftest.$ac_objext \
22245 conftest$ac_exeext conftest.$ac_ext
22247 ac_res=`eval echo '${'$as_ac_var'}'`
22248 { echo "$as_me:$LINENO: result: $ac_res" >&5
22249 echo "${ECHO_T}$ac_res" >&6; }
22250 if test `eval echo '${'$as_ac_var'}'` = yes; then
22251 cat >>confdefs.h <<_ACEOF
22252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22259 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22260 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22261 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 llvm_cv_llvmgcc_dragonegg="no"
22265 if test -n "$LLVMGCC" ; then
22266 cp /dev/null conftest.c
22267 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22268 if test $? -eq 0 ; then
22269 llvm_cv_llvmgcc_dragonegg="yes"
22274 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22275 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22277 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22278 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22279 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22281 LLVMCC_EMITIR_FLAG="-emit-llvm"
22282 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22287 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22288 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22289 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
22292 llvm_cv_llvmgcc_sanity="no"
22293 if test -n "$LLVMGCC" ; then
22294 cp /dev/null conftest.c
22295 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22296 grep 'target datalayout =' > /dev/null 2>&1
22297 if test $? -eq 0 ; then
22298 llvm_cv_llvmgcc_sanity="yes"
22303 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22304 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22306 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22307 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22308 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22309 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22310 LLVMCC1=$llvmcc1path
22312 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22313 LLVMCC1PLUS=$llvmcc1pluspath
22315 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22316 LLVMGCCDIR=$llvmgccdir
22318 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22319 LLVMGCC_LANGS=$llvmgcclangs
22321 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22324 { echo "$as_me:$LINENO: result: ok" >&5
22325 echo "${ECHO_T}ok" >&6; }
22328 SHLIBEXT=$libltdl_cv_shlibext
22331 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22334 # Translate the various configuration directories and other basic
22335 # information into substitutions that will end up in Makefile.config.in
22336 # that these configured values can be used by the makefiles
22337 if test "${prefix}" = "NONE" ; then
22338 prefix="/usr/local"
22340 eval LLVM_PREFIX="${prefix}";
22341 eval LLVM_BINDIR="${prefix}/bin";
22342 eval LLVM_LIBDIR="${prefix}/lib";
22343 eval LLVM_DATADIR="${prefix}/share/llvm";
22344 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22345 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22346 eval LLVM_INCLUDEDIR="${prefix}/include";
22347 eval LLVM_INFODIR="${prefix}/info";
22348 eval LLVM_MANDIR="${prefix}/man";
22349 LLVM_CONFIGTIME=`date`
22361 # Place the various directores into the config.h file as #defines so that we
22362 # can know about the installation paths within LLVM.
22364 cat >>confdefs.h <<_ACEOF
22365 #define LLVM_PREFIX "$LLVM_PREFIX"
22369 cat >>confdefs.h <<_ACEOF
22370 #define LLVM_BINDIR "$LLVM_BINDIR"
22374 cat >>confdefs.h <<_ACEOF
22375 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22379 cat >>confdefs.h <<_ACEOF
22380 #define LLVM_DATADIR "$LLVM_DATADIR"
22384 cat >>confdefs.h <<_ACEOF
22385 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22389 cat >>confdefs.h <<_ACEOF
22390 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22394 cat >>confdefs.h <<_ACEOF
22395 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22399 cat >>confdefs.h <<_ACEOF
22400 #define LLVM_INFODIR "$LLVM_INFODIR"
22404 cat >>confdefs.h <<_ACEOF
22405 #define LLVM_MANDIR "$LLVM_MANDIR"
22409 cat >>confdefs.h <<_ACEOF
22410 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22414 cat >>confdefs.h <<_ACEOF
22415 #define LLVM_HOSTTRIPLE "$host"
22419 # Determine which bindings to build.
22420 if test "$BINDINGS_TO_BUILD" = auto ; then
22421 BINDINGS_TO_BUILD=""
22422 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22423 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22426 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22429 # This isn't really configurey, but it avoids having to repeat the list in
22434 # Do any work necessary to ensure that bindings have what they need.
22435 binding_prereqs_failed=0
22436 for a_binding in $BINDINGS_TO_BUILD ; do
22437 case "$a_binding" in
22439 if test "x$OCAMLC" = x ; then
22440 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22441 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22442 binding_prereqs_failed=1
22444 if test "x$OCAMLDEP" = x ; then
22445 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22446 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22447 binding_prereqs_failed=1
22449 if test "x$OCAMLOPT" = x ; then
22450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22451 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22453 if test "x$with_ocaml_libdir" != xauto ; then
22454 OCAML_LIBDIR=$with_ocaml_libdir
22457 ocaml_stdlib="`"$OCAMLC" -where`"
22458 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22460 # ocaml stdlib is beneath our prefix; use stdlib
22461 OCAML_LIBDIR=$ocaml_stdlib
22464 # ocaml stdlib is outside our prefix; use libdir/ocaml
22465 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22472 if test "$binding_prereqs_failed" = 1 ; then
22473 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22474 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22475 { (exit 1); exit 1; }; }
22478 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22479 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22480 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22484 ac_cpp='$CXXCPP $CPPFLAGS'
22485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22489 oldcxxflags="$CXXFLAGS"
22490 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22491 cat >conftest.$ac_ext <<_ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22506 rm -f conftest.$ac_objext
22507 if { (ac_try="$ac_compile"
22508 case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_compile") 2>conftest.er1
22515 grep -v '^ *+' conftest.er1 >conftest.err
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } &&
22520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22521 { (case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_try") 2>&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; } &&
22530 { ac_try='test -s conftest.$ac_objext'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }; then
22540 llvm_cv_cxx_visibility_inlines_hidden=yes
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 llvm_cv_cxx_visibility_inlines_hidden=no
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 CXXFLAGS="$oldcxxflags"
22551 ac_cpp='$CPP $CPPFLAGS'
22552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22558 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22559 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22560 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22561 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22564 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22569 if test "$llvm_cv_link_use_r" = "yes" ; then
22576 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22577 RDYNAMIC="-Wl,-export-dynamic"
22584 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22591 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22593 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22595 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22597 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22599 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22602 ac_config_files="$ac_config_files Makefile.config"
22605 ac_config_files="$ac_config_files llvm.spec"
22608 ac_config_files="$ac_config_files docs/doxygen.cfg"
22610 if test -f ${srcdir}/tools/clang/README.txt; then
22611 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22615 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22618 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22621 ac_config_commands="$ac_config_commands setup"
22623 ac_config_commands="$ac_config_commands Makefile"
22626 ac_config_commands="$ac_config_commands Makefile.common"
22629 ac_config_commands="$ac_config_commands examples/Makefile"
22632 ac_config_commands="$ac_config_commands lib/Makefile"
22635 ac_config_commands="$ac_config_commands runtime/Makefile"
22638 ac_config_commands="$ac_config_commands test/Makefile"
22641 ac_config_commands="$ac_config_commands test/Makefile.tests"
22644 ac_config_commands="$ac_config_commands unittests/Makefile"
22647 ac_config_commands="$ac_config_commands tools/Makefile"
22650 ac_config_commands="$ac_config_commands utils/Makefile"
22653 ac_config_commands="$ac_config_commands projects/Makefile"
22656 ac_config_commands="$ac_config_commands bindings/Makefile"
22659 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22663 cat >confcache <<\_ACEOF
22664 # This file is a shell script that caches the results of configure
22665 # tests run on this system so they can be shared between configure
22666 # scripts and configure runs, see configure's option --config-cache.
22667 # It is not useful on other systems. If it contains results you don't
22668 # want to keep, you may remove or edit it.
22670 # config.status only pays attention to the cache file if you give it
22671 # the --recheck option to rerun configure.
22673 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22674 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22675 # following values.
22679 # The following way of writing the cache mishandles newlines in values,
22680 # but we know of no workaround that is simple, portable, and efficient.
22681 # So, we kill variables containing newlines.
22682 # Ultrix sh set writes to stderr and can't be redirected directly,
22683 # and sets the high bit in the cache file unless we assign to the vars.
22685 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22686 eval ac_val=\$$ac_var
22690 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22691 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22694 _ | IFS | as_nl) ;; #(
22695 *) $as_unset $ac_var ;;
22701 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22702 *${as_nl}ac_space=\ *)
22703 # `set' does not quote correctly, so add quotes (double-quote
22704 # substitution turns \\\\ into \\, and sed turns \\ into \).
22707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22710 # `set' quotes correctly as required by POSIX, so do not add quotes.
22711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22724 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22725 if test -w "$cache_file"; then
22726 test "x$cache_file" != "x/dev/null" &&
22727 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22728 echo "$as_me: updating cache $cache_file" >&6;}
22729 cat confcache >$cache_file
22731 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22732 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22737 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22738 # Let make expand exec_prefix.
22739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22741 DEFS=-DHAVE_CONFIG_H
22745 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22746 # 1. Remove the extension, and $U if already installed.
22747 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22748 ac_i=`echo "$ac_i" | sed "$ac_script"`
22749 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22750 # will be set to the directory where LIBOBJS objects are built.
22751 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22752 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22754 LIBOBJS=$ac_libobjs
22756 LTLIBOBJS=$ac_ltlibobjs
22759 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22760 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22761 Usually this means the macro was only invoked conditionally." >&5
22762 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22763 Usually this means the macro was only invoked conditionally." >&2;}
22764 { (exit 1); exit 1; }; }
22766 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22767 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22768 Usually this means the macro was only invoked conditionally." >&5
22769 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22770 Usually this means the macro was only invoked conditionally." >&2;}
22771 { (exit 1); exit 1; }; }
22774 : ${CONFIG_STATUS=./config.status}
22775 ac_clean_files_save=$ac_clean_files
22776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22777 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22778 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22779 cat >$CONFIG_STATUS <<_ACEOF
22781 # Generated by $as_me.
22782 # Run this file to recreate the current configuration.
22783 # Compiler output produced by configure, useful for debugging
22784 # configure, is in config.log if it exists.
22787 ac_cs_recheck=false
22789 SHELL=\${CONFIG_SHELL-$SHELL}
22792 cat >>$CONFIG_STATUS <<\_ACEOF
22793 ## --------------------- ##
22794 ## M4sh Initialization. ##
22795 ## --------------------- ##
22797 # Be Bourne compatible
22798 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22801 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22802 # is contrary to our usage. Disable this feature.
22803 alias -g '${1+"$@"}'='"$@"'
22804 setopt NO_GLOB_SUBST
22806 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22808 BIN_SH=xpg4; export BIN_SH # for Tru64
22809 DUALCASE=1; export DUALCASE # for MKS sh
22813 # Avoid depending upon Character Ranges.
22814 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22815 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22816 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22817 as_cr_digits='0123456789'
22818 as_cr_alnum=$as_cr_Letters$as_cr_digits
22820 # The user is always right.
22821 if test "${PATH_SEPARATOR+set}" != set; then
22822 echo "#! /bin/sh" >conf$$.sh
22823 echo "exit 0" >>conf$$.sh
22825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22833 # Support unset when possible.
22834 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22842 # We need space, tab and new line, in precisely that order. Quoting is
22843 # there to prevent editors from complaining about space-tab.
22844 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22845 # splitting by setting IFS to empty value.)
22850 # Find who we are. Look in the path if we contain no directory separator.
22852 *[\\/]* ) as_myself=$0 ;;
22853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22854 for as_dir in $PATH
22857 test -z "$as_dir" && as_dir=.
22858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22864 # We did not find ourselves, most probably we were run as `sh COMMAND'
22865 # in which case we are not to be found in the path.
22866 if test "x$as_myself" = x; then
22869 if test ! -f "$as_myself"; then
22870 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22871 { (exit 1); exit 1; }
22874 # Work around bugs in pre-3.0 UWIN ksh.
22875 for as_var in ENV MAIL MAILPATH
22876 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22884 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22885 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22886 LC_TELEPHONE LC_TIME
22888 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22889 eval $as_var=C; export $as_var
22891 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22895 # Required to use basename.
22896 if expr a : '\(a\)' >/dev/null 2>&1 &&
22897 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22903 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22904 as_basename=basename
22910 # Name of the executable.
22911 as_me=`$as_basename -- "$0" ||
22912 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22913 X"$0" : 'X\(//\)$' \| \
22914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22916 sed '/^.*\/\([^/][^/]*\)\/*$/{
22935 as_lineno_1=$LINENO
22936 as_lineno_2=$LINENO
22937 test "x$as_lineno_1" != "x$as_lineno_2" &&
22938 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22940 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22941 # uniformly replaced by the line number. The first 'sed' inserts a
22942 # line-number line after each line using $LINENO; the second 'sed'
22943 # does the real work. The second script uses 'N' to pair each
22944 # line-number line with the line containing $LINENO, and appends
22945 # trailing '-' during substitution so that $LINENO is not a special
22946 # case at line end.
22947 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22948 # scripts with optimization help from Paolo Bonzini. Blame Lee
22949 # E. McMahon (1931-1989) for sed's syntax. :-)
22961 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22964 ' >$as_me.lineno &&
22965 chmod +x "$as_me.lineno" ||
22966 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22967 { (exit 1); exit 1; }; }
22969 # Don't try to exec as it changes $[0], causing all sort of problems
22970 # (the dirname of $[0] is not the place where we might find the
22971 # original and so on. Autoconf is especially sensitive to this).
22972 . "./$as_me.lineno"
22973 # Exit status is that of the last command.
22978 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22984 ECHO_C= ECHO_N= ECHO_T=
22985 case `echo -n x` in
22987 case `echo 'x\c'` in
22988 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22995 if expr a : '\(a\)' >/dev/null 2>&1 &&
22996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23002 rm -f conf$$ conf$$.exe conf$$.file
23003 if test -d conf$$.dir; then
23004 rm -f conf$$.dir/conf$$.file
23010 if ln -s conf$$.file conf$$ 2>/dev/null; then
23012 # ... but there are two gotchas:
23013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23015 # In both cases, we have to default to `cp -p'.
23016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23018 elif ln conf$$.file conf$$ 2>/dev/null; then
23023 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23024 rmdir conf$$.dir 2>/dev/null
23026 if mkdir -p . 2>/dev/null; then
23029 test -d ./-p && rmdir ./-p
23033 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23034 # systems may use methods other than mode bits to determine executability.
23035 cat >conf$$.file <<_ASEOF
23039 chmod +x conf$$.file
23040 if test -x conf$$.file >/dev/null 2>&1; then
23041 as_executable_p="test -x"
23047 # Sed expression to map a string onto a valid CPP name.
23048 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23050 # Sed expression to map a string onto a valid variable name.
23051 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23056 # Save the log message, to keep $[0] and so on meaningful, and to
23057 # report actual input values of CONFIG_FILES etc. instead of their
23058 # values after options handling.
23060 This file was extended by llvm $as_me 3.0svn, which was
23061 generated by GNU Autoconf 2.60. Invocation command line was
23063 CONFIG_FILES = $CONFIG_FILES
23064 CONFIG_HEADERS = $CONFIG_HEADERS
23065 CONFIG_LINKS = $CONFIG_LINKS
23066 CONFIG_COMMANDS = $CONFIG_COMMANDS
23069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23074 cat >>$CONFIG_STATUS <<_ACEOF
23075 # Files that config.status was made for.
23076 config_files="$ac_config_files"
23077 config_headers="$ac_config_headers"
23078 config_commands="$ac_config_commands"
23082 cat >>$CONFIG_STATUS <<\_ACEOF
23084 \`$as_me' instantiates files from templates according to the
23085 current configuration.
23087 Usage: $0 [OPTIONS] [FILE]...
23089 -h, --help print this help, then exit
23090 -V, --version print version number, then exit
23091 -q, --quiet do not print progress messages
23092 -d, --debug don't remove temporary files
23093 --recheck update $as_me by reconfiguring in the same conditions
23094 --file=FILE[:TEMPLATE]
23095 instantiate the configuration file FILE
23096 --header=FILE[:TEMPLATE]
23097 instantiate the configuration header FILE
23099 Configuration files:
23102 Configuration headers:
23105 Configuration commands:
23108 Report bugs to <bug-autoconf@gnu.org>."
23111 cat >>$CONFIG_STATUS <<_ACEOF
23113 llvm config.status 3.0svn
23114 configured by $0, generated by GNU Autoconf 2.60,
23115 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23117 Copyright (C) 2006 Free Software Foundation, Inc.
23118 This config.status script is free software; the Free Software Foundation
23119 gives unlimited permission to copy, distribute and modify it."
23126 cat >>$CONFIG_STATUS <<\_ACEOF
23127 # If no file are specified by the user, then we need to provide default
23128 # value. By we need to know if files were specified by the user.
23134 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23135 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23146 # Handling of the options.
23147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23149 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23150 echo "$ac_cs_version"; exit ;;
23151 --debug | --debu | --deb | --de | --d | -d )
23153 --file | --fil | --fi | --f )
23155 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23156 ac_need_defaults=false;;
23157 --header | --heade | --head | --hea )
23159 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23160 ac_need_defaults=false;;
23162 # Conflict between --help and --header
23163 { echo "$as_me: error: ambiguous option: $1
23164 Try \`$0 --help' for more information." >&2
23165 { (exit 1); exit 1; }; };;
23166 --help | --hel | -h )
23167 echo "$ac_cs_usage"; exit ;;
23168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23169 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23172 # This is an error.
23173 -*) { echo "$as_me: error: unrecognized option: $1
23174 Try \`$0 --help' for more information." >&2
23175 { (exit 1); exit 1; }; } ;;
23177 *) ac_config_targets="$ac_config_targets $1"
23178 ac_need_defaults=false ;;
23184 ac_configure_extra_args=
23186 if $ac_cs_silent; then
23188 ac_configure_extra_args="$ac_configure_extra_args --silent"
23192 cat >>$CONFIG_STATUS <<_ACEOF
23193 if \$ac_cs_recheck; then
23194 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23195 CONFIG_SHELL=$SHELL
23196 export CONFIG_SHELL
23197 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23201 cat >>$CONFIG_STATUS <<\_ACEOF
23205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23206 ## Running $as_me. ##
23212 cat >>$CONFIG_STATUS <<_ACEOF
23216 llvm_src="${srcdir}"
23220 cat >>$CONFIG_STATUS <<\_ACEOF
23222 # Handling of arguments.
23223 for ac_config_target in $ac_config_targets
23225 case $ac_config_target in
23226 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23227 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23228 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23229 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23230 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23231 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23232 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23233 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23234 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23235 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23236 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23237 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23238 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23239 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23240 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23241 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23242 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23243 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23244 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23245 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23246 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23247 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23248 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23249 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23250 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23251 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23252 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23254 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23255 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23256 { (exit 1); exit 1; }; };;
23261 # If the user did not use the arguments to specify the items to instantiate,
23262 # then the envvar interface is used. Set only those that are not.
23263 # We use the long form for the default assignment because of an extremely
23264 # bizarre bug on SunOS 4.1.3.
23265 if $ac_need_defaults; then
23266 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23267 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23268 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23271 # Have a temporary directory for convenience. Make it in the build tree
23272 # simply because there is no reason against having it here, and in addition,
23273 # creating and moving files from /tmp can sometimes cause problems.
23274 # Hook for its removal unless debugging.
23275 # Note that there is a small window in which the directory will not be cleaned:
23276 # after its creation but before its name has been assigned to `$tmp'.
23280 trap 'exit_status=$?
23281 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23283 trap '{ (exit 1); exit 1; }' 1 2 13 15
23285 # Create a (secure) tmp directory for tmp files.
23288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23289 test -n "$tmp" && test -d "$tmp"
23292 tmp=./conf$$-$RANDOM
23293 (umask 077 && mkdir "$tmp")
23296 echo "$me: cannot create a temporary directory in ." >&2
23297 { (exit 1); exit 1; }
23301 # Set up the sed scripts for CONFIG_FILES section.
23304 # No need to generate the scripts if there are no CONFIG_FILES.
23305 # This happens for instance when ./config.status config.h
23306 if test -n "$CONFIG_FILES"; then
23313 for ac_last_try in false false false false false :; do
23314 cat >conf$$subs.sed <<_ACEOF
23315 SHELL!$SHELL$ac_delim
23316 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23317 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23318 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23319 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23320 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23321 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23322 exec_prefix!$exec_prefix$ac_delim
23323 prefix!$prefix$ac_delim
23324 program_transform_name!$program_transform_name$ac_delim
23325 bindir!$bindir$ac_delim
23326 sbindir!$sbindir$ac_delim
23327 libexecdir!$libexecdir$ac_delim
23328 datarootdir!$datarootdir$ac_delim
23329 datadir!$datadir$ac_delim
23330 sysconfdir!$sysconfdir$ac_delim
23331 sharedstatedir!$sharedstatedir$ac_delim
23332 localstatedir!$localstatedir$ac_delim
23333 includedir!$includedir$ac_delim
23334 oldincludedir!$oldincludedir$ac_delim
23335 docdir!$docdir$ac_delim
23336 infodir!$infodir$ac_delim
23337 htmldir!$htmldir$ac_delim
23338 dvidir!$dvidir$ac_delim
23339 pdfdir!$pdfdir$ac_delim
23340 psdir!$psdir$ac_delim
23341 libdir!$libdir$ac_delim
23342 localedir!$localedir$ac_delim
23343 mandir!$mandir$ac_delim
23344 DEFS!$DEFS$ac_delim
23345 ECHO_C!$ECHO_C$ac_delim
23346 ECHO_N!$ECHO_N$ac_delim
23347 ECHO_T!$ECHO_T$ac_delim
23348 LIBS!$LIBS$ac_delim
23349 build_alias!$build_alias$ac_delim
23350 host_alias!$host_alias$ac_delim
23351 target_alias!$target_alias$ac_delim
23352 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23353 subdirs!$subdirs$ac_delim
23354 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23355 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23356 build!$build$ac_delim
23357 build_cpu!$build_cpu$ac_delim
23358 build_vendor!$build_vendor$ac_delim
23359 build_os!$build_os$ac_delim
23360 host!$host$ac_delim
23361 host_cpu!$host_cpu$ac_delim
23362 host_vendor!$host_vendor$ac_delim
23363 host_os!$host_os$ac_delim
23364 target!$target$ac_delim
23365 target_cpu!$target_cpu$ac_delim
23366 target_vendor!$target_vendor$ac_delim
23367 target_os!$target_os$ac_delim
23369 HOST_OS!$HOST_OS$ac_delim
23370 TARGET_OS!$TARGET_OS$ac_delim
23371 LINKALL!$LINKALL$ac_delim
23372 NOLINKALL!$NOLINKALL$ac_delim
23373 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23374 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23375 ARCH!$ARCH$ac_delim
23376 ENDIAN!$ENDIAN$ac_delim
23378 CFLAGS!$CFLAGS$ac_delim
23379 LDFLAGS!$LDFLAGS$ac_delim
23380 CPPFLAGS!$CPPFLAGS$ac_delim
23381 ac_ct_CC!$ac_ct_CC$ac_delim
23382 EXEEXT!$EXEEXT$ac_delim
23383 OBJEXT!$OBJEXT$ac_delim
23385 GREP!$GREP$ac_delim
23386 EGREP!$EGREP$ac_delim
23387 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23388 BUILD_CC!$BUILD_CC$ac_delim
23389 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23390 BUILD_CXX!$BUILD_CXX$ac_delim
23391 CVSBUILD!$CVSBUILD$ac_delim
23392 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23393 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23394 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23395 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23396 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23397 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23398 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23400 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23401 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23402 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23403 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23404 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23405 ENABLE_PIC!$ENABLE_PIC$ac_delim
23406 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23407 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23408 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23409 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23410 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23411 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23414 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23416 elif $ac_last_try; then
23417 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23418 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23419 { (exit 1); exit 1; }; }
23421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23425 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23426 if test -n "$ac_eof"; then
23427 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23428 ac_eof=`expr $ac_eof + 1`
23431 cat >>$CONFIG_STATUS <<_ACEOF
23432 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23436 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23437 s/^/s,@/; s/!/@,|#_!!_#|/
23440 s/'"$ac_delim"'$/,g/; t
23442 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23443 ' >>$CONFIG_STATUS <conf$$subs.sed
23444 rm -f conf$$subs.sed
23445 cat >>$CONFIG_STATUS <<_ACEOF
23451 for ac_last_try in false false false false false :; do
23452 cat >conf$$subs.sed <<_ACEOF
23453 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23454 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23455 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23456 CLANGPATH!$CLANGPATH$ac_delim
23457 CLANGXXPATH!$CLANGXXPATH$ac_delim
23458 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23459 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23460 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23461 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23462 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23464 CXXFLAGS!$CXXFLAGS$ac_delim
23465 ac_ct_CXX!$ac_ct_CXX$ac_delim
23467 ifGNUmake!$ifGNUmake$ac_delim
23468 LN_S!$LN_S$ac_delim
23471 DATE!$DATE$ac_delim
23472 FIND!$FIND$ac_delim
23473 MKDIR!$MKDIR$ac_delim
23475 RANLIB!$RANLIB$ac_delim
23480 BINPWD!$BINPWD$ac_delim
23481 GRAPHVIZ!$GRAPHVIZ$ac_delim
23484 NEATO!$NEATO$ac_delim
23485 TWOPI!$TWOPI$ac_delim
23486 CIRCO!$CIRCO$ac_delim
23488 DOTTY!$DOTTY$ac_delim
23489 XDOT_PY!$XDOT_PY$ac_delim
23490 PERL!$PERL$ac_delim
23491 HAVE_PERL!$HAVE_PERL$ac_delim
23492 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23493 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23494 INSTALL_DATA!$INSTALL_DATA$ac_delim
23495 BZIP2!$BZIP2$ac_delim
23497 DOXYGEN!$DOXYGEN$ac_delim
23498 GROFF!$GROFF$ac_delim
23499 GZIPBIN!$GZIPBIN$ac_delim
23500 POD2HTML!$POD2HTML$ac_delim
23501 POD2MAN!$POD2MAN$ac_delim
23502 PDFROFF!$PDFROFF$ac_delim
23503 RUNTEST!$RUNTEST$ac_delim
23504 TCLSH!$TCLSH$ac_delim
23506 OCAMLC!$OCAMLC$ac_delim
23507 OCAMLOPT!$OCAMLOPT$ac_delim
23508 OCAMLDEP!$OCAMLDEP$ac_delim
23509 OCAMLDOC!$OCAMLDOC$ac_delim
23511 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23512 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23513 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23514 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23515 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23516 LIBADD_DL!$LIBADD_DL$ac_delim
23517 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23518 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23519 LLVMGCC!$LLVMGCC$ac_delim
23520 LLVMGXX!$LLVMGXX$ac_delim
23521 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23522 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23523 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23524 USE_UDIS86!$USE_UDIS86$ac_delim
23525 USE_OPROFILE!$USE_OPROFILE$ac_delim
23526 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23527 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23528 MMAP_FILE!$MMAP_FILE$ac_delim
23529 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23530 LLVMCC1!$LLVMCC1$ac_delim
23531 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23532 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23533 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23534 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23535 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23536 SHLIBEXT!$SHLIBEXT$ac_delim
23537 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23538 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23539 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23540 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23541 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23542 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23543 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23544 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23545 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23546 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23547 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23548 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23549 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23552 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23554 elif $ac_last_try; then
23555 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23556 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23557 { (exit 1); exit 1; }; }
23559 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23563 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23564 if test -n "$ac_eof"; then
23565 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23566 ac_eof=`expr $ac_eof + 1`
23569 cat >>$CONFIG_STATUS <<_ACEOF
23570 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23574 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23575 s/^/s,@/; s/!/@,|#_!!_#|/
23578 s/'"$ac_delim"'$/,g/; t
23580 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23581 ' >>$CONFIG_STATUS <conf$$subs.sed
23582 rm -f conf$$subs.sed
23583 cat >>$CONFIG_STATUS <<_ACEOF
23589 for ac_last_try in false false false false false :; do
23590 cat >conf$$subs.sed <<_ACEOF
23591 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23592 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23593 RPATH!$RPATH$ac_delim
23594 RDYNAMIC!$RDYNAMIC$ac_delim
23595 LIBOBJS!$LIBOBJS$ac_delim
23596 LTLIBOBJS!$LTLIBOBJS$ac_delim
23599 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23601 elif $ac_last_try; then
23602 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23603 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23604 { (exit 1); exit 1; }; }
23606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23610 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23611 if test -n "$ac_eof"; then
23612 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23613 ac_eof=`expr $ac_eof + 1`
23616 cat >>$CONFIG_STATUS <<_ACEOF
23617 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23621 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23622 s/^/s,@/; s/!/@,|#_!!_#|/
23625 s/'"$ac_delim"'$/,g/; t
23627 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23628 ' >>$CONFIG_STATUS <conf$$subs.sed
23629 rm -f conf$$subs.sed
23630 cat >>$CONFIG_STATUS <<_ACEOF
23637 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23638 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23639 # trailing colons and then remove the whole line if VPATH becomes empty
23640 # (actually we leave an empty line to preserve line numbers).
23641 if test "x$srcdir" = x.; then
23642 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23643 s/:*\$(srcdir):*/:/
23644 s/:*\${srcdir}:*/:/
23646 s/^\([^=]*=[ ]*\):*/\1/
23652 cat >>$CONFIG_STATUS <<\_ACEOF
23653 fi # test -n "$CONFIG_FILES"
23656 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23659 :[FHLC]) ac_mode=$ac_tag; continue;;
23661 case $ac_mode$ac_tag in
23663 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23664 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23665 { (exit 1); exit 1; }; };;
23666 :[FH]-) ac_tag=-:-;;
23667 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23684 -) ac_f="$tmp/stdin";;
23685 *) # Look for the file first in the build tree, then in the source tree
23686 # (if the path is not absolute). The absolute path cannot be DOS-style,
23687 # because $ac_f cannot contain `:'.
23691 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23693 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23694 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23695 { (exit 1); exit 1; }; };;
23697 ac_file_inputs="$ac_file_inputs $ac_f"
23700 # Let's still pretend it is `configure' which instantiates (i.e., don't
23701 # use $as_me), people would be surprised to read:
23702 # /* config.h. Generated by config.status. */
23703 configure_input="Generated from "`IFS=:
23704 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23705 if test x"$ac_file" != x-; then
23706 configure_input="$ac_file. $configure_input"
23707 { echo "$as_me:$LINENO: creating $ac_file" >&5
23708 echo "$as_me: creating $ac_file" >&6;}
23712 *:-:* | *:-) cat >"$tmp/stdin";;
23717 ac_dir=`$as_dirname -- "$ac_file" ||
23718 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23719 X"$ac_file" : 'X\(//\)[^/]' \| \
23720 X"$ac_file" : 'X\(//\)$' \| \
23721 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23727 /^X\(\/\/\)[^/].*/{
23742 -*) as_dir=./$as_dir;;
23744 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23748 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23749 *) as_qdir=$as_dir;;
23751 as_dirs="'$as_qdir' $as_dirs"
23752 as_dir=`$as_dirname -- "$as_dir" ||
23753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23754 X"$as_dir" : 'X\(//\)[^/]' \| \
23755 X"$as_dir" : 'X\(//\)$' \| \
23756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23762 /^X\(\/\/\)[^/].*/{
23775 test -d "$as_dir" && break
23777 test -z "$as_dirs" || eval "mkdir $as_dirs"
23778 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23779 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23780 { (exit 1); exit 1; }; }; }
23784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23786 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23787 # A ".." for each directory in $ac_dir_suffix.
23788 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23789 case $ac_top_builddir_sub in
23790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23794 ac_abs_top_builddir=$ac_pwd
23795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23796 # for backward compatibility:
23797 ac_top_builddir=$ac_top_build_prefix
23800 .) # We are building in place.
23802 ac_top_srcdir=$ac_top_builddir_sub
23803 ac_abs_top_srcdir=$ac_pwd ;;
23804 [\\/]* | ?:[\\/]* ) # Absolute name.
23805 ac_srcdir=$srcdir$ac_dir_suffix;
23806 ac_top_srcdir=$srcdir
23807 ac_abs_top_srcdir=$srcdir ;;
23808 *) # Relative name.
23809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23810 ac_top_srcdir=$ac_top_build_prefix$srcdir
23811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23824 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23828 cat >>$CONFIG_STATUS <<\_ACEOF
23829 # If the template does not know about datarootdir, expand it.
23830 # FIXME: This hack should be removed a few years after 2.60.
23831 ac_datarootdir_hack=; ac_datarootdir_seen=
23833 case `sed -n '/datarootdir/ {
23842 ' $ac_file_inputs` in
23843 *datarootdir*) ac_datarootdir_seen=yes;;
23844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23845 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23846 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23848 cat >>$CONFIG_STATUS <<_ACEOF
23849 ac_datarootdir_hack='
23850 s&@datadir@&$datadir&g
23851 s&@docdir@&$docdir&g
23852 s&@infodir@&$infodir&g
23853 s&@localedir@&$localedir&g
23854 s&@mandir@&$mandir&g
23855 s&\\\${datarootdir}&$datarootdir&g' ;;
23859 # Neutralize VPATH when `$srcdir' = `.'.
23860 # Shell code in configure.ac might set extrasub.
23861 # FIXME: do we really want to maintain this feature?
23862 cat >>$CONFIG_STATUS <<_ACEOF
23866 cat >>$CONFIG_STATUS <<\_ACEOF
23868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23869 s&@configure_input@&$configure_input&;t t
23870 s&@top_builddir@&$ac_top_builddir_sub&;t t
23871 s&@srcdir@&$ac_srcdir&;t t
23872 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23873 s&@top_srcdir@&$ac_top_srcdir&;t t
23874 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23875 s&@builddir@&$ac_builddir&;t t
23876 s&@abs_builddir@&$ac_abs_builddir&;t t
23877 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23878 s&@INSTALL@&$ac_INSTALL&;t t
23879 $ac_datarootdir_hack
23880 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23882 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23883 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23884 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23885 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23886 which seems to be undefined. Please make sure it is defined." >&5
23887 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23888 which seems to be undefined. Please make sure it is defined." >&2;}
23892 -) cat "$tmp/out"; rm -f "$tmp/out";;
23893 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23902 # Transform confdefs.h into a sed script `conftest.defines', that
23903 # substitutes the proper values into config.h.in to produce config.h.
23904 rm -f conftest.defines conftest.tail
23905 # First, append a space to every undef/define line, to ease matching.
23906 echo 's/$/ /' >conftest.defines
23907 # Then, protect against being on the right side of a sed subst, or in
23908 # an unquoted here document, in config.status. If some macros were
23909 # called several times there might be several #defines for the same
23910 # symbol, which is useless. But do not sort them, since the last
23911 # AC_DEFINE must be honored.
23912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23913 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23914 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23915 # PARAMS is the parameter list in the macro definition--in most cases, it's
23916 # just an empty string.
23917 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23918 ac_dB='\\)[ (].*,\\1define\\2'
23926 s/^[ ]*#[ ]*define[ ][ ]*//
23931 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23932 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23933 ' >>conftest.defines
23935 # Remove the space that was appended to ease matching.
23936 # Then replace #undef with comments. This is necessary, for
23937 # example, in the case of _POSIX_SOURCE, which is predefined and required
23938 # on some systems where configure will not decide to define it.
23939 # (The regexp can be short, since the line contains either #define or #undef.)
23941 s,^[ #]*u.*,/* & */,' >>conftest.defines
23943 # Break up conftest.defines:
23944 ac_max_sed_lines=50
23946 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23947 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23948 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23950 ac_in='$ac_file_inputs'
23951 ac_out='"$tmp/out1"'
23952 ac_nxt='"$tmp/out2"'
23956 # Write a here document:
23957 cat >>$CONFIG_STATUS <<_ACEOF
23958 # First, check the format of the line:
23959 cat >"\$tmp/defines.sed" <<\\CEOF
23960 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23961 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23965 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23967 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23968 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23969 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23970 grep . conftest.tail >/dev/null || break
23971 rm -f conftest.defines
23972 mv conftest.tail conftest.defines
23974 rm -f conftest.defines conftest.tail
23976 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23977 cat >>$CONFIG_STATUS <<\_ACEOF
23978 if test x"$ac_file" != x-; then
23979 echo "/* $configure_input */" >"$tmp/config.h"
23980 cat "$ac_result" >>"$tmp/config.h"
23981 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23982 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23983 echo "$as_me: $ac_file is unchanged" >&6;}
23986 mv "$tmp/config.h" $ac_file
23989 echo "/* $configure_input */"
23995 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23996 echo "$as_me: executing $ac_file commands" >&6;}
24001 case $ac_file$ac_mode in
24002 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24004 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24006 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24008 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24010 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24012 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24014 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24016 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24018 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24020 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24022 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24024 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24026 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24033 { (exit 0); exit 0; }
24035 chmod +x $CONFIG_STATUS
24036 ac_clean_files=$ac_clean_files_save
24039 # configure is writing to config.log, and then calls config.status.
24040 # config.status does its own redirection, appending to config.log.
24041 # Unfortunately, on DOS this fails, as config.log is still kept open
24042 # by configure, so config.status won't be able to write to it; its
24043 # output is simply discarded. So we exec the FD to /dev/null,
24044 # effectively closing config.log, so it can be properly (re)opened and
24045 # appended to by config.status. When coming back to configure, we
24046 # need to make the FD available again.
24047 if test "$no_create" != yes; then
24049 ac_config_status_args=
24050 test "$silent" = yes &&
24051 ac_config_status_args="$ac_config_status_args --quiet"
24053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24056 # would make configure fail if this is the last instruction.
24057 $ac_cs_success || { (exit 1); exit 1; }
24061 # CONFIG_SUBDIRS section.
24063 if test "$no_recursion" != yes; then
24065 # Remove --cache-file and --srcdir arguments so they do not pile up.
24066 ac_sub_configure_args=
24068 eval "set x $ac_configure_args"
24072 if test -n "$ac_prev"; then
24077 -cache-file | --cache-file | --cache-fil | --cache-fi \
24078 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24079 ac_prev=cache_file ;;
24080 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24081 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24084 --config-cache | -C)
24086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24096 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24098 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24102 # Always prepend --prefix to ensure using the same prefix
24103 # in subdir configurations.
24104 ac_arg="--prefix=$prefix"
24106 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24108 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24111 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24113 # Do not complain, so a configure script can configure whichever
24114 # parts of a large source tree are present.
24115 test -d "$srcdir/$ac_dir" || continue
24117 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24118 echo "$as_me:$LINENO: $ac_msg" >&5
24122 -*) as_dir=./$as_dir;;
24124 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24128 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24129 *) as_qdir=$as_dir;;
24131 as_dirs="'$as_qdir' $as_dirs"
24132 as_dir=`$as_dirname -- "$as_dir" ||
24133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24134 X"$as_dir" : 'X\(//\)[^/]' \| \
24135 X"$as_dir" : 'X\(//\)$' \| \
24136 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24142 /^X\(\/\/\)[^/].*/{
24155 test -d "$as_dir" && break
24157 test -z "$as_dirs" || eval "mkdir $as_dirs"
24158 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24159 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24160 { (exit 1); exit 1; }; }; }
24164 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24166 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24167 # A ".." for each directory in $ac_dir_suffix.
24168 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24169 case $ac_top_builddir_sub in
24170 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24171 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24174 ac_abs_top_builddir=$ac_pwd
24175 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24176 # for backward compatibility:
24177 ac_top_builddir=$ac_top_build_prefix
24180 .) # We are building in place.
24182 ac_top_srcdir=$ac_top_builddir_sub
24183 ac_abs_top_srcdir=$ac_pwd ;;
24184 [\\/]* | ?:[\\/]* ) # Absolute name.
24185 ac_srcdir=$srcdir$ac_dir_suffix;
24186 ac_top_srcdir=$srcdir
24187 ac_abs_top_srcdir=$srcdir ;;
24188 *) # Relative name.
24189 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24190 ac_top_srcdir=$ac_top_build_prefix$srcdir
24191 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24193 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24198 # Check for guested configure; otherwise get Cygnus style configure.
24199 if test -f "$ac_srcdir/configure.gnu"; then
24200 ac_sub_configure=$ac_srcdir/configure.gnu
24201 elif test -f "$ac_srcdir/configure"; then
24202 ac_sub_configure=$ac_srcdir/configure
24203 elif test -f "$ac_srcdir/configure.in"; then
24204 # This should be Cygnus configure.
24205 ac_sub_configure=$ac_aux_dir/configure
24207 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24208 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24212 # The recursion is here.
24213 if test -n "$ac_sub_configure"; then
24214 # Make the cache file name correct relative to the subdirectory.
24215 case $cache_file in
24216 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24217 *) # Relative name.
24218 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24221 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24222 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24223 # The eval makes quoting arguments work.
24224 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24225 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24226 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24227 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24228 { (exit 1); exit 1; }; }